:root {
  --ink: #1b1712;
  --muted: #6d6357;
  --accent: #7a1f1f;
  --rule: #d9d2c4;
  --bg: #f6efe2;
  --tint: #f1e8d6;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Source Serif 4", Georgia, "Times New Roman", serif;
  font-size: 1.05rem;
  line-height: 1.7;
}
main { max-width: 44rem; margin: 0 auto; padding: 0.5rem 1.25rem 4rem; }
h1, h2, h3 { line-height: 1.25; }
a { color: var(--accent); }
img { width: 100%; height: auto; display: block; }

.site-header {
  max-width: 44rem;
  margin: 0 auto;
  padding: 2.25rem 1.25rem 0;
  text-align: center;
}
.masthead-kicker {
  margin: 0 0 0.4rem;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}
.wordmark {
  display: block;
  font-family: "UnifrakturMaguntia", "Source Serif 4", Georgia, serif;
  font-weight: 400;
  font-size: clamp(2.5rem, 9vw, 4.4rem);
  line-height: 1.05;
  color: var(--ink);
  text-decoration: none;
}
.folio {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.5rem;
  justify-content: space-between;
  align-items: baseline;
  margin-top: 0.85rem;
  border-top: 1px solid var(--ink);
  border-bottom: 3px double var(--ink);
  padding: 0.45rem 0.15rem;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.folio-note { color: var(--muted); }
.folio-nav { display: flex; gap: 1.4rem; }
.folio-nav a { color: var(--accent); text-decoration: none; }
.folio-nav a:hover { text-decoration: underline; }
.folio-nav .rss-link { letter-spacing: 0.16em; }

.edition-head {
  position: relative;
  max-width: 30rem;
  margin: 1.75rem auto 0;
  padding: 0.9rem 1.25rem 0.95rem;
  border: 1px solid var(--ink);
  box-shadow: inset 0 0 0 4px var(--bg), inset 0 0 0 5px var(--ink);
  background: var(--tint);
  text-align: center;
}
.edition-weekday {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent);
}
.edition-date {
  margin: 0.15rem 0 0.25rem;
  font-size: clamp(1.6rem, 5vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.15;
}
.edition-meta {
  margin: 0;
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.edition-meta a { color: var(--accent); }

.morning-note {
  position: relative;
  margin: 2rem auto 2.25rem;
  padding: 1.9rem 1.75rem 1.5rem;
  border: 1px solid var(--ink);
  background: var(--tint);
  text-align: center;
  font-style: italic;
  font-size: 1.2rem;
  line-height: 1.65;
}
.morning-note::before {
  content: "The Morning Note";
  position: absolute;
  top: -0.55rem;
  left: 50%;
  transform: translateX(-50%);
  padding: 0 0.7rem;
  background: var(--bg);
  font-style: normal;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent);
  white-space: nowrap;
}

h1 { font-size: 1.9rem; margin: 1rem 0 0.25rem; }
h2 {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-top: 2.6rem;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
h2::after { content: ""; flex: 1; border-top: 1px solid var(--ink); }
h3 { font-size: 1.7rem; font-weight: 800; letter-spacing: -0.01em; margin: 2.2rem 0 0.5rem; }

.briefing-meta {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.briefing-meta a { color: var(--accent); text-decoration: none; }
.briefing-meta a:hover { text-decoration: underline; }

.source-line {
  font-size: 0.86rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.source-line a { text-decoration: underline; text-underline-offset: 0.15em; }
.correction { background: #efe3cd; border: 1px solid #cdb98f; padding: 0.75rem 1rem; }
figcaption { font-size: 0.85rem; color: var(--muted); }
#in-brief + ul li { margin-bottom: 0.5rem; }
#in-brief + ul strong {
  font-size: 0.82em;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.site-footer {
  max-width: 44rem;
  margin: 0 auto;
  padding: 1.25rem;
  border-top: 1px solid var(--rule);
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
}
.archive-list { list-style: none; padding: 0; }
.archive-list li { padding: 0.65rem 0; border-bottom: 1px solid var(--rule); }
.archive-list a { text-decoration: none; }
.archive-list a:hover { text-decoration: underline; }
.archive-note { margin: 0 0 1.5rem; color: var(--muted); font-style: italic; }

/* Pagefind search UI, themed to the broadsheet */
#search {
  --pagefind-ui-scale: 0.9;
  --pagefind-ui-primary: var(--accent);
  --pagefind-ui-text: var(--ink);
  --pagefind-ui-background: var(--bg);
  --pagefind-ui-border: var(--rule);
  --pagefind-ui-border-width: 1px;
  --pagefind-ui-border-radius: 0;
  /* "inherit" is invalid inside var() substitution — name the stack. */
  --pagefind-ui-font: "Source Serif 4", Georgia, "Times New Roman", serif;
  margin: 0 0 2rem;
}

#search input:focus,
#search input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 0;
}

#search mark {
  background: transparent;
  color: var(--accent);
  font-weight: 700;
}

/* Today at a glance */
.glance {
  margin: 1.6rem 0 0;
  padding: 0.7rem 0 0.55rem;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}
h2.glance-title {
  display: block;
  margin: 0 0 0.6rem;
  text-align: center;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent);
}
h2.glance-title::after { content: none; }
.glance-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem 0;
}
.glance-grid li {
  display: flex;
  flex-direction: column;
  padding: 0.3rem 0.8rem;
  border-left: 1px solid var(--rule);
}
.glance-grid li:nth-child(3n + 1) { border-left: none; }
.g-label { font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.g-value { font-size: 1.35rem; font-weight: 800; line-height: 1.2; letter-spacing: -0.01em; }
.g-note { font-size: 0.82rem; line-height: 1.4; color: var(--muted); }
/* Status marks in the value line: the picture is the reading. Pictorial
   emoji (weather, sunrise) shrink to sit with the text; scaled metrics get
   typeset ink dots in print-palette tones instead of glossy emoji circles. */
.g-icon { font-size: 0.85em; }
.g-dot {
  display: inline-block;
  width: 0.55em;
  height: 0.55em;
  border-radius: 50%;
  vertical-align: 0.06em;
  margin-right: 0.06em;
}
.g-dot--green { background: #3a6b35; }
.g-dot--yellow { background: #c29008; }
.g-dot--orange { background: #c2571a; }
.g-dot--red { background: #a3241c; }
.g-dot--purple { background: #6b3fa0; }
.g-dot--maroon { background: #641414; }
@media (max-width: 40rem) {
  .glance-grid { grid-template-columns: repeat(2, 1fr); }
  .glance-grid li:nth-child(3n + 1) { border-left: 1px solid var(--rule); }
  .glance-grid li:nth-child(2n + 1) { border-left: none; }
}

/* Lead story: larger headline. The hero image sits flush with the text
   column (the old wide-screen bleed clipped chart titles at the right edge
   — Evan, 2026-08-29). */
.bulletin h3:first-of-type { font-size: 2.3rem; line-height: 1.12; }
.bulletin h3 + p img { margin-top: 0.2rem; }

/* "What's next" line under each story */
.whats-next { margin: 0.7rem 0 0.5rem; font-size: 0.98rem; }
.whats-next strong {
  font-size: 0.8em;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}

/* ---- Voice cards, video, River, and rituals ---- */

.voice-card {
  max-width: 36rem;
  margin: 1.25rem auto;
  padding: 0.9rem 1rem;
  border: 1px solid var(--ink);
  background: var(--bg);
}
.voice-kind {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0 0 0.45rem;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.voice-head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 0.65rem;
}
.voice-glyph { width: 18px; height: 18px; flex-shrink: 0; color: var(--accent); }
.voice-glyph svg { width: 18px; height: 18px; display: block; }
.voice-avatar { width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0; }
.voice-who { display: flex; flex-direction: column; line-height: 1.3; }
.voice-name { font-weight: 700; }
.voice-meta {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.voice-text { margin: 0.6rem 0; font-size: 0.98rem; line-height: 1.5; }
.voice-image { width: 100%; margin: 0.6rem 0; border-radius: 2px; }
.voice-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.4rem;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.voice-foot a { color: var(--accent); text-decoration: none; }
.voice-foot a:hover { text-decoration: underline; }

.video-frame { margin: 1.25rem 0; }
.video-box {
  aspect-ratio: 16 / 9;
  border: 1px solid var(--ink);
  background: var(--tint);
}
.video-box iframe { width: 100%; height: 100%; border: 0; display: block; }

.river-note { text-align: center; font-style: italic; color: var(--muted); font-size: 0.85rem; margin: 0 0 1rem; }

.river h4 {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin: 2.3rem 0 0.6rem;
  padding-top: 0.55rem;
  border-top: 1px solid var(--ink);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
}
.river h4::after { content: ""; flex: 1; border-top: 1px solid var(--rule); }
/* The first beat sits right under the beat nav's own hairline — the
   section front already cuts there, so no second rule. */
.river h4:first-of-type { border-top: none; padding-top: 0; margin-top: 1.6rem; }
.river p { margin: 0 0 0.6rem; font-size: 0.98rem; line-height: 1.5; }

/* A lead: the beat's headline item. Bold and dark against the briefs, at body
   size — the page has enough type sizes already; weight does the work. */
.river h5 {
  margin: 1.4rem 0 0.35rem;
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--ink);
}
.river h5 + p { margin-bottom: 1.1rem; }

/* Tiered City Desk (editions with lead headlines): after a beat's leads,
   an "Also" label opens the run of briefs, and briefs read as their own
   genus — smaller, tucked in, each opened by a hanging dash — so a lead's
   headline visibly governs only its own paragraph (2026-08-30 jam). */
.river--tiered .brief-slug {
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 1.15rem 0 0.55rem;
}
.river--tiered p:has(.src):not(h5 + p) {
  font-size: 0.9rem;
  line-height: 1.42;
  margin: 0 0 0.5rem 1.1rem;
  position: relative;
  color: #2a241d; /* slightly lighter than --ink to keep leads primary */
}
.river--tiered p:has(.src):not(h5 + p)::before {
  content: "\2014";
  color: var(--accent);
  position: absolute;
  left: -1.35rem;
}
/* A chart attached to a brief tucks to the brief's own margin, tight
   under it, so it reads as that entry's exhibit — not a floating peer. */
.river--tiered p:has(.src):not(h5 + p) + figure.graphic {
  margin: 0.4rem 0 1.15rem 1.1rem;
}

.src {
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-left: 0.35rem;
  white-space: nowrap;
}

.standings { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.standings th {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: left;
}
.standings td { padding: 0.35rem 0.6rem; border-bottom: 1px solid var(--rule); }
.standings th { padding: 0.35rem 0.6rem; border-bottom: 1px solid var(--rule); }

.the-number {
  position: relative;
  border: 1px solid var(--ink);
  background: var(--tint);
  text-align: center;
  padding: 1.6rem 1.5rem 1.4rem;
  margin: 2rem 0;
}
/* Every Back Page fixture announces itself the way One Good Thing always
   has: a small-caps tab on the box (Evan, 2026-08-30). */
.the-number::before,
.countdown::before {
  position: absolute;
  top: -0.55rem;
  left: 50%;
  transform: translateX(-50%);
  padding: 0 0.7rem;
  background: var(--bg);
  font-style: normal;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent);
  white-space: nowrap;
}
.the-number::before { content: "The Number"; }
.countdown::before { content: "Countdown"; }
.the-number strong {
  display: block;
  font-size: clamp(3rem, 10vw, 5rem);
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
}
.the-number p { margin: 0.4rem auto 0.5rem; max-width: 30rem; }
.the-number .src { display: block; margin: 0; }

.countdown {
  position: relative;
  border: 1px solid var(--ink);
  background: var(--tint);
  text-align: center;
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
  margin: 2rem 0;
  padding: 1.15rem 1.2rem 0.95rem;
}

.good-thing {
  position: relative;
  margin: 2rem auto 2.25rem;
  padding: 1.9rem 1.75rem 1.5rem;
  border: 1px solid var(--ink);
  background: var(--tint);
  text-align: center;
  font-style: italic;
  font-size: 1.2rem;
  line-height: 1.65;
}
.good-thing::before {
  content: "One good thing";
  position: absolute;
  top: -0.55rem;
  left: 50%;
  transform: translateX(-50%);
  padding: 0 0.7rem;
  background: var(--bg);
  font-style: normal;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent);
  white-space: nowrap;
}

/* City Desk and Weather open like broadsheet section fronts (Evan,
   2026-08-29): a double rule starts the band, the section name sits
   centered and large, and one hairline closes the unit — under the beat
   nav for City Desk, under the heading itself for Weather. The stream
   printed as "The River" before 2026-08-29; #the-river stays so those
   editions keep their styling. */
h2#the-river,
h2#city-desk,
h2#weather,
h2#the-back-page {
  display: block;
  text-align: center;
  margin: 3.2rem 0 0;
  padding-top: 0.75rem;
  border-top: 3px double var(--ink);
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: 0.32em;
  text-indent: 0.32em; /* balances the tracked caps around center */
}
h2#the-river::after,
h2#city-desk::after,
h2#weather::after,
h2#the-back-page::after { content: none; }
h2#weather,
h2#the-back-page {
  border-bottom: 1px solid var(--rule);
  padding-bottom: 0.6rem;
  margin-bottom: 1.4rem;
}
.beat-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.3rem 1rem;
  margin: 0.55rem 0 1.6rem;
  padding: 0 0 0.6rem;
  /* Ink, not the faded rule tone: this line doubles as the first beat's
     cut, so it must match the other beats' full-width rules. */
  border-bottom: 1px solid var(--ink);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.beat-nav a { color: var(--accent); text-decoration: none; }
.beat-nav a:hover { text-decoration: underline; }

.to-top {
  margin: 1.5rem 0 0;
  text-align: center;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.to-top a { color: var(--accent); text-decoration: none; }
.to-top a:hover { text-decoration: underline; }
