:root {
  --bg: #faf8f4;
  --surface: #ffffff;
  --ink: #16140f;
  --ink-soft: #4a463d;
  --muted: #847e70;
  --rule: #e4dfd4;
  --accent: #b3261e;
  --accent-ink: #ffffff;
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --display: "Playfair Display", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --max: 1160px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #12110e; --surface: #1b1a16; --ink: #f2efe8; --ink-soft: #c9c4b8;
    --muted: #8f897b; --rule: #2e2b25; --accent: #ef5a4f;
  }
}
:root[data-theme="dark"] {
  --bg: #12110e; --surface: #1b1a16; --ink: #f2efe8; --ink-soft: #c9c4b8;
  --muted: #8f897b; --rule: #2e2b25; --accent: #ef5a4f;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--serif); font-size: 19px; line-height: 1.6;
}
a { color: inherit; }
img { max-width: 100%; height: auto; display: block; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 32px; } }

/* Ticker */
.ticker {
  background: var(--ink); color: var(--bg); font-family: var(--sans);
  font-size: 12px; letter-spacing: .08em; text-transform: uppercase;
  overflow: hidden; white-space: nowrap;
}
.ticker .wrap { display: flex; gap: 12px; padding-top: 8px; padding-bottom: 8px; }
.ticker b { color: var(--accent); flex: none; }
.ticker span { overflow: hidden; text-overflow: ellipsis; }

/* Masthead */
.masthead { border-bottom: 1px solid var(--rule); }
.masthead .top {
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--sans); font-size: 12px; color: var(--muted);
  padding: 14px 0 0; gap: 12px;
}
.brand {
  display: block; text-align: center; text-decoration: none;
  font-family: var(--display); font-weight: 900;
  font-size: clamp(42px, 9vw, 92px); line-height: 1; letter-spacing: -.02em;
  padding: 10px 0 6px;
}
.brand em { font-style: italic; color: var(--accent); }
.tagline {
  text-align: center; font-family: var(--sans); font-size: 12px;
  letter-spacing: .18em; text-transform: uppercase; color: var(--muted);
  margin: 0 0 14px;
}
nav.primary {
  border-top: 3px double var(--rule);
  display: flex; justify-content: center; flex-wrap: wrap; gap: 4px 26px;
  padding: 12px 0; font-family: var(--sans); font-size: 13px;
  font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
}
nav.primary a { text-decoration: none; color: var(--ink-soft); }
nav.primary a:hover, nav.primary a[aria-current] { color: var(--accent); }

/* Common bits */
.kicker {
  font-family: var(--sans); font-size: 12px; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; color: var(--accent);
}
.byline { font-family: var(--sans); font-size: 13px; color: var(--muted); }
.byline strong { color: var(--ink); }
.section-label {
  font-family: var(--sans); font-size: 13px; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
  border-top: 2px solid var(--ink); padding-top: 10px; margin: 56px 0 22px;
}
h1, h2, h3 { font-family: var(--display); line-height: 1.12; letter-spacing: -.01em; }

/* Lead story */
.lead {
  display: grid; gap: 28px; padding: 36px 0 8px;
  grid-template-columns: 1fr;
}
@media (min-width: 900px) { .lead { grid-template-columns: 1.35fr 1fr; align-items: center; } }
.lead h2 { font-size: clamp(32px, 4.6vw, 54px); margin: 10px 0 14px; }
.lead h2 a { text-decoration: none; }
.lead h2 a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
.lead .dek { font-size: 21px; color: var(--ink-soft); margin: 0 0 16px; }
.cover {
  aspect-ratio: 16 / 10; background:
    repeating-linear-gradient(135deg, var(--rule) 0 2px, transparent 2px 14px), var(--surface);
  border: 1px solid var(--rule); display: grid; place-items: center;
  font-family: var(--sans); font-size: 13px; color: var(--muted); overflow: hidden;
}
.cover img { width: 100%; height: 100%; object-fit: cover; }
figcaption { font-family: var(--sans); font-size: 12px; color: var(--muted); margin-top: 8px; }

/* Story grid */
.grid { display: grid; gap: 32px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .grid { grid-template-columns: repeat(3, 1fr); } }
.card { border-top: 1px solid var(--rule); padding-top: 16px; }
.card h3 { font-size: 24px; margin: 8px 0 8px; }
.card h3 a { text-decoration: none; }
.card h3 a:hover { color: var(--accent); }
.card p { color: var(--ink-soft); font-size: 17px; margin: 0 0 10px; }
.card .soon { font-family: var(--sans); font-size: 11px; color: var(--muted); letter-spacing: .1em; text-transform: uppercase; }

/* Pull quote / about strip */
.strip {
  display: grid; gap: 28px; grid-template-columns: 1fr;
  background: var(--surface); border: 1px solid var(--rule); padding: 28px;
}
@media (min-width: 820px) { .strip { grid-template-columns: 1fr 1.6fr; padding: 40px; } }
.strip blockquote {
  margin: 0; font-family: var(--display); font-style: italic;
  font-size: clamp(24px, 3vw, 32px); line-height: 1.25;
}
.strip blockquote cite { display: block; margin-top: 14px; font-family: var(--sans); font-style: normal; font-size: 13px; color: var(--muted); }
.strip p { margin: 0 0 14px; color: var(--ink-soft); }

.creds { display: flex; flex-wrap: wrap; gap: 10px 26px; font-family: var(--sans); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.creds span::before { content: "■ "; color: var(--accent); }

.btn {
  display: inline-block; background: var(--accent); color: var(--accent-ink);
  font-family: var(--sans); font-weight: 700; font-size: 14px; letter-spacing: .04em;
  padding: 12px 20px; text-decoration: none; border: 0; cursor: pointer;
}
.btn:hover { filter: brightness(1.08); }
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--ink); }

/* Article */
.article { max-width: 720px; margin: 0 auto; padding: 40px 0 20px; }
.article h1 { font-size: clamp(34px, 5.4vw, 56px); margin: 12px 0 16px; }
.article .dek { font-size: 22px; color: var(--ink-soft); margin: 0 0 20px; }
.article .meta { display: flex; flex-wrap: wrap; gap: 6px 18px; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); padding: 12px 0; margin-bottom: 28px; }
.article figure { margin: 0 0 32px; }
.article .body p:first-of-type::first-letter {
  float: left; font-family: var(--display); font-weight: 900;
  font-size: 4.2em; line-height: .8; padding: 6px 10px 0 0; color: var(--accent);
}
.article .body h2 { font-size: 28px; margin: 40px 0 10px; }
.article .body blockquote {
  margin: 32px 0; padding-left: 20px; border-left: 4px solid var(--accent);
  font-family: var(--display); font-style: italic; font-size: 26px; line-height: 1.3;
}
.correction {
  font-family: var(--sans); font-size: 14px; background: var(--surface);
  border: 1px solid var(--rule); padding: 14px 16px; margin-top: 36px; color: var(--ink-soft);
}

/* Forms */
.form { display: grid; gap: 14px; max-width: 620px; }
.form label { font-family: var(--sans); font-size: 13px; font-weight: 600; display: grid; gap: 6px; }
.form input, .form textarea, .form select {
  font: inherit; font-size: 17px; padding: 12px; background: var(--surface);
  color: var(--ink); border: 1px solid var(--rule); width: 100%;
}
.fine { font-family: var(--sans); font-size: 12px; color: var(--muted); }

/* Footer */
footer {
  margin-top: 72px; border-top: 3px double var(--rule); padding: 32px 0 48px;
  font-family: var(--sans); font-size: 13px; color: var(--muted);
}
footer .cols { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 720px) { footer .cols { grid-template-columns: 2fr 1fr 1fr; } }
footer .mini { font-family: var(--display); font-weight: 900; font-size: 26px; color: var(--ink); }
footer a { text-decoration: none; display: block; margin-bottom: 6px; }
footer a:hover { color: var(--accent); }

/* Stories listing */
.page-title { font-size: clamp(36px, 6vw, 60px); margin: 40px 0 6px; }
.page-dek { color: var(--ink-soft); font-size: 20px; margin: 0 0 28px; }
.story-list { border-top: 2px solid var(--ink); }
.story-row { display: grid; gap: 18px; grid-template-columns: 1fr; padding: 26px 0; border-bottom: 1px solid var(--rule); }
@media (min-width: 720px) { .story-row { grid-template-columns: 280px 1fr; gap: 28px; align-items: center; } }
.story-row h2 { font-size: clamp(24px, 3vw, 32px); margin: 8px 0 8px; }
.story-row h2 a { text-decoration: none; }
.story-row h2 a:hover { color: var(--accent); }
.story-row p { margin: 0 0 8px; color: var(--ink-soft); }
.story-row .thumb { text-decoration: none; }

/* Portrait cover art */
figure.portrait { margin: 0; }
figure.portrait img { width: 100%; height: auto; border: 1px solid var(--rule); }
.lead figure.portrait { max-width: 420px; justify-self: center; width: 100%; }
.article figure.portrait { max-width: 520px; margin: 0 auto 32px; }
.thumb-img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: center 30%; border: 1px solid var(--rule); }
.body a, .correction a { color: var(--accent); }
