/* The Great Spread Debate. A debating-club poster: cream paper, indigo ink, teal "for" vs magenta
 * "against". Anton (SIL OFL, assets/OFL-anton.txt) for headings; system sans for reading. */
@font-face {
  font-family: 'Anton';
  src: url('/assets/anton-latin-400-normal.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #fff4e6;
  --ink: #1e1b4b;
  --muted: #47436b;
  --accent: #4c1d95;
  --accent-ink: #ffffff;
  --surface: #ffffff;
  --line: #1e1b4b;
  --for: #0f766e;
  --against: #a21caf;
  --radius: 0;
  --font: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --poster: 'Anton', Impact, 'Arial Narrow Bold', 'Helvetica Neue Condensed', sans-serif;
}

body {
  background-color: var(--bg);
  background-image: radial-gradient(rgb(30 27 75 / 0.09) 1.2px, transparent 1.4px);
  background-size: 14px 14px;
}

:focus-visible { outline: 3px solid var(--against); outline-offset: 3px; }
.skip-link:focus { background: var(--ink); color: #fff; }

/* Header: a poster band. */
.site-header {
  max-width: none;
  background: var(--ink);
  color: var(--bg);
  padding: 14px max(16px, calc((100% - 760px) / 2 + 16px));
  border-bottom: 6px solid var(--for);
  box-shadow: 0 6px 0 var(--against);
  margin-bottom: 18px;
}
.site-brand { color: #fff; gap: 12px; }
.site-logo { width: 52px; height: 52px; }
.site-name {
  font-family: var(--poster);
  font-weight: 400;
  font-size: 1.6rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 1.05;
}
.site-tagline { color: #d9d6f5; margin: 6px 0 0; font-size: 0.95rem; }

/* Motion. */
.motion { text-align: left; }
.motion-label {
  display: inline-block;
  margin: 8px 0 6px;
  padding: 3px 10px;
  background: var(--for);
  color: #fff;
  font-family: var(--poster);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transform: rotate(-2deg);
}
.report-title, .result-headline, .not-found h1 {
  font-family: var(--poster);
  font-weight: 400;
  text-transform: uppercase;
  line-height: 1.02;
  letter-spacing: 0.01em;
}
.report-title {
  font-size: clamp(2.6rem, 12vw, 4.6rem);
  margin: 6px 0 12px;
  color: var(--ink);
}
.report-tagline { font-size: 1.15rem; margin: 0 0 16px; }
.motion-steps {
  list-style: none;
  counter-reset: step;
  padding: 0;
  margin: 0 0 14px;
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}
.motion-steps li {
  counter-increment: step;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border: 2px solid var(--ink);
  background: var(--surface);
}
.motion-steps li::before {
  content: counter(step);
  flex: none;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  background: var(--ink);
  color: #fff;
  font-family: var(--poster);
  font-size: 1.1rem;
}
.report-asks { color: var(--muted); font-size: 0.95rem; }

/* Widget: the ballot box. */
.widget {
  background: var(--surface);
  border: 4px solid var(--ink);
  box-shadow: 10px 10px 0 var(--for);
  padding: 22px 18px;
  margin: 22px 10px 28px 0;
}
.widget-hint, .widget-msg { color: var(--ink); font-weight: 600; }
.widget-qrbox svg { border: 4px solid var(--ink); background: #fff; }
.widget-link, .widget-again {
  border-radius: 0;
  background: var(--accent);
  color: var(--accent-ink);
  font-family: var(--poster);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 1.1rem;
  box-shadow: 5px 5px 0 var(--against);
}
.widget-link:hover, .widget-again:hover { background: var(--ink); }
.widget-again { margin-top: 18px; }
.widget-error { color: var(--against); }

/* Result: the verdict. */
.verdict-label {
  margin: 0 0 4px;
  font-family: var(--poster);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--against);
}
.result-headline { font-size: clamp(2.2rem, 10vw, 3.4rem); margin: 0 0 16px; }
.result-call .result-headline { color: var(--ink); }
.tally {
  list-style: none;
  padding: 0;
  margin: 0 0 14px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 3px solid var(--ink);
}
.tally li {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 4px 8px;
  background: var(--surface);
  color: var(--muted);
}
.tally li + li { border-left: 3px solid var(--ink); }
.tally b { font-family: var(--poster); font-weight: 400; text-transform: uppercase; font-size: 1.15rem; letter-spacing: 0.04em; }
.tally span { font-size: 0.85rem; }
.tally em { font-style: normal; font-weight: 700; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; }
.tally .tally-you { color: #fff; }
.tally-for.tally-you { background: var(--for); }
.tally-floating.tally-you { background: var(--accent); }
.tally-against.tally-you { background: var(--against); }
.result-reading { font-size: 1.05rem; }
.result-genotype {
  font-family: var(--poster);
  font-weight: 400;
  font-size: 1.3rem;
  letter-spacing: 0.08em;
  padding: 0 6px;
  background: var(--ink);
  color: #fff;
}
.result-body { font-size: 1.08rem; }
.result-fact { border-left: 6px solid var(--for); padding: 6px 0 6px 12px; background: #eefaf8; }
.result-disclaimer { font-size: 0.85rem; color: var(--muted); border-top: 2px dashed var(--ink); padding-top: 10px; }
.result-missing .verdict-label, .result-nocall .verdict-label, .result-unexpected .verdict-label { color: var(--for); }

/* Footer. */
.site-footer { color: var(--muted); border-top: 4px solid var(--ink); margin-top: 8px; }
.site-footer p { margin: 6px 0; }
.footer-gavel { font-family: var(--poster); text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink); font-size: 1.1rem; }
.site-footer a { color: var(--accent); font-weight: 600; }

.not-found h1 { font-size: 3rem; }

@media print {
  body { background: #fff; }
  .site-header { background: none; color: var(--ink); box-shadow: none; }
  .site-brand { color: var(--ink); }
  .site-tagline { color: var(--muted); }
  .widget { border: 0; box-shadow: none; }
}
.site-header :focus-visible { outline-color: var(--bg); }
