:root {
  --paper: #f6f0df;
  --paper-deep: #eadfc5;
  --ink: #25211c;
  --muted: #70695d;
  --red: #a62f28;
  --red-dark: #76221e;
  --green: #49604d;
  --line: #c9bda4;
  --white: #fffdf7;
  --max: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(90deg, transparent 47px, rgba(166, 47, 40, .16) 48px, transparent 49px),
    var(--paper);
  font-family: "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  font-size: 17px;
  line-height: 1.62;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration-color: var(--red); text-underline-offset: .18em; }
a:hover { color: var(--red-dark); }
button, input { font: inherit; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.skip-link {
  position: fixed;
  left: 12px;
  top: -80px;
  z-index: 100;
  background: var(--ink);
  color: var(--white);
  padding: 8px 12px;
}
.skip-link:focus { top: 12px; }

.site-header {
  border-bottom: 1px solid var(--ink);
  background: rgba(246, 240, 223, .97);
}

.masthead {
  max-width: var(--max);
  margin: 0 auto;
  min-height: 88px;
  padding: 14px 24px 12px;
  display: grid;
  grid-template-columns: 150px 1fr 150px;
  align-items: center;
  gap: 20px;
}

.issue, .weather-note {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
  text-transform: uppercase;
  letter-spacing: 0;
}
.weather-note { text-align: right; }

.brand {
  display: block;
  color: var(--red-dark);
  text-align: center;
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 700;
  line-height: .95;
  text-decoration: none;
}
.brand small {
  display: block;
  margin-top: 8px;
  color: var(--ink);
  font-size: 10px;
  font-weight: 400;
  text-transform: uppercase;
}

.nav-row {
  border-top: 1px solid var(--line);
}
.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  min-height: 46px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 26px;
}
.main-nav { display: flex; align-items: center; gap: 24px; flex: 1; }
.main-nav a {
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
}
.nav-toggle { display: none; }
.search-toggle, .nav-toggle, .search-submit, .search-close {
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}
.search-toggle {
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 50%;
  font-size: 19px;
  line-height: 1;
}

.page-shell { max-width: var(--max); margin: 0 auto; padding: 28px 24px 64px; }
.route-kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  color: var(--red-dark);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}
.route-kicker::before { content: ""; width: 38px; border-top: 2px solid var(--red); }

.lead-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(260px, .7fr);
  border-bottom: 1px solid var(--ink);
  padding-bottom: 30px;
  gap: 30px;
}
.lead-story { position: relative; min-width: 0; }
.lead-story img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.lead-copy { max-width: 780px; padding: 17px 0 0; }
.lead-copy h1 {
  margin: 0 0 8px;
  max-width: 780px;
  font-size: clamp(34px, 5vw, 66px);
  line-height: .98;
  font-weight: 700;
}
.lead-copy p { max-width: 670px; margin: 0; color: #4f493f; font-size: 19px; }
.story-link { text-decoration: none; }
.story-link:hover h1, .story-link:hover h2, .story-link:hover h3 { color: var(--red-dark); }

.margin-notes {
  border-left: 1px solid var(--line);
  padding-left: 24px;
  display: flex;
  flex-direction: column;
}
.margin-notes h2 { margin: 0 0 12px; font-size: 22px; line-height: 1.1; }
.note { padding: 16px 0; border-top: 1px solid var(--line); }
.note:first-of-type { border-top: 3px double var(--ink); }
.note span { display: block; margin-bottom: 4px; color: var(--red); font-size: 11px; font-weight: 700; text-transform: uppercase; }
.note h3 { margin: 0 0 4px; font-size: 19px; line-height: 1.16; }
.note p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.45; }

.section-head {
  margin: 34px 0 18px;
  display: flex;
  align-items: baseline;
  gap: 14px;
}
.section-head h2 { margin: 0; font-size: 28px; line-height: 1; }
.section-head span { color: var(--muted); font-size: 12px; text-transform: uppercase; }
.section-head::after { content: ""; flex: 1; border-top: 1px solid var(--line); }

.story-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; }
.story-card { grid-column: span 4; min-width: 0; border-top: 4px solid var(--red); padding-top: 8px; }
.story-card.wide { grid-column: span 8; display: grid; grid-template-columns: 1.1fr .9fr; gap: 20px; }
.story-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.story-card.wide img { aspect-ratio: 16 / 10; }
.card-copy { padding-top: 12px; }
.story-card.wide .card-copy { padding-top: 0; }
.eyebrow { color: var(--red-dark); font-size: 11px; font-weight: 700; text-transform: uppercase; }
.story-card h3 { margin: 5px 0 7px; font-size: 25px; line-height: 1.06; }
.story-card p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.48; }

.route-strip {
  margin-top: 36px;
  padding: 22px 0;
  border-top: 3px double var(--ink);
  border-bottom: 1px solid var(--ink);
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 24px;
}
.route-step { position: relative; padding-left: 42px; }
.route-step b {
  position: absolute;
  left: 0;
  top: 0;
  width: 28px;
  height: 28px;
  border: 1px solid var(--red);
  border-radius: 50%;
  color: var(--red-dark);
  text-align: center;
  line-height: 27px;
}
.route-step h3 { margin: 0 0 4px; font-size: 18px; line-height: 1.2; }
.route-step p { margin: 0; color: var(--muted); font-size: 14px; }

.article-shell {
  max-width: 1080px;
  margin: 0 auto;
  padding: 30px 24px 72px;
}
.breadcrumbs { margin: 0 0 24px; color: var(--muted); font-size: 13px; }
.breadcrumbs a { text-decoration: none; }
.article-head { max-width: 910px; }
.article-head h1 { margin: 8px 0 14px; font-size: clamp(38px, 6vw, 68px); line-height: .98; }
.dek { max-width: 760px; margin: 0 0 16px; color: #50483d; font-size: 21px; line-height: 1.45; }
.byline { margin: 0 0 24px; color: var(--muted); font-size: 13px; }
.article-hero { width: 100%; aspect-ratio: 16 / 8.5; object-fit: cover; }
.caption { margin: 6px 0 28px; color: var(--muted); font-size: 12px; }
.article-layout { display: grid; grid-template-columns: 170px minmax(0, 690px); gap: 44px; justify-content: center; }
.article-aside { padding-top: 12px; color: var(--muted); font-size: 13px; }
.article-aside .aside-box { position: sticky; top: 18px; border-top: 3px double var(--ink); padding-top: 12px; }
.article-aside strong { display: block; color: var(--red-dark); font-size: 11px; text-transform: uppercase; }
.article-aside ol { margin: 10px 0 0; padding-left: 18px; }
.article-aside li { margin-bottom: 8px; }
.article-body { min-width: 0; }
.article-body > p:first-child::first-letter {
  float: left;
  margin: 7px 8px 0 0;
  color: var(--red);
  font-size: 64px;
  line-height: .7;
}
.article-body h2 { margin: 42px 0 10px; font-size: 34px; line-height: 1.08; }
.article-body h3 { margin: 28px 0 8px; font-size: 24px; line-height: 1.12; }
.article-body h4 { margin: 22px 0 6px; color: var(--red-dark); font-size: 17px; text-transform: uppercase; }
.article-body p { margin: 0 0 18px; }
.article-body ul, .article-body ol { margin: 0 0 22px; padding-left: 23px; }
.article-body li { margin-bottom: 7px; }
.notebook-callout {
  margin: 28px 0;
  padding: 18px 22px 16px 34px;
  border: 1px solid var(--line);
  border-left: 5px solid var(--red);
  background: rgba(255,253,247,.55);
}
.notebook-callout strong { color: var(--red-dark); }
.article-body table { width: 100%; margin: 22px 0 28px; border-collapse: collapse; font-size: 15px; }
.article-body th, .article-body td { padding: 10px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.article-body th { background: var(--paper-deep); }

.category-head {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 34px;
  padding: 20px 0 26px;
  border-bottom: 3px double var(--ink);
}
.category-number { color: var(--red); font-size: 76px; line-height: .9; }
.category-head h1 { margin: 0 0 8px; font-size: clamp(38px, 5vw, 62px); line-height: 1; }
.category-head p { max-width: 650px; margin: 0; color: var(--muted); }
.category-list { margin-top: 28px; }
.category-item {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr) 52px;
  gap: 24px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  align-items: center;
}
.category-item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.category-item h2 { margin: 4px 0 6px; font-size: 27px; line-height: 1.08; }
.category-item p { margin: 0; color: var(--muted); }
.page-no { color: var(--red); font-size: 28px; text-align: right; }

.search-panel[hidden] { display: none; }
.search-panel {
  position: fixed;
  z-index: 50;
  inset: 0;
  overflow: auto;
  padding: 8vh 18px;
  background: rgba(37, 33, 28, .82);
}
.search-box {
  max-width: 760px;
  margin: 0 auto;
  padding: 24px;
  border-top: 6px solid var(--red);
  background: var(--paper);
  box-shadow: 0 18px 60px rgba(0,0,0,.25);
}
.search-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.search-top h2 { margin: 0; font-size: 30px; }
.search-close { width: 34px; height: 34px; padding: 0; font-size: 20px; }
.search-form { display: grid; grid-template-columns: 1fr auto; gap: 8px; margin-top: 18px; }
.search-input { width: 100%; min-width: 0; padding: 11px 12px; border: 1px solid var(--ink); background: var(--white); color: var(--ink); }
.search-submit { padding: 8px 18px; background: var(--red); color: var(--white); border-color: var(--red); }
.search-results { margin-top: 18px; }
.search-result { display: grid; grid-template-columns: 110px 1fr; gap: 14px; padding: 14px 0; border-top: 1px solid var(--line); }
.search-result img { width: 110px; aspect-ratio: 4 / 3; object-fit: cover; }
.search-result h3 { margin: 0 0 3px; font-size: 19px; line-height: 1.15; }
.search-result p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.4; }
.search-empty { color: var(--muted); }

.site-footer { padding: 28px 24px 40px; border-top: 1px solid var(--ink); background: var(--red-dark); color: var(--paper); }
.footer-inner { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: 1fr auto; gap: 30px; align-items: end; }
.footer-brand { font-size: 29px; font-weight: 700; }
.footer-copy { max-width: 560px; margin: 6px 0 0; color: #eadfc5; font-size: 14px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 18px; justify-content: flex-end; font-size: 13px; }

@media (max-width: 820px) {
  body { background: var(--paper); }
  .masthead { min-height: 72px; grid-template-columns: 1fr auto; padding: 12px 18px; }
  .issue { display: none; }
  .weather-note { font-size: 10px; }
  .brand { text-align: left; font-size: 34px; }
  .brand small { display: none; }
  .nav-inner { padding: 0 18px; flex-wrap: wrap; gap: 10px; }
  .nav-toggle { display: block; min-height: 34px; padding: 4px 10px; }
  .main-nav { display: none; flex-basis: 100%; order: 3; padding: 8px 0 14px; flex-direction: column; align-items: flex-start; gap: 10px; }
  .main-nav.open { display: flex; }
  .search-toggle { margin-left: auto; }
  .page-shell, .article-shell { padding-left: 18px; padding-right: 18px; }
  .lead-layout { grid-template-columns: 1fr; gap: 24px; }
  .lead-copy h1 { font-size: 42px; }
  .margin-notes { border-left: 0; border-top: 3px double var(--ink); padding: 18px 0 0; }
  .story-card, .story-card.wide { grid-column: span 12; }
  .story-card.wide { grid-template-columns: 1fr; }
  .story-card h3 { font-size: 25px; }
  .route-strip { grid-template-columns: 1fr; }
  .article-head h1 { font-size: 43px; }
  .dek { font-size: 19px; }
  .article-layout { grid-template-columns: 1fr; gap: 0; }
  .article-aside { display: none; }
  .article-body h2 { font-size: 29px; }
  .article-body h3 { font-size: 22px; }
  .category-head { grid-template-columns: 70px 1fr; gap: 14px; }
  .category-number { font-size: 52px; }
  .category-item { grid-template-columns: 112px 1fr; gap: 15px; align-items: start; }
  .category-item .page-no { display: none; }
  .category-item h2 { font-size: 21px; }
  .category-item p { font-size: 14px; line-height: 1.4; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-links { justify-content: flex-start; }
}

@media (max-width: 480px) {
  .weather-note { display: none; }
  .masthead { grid-template-columns: 1fr; }
  .lead-copy h1, .article-head h1 { font-size: 38px; }
  .lead-copy p { font-size: 17px; }
  .story-grid { gap: 28px; }
  .category-head { grid-template-columns: 1fr; }
  .category-number { font-size: 32px; }
  .category-item { grid-template-columns: 1fr; }
  .category-item img { aspect-ratio: 16 / 9; }
  .search-form { grid-template-columns: 1fr; }
  .search-result { grid-template-columns: 82px 1fr; }
  .search-result img { width: 82px; }
}
