* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 32px;
}
body {
  margin: 0;
}
body:has(dialog[open]) {
  overflow: hidden;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
select {
  font: inherit;
}
button,
a,
input,
select,
summary {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: default;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
button {
  color: inherit;
}
a,
button,
input,
select {
  outline-offset: 5px;
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--accent);
}
[hidden] {
  display: none !important;
}
.icon-button {
  border: 0;
  background: none;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
}
.eyebrow {
  font-size: 12px;
  line-height: 1.5;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 16px;
}
.button {
  display: inline-flex;
  gap: 9px;
  align-items: center;
  justify-content: center;
  padding: 15px 22px;
  min-height: 50px;
  border: 1px solid transparent;
  border-radius: 5px;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  transition:
    background 0.16s,
    transform 0.16s;
}
.button:hover {
  transform: translateY(-2px);
}
.primary {
  background: var(--accent);
  color: white;
}
.primary:hover {
  background: #2c5048;
}
.secondary {
  background: transparent;
  border-color: #b5c0b5;
}
.secondary:hover {
  background: var(--soft);
}
.text-link {
  font-size: 14px;
  line-height: 1.6;
  border-bottom: 1px solid #9daaa1;
  padding-bottom: 3px;
  white-space: nowrap;
}
.text-link:hover {
  color: var(--accent);
  border-color: var(--accent);
}
.section-heading {
  display: flex;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
}
.section-heading h2,
.related > h2 {
  font-family: var(--family);
  font-size: 36px;
  font-weight: 400;
  letter-spacing: -0.8px;
  margin: 8px 0 11px;
}
.section-heading .eyebrow {
  font-size: 11px;
  margin-bottom: 12px;
}
.section-heading p:not(.eyebrow) {
  font-size: 15px;
  color: var(--muted);
  margin: 0;
}
.pill {
  font-size: 11px;
  border: 1px solid #71877c;
  color: #d8e2d9;
  padding: 6px 10px;
  border-radius: 20px;
  display: inline-block;
  letter-spacing: 0.025em;
}
.illustrated {
  background:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 27px,
      #51664e0b 28px
    ),
    repeating-linear-gradient(90deg, #e6eddf, #e6eddf 27px, #51664e0b 28px);
  display: flex;
  align-items: center;
  justify-content: center;
}
.page-intro {
  padding-top: 64px;
  margin-bottom: 43px;
  max-width: 790px;
}
.page-intro h1 {
  font-family: var(--family);
  font-size: 58px;
  letter-spacing: -1.8px;
  line-height: 1.13;
  font-weight: 400;
  margin: 15px 0 23px;
}
.page-intro > p:not(.eyebrow) {
  font-size: 18px;
  line-height: 1.8;
  color: var(--muted);
  max-width: 700px;
}
.archive-page {
  padding-bottom: 60px;
}
.search-field {
  display: flex;
  align-items: center;
  gap: 13px;
  border: 1px solid #cdd5dc;
  border-radius: 5px;
  background: white;
  padding: 0 17px;
  flex: 1;
  min-width: 0;
  color: #778571;
}
.search-field input {
  width: 100%;
  min-width: 0;
  padding: 17px 0;
  border: 0;
  outline: none;
  background: none;
  font-size: 15px;
  color: var(--ink);
}
.search-field:focus-within {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.year-filter {
  position: relative;
}
.year-filter:after {
  content: '';
  position: absolute;
  right: 19px;
  top: 23px;
  width: 7px;
  height: 7px;
  border-right: 1.5px solid var(--ink);
  border-bottom: 1.5px solid var(--ink);
  transform: rotate(45deg);
  pointer-events: none;
}
.year-filter select {
  appearance: none;
  background: #fff;
  border: 1px solid #cdd5dc;
  border-radius: 5px;
  padding: 17px 45px 17px 20px;
  color: var(--ink);
  font-size: 14px;
  min-width: 165px;
}
.filter-bar {
  display: flex;
  gap: 9px;
  margin-top: 22px;
  flex-wrap: wrap;
}
.filter-bar button {
  border: 1px solid var(--line);
  background: transparent;
  padding: 10px 15px;
  font-size: 13px;
  border-radius: 30px;
  white-space: nowrap;
}
.filter-bar button[aria-pressed='true'] {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}
.archive-language {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--muted);
  margin-top: 24px;
}
.archive-language input {
  accent-color: var(--accent);
  width: 17px;
  height: 17px;
}
.edition-note,
.translation-notice {
  padding: 15px 19px;
  background: var(--soft);
  border-radius: 6px;
  font-size: 14px;
  line-height: 1.7;
}
.results-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--muted);
  margin: 30px 0 12px;
}
.plain-button {
  padding: 7px 0;
  border: 0;
  border-bottom: 1px solid #a6b1a3;
  background: none;
  font-size: 13px;
}
.archive-row {
  display: grid;
  grid-template-columns: 155px 1fr 100px;
  gap: 30px;
  padding: 26px 0;
  border-top: 1px solid var(--line);
  align-items: start;
}
.archive-row time {
  font-size: 12px;
  color: var(--muted);
  padding-top: 3px;
}
.archive-row .eyebrow {
  font-size: 10px;
  letter-spacing: 0.08em;
  color: #52755c;
}
.archive-row h2 {
  font-size: 22px;
  line-height: 1.3;
  font-weight: 580;
  letter-spacing: -0.3px;
  margin: 8px 0;
}
.archive-row p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
  max-width: 700px;
}
.read-time {
  font-size: 12px;
  color: var(--muted);
  justify-self: end;
  padding-top: 28px;
}
.archive-row:hover h2 {
  color: var(--accent);
}
.language-badge {
  font-size: 10px;
  letter-spacing: 0.04em;
  border: 1px solid #a9b5a5;
  padding: 2px 4px;
  border-radius: 3px;
  display: inline-block;
  margin-left: 6px;
  vertical-align: middle;
}
.load-more {
  text-align: center;
  margin-top: 30px;
}
.empty-state {
  text-align: center;
  padding: 70px 0;
}
.empty-state h2 {
  font-family: var(--family);
  font-size: 30px;
  font-weight: 400;
}
.translation-link {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  font-size: 12px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 5px;
}
.article-body > p,
.article-body > div,
.article-body > ul,
.article-body > ol {
  margin: 0 0 25px;
}
.article-body h3 {
  font-size: 23px;
  line-height: 1.4;
  margin: 32px 0 15px;
}
.article-body picture {
  display: contents;
}
.article-body img {
  margin: 24px auto;
  border-radius: 5px;
  max-height: 850px;
  object-fit: contain;
  width: var(--image-width, auto);
}
.article-body blockquote p {
  margin: 8px 0;
}
.article-body pre code {
  background: none;
  padding: 0;
}
.article-body table {
  display: block;
  overflow-x: auto;
  font-size: 15px;
  border-collapse: collapse;
  width: 100%;
}
.article-body th,
.article-body td {
  border: 1px solid var(--line);
  padding: 10px 14px;
}
.article-body figure {
  margin: 26px 0;
}
.article-body figcaption {
  font-size: 13px;
  text-align: center;
  color: var(--muted);
}
.article-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.article-gallery img {
  margin: 0;
  width: 100%;
  height: 220px;
  object-fit: cover;
}
.video-link,
.legacy-note {
  border: 1px solid var(--line);
  padding: 24px;
  font-size: 15px;
}
.muted {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}
.related {
  margin-block: 70px;
}
.prose h2 {
  font-family: var(--family);
  font-weight: 400;
  line-height: 1.25;
  font-size: 32px;
  margin: 8px 0 20px;
}
.prose p {
  font-size: 17px;
  line-height: 1.85;
  color: var(--muted);
  margin: 0 0 25px;
}
.calculator-page {
  padding: 35px 0 90px;
}
.calculator-page .page-intro {
  padding-top: 32px;
}
.calculator-page h1 {
  font-size: 48px;
}
.calculator-layout {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 45px;
}
.course-labels,
.course-row {
  display: grid;
  grid-template-columns: 1fr 90px 100px 30px;
  gap: 12px;
  align-items: center;
}
.course-labels {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 12px;
}
.course-row {
  margin-bottom: 14px;
}
.course-row input,
.course-row select {
  min-width: 0;
  width: 100%;
  border: 1px solid #c5cfbf;
  border-radius: 4px;
  padding: 13px 10px;
  background: white;
  font-size: 14px;
  color: var(--ink);
}
.course-row select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='m1 1 5 5 5-5' fill='none' stroke='%2320342e'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
  padding-right: 24px;
}
.remove-course {
  border: 0;
  background: none;
  font-size: 23px;
  color: var(--muted);
  padding: 0;
  min-height: 36px;
}
.calculator-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 22px;
}
.calculator-output {
  background: var(--accent);
  padding: 38px;
  color: white;
  align-self: start;
  border-radius: 8px;
}
.calculator-output .eyebrow {
  color: #b8cdbb;
}
.calculator-output > strong {
  display: block;
  font-family: var(--family);
  font-size: 86px;
  font-weight: 400;
  letter-spacing: -3px;
  margin-top: 10px;
}
.calculator-output p {
  font-size: 13px;
  color: #c7d7c7;
}
.gpa-meter {
  height: 6px;
  background: #4b6558;
  border-radius: 8px;
  margin: 22px 0;
  overflow: hidden;
}
.gpa-meter span {
  display: block;
  height: 100%;
  width: 0;
  background: #eeac7b;
}
.formula {
  border-top: 1px solid #6b8273;
  padding-top: 20px;
  margin-top: 24px;
  font-size: 11px !important;
}
.calc-note {
  margin-top: 28px;
  font-size: 13px;
}
.search-dialog {
  width: min(640px, calc(100% - 32px));
  max-height: 75vh;
  border: 1px solid #c8d4c0;
  padding: 25px;
  background: var(--paper);
  border-radius: 9px;
  box-shadow: 0 20px 100px #15271940;
  color: var(--ink);
}
.search-dialog::backdrop {
  background: #17291f80;
  backdrop-filter: blur(4px);
}
.search-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
.search-heading h2 {
  font-family: var(--family);
  font-size: 30px;
  font-weight: 400;
  margin: 0;
}
.search-results {
  max-height: 40vh;
  overflow: auto;
  margin-top: 14px;
}
.search-result {
  display: block;
  padding: 15px 4px;
  border-bottom: 1px solid var(--line);
}
.search-result strong {
  display: block;
  font-size: 16px;
  line-height: 1.5;
}
.search-result span {
  font-size: 11px;
  color: var(--muted);
}
.search-result:hover strong {
  color: var(--accent);
}
.search-foot {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  letter-spacing: 0.03em;
  color: var(--muted);
  padding-top: 20px;
}
.skip-link {
  position: absolute;
  top: -80px;
  left: 20px;
  background: var(--accent);
  color: white;
  padding: 15px;
  z-index: 10;
}
.skip-link:focus {
  top: 15px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
@media (max-width: 1000px) {
  .calculator-layout {
    gap: 25px;
    grid-template-columns: 1.4fr 1fr;
  }
  .course-labels,
  .course-row {
    grid-template-columns: 1fr 66px 82px 24px;
    gap: 8px;
  }
  .calculator-output {
    padding: 30px;
  }
  .archive-row {
    grid-template-columns: 120px 1fr 75px;
    gap: 20px;
  }
}
@media (max-width: 720px) {
  .section-heading {
    align-items: flex-start;
    margin-bottom: 25px;
  }
  .section-heading h2 {
    font-size: 29px;
  }
  .section-heading > a {
    display: none;
  }
  .section-heading p:not(.eyebrow) {
    font-size: 14px;
  }
  .page-intro {
    padding-top: 40px;
    margin-bottom: 29px;
  }
  .page-intro h1 {
    font-size: 43px;
  }
  .page-intro > p:not(.eyebrow) {
    font-size: 16px;
  }
  .search-field {
    padding-inline: 12px;
  }
  .search-field input {
    font-size: 13px;
    padding-block: 15px;
  }
  .year-filter select {
    min-width: 125px;
    font-size: 12px;
    padding: 15px 28px 15px 12px;
  }
  .year-filter:after {
    right: 14px;
    top: 20px;
  }
  .filter-bar {
    gap: 7px;
  }
  .filter-bar button {
    font-size: 11px;
    padding: 9px 11px;
  }
  .archive-row {
    grid-template-columns: 1fr;
    gap: 7px;
    padding-block: 22px;
  }
  .archive-row time {
    font-size: 11px;
  }
  .archive-row .eyebrow {
    font-size: 9px;
  }
  .archive-row h2 {
    font-size: 20px;
    margin-top: 8px;
  }
  .archive-row p {
    font-size: 13px;
  }
  .read-time {
    justify-self: start;
    padding: 0;
    font-size: 10px;
  }
  .article-gallery img {
    height: 160px;
  }
  .related {
    margin-block: 50px;
  }
  .related > h2 {
    font-size: 29px;
  }
  .prose h2 {
    font-size: 29px;
  }
  .prose p {
    font-size: 16px;
  }
  .calculator-page h1 {
    font-size: 38px;
  }
  .calculator-layout {
    grid-template-columns: 1fr;
  }
  .calculator-output {
    grid-row: 1;
    padding: 24px 28px;
  }
  .calculator-output > strong {
    font-size: 65px;
    line-height: 1.15;
    margin: 8px 0;
  }
  .gpa-meter {
    margin: 17px 0;
  }
  .formula {
    margin-top: 16px;
    padding-top: 15px;
  }
  .course-labels,
  .course-row {
    grid-template-columns: 1fr 65px 85px 24px;
    gap: 8px;
  }
  .course-row input,
  .course-row select {
    font-size: 13px;
  }
  .calculator-page .page-intro {
    padding-top: 25px;
  }
  .calculator-page {
    padding-bottom: 60px;
  }
  .search-dialog {
    padding: 20px;
  }
  .search-results {
    max-height: 45vh;
  }
  .search-heading h2 {
    font-size: 26px;
  }
}
@media (max-width: 420px) {
  .course-labels,
  .course-row {
    grid-template-columns: minmax(0, 1fr) 58px 75px 22px;
    gap: 6px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *:before,
  *:after {
    transition: none !important;
    animation: none !important;
  }
}

.article-body video {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 1.5em 0;
}

@font-face {
  font-family: 'Source Sans 3';
  src: url('fonts/source-sans-3.woff2') format('woff2');
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
}

:root {
  --family:
    'Source Sans 3', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --ink: #232526;
  --muted: #62696d;
  --accent: #006a9f;
  --paper: #fff;
  --line: #e0e5e9;
  --soft: #f2f4f6;
  --masthead-height: 70px;
  --radius-image: 12px;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--family);
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

::selection {
  color: #05344c;
  background: #d7effb;
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}
.shell {
  width: min(1160px, calc(100% - 48px));
  margin-inline: auto;
}

.site-header {
  position: relative;
  z-index: 4;
  background: var(--paper);
}
body:is([data-page='home'], [data-page='post']) .site-header {
  background: var(--soft);
}
.masthead {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  min-height: var(--masthead-height);
}

.masthead .brand {
  display: block;
  width: 106px;
}
.masthead .brand img {
  display: block;
  width: 100%;
}
.masthead-nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 40px);
}
.masthead-nav a {
  display: flex;
  align-items: center;
  min-height: 44px;
  color: var(--ink);
  font-size: 16px;
  font-weight: 650;
  white-space: nowrap;
}
.masthead-nav a:is(:hover, [aria-current='page']) {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 7px;
  text-decoration-thickness: 2px;
}
.masthead .icon-button {
  display: grid;
  min-width: 44px;
  min-height: 44px;
  place-items: center;
  padding: 0;
  color: var(--muted);
  cursor: pointer;
}

.masthead .icon-button:hover,
.masthead .icon-button:focus-visible,
.site-menu[open] > summary {
  color: var(--accent);
}

.site-menu {
  display: none;
}
.site-menu > summary {
  list-style: none;
}
.site-menu > summary::-webkit-details-marker {
  display: none;
}
.site-menu:not([open]) .menu-panel {
  display: none;
}
.menu-panel {
  position: absolute;
  top: calc(100% - 1px);
  left: 50%;
  translate: -50% 0;
  width: min(516px, 100%);
  padding: 20px 24px;
  border: 1px solid var(--line);
  border-radius: 0 0 12px 12px;
  background: var(--paper);
  box-shadow: 0 12px 30px rgba(27, 38, 48, 0.13);
}
.menu-panel ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.menu-categories,
.menu-pages {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0 16px;
}
.menu-panel .menu-pages {
  border-bottom: 1px solid var(--line);
  margin-bottom: 8px;
  padding-bottom: 8px;
}
.menu-panel .language-switch {
  border-top: 1px solid var(--line);
  margin-top: 8px;
  padding-top: 4px;
}
.menu-panel li a {
  display: flex;
  align-items: center;
  min-height: 44px;
  font-size: 16px;
  font-weight: 600;
}
.menu-panel a:hover,
.menu-panel a[aria-current='page'] {
  color: var(--accent);
}
.language-switch {
  display: flex;
  align-items: center;
  gap: 12px;
}
.language-switch a {
  display: grid;
  min-height: 40px;
  place-items: center;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}
.language-switch a[aria-current] {
  color: var(--ink);
  font-weight: 700;
}
.language-switch a:hover {
  color: var(--accent);
}
.masthead-tools {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-self: end;
}
.language-switch a {
  min-width: 32px;
}
.menu-panel .language-switch a {
  min-width: 44px;
  min-height: 44px;
}

.home-highlight {
  padding-block: clamp(32px, 5vw, 68px);
  background: var(--soft);
}
.lead-story {
  display: block;
}
.lead-story--has-image {
  display: grid;
  grid-template-columns: minmax(0, 1fr) min(480px, 42vw);
  gap: clamp(32px, 6vw, 88px);
  align-items: center;
}
.lead-image,
.story-image,
.article-cover {
  overflow: hidden;
  border-radius: var(--radius-image);
  background: #e0e5e8;
}
.lead-image {
  aspect-ratio: 16 / 10;
  background: #e8edf0;
  box-shadow: inset 0 0 0 1px var(--line);
}
.lead-image picture,
.story-image picture,
.article-cover picture {
  display: block;
  height: 100%;
}
.lead-image img,
.story-image img,
.article-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.lead-image:not(.lead-image--photo) img {
  object-fit: contain;
}
.lead-copy {
  max-width: 620px;
}
.post-category {
  display: flex;
  gap: 6px 12px;
  flex-wrap: wrap;
  color: #434a4d;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.035em;
  line-height: 1.35;
  text-transform: uppercase;
}
.lead-copy h1 {
  margin: 10px 0 14px;
  font-size: clamp(32px, 4vw, 54px);
  font-weight: 700;
  line-height: 1.16;
  letter-spacing: -0.02em;
  overflow-wrap: anywhere;
}
.lead-copy p {
  margin: 0 0 18px;
  color: #44494d;
  font-size: 18px;
  line-height: 1.55;
}
.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 10px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
  font-weight: 600;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}
.lead-story:hover h1,
.story-card:hover h3,
.post-category a:hover {
  color: var(--accent);
}

.reading-tabs {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
}
.reading-tabs label {
  min-height: 40px;
  display: grid;
  align-items: center;
  border-bottom: 2px solid transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 13px;
  font-weight: 750;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
#reading-archive:checked ~ .reading-tabs label[for='reading-archive'],
#reading-recommended:checked ~ .reading-tabs label[for='reading-recommended'] {
  color: var(--ink);
  border-color: var(--accent);
}
#reading-archive:focus-visible ~ .reading-tabs label[for='reading-archive'],
#reading-recommended:focus-visible
  ~ .reading-tabs
  label[for='reading-recommended'] {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
#reading-archive:checked ~ #reading-recommended-posts,
#reading-recommended:checked ~ #reading-archive-posts {
  display: none;
}
.reading-list {
  display: grid;
  gap: 22px;
}

.home-feed {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 48px;
  align-items: start;
  padding-block: 44px 68px;
}
.home-feed:not(:has(.reading-sidebar)) {
  display: block;
}
.home-feed:has(.reading-sidebar) .story-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 28px;
}
.reading-sidebar {
  border-left: 1px solid var(--line);
  padding-left: 24px;
}
.reading-sidebar .story-card--compact.story-card--has-image {
  grid-template-columns: min(144px, 40%) minmax(0, 1fr);
}
.latest-feed .section-heading {
  align-items: baseline;
  margin-bottom: 24px;
}
.latest-feed .section-heading .text-link {
  display: inline-block;
  color: var(--accent);
}
.latest-feed .section-heading h2,
.related > h2 {
  margin: 0;
  font-weight: 700;
  font-size: 30px;
  letter-spacing: -0.02em;
}
.story-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 38px 40px;
}
.story-card {
  display: block;
  min-width: 0;
}
.story-image {
  aspect-ratio: 16 / 9;
}
.story-card--has-image:not(.story-card--compact) .story-info {
  padding-top: 15px;
}
.story-info h3 {
  margin: 6px 0 9px;
  font-weight: 650;
  font-size: 25px;
  line-height: 1.23;
  letter-spacing: -0.015em;
  overflow-wrap: anywhere;
}
.story-info > p {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  margin: 0 0 13px;
  color: #44494d;
  font-size: 16px;
  line-height: 1.5;
}
.story-card--compact.story-card--has-image {
  display: grid;
  grid-template-columns: minmax(0, 144px) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}
.story-card--compact .story-image {
  aspect-ratio: 1.15;
  border-radius: 9px;
}
.story-card--compact .story-info {
  padding-block: 3px;
}
.story-card--compact h3 {
  font-size: 18px;
  line-height: 1.28;
  margin: 6px 0;
}

.site-footer {
  padding-block: 36px 40px;
  background: var(--soft);
}
.footer-inner {
  text-align: center;
}
.footer-inner nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 23px;
}
.footer-inner a {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  min-height: 40px;
  font-size: 15px;
  font-weight: 650;
}
.footer-inner a:hover {
  color: var(--accent);
}
.footer-inner p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 13px;
}
.empty-edition {
  padding-bottom: 85px;
}
.page-intro h1 {
  font-weight: 700;
  font-size: clamp(36px, 4vw, 54px);
  letter-spacing: -0.025em;
}
.archive-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.archive-controls .search-field {
  flex: 1 1 220px;
  min-width: 0;
}
.year-filter select {
  max-width: 100%;
}
#category-filter {
  min-width: 0;
  max-width: min(100%, 230px);
}

.article-header {
  background: var(--soft);
}
.article-hero {
  padding-block: 40px 48px;
}
.article-hero--photo {
  padding-bottom: 28px;
}
.article-cover {
  aspect-ratio: 5 / 2;
  margin-top: 32px;
}
.article-heading {
  min-width: 0;
  max-width: 660px;
  margin: 0 auto;
}
.article-body .article-inline-cover {
  width: min(100%, var(--cover-width));
  margin: 0 auto 30px;
}
.article-body .article-inline-cover img {
  width: 100%;
  margin: 0 auto;
}
.article-body .article-inline-image {
  height: auto;
  max-height: none;
}
.article-body .article-image-label {
  display: block;
  width: fit-content;
  margin: 5px auto 0;
  color: var(--accent);
  font-size: 15px;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.article-body a:has(.article-image-label) img {
  margin-bottom: 0;
}
.article-heading h1 {
  margin: 13px 0 18px;
  font-size: clamp(35px, 4.1vw, 51px);
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-wrap: balance;
  overflow-wrap: anywhere;
}
.article-summary {
  margin: 0 0 23px;
  color: #44494d;
  font-size: 20px;
  line-height: 1.63;
}
.article-byline {
  display: flex;
  align-items: center;
  gap: 10px 20px;
  flex-wrap: wrap;
}
.translation-link {
  padding: 3px 8px;
  border: 1px solid #cdd5dc;
  color: var(--accent);
}
.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 660px) minmax(0, 1fr);
  gap: 32px;
  align-items: start;
  padding-top: 60px;
}
.article-sidebar {
  position: sticky;
  top: 24px;
}
.article-sidebar .eyebrow {
  color: var(--ink);
  font-size: 12px;
}
.article-sidebar nav {
  display: grid;
  gap: 8px;
  padding-left: 12px;
  border-left: 1px solid var(--line);
}
.article-sidebar nav a {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
.article-sidebar nav a:hover {
  color: var(--accent);
}
.article-body {
  grid-column: 2;
  min-width: 0;
  color: #393d40;
  font-size: 20px;
  line-height: 1.68;
  overflow-wrap: anywhere;
}
.article-body h2 {
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1.19;
  color: var(--ink);
  font-weight: 650;
  letter-spacing: -0.018em;
  margin: 42px 0 16px;
  text-wrap: balance;
}
.article-body a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 0.16em;
}
.article-body blockquote {
  margin: 28px 0;
  padding: 14px 22px;
  border-left: 2px solid var(--line);
  background: var(--soft);
  font-size: 22px;
}
.article-body pre {
  max-width: 100%;
  overflow-x: auto;
  border-radius: 6px;
  background: #24292f;
  color: #edf2f5;
  font:
    14px / 1.6 ui-monospace,
    monospace;
  padding: 18px;
}
.article-body code {
  font-family: ui-monospace, monospace;
  font-size: 0.83em;
  background: var(--soft);
  border-radius: 3px;
  padding: 2px 4px;
}
.archive-notice {
  padding: 14px 18px;
  border-radius: 6px;
  background: var(--soft);
  color: #545d62;
  font-size: 14px;
  line-height: 1.45;
}
.archive-notice strong {
  color: #374047;
  font-weight: 650;
}
.archive-notice p {
  margin: 3px 0 0;
}
.article-share {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.article-body .article-share h2 {
  margin: 0 0 12px;
  font-size: 22px;
}
.article-share-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.article-share-actions :is(a, button) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 44px;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}
.article-share-actions .article-share-native {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--paper);
}
.article-share-actions :is(a, button):hover {
  border-color: var(--accent);
  background: var(--paper);
  color: var(--accent);
}
.article-share-status {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}
.article-share-status:not(:empty) {
  margin-top: 8px;
}
.article-share-link {
  display: grid;
  gap: 4px;
  margin-top: 8px;
  font-size: 14px;
}
.article-share-link input {
  width: 100%;
  min-height: 44px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
}
.related .story-grid {
  margin-top: 24px;
}

@media (max-width: 1000px) {
  .article-layout {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 15px;
  }
  .article-sidebar,
  .article-body {
    width: min(100%, 660px);
    margin-inline: auto;
  }
  .article-sidebar {
    display: none;
  }
}

@media (max-width: 960px) {
  .home-feed {
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
  }
  .home-feed:has(.reading-sidebar) .story-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .reading-sidebar {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding: 20px 0 0;
  }
  .reading-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 24px;
  }
}

@media (max-width: 860px) {
  .story-grid,
  .home-feed:has(.reading-sidebar) .story-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px 24px;
  }
}

@media (max-width: 760px) {
  :root {
    --masthead-height: 60px;
  }
  body:is([data-page='home'], [data-page='post']) .site-header {
    background: var(--paper);
  }
  .masthead {
    grid-template-columns: 1fr auto 1fr;
    gap: 10px;
  }
  .masthead .site-menu {
    display: block;
    justify-self: start;
  }
  .masthead .brand {
    width: 105px;
  }
  .masthead-nav,
  .masthead-languages {
    display: none;
  }
  .home-highlight {
    padding-block: 24px 32px;
  }
  .lead-story--has-image {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }
  .lead-copy h1 {
    font-size: clamp(27px, 6vw, 38px);
  }
  .lead-copy p {
    font-size: 17px;
  }
  .article-hero {
    padding-block: 24px 36px;
  }
  .article-cover {
    aspect-ratio: 16 / 10;
    margin-top: 24px;
  }
  .article-heading h1 {
    font-size: clamp(31px, 6.8vw, 42px);
  }
  .article-summary,
  .article-body {
    font-size: 18px;
  }
  .article-layout {
    padding-top: 28px;
  }
}

@media (max-width: 540px) {
  .masthead .site-menu {
    margin-left: -10px;
  }
  .masthead .search-toggle {
    margin-right: -10px;
  }
  .menu-panel {
    padding-inline: 15px;
  }
  .menu-categories,
  .menu-pages {
    gap: 0 10px;
  }
  .menu-panel li a {
    font-size: 15px;
  }
  .reading-list,
  .story-grid,
  .home-feed:has(.reading-sidebar) .story-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .reading-tabs {
    margin-bottom: 14px;
  }
  .story-card--compact.story-card--has-image,
  .reading-sidebar .story-card--compact.story-card--has-image {
    grid-template-columns: minmax(0, 110px) minmax(0, 1fr);
    gap: 12px;
  }
  .story-card--compact .story-image {
    aspect-ratio: 1;
  }
  .home-feed {
    padding-block: 30px 48px;
  }
  .article-summary {
    margin-bottom: 16px;
  }
  .archive-controls .search-field {
    flex-basis: 100%;
  }
  .archive-controls .year-filter {
    flex: 1 1 min(140px, 100%);
  }
  .archive-controls select {
    width: 100%;
    max-width: none;
  }
}

.pagination {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .25rem;
  margin: 2rem 0 3rem;
}
.pagination a, .pagination [aria-current] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  min-height: 2.5rem;
  padding: .3rem .65rem;
  border-radius: .3rem;
}
.pagination a:hover, .pagination a:focus-visible {
  text-decoration: underline;
  color: var(--accent);
}
.pagination [aria-current] {
  color: white;
  background: var(--ink);
}
.pagination[hidden], .archive-row[hidden] { display: none; }
