:root {
  --bg: #fbfaf7;
  --surface: #ffffff;
  --ink: #16181d;
  --muted: #5d636f;
  --rule: #dcd9d1;
  --accent: #b3261e;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121316;
    --surface: #1b1d22;
    --ink: #ecebe7;
    --muted: #a0a5b0;
    --rule: #30333a;
    --accent: #ff8a80;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.55;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, [contenteditable]:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Masthead */
.masthead {
  max-width: 1080px;
  margin: 0 auto;
  padding: 28px 16px 0;
  text-align: center;
}
.site-name {
  font-family: var(--serif);
  font-size: clamp(2rem, 6vw, 3.4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  text-decoration: none;
  text-wrap: balance;
}
.tagline { margin: 6px 0 18px; color: var(--muted); font-size: 0.95rem; }
.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 22px;
  padding: 10px 0;
  border-top: 3px double var(--ink);
  border-bottom: 1px solid var(--rule);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.nav a { text-decoration: none; padding: 4px 0; }
.nav a:hover { color: var(--accent); }

main { max-width: 1080px; margin: 0 auto; padding: 28px 16px 48px; min-height: 50vh; }

.kicker {
  display: inline-block;
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
}
.meta { margin: 8px 0 0; color: var(--muted); font-size: 0.85rem; }
.section-head {
  margin: 0 0 20px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--ink);
  font-family: var(--serif);
  font-size: 1.5rem;
}
.empty { padding: 64px 0; text-align: center; color: var(--muted); }
.empty h1 { color: var(--ink); font-family: var(--serif); }

/* Cards */
.card-title { margin: 6px 0 0; font-family: var(--serif); line-height: 1.2; text-wrap: balance; }
.card-title a { text-decoration: none; }
.card-title a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.card-summary { margin: 8px 0 0; color: var(--muted); }
.card-img img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--rule); }

.card.lead {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 28px;
  align-items: center;
  padding-bottom: 28px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--rule);
}
.card.lead.no-img { grid-template-columns: 1fr; max-width: 760px; }
.card.lead .card-title { font-size: clamp(1.7rem, 4vw, 2.6rem); }
.card.lead .card-summary { font-size: 1.1rem; }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px 28px; }
.grid .card { display: flex; flex-direction: column; gap: 12px; }
.grid .card.no-img { padding-top: 12px; border-top: 1px solid var(--rule); }
.grid .card-title { font-size: 1.25rem; }
.grid .card-summary { font-size: 0.95rem; }

/* Story */
.story { max-width: 720px; margin: 0 auto; }
.story-head h1 {
  margin: 8px 0 0;
  font-family: var(--serif);
  font-size: clamp(1.9rem, 5vw, 3rem);
  line-height: 1.12;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.deck { margin: 14px 0 0; font-size: 1.2rem; color: var(--muted); }
.story-head .meta { padding: 14px 0; margin-top: 18px; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.story-cover { margin: 24px 0 0; }
.story-cover img { width: 100%; }
.story-body { margin-top: 24px; font-family: var(--serif); font-size: 1.16rem; line-height: 1.7; overflow-wrap: break-word; }
.story-body p { margin: 0 0 1.1em; }
.story-body h2, .story-body h3 { margin: 1.6em 0 0.5em; line-height: 1.25; }
.story-body a { color: var(--accent); }
.story-body img { margin: 1.4em auto; height: auto; }
.story-body blockquote {
  margin: 1.4em 0;
  padding-left: 18px;
  border-left: 3px solid var(--accent);
  font-style: italic;
}
.share { margin-top: 32px; padding-top: 16px; border-top: 1px solid var(--rule); color: var(--muted); font-size: 0.9rem; }
.share a { margin-left: 12px; color: var(--ink); font-weight: 600; }
.more { margin-top: 56px; }

.footer {
  border-top: 1px solid var(--rule);
  padding: 24px 16px 40px;
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
}

@media (max-width: 820px) {
  .card.lead { grid-template-columns: 1fr; gap: 16px; }
  .grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 540px) {
  .grid { grid-template-columns: 1fr; }
  .story-body { font-size: 1.08rem; }
}
