:root {
  --ink: #16181d;
  --muted: #5b6270;
  --paper: #f7f5f0;
  --card: #ffffff;
  --line: #e2ded5;
  --green: #1f7a4d;
  --red: #b3261e;
  --accent: #0d3b2e;
  --radius: 10px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --serif: Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--paper); line-height: 1.55; }
a { color: var(--accent); }
.wrap { max-width: 920px; margin: 0 auto; padding: 0 20px; }

.hero { position: relative; overflow: hidden; background: var(--accent); color: #fff; padding: 72px 0 56px; min-height: 620px; display: flex; align-items: center; }
.hero-bg { position: absolute; top: 0; right: 0; width: 60%; height: 100%; object-fit: cover; object-position: 62% 20%; }
.hero-shade { position: absolute; top: 0; bottom: 0; right: 0; width: 60%; background: linear-gradient(90deg, rgba(13,59,46,1) 0%, rgba(13,59,46,.82) 20%, rgba(13,59,46,.35) 38%, rgba(13,59,46,0) 52%); }
.hero .wrap { position: relative; width: 100%; max-width: none; margin: 0; padding-left: clamp(20px, 5vw, 72px); padding-right: 20px; }
.hero-text { max-width: 52%; }
.hero-credit { position: absolute; right: 14px; bottom: 10px; margin: 0; font-size: .72rem; color: #fff; background: rgba(0,0,0,.55); padding: 3px 8px; border-radius: 4px; z-index: 1; }
@media (max-width: 820px) {
  .hero { display: block; padding: 0 0 40px; min-height: 0; }
  .hero-bg { position: relative; width: 100%; height: 300px; object-position: 75% 30%; }
  .hero-text { max-width: none; }
  .hero-shade { top: 0; bottom: auto; width: 100%; height: 300px; background: linear-gradient(180deg, rgba(13,59,46,0) 55%, rgba(13,59,46,1) 100%); }
  .hero-credit { top: 266px; bottom: auto; }
  .hero .wrap { padding-top: 16px; }
}
.kicker { text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; opacity: .75; margin: 0 0 12px; }
.hero h1 { font-family: var(--serif); font-size: clamp(1.7rem, 3.8vw, 2.7rem); line-height: 1.1; margin: 0 0 18px; }
.hero h1 .aside { display: block; line-height: 1.3; margin: 6px 0 8px; font-size: .55em; font-style: italic; opacity: .85; font-weight: normal; }
.receipt { margin: 0 0 20px; padding: 10px 16px; border-left: 3px solid #ff9b8f; background: rgba(255,255,255,.07); border-radius: 0 8px 8px 0; max-width: 620px; }
.receipt p { margin: 0 0 4px; font-family: var(--serif); font-size: 1.05rem; }
.receipt cite { font-style: normal; font-size: .82rem; opacity: .8; }
.receipt a { color: #fff; }
.hero .for { color: #8fe3b4; }
.hero .against { color: #ff9b8f; }
.lede { font-size: 1.1rem; max-width: 640px; opacity: .92; margin: 0; }
.stats { display: flex; gap: 28px; margin-top: 28px; flex-wrap: wrap; }
.stat strong { display: block; font-size: 1.8rem; font-family: var(--serif); }
.stat span { font-size: .85rem; opacity: .8; }

.sectionnav { position: sticky; top: 0; z-index: 5; background: #fff; border-bottom: 1px solid var(--line); }
.sectionnav .wrap { display: flex; gap: 6px; overflow-x: auto; padding-top: 10px; padding-bottom: 10px; }
.sectionnav a { white-space: nowrap; text-decoration: none; color: var(--ink); padding: 6px 12px; border-radius: 999px; font-size: .92rem; }
.sectionnav a:hover, .sectionnav a.active { background: var(--accent); color: #fff; }

.topic { padding: 48px 0 8px; scroll-margin-top: 60px; }
.topic h2 { font-family: var(--serif); font-size: 1.9rem; margin: 0 0 4px; }
.topic h2 .count { font-family: var(--font); font-size: .9rem; color: var(--muted); font-weight: 500; margin-left: 8px; }
.intro { color: var(--muted); margin: 0 0 20px; }
.empty { border: 1px dashed var(--line); border-radius: var(--radius); padding: 22px; color: var(--muted); text-align: center; background: rgba(255,255,255,.5); }

.entry { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; margin-bottom: 16px; }
.entry-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.entry-title { margin: 0; font-size: 1.2rem; }
.badge { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; padding: 4px 8px; border-radius: 6px; background: #eee; color: var(--muted); white-space: nowrap; }
.badge.repealed { background: #fbe9e7; color: var(--red); }
.badge.contradicted { background: #fff4e0; color: #8a5a00; }
.badge.weakened { background: #fbe9e7; color: var(--red); }
.badge.overridden { background: #fff4e0; color: #8a5a00; }
.badge.no-vote { background: #eef0f3; color: var(--muted); }
.entry-summary { margin: 10px 0 16px; }
.entry-detail { margin: -6px 0 16px; padding: 10px 14px; background: #f4f1ea; border-radius: 8px; font-size: .93rem; }

.timeline { display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; align-items: stretch; }
.step { border-radius: 8px; padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; font-size: .92rem; }
.step-for { background: #e8f5ee; border-left: 4px solid var(--green); }
.step-against { background: #fbecea; border-left: 4px solid var(--red); }
.step .label { font-weight: 700; font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; }
.step-for .label { color: var(--green); }
.step-against .label { color: var(--red); }
.step .date { color: var(--muted); }
.votelink { font-size: .85rem; margin-top: 4px; }
.arrow { align-self: center; font-size: 1.4rem; color: var(--muted); }

.sources { margin-top: 14px; font-size: .88rem; }
.sources summary { cursor: pointer; color: var(--muted); }
.sources ul { margin: 8px 0 0; padding-left: 20px; }

.method { margin: 56px 0 32px; padding: 24px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.method h2 { font-family: var(--serif); margin-top: 0; }

footer { border-top: 1px solid var(--line); padding: 24px 0 40px; color: var(--muted); font-size: .9rem; }
.small { font-size: .8rem; }

@media (max-width: 640px) {
  .timeline { grid-template-columns: 1fr; }
  .arrow { transform: rotate(90deg); justify-self: center; }
  .entry-head { flex-direction: column; }
}

.tweet-band { background: #fff; border-bottom: 1px solid var(--line); padding: 28px 0; }
.tweet-kicker { text-transform: uppercase; letter-spacing: .12em; font-size: .75rem; color: var(--muted); margin: 0 0 10px; }
.tweet-band .receipt { margin: 0; background: #fbecea; border-left-color: var(--red); max-width: none; }
.tweet-band .receipt p { font-size: 1.25rem; color: var(--ink); }
.tweet-band .receipt cite { color: var(--muted); }
.tweet-band .receipt a { color: var(--accent); }
