/* ===========================================================================
 * site/style.css — the publication. One stylesheet, no build step, no JS.
 * Optimised for reading and for being quoted: generous measure, real
 * hierarchy, high contrast in both themes.
 * ======================================================================== */

:root {
  --ink:        #14100c;
  --ink-soft:   #4a423a;
  --ink-faint:  #8a8078;
  --paper:      #faf7f2;
  --paper-2:    #f1ece3;
  --rule:       #e2dbd0;
  --accent:     #b4441f;
  --accent-bg:  #fbeee8;
  --measure:    38rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink:       #f3efe8;
    --ink-soft:  #b9b1a6;
    --ink-faint: #7d746a;
    --paper:     #14110e;
    --paper-2:   #1d1915;
    --rule:      #2f2922;
    --accent:    #e8794a;
    --accent-bg: #2a1a12;
  }
}

:root[data-theme="light"] {
  --ink: #14100c; --ink-soft: #4a423a; --ink-faint: #8a8078;
  --paper: #faf7f2; --paper-2: #f1ece3; --rule: #e2dbd0;
  --accent: #b4441f; --accent-bg: #fbeee8;
}
:root[data-theme="dark"] {
  --ink: #f3efe8; --ink-soft: #b9b1a6; --ink-faint: #7d746a;
  --paper: #14110e; --paper-2: #1d1915; --rule: #2f2922;
  --accent: #e8794a; --accent-bg: #2a1a12;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: ui-serif, Georgia, "Iowan Old Style", "Times New Roman", serif;
  font-size: 19px;
  line-height: 1.65;
  overflow-x: hidden;
}

.wrap {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ---------- masthead ---------- */

.masthead {
  border-bottom: 1px solid var(--rule);
  padding: 1.4rem 0;
  margin-bottom: 3rem;
}
.masthead .wrap {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.masthead a.brand {
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-weight: 700;
  font-size: .95rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
}
.masthead .tagline {
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: .78rem;
  color: var(--ink-faint);
  letter-spacing: .04em;
}

/* ---------- type ---------- */

h1 {
  font-size: clamp(2rem, 6vw, 2.9rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
  text-wrap: balance;
}

h2 {
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin: 3.2rem 0 1rem;
  padding-bottom: .5rem;
  border-bottom: 1px solid var(--rule);
}

/* Weekly item headings are full sentences, not section labels: the small-caps
   h2 treatment is unreadable at that length. */
h2.item-head {
  font-family: ui-serif, Georgia, "Iowan Old Style", "Times New Roman", serif;
  font-size: clamp(1.25rem, 4.5vw, 1.5rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.015em;
  text-transform: none;
  color: var(--ink);
  border-bottom: 0;
  padding-bottom: 0;
  margin: 3rem 0 1rem;
  text-wrap: balance;
}

h3 {
  font-size: 1.15rem;
  line-height: 1.35;
  margin: 2rem 0 .5rem;
}

p { margin: 0 0 1.15rem; }

a { color: var(--accent); text-underline-offset: 2px; }

strong { font-weight: 700; }

/* ---------- the answer block: the sentence we want quoted ---------- */

.answer {
  background: var(--accent-bg);
  border-left: 3px solid var(--accent);
  padding: 1.4rem 1.5rem;
  margin: 0 0 2.5rem;
  font-size: 1.22rem;
  line-height: 1.5;
}
.answer p:last-child { margin-bottom: 0; }
.answer .label {
  display: block;
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: .6rem;
}

/* ---------- meta line ---------- */

.meta {
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: .78rem;
  color: var(--ink-faint);
  letter-spacing: .03em;
  margin: 0 0 2rem;
}
.meta span + span::before { content: " · "; }

/* ---------- verdict / confidence chips ---------- */

.chip {
  display: inline-block;
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .3rem .6rem;
  border: 1px solid var(--rule);
  border-radius: 3px;
  color: var(--ink-soft);
}
.chip.no  { border-color: var(--accent); color: var(--accent); }

/* ---------- timeline (the receipts) ---------- */

.timeline { list-style: none; padding: 0; margin: 1.5rem 0; }
.timeline li {
  display: grid;
  grid-template-columns: 5.5rem 1fr;
  gap: .9rem;
  padding: .8rem 0;
  border-top: 1px solid var(--rule);
  font-size: .95rem;
  line-height: 1.45;
}
.timeline li:last-child { border-bottom: 1px solid var(--rule); }
.timeline .when {
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: .74rem;
  letter-spacing: .05em;
  color: var(--ink-faint);
  text-transform: uppercase;
  padding-top: .2rem;
}
.timeline .what strong { display: block; }
.timeline .who {
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: .76rem;
  color: var(--ink-faint);
}
.timeline li.turn .what strong { color: var(--accent); }

/* ---------- the number ---------- */

.figure {
  border: 1px solid var(--rule);
  background: var(--paper-2);
  padding: 1.6rem 1.5rem;
  margin: 2rem 0;
  text-align: center;
}
.figure .value {
  font-size: clamp(3rem, 14vw, 4.6rem);
  line-height: 1;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--accent);
  display: block;
}
.figure .caption {
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: .88rem;
  line-height: 1.5;
  color: var(--ink-soft);
  margin: .8rem auto 0;
  max-width: 26rem;
}

/* ---------- do-this list ---------- */

ol.actions { padding-left: 0; list-style: none; counter-reset: a; margin: 1.5rem 0; }
ol.actions li {
  counter-increment: a;
  position: relative;
  padding-left: 2.4rem;
  margin-bottom: 1.2rem;
}
ol.actions li::before {
  content: counter(a);
  position: absolute;
  left: 0; top: .1rem;
  width: 1.7rem; height: 1.7rem;
  display: grid; place-items: center;
  border: 1px solid var(--accent);
  color: var(--accent);
  border-radius: 50%;
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: .8rem; font-weight: 700;
}

/* ---------- sources ---------- */

ul.sources { list-style: none; padding: 0; margin: 1.2rem 0; font-size: .9rem; }
ul.sources li { padding: .55rem 0; border-top: 1px solid var(--rule); line-height: 1.45; }
ul.sources li:last-child { border-bottom: 1px solid var(--rule); }
ul.sources .date {
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: .74rem; color: var(--ink-faint); display: block;
}

/* ---------- index listing ---------- */

.entry { padding: 1.6rem 0; border-top: 1px solid var(--rule); }
.entry:last-of-type { border-bottom: 1px solid var(--rule); }
.entry h3 { margin: .3rem 0 .4rem; font-size: 1.35rem; }
.entry h3 a { color: var(--ink); text-decoration: none; }
.entry h3 a:hover { color: var(--accent); }
.entry .kicker {
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: .7rem; font-weight: 700; letter-spacing: .16em;
  text-transform: uppercase; color: var(--accent);
}
.entry p { margin: 0; color: var(--ink-soft); font-size: .98rem; }

.lede { font-size: 1.1rem; color: var(--ink-soft); }

/* ---------- footer ---------- */

footer {
  margin-top: 4rem;
  border-top: 1px solid var(--rule);
  padding: 1.6rem 0 3rem;
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: .8rem;
  color: var(--ink-faint);
}
footer a { color: var(--ink-faint); }

/* wide content never breaks the page */
table, pre { display: block; max-width: 100%; overflow-x: auto; }
