:root {
  --bg: #fbfaf7;
  --paper: #ffffff;
  --ink: #16161a;
  --ink-2: #3d3d44;
  --muted: #6b6b73;
  --rule: #d9d6cf;
  --rule-strong: #16161a;
  --accent: #8a1c1c;
  --breaking: #b3121b;
  --breaking-ink: #ffffff;
  --high: #8a1c1c;
  --chip: #efece6;
  --serif: "Iowan Old Style", "Charter", "Source Serif Pro", "Georgia", "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121214;
    --paper: #18181b;
    --ink: #ecebe8;
    --ink-2: #c9c8c4;
    --muted: #9a9aa2;
    --rule: #2e2e33;
    --rule-strong: #ecebe8;
    --accent: #f08a7e;
    --breaking: #c4161f;
    --high: #f08a7e;
    --chip: #232327;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.5 var(--sans);
}
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }

/* Top bar and masthead */
.topbar { border-bottom: 1px solid var(--rule); font-size: 13px; color: var(--ink-2); }
.topbar-inner { display: flex; justify-content: space-between; gap: 12px; padding-top: 8px; padding-bottom: 8px; flex-wrap: wrap; }
.masthead { text-align: center; padding-top: 28px; padding-bottom: 14px; }
.masthead h1 {
  font: 700 clamp(36px, 7vw, 64px)/1 var(--serif);
  letter-spacing: -0.02em;
  margin: 0;
}
.tagline { margin: 10px 0 0; color: var(--muted); font: italic 15px/1.4 var(--serif); }

/* Section nav */
.sections { border-top: 3px double var(--rule-strong); border-bottom: 1px solid var(--rule-strong); }
.sections ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; justify-content: center; gap: 4px 22px; flex-wrap: wrap;
}
.sections a {
  display: inline-block; padding: 10px 2px;
  font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  border-bottom: 2px solid transparent;
}
.sections a[aria-current="page"] { border-bottom-color: var(--accent); color: var(--accent); }
.sections a:hover { text-decoration: none; color: var(--accent); }

/* Breaking */
.breaking { background: var(--breaking); color: var(--breaking-ink); }
.breaking-inner { display: flex; gap: 14px; align-items: baseline; padding-top: 10px; padding-bottom: 10px; }
.breaking-label {
  flex: none; font-size: 12px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase;
  border: 1px solid currentColor; padding: 1px 6px;
}
.breaking ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-weight: 600; }

/* Topic chips */
.topics { display: flex; gap: 6px; flex-wrap: wrap; margin: 18px 0 0; }
.chip {
  font: 600 12px/1 var(--sans); padding: 7px 11px; border-radius: 999px;
  border: 1px solid var(--rule); background: var(--paper); color: var(--ink-2); cursor: pointer;
}
.chip[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }

/* Stories */
main { padding-top: 8px; padding-bottom: 24px; min-height: 50vh; }
.loading, .empty { padding: 48px 0; text-align: center; color: var(--muted); }
.section { margin-top: 30px; }
.section-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  border-top: 2px solid var(--rule-strong); padding-top: 8px; margin-bottom: 14px;
}
.section-head h2 { margin: 0; font: 700 22px/1.2 var(--serif); }
.section-head a { font-size: 13px; color: var(--muted); }

.front { margin-top: 22px; }
.lead { padding-bottom: 18px; margin-bottom: 4px; border-bottom: 1px solid var(--rule); }

/* Stories flow down newspaper-style columns, so short and long stories pack without gaps. */
.flow { columns: 3 260px; column-gap: 32px; column-rule: 1px solid var(--rule); }
.flow .story { break-inside: avoid; padding: 14px 0; border-bottom: 1px solid var(--rule); }
.flow .story:last-child { border-bottom: 0; }

.story { min-width: 0; }
.kicker {
  display: flex; gap: 8px; align-items: center; flex-wrap: wrap;
  font-size: 11.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent);
  margin-bottom: 6px;
}
.kicker .region { color: var(--muted); }
.badge { font-size: 10.5px; padding: 1px 5px; border-radius: 3px; letter-spacing: 0.06em; }
.badge.breaking-badge { background: var(--breaking); color: #fff; }
.badge.high-badge { border: 1px solid var(--high); color: var(--high); }
.story h3 { margin: 0; font: 700 19px/1.25 var(--serif); letter-spacing: -0.005em; }
.story.priority-high h3 { font-size: 21px; }
.story.priority-low h3 { font-weight: 600; font-size: 17px; color: var(--ink-2); }
.story p.summary { margin: 6px 0 0; color: var(--ink-2); font-size: 15px; }
.story .meta { margin-top: 8px; font-size: 12.5px; color: var(--muted); }
.story .meta a { text-decoration: underline; text-decoration-color: var(--rule); text-underline-offset: 2px; }
.story .meta a:hover { color: var(--ink); }

.story.lead h3 { font-size: clamp(28px, 4vw, 44px); line-height: 1.1; letter-spacing: -0.015em; max-width: 26ch; }
.story.lead.priority-low h3 { font-weight: 700; color: var(--ink); }
.story.lead p.summary { font-size: 18px; margin-top: 10px; max-width: 68ch; }

.footer { border-top: 1px solid var(--rule); padding-top: 18px; padding-bottom: 40px; font-size: 13px; color: var(--ink-2); }
.footer p { margin: 0 0 6px; max-width: 70ch; }

@media (max-width: 600px) {
  .masthead { padding-top: 20px; }
  .sections ul { justify-content: flex-start; gap: 0 16px; }
}
