: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 { background: var(--accent); color: #fff; padding: 64px 0 48px; }
.hero-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 36px; align-items: center; }
.hero-img { margin: 0; }
.hero-img img {
  width: 100%; height: auto; aspect-ratio: 1 / 1; display: block;
  object-fit: cover; object-position: 50% 30%;
  border-radius: 50%;
  -webkit-mask-image: radial-gradient(circle at center, #000 52%, rgba(0,0,0,.6) 62%, transparent 71%);
          mask-image: radial-gradient(circle at center, #000 52%, rgba(0,0,0,.6) 62%, transparent 71%);
}
.hero-img figcaption { font-size: .75rem; opacity: .75; margin-top: -4px; text-align: center; }
@media (max-width: 760px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-img { max-width: 360px; margin: 0 auto; }
}
.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 { 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.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; }

.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; }
}
