:root {
  --ink: #252522;
  --paper: #f4f0e7;
  --paper-deep: #e8e1d4;
  --orange: #d45122;
  --orange-dark: #963613;
  --line: #b8afa0;
  --muted: #716c63;
  --white: #fffdf7;
  --max: 1240px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  font-size: 18px;
  line-height: 1.65;
  letter-spacing: 0;
}

img { display: block; width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--orange-dark); }
button, input { font: inherit; letter-spacing: 0; }
button { cursor: pointer; }

.skip-link {
  position: fixed;
  left: 1rem;
  top: -5rem;
  z-index: 100;
  padding: .55rem .8rem;
  background: var(--white);
  border: 2px solid var(--ink);
}
.skip-link:focus { top: 1rem; }

.site-header {
  border-top: 7px solid var(--orange);
  border-bottom: 1px solid var(--ink);
  background: var(--paper);
}
.header-inner, .main-shell, .footer-inner {
  width: min(calc(100% - 40px), var(--max));
  margin-inline: auto;
}
.masthead {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 102px;
  gap: 1rem;
}
.brand {
  font-size: clamp(2.1rem, 5vw, 4.35rem);
  line-height: .9;
  font-weight: 700;
  text-decoration: none;
  text-transform: lowercase;
}
.brand-mark { color: var(--orange); }
.edition, .header-actions {
  font-size: .72rem;
  line-height: 1.3;
  text-transform: uppercase;
  font-weight: 700;
}
.edition { justify-self: start; }
.header-actions { justify-self: end; }
.search-open {
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  padding: .48rem .7rem;
  border-radius: 3px;
}
.search-open:hover { background: var(--ink); color: var(--paper); }

.main-nav {
  border-top: 1px solid var(--line);
  overflow-x: auto;
  scrollbar-width: thin;
}
.nav-list {
  display: flex;
  gap: 1.7rem;
  align-items: center;
  list-style: none;
  padding: .65rem 0;
  margin: 0;
  white-space: nowrap;
  font-size: .76rem;
  text-transform: uppercase;
  font-weight: 700;
}
.nav-list a { text-decoration: none; }

.main-shell { padding-block: 1.4rem 4.5rem; }
.signal-line {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1.4rem;
  font-size: .7rem;
  line-height: 1.2;
  font-weight: 700;
  text-transform: uppercase;
}
.signal-line::before { content: ""; width: 8px; height: 8px; background: var(--orange); }
.signal-line::after { content: ""; height: 1px; width: 100%; background: var(--line); grid-column: 2; grid-row: 1; }
.signal-line span { grid-column: 3; grid-row: 1; }

.lead-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.58fr) minmax(270px, .72fr);
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 3px double var(--ink);
}
.lead-story { min-width: 0; }
.lead-photo { aspect-ratio: 16 / 9; object-fit: cover; border-radius: 2px; }
.eyebrow {
  display: inline-block;
  margin: .9rem 0 .45rem;
  color: var(--orange-dark);
  font-size: .72rem;
  line-height: 1.2;
  text-transform: uppercase;
  font-weight: 700;
}
.lead-title {
  max-width: 19ch;
  margin: 0;
  font-size: clamp(2.15rem, 5vw, 5.1rem);
  line-height: .94;
  font-weight: 700;
}
.lead-title a { text-decoration: none; }
.deck { max-width: 68ch; margin: .9rem 0 .6rem; font-size: 1.18rem; line-height: 1.45; }
.story-meta { color: var(--muted); font-size: .77rem; line-height: 1.35; }
.side-notes { border-left: 1px solid var(--line); padding-left: 1.4rem; }
.side-notes h2, .section-head h2 {
  margin: 0;
  font-size: .8rem;
  line-height: 1.2;
  text-transform: uppercase;
}
.metric {
  display: grid;
  grid-template-columns: 2.8rem 1fr;
  gap: .75rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--line);
}
.metric-number { color: var(--orange); font-size: 1.65rem; line-height: 1; font-weight: 700; }
.metric p { margin: 0; font-size: .94rem; line-height: 1.45; }
.manifest { margin-top: 1.5rem; padding: 1rem; background: var(--ink); color: var(--paper); border-radius: 4px; }
.manifest strong { display: block; color: #f28a52; font-size: .7rem; text-transform: uppercase; }
.manifest p { margin: .5rem 0 0; font-size: .92rem; line-height: 1.5; }

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin: 2.7rem 0 1.1rem;
  padding-bottom: .55rem;
  border-bottom: 1px solid var(--ink);
}
.section-head span { color: var(--muted); font-size: .72rem; text-transform: uppercase; }
.article-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 1.4rem; }
.story-card { grid-column: span 6; min-width: 0; border-bottom: 1px solid var(--line); padding-bottom: 1.2rem; }
.story-card:nth-child(3n) { grid-column: span 12; display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; }
.story-card img { aspect-ratio: 16 / 9; object-fit: cover; border-radius: 2px; }
.story-card h3 { margin: .25rem 0 .5rem; font-size: clamp(1.45rem, 2.7vw, 2.45rem); line-height: 1.04; }
.story-card h3 a { text-decoration: none; }
.story-card p { margin: 0 0 .65rem; line-height: 1.48; }

.category-band {
  margin-top: 3rem;
  padding: 1.3rem 0;
  border-block: 1px solid var(--ink);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
}
.category-band a {
  display: block;
  min-height: 8rem;
  padding: 1rem;
  background: var(--paper);
  text-decoration: none;
}
.category-band small { display: block; color: var(--orange-dark); text-transform: uppercase; font-weight: 700; }
.category-band strong { display: block; margin-top: .6rem; font-size: 1.45rem; line-height: 1.05; }

.page-kicker { margin: 1rem 0 .5rem; color: var(--orange-dark); font-size: .75rem; text-transform: uppercase; font-weight: 700; }
.page-title { max-width: 18ch; margin: 0 0 1rem; font-size: clamp(2.5rem, 6vw, 5.4rem); line-height: .94; }
.page-intro { max-width: 65ch; font-size: 1.2rem; }
.archive-list { margin-top: 2.5rem; border-top: 1px solid var(--ink); }
.archive-item { display: grid; grid-template-columns: 11rem 1fr auto; gap: 1.2rem; padding: 1.2rem 0; border-bottom: 1px solid var(--line); align-items: start; }
.archive-item img { aspect-ratio: 16 / 10; object-fit: cover; }
.archive-item h2 { margin: 0 0 .35rem; font-size: 1.65rem; line-height: 1.05; }
.archive-item h2 a { text-decoration: none; }
.archive-item p { margin: 0; line-height: 1.45; }

.article-header { max-width: 960px; margin: 1rem auto 1.8rem; }
.article-header h1 { max-width: 18ch; margin: .35rem 0 .9rem; font-size: clamp(2.45rem, 6vw, 5.7rem); line-height: .93; }
.article-deck { max-width: 65ch; margin: 0 0 1rem; font-size: 1.25rem; line-height: 1.45; }
.article-hero { width: min(100%, 1120px); margin: 0 auto 2.5rem; }
.article-hero img { aspect-ratio: 16 / 9; object-fit: cover; border-radius: 2px; }
.caption { margin: .45rem 0 0; color: var(--muted); font-size: .74rem; line-height: 1.35; }
.article-layout { display: grid; grid-template-columns: 170px minmax(0, 720px); gap: 2.4rem; justify-content: center; }
.article-aside { position: sticky; top: 1rem; align-self: start; font-size: .75rem; line-height: 1.4; border-top: 2px solid var(--orange); padding-top: .6rem; }
.article-aside strong { display: block; text-transform: uppercase; }
.article-aside p { margin: .35rem 0 1rem; }
.article-body { min-width: 0; }
.article-body > p:first-child::first-letter { float: left; margin: .08em .12em 0 0; color: var(--orange); font-size: 4.2rem; line-height: .78; }
.article-body h2 { margin: 2.5rem 0 .7rem; font-size: 2rem; line-height: 1.05; }
.article-body h3 { margin: 1.8rem 0 .55rem; font-size: 1.35rem; line-height: 1.1; }
.article-body h4 { margin: 1.4rem 0 .4rem; font-size: 1rem; text-transform: uppercase; }
.article-body p { margin: 0 0 1.15rem; }
.article-body li { margin-bottom: .45rem; }
.article-body blockquote { margin: 1.7rem 0; padding: .2rem 0 .2rem 1.2rem; border-left: 4px solid var(--orange); font-size: 1.2rem; line-height: 1.45; }
.article-body table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; font-size: .9rem; }
.article-body th, .article-body td { padding: .55rem; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.article-body th { background: var(--paper-deep); }
.article-end { margin-top: 3rem; padding-top: 1rem; border-top: 3px double var(--ink); }

.site-footer { color: var(--paper); background: var(--ink); border-top: 5px solid var(--orange); }
.footer-inner { display: grid; grid-template-columns: 1.3fr 1fr; gap: 3rem; padding-block: 2.5rem; }
.footer-brand { margin: 0; color: var(--white); font-size: 2rem; line-height: 1; }
.footer-inner p { max-width: 52ch; color: #d7d0c4; font-size: .88rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: .65rem 1.2rem; align-content: start; font-size: .82rem; }
.footer-links a { color: var(--paper); }

.search-dialog { width: min(720px, calc(100% - 28px)); max-height: 86vh; padding: 0; color: var(--ink); background: var(--paper); border: 2px solid var(--ink); border-radius: 4px; }
.search-dialog::backdrop { background: rgb(37 37 34 / .82); }
.search-wrap { padding: 1.2rem; }
.search-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.search-top h2 { margin: 0; font-size: 1.4rem; }
.search-close { width: 2.25rem; height: 2.25rem; padding: 0; border: 1px solid var(--ink); background: transparent; border-radius: 50%; font-size: 1.4rem; line-height: 1; }
.search-field { width: 100%; margin-top: 1rem; padding: .75rem .85rem; color: var(--ink); background: var(--white); border: 1px solid var(--ink); border-radius: 2px; }
.search-results { margin: 1rem 0 0; padding: 0; list-style: none; overflow: auto; }
.search-results li { padding: .75rem 0; border-top: 1px solid var(--line); }
.search-results a { font-weight: 700; text-decoration: none; }
.search-results small { display: block; color: var(--muted); }
.search-status { color: var(--muted); font-size: .82rem; }

:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }

@media (max-width: 800px) {
  body { font-size: 17px; }
  .header-inner, .main-shell, .footer-inner { width: min(calc(100% - 28px), var(--max)); }
  .masthead { grid-template-columns: 1fr auto; min-height: 82px; }
  .edition { display: none; }
  .lead-grid { grid-template-columns: 1fr; }
  .side-notes { border-left: 0; border-top: 1px solid var(--line); padding: 1.2rem 0 0; }
  .lead-title, .article-header h1, .page-title { overflow-wrap: anywhere; }
  .story-card, .story-card:nth-child(3n) { grid-column: span 12; display: block; }
  .category-band { grid-template-columns: 1fr; }
  .archive-item { grid-template-columns: 7rem 1fr; }
  .archive-item .story-meta { grid-column: 2; }
  .article-layout { grid-template-columns: minmax(0, 1fr); }
  .article-aside { position: static; display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
  .footer-inner { grid-template-columns: 1fr; gap: 1rem; }
}

@media (max-width: 480px) {
  .brand { font-size: 2.35rem; }
  .search-open { padding: .4rem .55rem; }
  .lead-title { font-size: 2.55rem; }
  .article-header h1, .page-title { font-size: 2.75rem; }
  .archive-item { grid-template-columns: 1fr; }
  .archive-item .story-meta { grid-column: 1; }
  .archive-item img { aspect-ratio: 16 / 9; }
  .article-aside { grid-template-columns: 1fr; }
  .article-body h2 { font-size: 1.7rem; }
  .article-body table { display: block; overflow-x: auto; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
