:root {
  --paper: #f2eadb;
  --paper-light: #fbf7ee;
  --ink: #1e211c;
  --olive: #48543a;
  --olive-dark: #2f3926;
  --terracotta: #b75535;
  --terracotta-dark: #81351f;
  --sun: #d9a92f;
  --rule: #b9ad98;
  --max: 1240px;
  --wide: 1380px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper-light);
  color: var(--ink);
  font-family: "Courier New", Courier, monospace;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 4px; }
button, input { font: inherit; }
button { cursor: pointer; }
.wrap { width: min(calc(100% - 48px), var(--max)); margin-inline: auto; }
.wrap-wide { width: min(calc(100% - 32px), var(--wide)); margin-inline: auto; }
.skip-link { position: fixed; top: 8px; left: 8px; z-index: 100; transform: translateY(-150%); background: var(--paper-light); padding: 8px 12px; border: 2px solid var(--ink); }
.skip-link:focus { transform: translateY(0); }

.utility { display: flex; justify-content: space-between; padding-block: 7px; color: var(--paper-light); font-size: .69rem; font-weight: 700; text-transform: uppercase; }
.site-header { background: var(--olive-dark); color: var(--paper-light); border-bottom: 5px solid var(--terracotta); }
.masthead { min-height: 132px; display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 34px; border-top: 1px solid rgba(255,255,255,.22); }
.brand { display: inline-flex; align-items: center; width: fit-content; text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 62px; height: 62px; margin-right: 16px; background: var(--terracotta); color: #fff; font-size: 1.45rem; font-weight: 700; border: 1px solid rgba(255,255,255,.55); }
.brand-name { font-size: 2rem; font-weight: 700; line-height: .85; text-transform: uppercase; }
.brand-note { margin: 0; padding-left: 28px; border-left: 1px solid rgba(255,255,255,.35); font-size: .8rem; line-height: 1.5; }
.search-open, .search-close { border: 1px solid currentColor; background: transparent; color: inherit; padding: 9px 14px; font-weight: 700; }
.search-open:hover, .search-open:focus-visible { background: var(--paper-light); color: var(--olive-dark); }
.main-nav { background: var(--paper); color: var(--ink); border-top: 1px solid rgba(255,255,255,.18); }
.nav-inner { display: flex; align-items: stretch; flex-wrap: wrap; }
.nav-inner a { padding: 13px 21px; border-right: 1px solid var(--rule); font-size: .72rem; font-weight: 700; text-decoration: none; text-transform: uppercase; }
.nav-inner a:first-child { border-left: 1px solid var(--rule); }
.nav-inner a:hover, .nav-inner a:focus-visible, .nav-inner a[aria-current="page"] { background: var(--terracotta); color: #fff; }

.lead { position: relative; min-height: 660px; margin-top: 28px; overflow: hidden; background: var(--olive); color: #fff; }
.lead > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.lead-shade { position: absolute; inset: 0; background: rgba(20, 25, 17, .52); }
.lead-copy { position: absolute; z-index: 1; left: clamp(22px, 5%, 70px); bottom: 54px; width: min(780px, calc(100% - 44px)); }
.lead-meta, .story-meta, .article-label, .article-byline { display: flex; align-items: center; gap: 18px; font-size: .72rem; font-weight: 700; text-transform: uppercase; }
.lead-meta a { color: #fff; }
.lead h1 { max-width: 16ch; margin: 15px 0 14px; font-size: clamp(2.25rem, 5.2rem, 5.2rem); line-height: .95; letter-spacing: 0; text-wrap: balance; }
.lead h1 a { text-decoration: none; }
.lead-copy > p { max-width: 67ch; margin: 0; font-size: 1rem; line-height: 1.55; }
.lead-index { position: absolute; z-index: 1; right: 24px; top: 24px; padding: 8px 10px; background: var(--sun); color: var(--ink); font-size: .75rem; font-weight: 700; }
.edition-line { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--ink); }
.edition-line p { margin: 0; padding: 13px 16px; font-size: .68rem; font-weight: 700; text-align: center; text-transform: uppercase; }
.edition-line p + p { border-left: 1px solid var(--ink); }

.latest, .category-index, .related { padding-block: 90px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; margin-bottom: 30px; padding-bottom: 18px; border-bottom: 3px solid var(--ink); }
.section-heading h2 { margin: 0; font-size: 2.2rem; line-height: 1; text-transform: uppercase; }
.section-heading > span { color: var(--terracotta-dark); font-weight: 700; }
.section-kicker { margin: 0 0 8px; color: var(--terracotta-dark); font-size: .72rem; font-weight: 700; text-transform: uppercase; }
.story-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 38px 26px; }
.story-card { grid-column: span 4; border-top: 1px solid var(--ink); padding-top: 9px; min-width: 0; }
.story-card--wide { grid-column: span 8; }
.story-image { display: block; overflow: hidden; background: var(--paper); }
.story-card img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform .35s ease; }
.story-card--wide img { aspect-ratio: 2 / 1; }
.story-image:hover img { transform: scale(1.018); }
.story-copy { padding-top: 16px; }
.story-meta { justify-content: space-between; color: var(--olive); }
.story-meta a { color: var(--terracotta-dark); }
.story-card h3 { margin: 13px 0 10px; font-size: 1.45rem; line-height: 1.15; text-wrap: balance; }
.story-card--wide h3 { max-width: 22ch; font-size: 2.05rem; }
.story-card h3 a { text-decoration: none; }
.story-card h3 a:hover { text-decoration: underline; }
.story-card p { margin: 0 0 14px; color: #4d4b43; font-size: .88rem; }
.story-date { color: #6f685d; font-size: .68rem; text-transform: uppercase; }

.manifesto { background: var(--terracotta); color: #fff; }
.manifesto-grid { display: grid; grid-template-columns: 150px 1fr auto; gap: 46px; align-items: start; padding-block: 70px; }
.manifesto .section-kicker { color: #fff; }
.manifesto-text { max-width: 28ch; margin: 0; font-size: 2rem; font-weight: 700; line-height: 1.17; text-wrap: balance; }
.manifesto a { align-self: end; font-size: .78rem; font-weight: 700; text-transform: uppercase; }
.category-list { border-top: 1px solid var(--ink); }
.category-list a { display: grid; grid-template-columns: 70px minmax(180px, .75fr) 1fr 24px; gap: 22px; align-items: center; padding: 27px 12px; border-bottom: 1px solid var(--ink); text-decoration: none; }
.category-list a:hover { background: var(--paper); }
.category-list span { color: var(--terracotta-dark); font-weight: 700; }
.category-list strong { font-size: 1.3rem; text-transform: uppercase; }
.category-list em { color: #555147; font-size: .84rem; font-style: normal; }

.category-hero { display: grid; grid-template-columns: 190px 1fr; gap: 44px; align-items: end; padding-block: 84px 62px; border-bottom: 4px solid var(--ink); }
.category-number { color: var(--terracotta); font-size: 6rem; font-weight: 700; line-height: .8; }
.category-hero h1 { margin: 0; font-size: clamp(2.4rem, 4.4rem, 4.4rem); line-height: .95; text-transform: uppercase; }
.category-hero div > p:last-child { max-width: 66ch; margin: 20px 0 0; }
.category-stories { display: grid; grid-template-columns: repeat(12, 1fr); gap: 40px 26px; padding-block: 62px; }
.category-stories .story-card { grid-column: span 5; }
.category-stories .story-card--wide { grid-column: span 7; }
.category-note { display: flex; justify-content: space-between; align-items: center; margin-bottom: 80px; padding: 20px 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.category-note p { margin: 0; }
.category-note a { font-weight: 700; }

.article-header { max-width: 1040px; padding-top: 82px; }
.article-label { color: var(--olive); }
.article-label a { color: var(--terracotta-dark); }
.article-header h1 { max-width: 19ch; margin: 26px 0 24px; font-size: clamp(2.5rem, 4.6rem, 4.6rem); line-height: .98; letter-spacing: 0; text-wrap: balance; }
.article-dek { max-width: 72ch; margin: 0; font-size: 1.15rem; line-height: 1.55; }
.article-byline { justify-content: space-between; margin-top: 38px; padding: 16px 0; border-top: 1px solid var(--ink); }
.article-figure { margin-top: 20px; }
.article-figure img { width: 100%; max-height: 800px; object-fit: cover; }
.article-figure figcaption { margin-top: 7px; color: #716a5f; font-size: .65rem; text-transform: uppercase; }
.article-layout { display: grid; grid-template-columns: 190px minmax(0, 720px); justify-content: center; gap: 54px; padding-block: 72px 100px; }
.article-rail { position: sticky; top: 20px; align-self: start; display: flex; flex-direction: column; gap: 18px; padding-top: 10px; border-top: 3px solid var(--terracotta); color: var(--olive); font-size: .7rem; text-transform: uppercase; }
.article-body { min-width: 0; font-size: 1rem; line-height: 1.82; }
.article-body .intro { margin-top: 0; font-size: 1.17rem; font-weight: 700; line-height: 1.65; }
.article-body h2 { margin: 2.8em 0 .7em; padding-top: .55em; border-top: 1px solid var(--rule); font-size: 1.85rem; line-height: 1.15; text-wrap: balance; }
.article-body h3 { margin: 2.1em 0 .6em; color: var(--terracotta-dark); font-size: 1.25rem; line-height: 1.2; }
.article-body h4 { margin: 1.8em 0 .5em; font-size: 1rem; text-transform: uppercase; }
.article-body p { margin: 0 0 1.35em; }
.article-body ul, .article-body ol { margin: 1.2em 0 1.7em; padding-left: 1.4em; }
.article-body li { margin-bottom: .6em; padding-left: .25em; }
.related { border-top: 5px solid var(--olive-dark); }
.related-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.related-grid .story-card { grid-column: auto; }

.site-footer { background: var(--olive-dark); color: var(--paper-light); border-top: 7px solid var(--sun); }
.footer-grid { display: grid; grid-template-columns: 1.5fr .8fr .7fr; gap: 60px; padding-block: 62px; }
.footer-grid > div { display: flex; flex-direction: column; align-items: flex-start; }
.footer-grid p { max-width: 52ch; margin: 12px 0 0; font-size: .79rem; }
.footer-grid a { margin-top: 10px; font-size: .76rem; }
.footer-mark { display: inline-grid; place-items: center; width: 48px; height: 48px; background: var(--terracotta); font-weight: 700; }
.footer-label { margin: 0 0 10px !important; color: var(--sun); font-weight: 700; text-transform: uppercase; }
.footer-bottom { display: flex; justify-content: space-between; padding-block: 15px; border-top: 1px solid rgba(255,255,255,.25); font-size: .65rem; text-transform: uppercase; }

.search-panel { position: fixed; z-index: 90; inset: 0; display: grid; place-items: start center; padding: 7vh 18px 18px; background: rgba(20, 22, 17, .82); overflow-y: auto; }
.search-panel[hidden] { display: none; }
.search-shell { width: min(820px, 100%); background: var(--paper-light); color: var(--ink); border-top: 8px solid var(--terracotta); padding: 28px; box-shadow: 0 18px 60px rgba(0,0,0,.28); }
.search-top { display: flex; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--ink); padding-bottom: 18px; }
.search-top .section-kicker { margin: 0; }
.search-close { color: var(--ink); }
.search-form { padding: 25px 0 18px; }
.search-form label { display: block; margin-bottom: 8px; font-size: .76rem; font-weight: 700; }
.search-line { display: grid; grid-template-columns: 1fr auto; }
.search-line input { min-width: 0; border: 1px solid var(--ink); background: #fff; padding: 13px; border-radius: 0; }
.search-line button { border: 1px solid var(--ink); border-left: 0; background: var(--olive); color: #fff; padding: 10px 19px; font-weight: 700; }
.search-status { color: #615d54; font-size: .76rem; }
.search-results { border-top: 1px solid var(--rule); }
.search-result { display: grid; grid-template-columns: 110px 1fr; gap: 18px; padding: 18px 0; border-bottom: 1px solid var(--rule); }
.search-result img { width: 110px; aspect-ratio: 3 / 2; object-fit: cover; }
.search-result h3 { margin: 3px 0 6px; font-size: 1rem; line-height: 1.25; }
.search-result p { margin: 0; color: #5e594f; font-size: .75rem; }
.search-result span { color: var(--terracotta-dark); font-size: .65rem; font-weight: 700; text-transform: uppercase; }
body.search-locked { overflow: hidden; }

@media (max-width: 900px) {
  .masthead { grid-template-columns: 1fr auto; gap: 16px; min-height: 110px; }
  .brand-note { display: none; }
  .lead { min-height: 590px; }
  .lead h1 { font-size: 3.45rem; }
  .story-card, .story-card--wide { grid-column: span 6; }
  .manifesto-grid { grid-template-columns: 120px 1fr; }
  .manifesto a { grid-column: 2; }
  .category-hero { grid-template-columns: 130px 1fr; }
  .category-number { font-size: 4.5rem; }
  .category-stories .story-card, .category-stories .story-card--wide { grid-column: span 6; }
  .article-layout { grid-template-columns: 140px minmax(0, 1fr); gap: 35px; }
}

@media (max-width: 640px) {
  body { font-size: 15px; }
  .wrap, .wrap-wide { width: min(calc(100% - 28px), var(--max)); }
  .utility-date { display: none; }
  .masthead { min-height: 92px; }
  .brand-mark { width: 44px; height: 44px; margin-right: 10px; font-size: 1rem; }
  .brand-name { font-size: 1.25rem; }
  .search-open { padding: 7px 9px; font-size: .75rem; }
  .nav-inner { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; }
  .nav-inner a { display: grid; place-items: center; min-height: 44px; padding: 8px 6px; border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); text-align: center; font-size: .61rem; }
  .nav-inner a:first-child { border-left: 0; }
  .lead { min-height: 535px; margin-top: 14px; }
  .lead-copy { left: 18px; bottom: 24px; width: calc(100% - 36px); }
  .lead h1 { max-width: 13ch; margin-top: 10px; font-size: 2.35rem; }
  .lead-copy > p { display: none; }
  .lead-index { right: 12px; top: 12px; }
  .edition-line { grid-template-columns: 1fr; }
  .edition-line p + p { border-left: 0; border-top: 1px solid var(--ink); }
  .edition-line p:nth-child(n+3) { display: none; }
  .latest, .category-index, .related { padding-block: 58px; }
  .section-heading h2 { font-size: 1.75rem; }
  .story-grid { display: block; }
  .story-card, .story-card--wide { margin-bottom: 46px; }
  .story-card--wide img, .story-card img { aspect-ratio: 4 / 3; }
  .story-card--wide h3, .story-card h3 { font-size: 1.35rem; }
  .manifesto-grid { grid-template-columns: 1fr; gap: 18px; padding-block: 50px; }
  .manifesto-text { font-size: 1.45rem; }
  .manifesto a { grid-column: auto; }
  .category-list a { grid-template-columns: 40px 1fr 22px; gap: 12px; padding: 20px 4px; }
  .category-list em { grid-column: 2 / 4; }
  .category-list strong { font-size: 1.05rem; }
  .category-hero { grid-template-columns: 1fr; gap: 24px; padding-block: 58px 42px; }
  .category-number { font-size: 3.6rem; }
  .category-hero h1 { font-size: 2.3rem; overflow-wrap: anywhere; }
  .category-stories { display: block; padding-block: 42px; }
  .category-stories .story-card { margin-bottom: 44px; }
  .category-note { align-items: flex-start; flex-direction: column; gap: 9px; margin-bottom: 55px; }
  .article-header { padding-top: 52px; }
  .article-header h1 { font-size: 2.35rem; overflow-wrap: anywhere; }
  .article-dek { font-size: 1rem; }
  .article-byline { align-items: flex-start; flex-direction: column; gap: 4px; }
  .article-figure { width: 100%; }
  .article-figure img { aspect-ratio: 4 / 3; object-fit: cover; }
  .article-figure figcaption { padding-inline: 14px; }
  .article-layout { display: block; padding-block: 46px 70px; }
  .article-rail { position: static; margin-bottom: 36px; }
  .article-body { font-size: .98rem; line-height: 1.75; }
  .article-body .intro { font-size: 1.06rem; }
  .article-body h2 { font-size: 1.48rem; }
  .related-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; padding-block: 48px; }
  .footer-bottom { gap: 20px; }
  .search-shell { padding: 20px 16px; }
  .search-line { grid-template-columns: 1fr; gap: 8px; }
  .search-line button { border-left: 1px solid var(--ink); }
  .search-result { grid-template-columns: 84px 1fr; gap: 12px; }
  .search-result img { width: 84px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
