/* ---------- Fonts (self-hosted) ---------- */
@font-face {
  font-family: "Big Shoulders Display";
  src: url("assets/fonts/big-shoulders-display-latin-900-normal.woff2") format("woff2");
  font-weight: 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Big Shoulders Display";
  src: url("assets/fonts/big-shoulders-display-latin-700-normal.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Public Sans";
  src: url("assets/fonts/public-sans-latin-400-normal.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Public Sans";
  src: url("assets/fonts/public-sans-latin-400-italic.woff2") format("woff2");
  font-weight: 400; font-style: italic; font-display: swap;
}
@font-face {
  font-family: "Public Sans";
  src: url("assets/fonts/public-sans-latin-700-normal.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --navy: #0B2559;
  --navy-deep: #071A40;
  --red: #C8102E;
  --red-dark: #A00D25;
  --paper: #FFFFFF;
  --mist: #EEF1F6;
  --ink: #1C2230;
  --muted: #535B6B;
  --rule: #C9CED8;
  --highlight: #FFE600;

  --display: "Big Shoulders Display", "Arial Narrow", Impact, sans-serif;
  --body: "Public Sans", "Helvetica Neue", Arial, sans-serif;

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.375rem;
  --step-2: 1.875rem;
  --step-3: clamp(2.25rem, 4.5vw, 3.25rem);
  --step-4: clamp(3.5rem, 10.5vw, 9rem);

  --gutter: clamp(1.25rem, 4vw, 3rem);
  --band: clamp(4rem, 9vw, 7rem);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: var(--step-0);
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3 { margin: 0; }
p { margin: 0; }
a { color: inherit; }

:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 3px;
}

.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--navy); color: var(--paper);
  padding: .75rem 1rem; z-index: 100;
}
.skip-link:focus { left: 1rem; top: 1rem; }

.wrap { width: min(100% - 2 * var(--gutter), 72rem); margin-inline: auto; }
.wrap.narrow { width: min(100% - 2 * var(--gutter), 46rem); }

.band { padding-block: var(--band); }
.band-mist { background: var(--mist); }
.band-flush { padding-top: 0; }
.band-navy { background: var(--navy); color: var(--paper); }

.section-title {
  font-family: var(--display);
  font-weight: 900;
  font-size: var(--step-3);
  line-height: 1;
  letter-spacing: .005em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 1.5rem;
}
.band-navy .section-title { color: var(--paper); }
.section-lede { color: var(--muted); max-width: 44ch; margin-bottom: 2.5rem; }

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--display);
  font-weight: 900;
  font-size: var(--step-1);
  text-transform: uppercase;
  letter-spacing: .02em;
  line-height: 1;
  padding: 1rem 1.5rem 1.05rem;
  border: 3px solid transparent;
  border-radius: 2px;
  text-decoration: none;
  cursor: pointer;
}
.btn-navy { background: var(--navy); color: var(--paper); }
.btn-navy:hover { background: var(--navy-deep); }
.btn-red { background: var(--red); color: var(--paper); }
.btn-red:hover { background: var(--red-dark); }
.btn-outline { background: transparent; color: var(--paper); border-color: currentColor; }
.btn-outline:hover { background: var(--paper); color: var(--navy); }
.btn-small { font-size: 1.05rem; padding: .55rem .9rem .6rem; }

.text-link {
  font: inherit;
  font-weight: 700;
  color: var(--navy);
  background: none; border: 0; padding: 0; cursor: pointer;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}
.text-link:hover { color: var(--red); }

/* ---------- Alert strip & header ---------- */
.alert-strip {
  background: var(--red);
  color: var(--paper);
  text-align: center;
  font-weight: 700;
  font-size: var(--step--1);
  padding: .5rem var(--gutter);
}
.site-header { border-bottom: 1px solid var(--rule); }
.header-row {
  display: flex; align-items: center; gap: 1.5rem;
  min-height: 4.25rem;
}
.wordmark {
  font-family: var(--display);
  font-weight: 900;
  font-size: 1.5rem;
  color: var(--navy);
  text-decoration: none;
  letter-spacing: .01em;
  margin-right: auto;
}
.wordmark span { color: var(--red); }
.nav-list { list-style: none; margin: 0; padding: 0; display: flex; gap: 1.5rem; }
.nav-list a {
  text-decoration: none; font-weight: 700; font-size: var(--step--1); color: var(--ink);
}
.nav-list a:hover { color: var(--red); text-decoration: underline; text-underline-offset: 4px; }

@media (max-width: 760px) {
  .site-header nav { display: none; }
  .wordmark { font-size: 1.2rem; }
}

/* ---------- Hero ---------- */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  min-height: min(88vh, 52rem);
}
.hero-copy {
  display: flex; flex-direction: column; justify-content: center;
  padding: clamp(3rem, 7vw, 6rem) var(--gutter);
  padding-left: max(var(--gutter), calc((100vw - 72rem) / 2));
}
.hero-title {
  font-family: var(--display);
  font-weight: 900;
  font-size: var(--step-4);
  line-height: .86;
  letter-spacing: -.005em;
  text-transform: uppercase;
  color: var(--navy);
}
.hero-title span { display: block; }
.hero-lede {
  margin-top: 2rem;
  font-size: var(--step-1);
  line-height: 1.45;
  max-width: 34ch;
}
.hero-actions {
  margin-top: 2.25rem;
  display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem 1.75rem;
}

/* The exhibit: grainy attack-ad photo */
.exhibit {
  margin: 0;
  background: var(--navy-deep);
  display: flex; flex-direction: column;
}
.exhibit-frame {
  position: relative;
  flex: 1;
  overflow: hidden;
  min-height: 24rem;
}
.exhibit-photo {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 55% 30%;
  transform-origin: 56% 40%;
  animation: creep 22s cubic-bezier(.2,.6,.3,1) forwards;
}
@keyframes creep {
  from { transform: scale(1.02); }
  to   { transform: scale(1.16); }
}
.stamp {
  position: absolute;
  top: 1.5rem; left: 1.25rem;
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(1.4rem, 2.6vw, 2.1rem);
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--red);
  background: rgba(255,255,255,.92);
  border: 4px solid var(--red);
  padding: .2rem .7rem .3rem;
  transform: rotate(-6deg);
  box-shadow: 0 0 0 3px rgba(255,255,255,.92);
}
.ominous {
  position: absolute;
  left: 1.25rem; right: 1.25rem;
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(2rem, 4.2vw, 3.5rem);
  line-height: 1;
  text-transform: uppercase;
  opacity: 0;
  animation: appear .01s linear forwards;
}
.ominous mark {
  background: var(--highlight);
  color: var(--ink);
  padding: .05em .2em .1em;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}
.ominous-1 { bottom: 5.4rem; animation-delay: 1.4s; }
.ominous-2 { bottom: 1.5rem; animation-delay: 3s; }
@keyframes appear { to { opacity: 1; } }

.exhibit figcaption {
  color: #C9D3E6;
  font-size: var(--step--1);
  font-style: italic;
  padding: .9rem 1.25rem 1rem;
  border-top: 1px solid rgba(255,255,255,.15);
}

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero-copy { padding-left: var(--gutter); }
  .exhibit-frame { aspect-ratio: 1 / 1; min-height: 0; }
}

/* ---------- Intro statement ---------- */
.band-intro { border-top: 8px solid var(--red); }
.statement {
  font-family: var(--display);
  font-weight: 700;
  font-size: var(--step-3);
  line-height: 1.05;
  color: var(--navy);
}
.philosophers {
  margin: 2.5rem 0 0;
  padding-left: 1.5rem;
  border-left: 4px solid var(--red);
}
.philosophers p {
  font-size: var(--step-1);
  font-style: italic;
  line-height: 1.5;
  max-width: 40ch;
}
.philosophers footer {
  margin-top: .75rem;
  font-size: var(--step--1);
  color: var(--muted);
}

/* ---------- Voter guide box ---------- */
.voter-guide {
  border: 3px solid var(--navy);
  background: var(--paper);
}
.voter-guide-head {
  background: var(--navy);
  color: var(--paper);
  padding: 1.25rem 1.5rem 1.4rem;
}
.prop-number {
  font-family: var(--display);
  font-weight: 900;
  font-size: var(--step-2);
  line-height: 1;
  margin-bottom: .5rem;
}
.voter-guide-head h2 {
  font-family: var(--body);
  font-weight: 700;
  font-size: var(--step-0);
  line-height: 1.4;
}
.voter-guide-body { margin: 0; }
.voter-guide-body > div {
  display: grid;
  grid-template-columns: 11rem 1fr;
  gap: .25rem 1.5rem;
  padding: 1.1rem 1.5rem;
  border-top: 1px solid var(--rule);
}
.voter-guide-body > div:first-child { border-top: 0; }
.voter-guide-body dt { font-weight: 700; color: var(--navy); }
.voter-guide-body dd { margin: 0; }
@media (max-width: 600px) {
  .voter-guide-body > div { grid-template-columns: 1fr; }
}

/* ---------- Yes-vote list with filled ballot ovals ---------- */
.oval-list { list-style: none; margin: 0; padding: 0; }
.oval-list li {
  display: flex; align-items: center; gap: 1.1rem;
  font-family: var(--display);
  font-weight: 700;
  font-size: var(--step-2);
  line-height: 1.1;
  padding-block: 1rem;
  border-top: 1px solid rgba(255,255,255,.2);
}
.oval-list li:last-child { border-bottom: 1px solid rgba(255,255,255,.2); }
.oval-list li::before {
  content: "";
  flex: none;
  width: 2.1rem; height: 1.25rem;
  border-radius: 50%;
  border: 2px solid var(--paper);
  background: var(--paper);
}

/* ---------- Comparison table ---------- */
.table-scroll { overflow-x: auto; }
.compare {
  width: 100%;
  min-width: 34rem;
  border-collapse: collapse;
}
.compare thead td, .compare thead th { border-bottom: 3px solid var(--navy); }
.compare th, .compare td { padding: 1rem; text-align: center; vertical-align: middle; }
.compare tbody th {
  text-align: left;
  font-weight: 700;
  width: 46%;
}
.compare tbody tr { border-bottom: 1px solid var(--rule); }
.compare thead th { width: 27%; }
.candidate { display: flex; flex-direction: column; align-items: center; gap: .35rem; }
.candidate-photo, .silhouette {
  width: 7.5rem; height: 7.5rem;
  object-fit: cover; object-position: 55% 30%;
}
.silhouette { background: var(--mist); display: grid; place-items: center; }
.silhouette svg { width: 70%; fill: #B4BCCB; }
.candidate-name {
  font-family: var(--display);
  font-weight: 900;
  font-size: var(--step-2);
  line-height: 1;
  text-transform: uppercase;
  color: var(--navy);
  margin-top: .4rem;
}
.candidate-note { font-size: var(--step--1); color: var(--muted); font-weight: 400; }

.mark-yes, .mark-no, .mark-meh {
  display: inline-flex; align-items: center; gap: .45rem;
  font-weight: 700;
}
.mark-yes { color: var(--navy); }
.mark-no { color: var(--red); }
.mark-meh { color: var(--muted); }
.mark-yes::before, .mark-no::before, .mark-meh::before {
  display: inline-grid; place-items: center;
  width: 1.6rem; height: 1.6rem; border-radius: 50%;
  font-size: .95rem; line-height: 1; color: var(--paper);
}
.mark-yes::before { content: "✓"; background: var(--navy); }
.mark-no::before  { content: "✕"; background: var(--red); }
.mark-meh::before { content: "?"; background: var(--muted); }

/* ---------- Seals ---------- */
.seals {
  list-style: none; margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2.5rem;
}
.seal { text-align: center; }
.seal svg { width: min(100%, 13rem); margin-inline: auto; }
.seal p { margin-top: 1rem; font-weight: 700; color: var(--navy); }
.seal-outer { fill: var(--navy); }
.seal-inner { fill: var(--paper); stroke: var(--red); stroke-width: 3; }
.seal-text {
  font-family: var(--display);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0;
  text-transform: uppercase;
  fill: var(--paper);
}
.seal-icon { fill: var(--red); stroke: var(--red); }
.seal-icon-label { fill: var(--paper); stroke: none; }
.seal-icon-paper { fill: var(--paper); stroke: var(--navy); stroke-width: 3; }
.seal-icon-pans { fill: var(--navy); stroke: none; }
@media (max-width: 700px) {
  .seals { grid-template-columns: 1fr; gap: 3rem; }
}

/* ---------- Ballot ---------- */
.ballot {
  background: var(--paper);
  border: 2px solid var(--ink);
  box-shadow: 8px 8px 0 var(--navy);
  padding: 1.75rem clamp(1.25rem, 4vw, 2.25rem) 2rem;
}
.ballot fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.ballot legend { padding: 0; display: block; width: 100%; }
.ballot-measure {
  display: block;
  font-family: var(--display);
  font-weight: 900;
  font-size: var(--step-2);
  color: var(--navy);
  line-height: 1;
  margin-bottom: .6rem;
}
.ballot-desc { display: block; font-weight: 700; font-size: var(--step-1); line-height: 1.35; }
.ballot-instructions {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px dashed var(--rule);
  font-size: var(--step--1);
  color: var(--muted);
}
.ballot-options {
  position: relative;
  display: flex; gap: 1rem 3rem; flex-wrap: wrap;
  margin-top: 1.5rem;
  min-height: 4rem;
}
.ballot-option {
  position: relative;
  display: inline-flex; align-items: center; gap: .9rem;
  padding: .6rem 1rem .6rem .6rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform .25s cubic-bezier(.3,1.4,.5,1);
}
@media (hover: hover) {
  .ballot-option:hover { border-color: var(--rule); }
}
.ballot-option input {
  position: absolute; opacity: 0; width: 1px; height: 1px;
}
.ballot-option:has(input:focus-visible) { outline: 3px solid var(--red); outline-offset: 2px; }
.oval {
  width: 3rem; height: 1.8rem;
  border: 2.5px solid var(--ink);
  border-radius: 50%;
  background: radial-gradient(ellipse at center, var(--navy-deep) 0 0, transparent 0);
  transition: background .35s ease;
}
.ballot-option input:checked + .oval {
  background: radial-gradient(ellipse at center, var(--navy-deep) 0 70%, var(--navy-deep) 71%);
}
.ballot-label {
  font-family: var(--display);
  font-weight: 900;
  font-size: var(--step-2);
  text-transform: uppercase;
  line-height: 1;
}
.ballot-error {
  margin-top: 1.25rem;
  padding: .8rem 1rem;
  background: #FCE8EB;
  border-left: 4px solid var(--red);
  color: var(--red-dark);
  font-weight: 700;
  font-size: var(--step--1);
}
.shake { animation: shake .4s; }
@keyframes shake {
  0%, 100% { translate: 0; }
  20% { translate: -8px; } 40% { translate: 8px; }
  60% { translate: -5px; } 80% { translate: 5px; }
}

/* Results */
.results {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2rem;
  align-items: center;
  margin-top: 2.5rem;
}
.results[hidden] { display: none; }
.results:focus { outline: none; }
.results h3 {
  font-family: var(--display);
  font-weight: 900;
  font-size: var(--step-2);
  line-height: 1.05;
  color: var(--navy);
}
.sticker {
  width: 11rem; height: 7.5rem;
  border-radius: 50%;
  background:
    repeating-linear-gradient(180deg, var(--red) 0 .55rem, var(--paper) .55rem 1.1rem);
  border: 4px solid var(--navy);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  position: relative;
  transform: rotate(-8deg);
  animation: slap .5s cubic-bezier(.2,1.6,.4,1) both;
}
.sticker::before {
  content: "";
  position: absolute; inset: 1.1rem 1.4rem;
  background: var(--navy);
  border-radius: 50%;
}
.sticker span { position: relative; color: var(--paper); text-align: center; }
.sticker-big {
  font-family: var(--display);
  font-weight: 900;
  font-size: 1.7rem;
  line-height: 1;
  text-transform: uppercase;
}
.sticker-small { font-size: .62rem; font-weight: 700; line-height: 1.2; max-width: 6rem; }
@keyframes slap {
  from { transform: rotate(-30deg) scale(2.2); opacity: 0; }
  to   { transform: rotate(-8deg) scale(1); opacity: 1; }
}
.tally { margin-top: 1rem; display: grid; gap: .4rem; }
.tally-row {
  display: grid;
  grid-template-columns: 2.5rem 1fr 3rem;
  align-items: center; gap: .75rem;
  font-weight: 700;
}
.tally-bar { height: .7rem; background: var(--mist); display: block; }
.tally-bar span { display: block; height: 100%; background: var(--navy); }
.tally-note { margin-top: .6rem; font-size: var(--step--1); color: var(--muted); }
.results .text-link { margin-top: 1rem; }
@media (max-width: 560px) {
  .results { grid-template-columns: 1fr; justify-items: start; }
}

/* ---------- FAQ ---------- */
.faq { border-top: 2px solid var(--navy); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 1.15rem 0;
  font-weight: 700;
  font-size: var(--step-1);
  line-height: 1.3;
  color: var(--navy);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  flex: none;
  font-family: var(--display);
  font-weight: 900;
  font-size: 2rem;
  line-height: 1;
  color: var(--red);
  transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 1.25rem; max-width: 60ch; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy);
  color: var(--paper);
  padding-block: 3.5rem 4rem;
}
.paid-for {
  border: 2px solid var(--paper);
  padding: 1rem 1.25rem;
  display: inline-block;
}
.paid-for p { font-weight: 700; }
.paid-for .paid-for-small { font-weight: 400; font-size: var(--step--1); margin-top: .25rem; color: #C9D3E6; }
.opt-out {
  margin-top: 1.75rem;
  display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
}
.parody-note {
  margin-top: 2rem;
  font-size: var(--step--1);
  color: #A9B6CF;
  max-width: 60ch;
}

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  left: 50%; bottom: 1.5rem;
  translate: -50% 0;
  width: min(92vw, 30rem);
  background: var(--ink);
  color: var(--paper);
  padding: 1rem 1.25rem;
  font-weight: 700;
  font-size: var(--step--1);
  border-left: 6px solid var(--red);
  box-shadow: 0 10px 30px rgba(7, 26, 64, .35);
  z-index: 50;
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .exhibit-photo { animation: none; transform: scale(1.04); }
  .ominous { animation: none; opacity: 1; }
  .sticker { animation: none; }
  .ballot-option { transition: none; }
  .shake { animation: none; }
}

/* Keep Yes on top if No wanders into it */
#opt-yes { z-index: 2; background: var(--paper); }
#opt-no { z-index: 1; }

/* On phones, lead with the exhibit */
@media (max-width: 900px) {
  .exhibit { order: -1; }
}
