@font-face {font-family:Fraunces;src:url("../../assets/fraunces.woff2") format("woff2");font-weight:800;font-display:swap}
@font-face {font-family:"Source Sans";src:url("../../assets/source-sans.woff2") format("woff2");font-weight:400;font-display:swap}
@font-face {font-family:"Source Sans";src:url("../../assets/source-sans-bold.woff2") format("woff2");font-weight:700;font-display:swap}
:root {--ink:#192342;--paper:#fff7e8;--blue:#293fd4;--coral:#f46652;--line:#192342;--yellow:#fae375;--panel:#f9e4d3}
* {box-sizing:border-box}
[hidden] {display:none!important}
body {margin:0;background:var(--paper);color:var(--ink);font:1.125rem/1.43 "Source Sans",system-ui,sans-serif}
main {width:min(calc(100% - 40px),52rem);margin:auto;padding:1rem 0 2.5rem}
h1,h2,h3,p {margin:0}
h1,h2,h3 {font-family:Fraunces,Georgia,serif;font-weight:800;letter-spacing:-.035em}
h1 {font-size:clamp(2.75rem,9vw,5rem);line-height:1.02;overflow-wrap:anywhere}
h2 {font-size:clamp(1.45rem,4.3vw,2.22rem);line-height:1.16}
button {font:inherit;font-weight:700;cursor:pointer;color:inherit}
button:disabled {cursor:default}
button:focus-visible {outline:3px solid var(--blue);outline-offset:4px}
.intro p:last-child {margin:.6rem 0 1.25rem;max-width:44ch}
.eyebrow {font-size:1rem;font-weight:700;margin:0 0 .55rem}
.arena {border:2px solid var(--ink);border-radius:9px;background:var(--panel);box-shadow:4px 4px 0 var(--ink);padding:clamp(.85rem,4vw,2rem)}
.roundbar,.controls,.print-link {display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:.5rem 1rem}
.roundbar {padding-bottom:1rem;font-weight:700}
.quiet {min-height:2.55rem;text-decoration:underline;text-underline-offset:.19em;border:0;padding:0;background:transparent;text-align:left}
.options {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:clamp(.55rem,3vw,1rem);margin:1.2rem 0}
.vote,.primary {border:2px solid var(--ink);border-radius:7px;box-shadow:3px 3px 0 var(--ink)}
.vote {padding:.65rem .45rem;min-height:5.6rem;font-family:Fraunces,Georgia,serif;font-size:clamp(1.05rem,3.8vw,1.46rem);line-height:1.13;overflow-wrap:anywhere}
.vote-left {background:var(--blue);color:#fff}
.vote-right {background:var(--coral)}
.vote:not(:disabled):hover,.primary:not(:disabled):hover {transform:translate(-1px,-1px);box-shadow:4px 4px 0 var(--ink)}
.vote:disabled {box-shadow:none}
.primary {min-height:2.7rem;padding:.5rem .8rem;background:var(--yellow)}
.primary:disabled {opacity:.55;box-shadow:none}
.controls {justify-content:flex-end;margin-top:1rem}
#status {font-weight:700}
#result {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.45rem .7rem;margin-top:1rem}
#result p:last-child {text-align:right}
.bar {grid-column:1/-1;height:1.05rem;border:2px solid var(--ink);border-radius:5px;overflow:hidden;background:var(--coral)}
.bar span {display:block;height:100%;background:var(--blue)}
.print-link {margin-top:1.8rem;padding:.9rem 0;border-top:1px solid var(--ink)}
.print-link h2 {font-size:1.45rem}
.print-link p {margin-top:.25rem}
.print-deck {display:none}
@media(max-width:400px) {main{width:calc(100% - 24px)}.roundbar{gap:.2rem .55rem}.arena{padding:.7rem}}
@media print {
  @page {size:A4;margin:10mm}
  body {background:#fff;color:#000;font:11pt/1.35 "Source Sans",sans-serif}
  main {width:auto;padding:0}
  main > :not(.print-deck) {display:none!important}
  .print-deck {display:block}
  h2 {font-size:26pt}
  .print-cards {display:grid;grid-template-columns:repeat(2,1fr);gap:3mm;margin-top:4mm}
  .print-cards article {min-height:35mm;display:grid;align-content:center;gap:2mm;padding:3mm;break-inside:avoid;border:1px dashed #333}
  .print-cards h3 {font-size:13pt}
}
@media(prefers-reduced-motion:reduce) {button {transform:none!important}}
