@font-face {
  font-family: Archivo Black;
  src: url("./assets/archivo-black-ext.woff2") format("woff2");
  font-display: swap;
  unicode-range: U+0100-02BA,U+0304,U+0308,U+0329,U+1E00-1EFF;
}
@font-face {
  font-family: Archivo Black;
  src: url("./assets/archivo-black.woff2") format("woff2");
  font-display: swap;
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+20AC,U+2122;
}
:root {
  --ink: #20212d;
  --paper: #f6f4ec;
  --orange: #ff6947;
  --rust: #a5321a;
  --display: "Archivo Black", "Arial Black", sans-serif;
  --mono: ui-monospace, "Courier New", monospace;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; margin: 0; background: var(--paper); color: var(--ink); font: 1.0625rem/1.5 system-ui, sans-serif; }
main { flex: 1; display: flex; flex-direction: column; }
.slip-summary { display: none; }
p, h1, h2, h3 { margin: 0; }
a { color: inherit; text-underline-offset: .2em; }
a:hover { color: var(--rust); }
:focus-visible { outline: 3px solid #1473c7; outline-offset: 4px; }
.frame { width: min(1180px, 89%); margin-inline: auto; }
.masthead, footer, .section-line, .slip-top, .slip-end { display: flex; align-items: center; justify-content: space-between; }
.masthead { min-height: clamp(2.75rem, 7svh, 4.625rem); gap: 1rem; }
.brand { display: inline-flex; align-items: center; text-decoration: none; font: 2rem/1 var(--display); letter-spacing: -.085em; }
.brand span { color: var(--rust); }
.ballot-icon { width: 26px; height: 16px; background: var(--ink); margin: 9px 10px 0 0; position: relative; border-radius: 1px; }
.ballot-icon::before { content: ""; position: absolute; height: 12px; width: 15px; background: var(--orange); border: 2px solid var(--ink); top: -12px; left: 5px; transform: rotate(-17deg); }
.edition, .kicker, .section-line h2, .slip, footer { font-family: var(--mono); }
.edition { font-size: .875rem; }
.poster { flex: 1; display: grid; align-items: center; background: var(--ink); color: var(--paper); overflow: hidden; }
.poster-inner { display: grid; grid-template-columns: 1.55fr 1fr; align-items: center; padding-block: clamp(1.3rem, 2.8svh, 2.5rem); }
.headline { z-index: 1; }
.kicker, .section-line h2 { text-transform: uppercase; letter-spacing: .095em; font-size: .875rem; font-weight: 700; }
.kicker { display: flex; align-items: center; gap: .7rem; }
.kicker i { width: 1.55rem; height: .27rem; background: var(--orange); }
h1 { font: clamp(5.8rem, min(13.9vw, 19svh), 12.3rem)/1.04 var(--display); letter-spacing: -.085em; margin-left: -.045em; white-space: nowrap; }
h1 span { font-size: .68em; color: var(--orange); vertical-align: .12em; letter-spacing: -.08em; margin-left: .04em; }
.votes { font-size: clamp(1.5rem, 3vw, 2.45rem); line-height: 1.1; letter-spacing: -.04em; }
.votes strong { font-family: var(--display); font-weight: 400; }
.base { margin-top: .7rem; font-size: 1rem; color: #c6c6cd; }
.art { position: relative; display: grid; place-items: center; isolation: isolate; padding: 1rem; }
.screen { position: absolute; z-index: -1; width: clamp(250px, 25vw, 350px); aspect-ratio: 1; border-radius: 50%; background-image: radial-gradient(circle, #df674d 1.8px, transparent 2px); background-size: 6px 6px; transform: rotate(-12deg) translate(4%, 0); }
.slip { width: clamp(182px, 18vw, 242px); background: #edeacb; color: var(--ink); padding: 1.05rem 1.15rem .95rem; position: relative; transform: rotate(9deg); box-shadow: 7px 9px 0 #11121b77; }
.slip::after, .slip::before { content: ""; position: absolute; left: 0; right: 0; height: 7px; background: linear-gradient(135deg, #edeacb 25%, transparent 25%) -6px 0/12px 12px, linear-gradient(225deg, #edeacb 25%, transparent 25%) -6px 0/12px 12px; top: 100%; }
.slip::before { top: auto; bottom: 100%; transform: rotate(180deg); }
.slip-top { border-bottom: 2px solid; padding-bottom: .65rem; text-transform: uppercase; font-weight: bold; font-size: .8125rem; }
.slip-title { font: clamp(1.9rem, 2.85vw, 2.65rem)/.99 var(--display); letter-spacing: -.065em; margin: 1rem 0 .9rem; }
.stamp { display: inline-block; color: var(--rust); border: 3px double; padding: 0 .32em; transform: rotate(-8deg); font-size: clamp(1.15rem, 1.7vw, 1.5rem); text-transform: uppercase; font-weight: 900; }
.slip-end { margin-top: 1.1rem; padding-top: .8rem; border-top: 1px dashed; gap: 6px; font-size: .8125rem; }
.barcode { width: 35%; height: 20px; background: repeating-linear-gradient(90deg, var(--ink) 0 2px, transparent 2px 4px, var(--ink) 4px 5px, transparent 5px 8px, var(--ink) 8px 12px, transparent 12px 14px); }
.comparison, .letter { padding-block: clamp(.45rem, calc(4svh - 1rem), 1.75rem); }
.section-line { gap: 1rem; }
.section-line h2 { color: var(--rust); }
.rule { flex: 1; height: 1px; background: #b8b7b1; }
button { cursor: pointer; display: inline-flex; justify-content: center; align-items: center; gap: .45rem; min-height: 42px; border: 1px solid var(--ink); color: var(--ink); font: 600 .875rem/1.2 system-ui, sans-serif; padding: .5rem .85rem; background: transparent; }
button:hover { background: var(--ink); color: var(--paper); }
.rotate { font: 1.35rem/1 Arial,sans-serif; }
#comparisons article { display: grid; grid-template-columns: minmax(15rem, .85fr) 1.5fr; align-items: start; gap: 1.75rem; margin-top: clamp(.5rem, 1.6svh, 1.4rem); }
.count { font: clamp(3.2rem, 6.4vw, 5.7rem)/1.02 var(--display); letter-spacing: -.085em; }
.fact h3, #letters h3 { font: clamp(1.4rem, 2.2vw, 2rem)/1.12 var(--display); letter-spacing: -.055em; }
.fact p { margin: .5rem 0; max-width: 65ch; }
footer a { font: .875rem/1.4 var(--mono); }
.letter { border-top: 2px solid var(--ink); }
#letters { border-left: .38rem solid var(--orange); margin-top: clamp(.5rem, 1.4svh, 1.2rem); padding-left: 1.3rem; }
#letters p { margin-top: .3rem; max-width: 58ch; font: clamp(1.2rem, min(2.4vw, 3.8svh), 2rem)/1.23 Georgia, serif; }
footer { gap: 1.5rem; border-top: 1px solid #b8b7b1; padding-block: clamp(.375rem, 1.25svh, 1rem); }

.context { max-width: 78ch; color: #52525b; font-size: .875rem; }
.context summary { cursor: pointer; width: fit-content; text-decoration: underline; text-underline-offset: .2em; }
.context p { margin-block: .5rem; }
@media (max-width: 820px) {
  .frame { width: 92%; }
  .section-line { gap: .5rem; }
  .section-line h2 { font-size: .8125rem; }
  .section-line button { flex-shrink: 0; }
  #comparisons article { grid-template-columns: max-content 1fr; gap: 1rem; }
}
@media (max-width: 600px), (max-height: 620px) {
  .art { display: none; }
  .slip-summary { display: block; font: .8125rem/1.4 var(--mono); color: #efb7a5; margin-top: .2rem; }
  .poster-inner { grid-template-columns: 1fr; padding-block: clamp(.5rem, 1.8svh, 1.25rem); }
  .brand { font-size: 1.5rem; }
  .edition, .kicker { font-size: .8125rem; }
  .base { font-size: .875rem; margin-top: .3rem; }
  button { min-height: 36px; padding: .3rem .55rem; }
  .fact p { font-size: 1rem; line-height: 1.3; margin-block: .2rem; }
  #letters { padding-left: .65rem; border-left-width: .25rem; }
}
@media (max-width: 600px) {
  .frame { width: 93%; }
  h1 { font-size: clamp(4.2rem, min(24vw, 13svh), 7.5rem); }
  .count { font-size: clamp(2.125rem, 8vw, 3rem); }
  #comparisons article { display: block; }
  .count, .fact, .fact h3 { display: inline; }
  .count { margin-right: .3rem; }
  .fact h3, #letters h3 { font-size: 1.25rem; }
  footer { gap: .5rem; }
  footer a { text-align: right; }
}
@media (max-width: 600px) and (max-height: 700px) {
  .masthead { min-height: 2.5rem; }
  .comparison, .letter { padding-block: .45rem; }
  #comparisons article, #letters { margin-top: .3rem; }
  .section-line .rule { display: none; }
  footer a { font-size: .8125rem; }
}
/* In landscape the result stays beside both stories, leaving room for the question. */
@media (min-width: 540px) and (max-height: 620px) and (min-aspect-ratio: 3/2) {
  main { display: grid; grid-template-columns: minmax(11rem, 32%) minmax(0, 1fr); }
  .poster-inner { width: 89%; }
  h1 { font-size: clamp(3.4rem, 7.6vw, 7rem); }
  .kicker { display: block; }
  .kicker i { display: none; }
  .stories { width: 94%; align-self: center; }
  .comparison, .letter { padding-block: clamp(.25rem, 1.4svh, .75rem); }
  #comparisons article { display: block; margin-top: .25rem; }
  .count, .fact, .fact h3 { display: inline; }
  .count { margin-right: .35rem; font-size: clamp(1.75rem, 4vw, 3rem); }
  .fact h3, #letters h3 { font-size: 1.15rem; }
  #letters { margin-top: .3rem; }
  #letters p { font-size: 1.125rem; }
}
@media (min-width: 601px) and (min-height: 621px) and (max-height: 950px) {
  .poster-inner { padding-block: .85rem; }
  h1 { font-size: clamp(5.5rem, min(13vw, 17svh), 10rem); }
  .art { padding: .4rem; }
  .slip { width: clamp(11rem, 20svh, 14rem); padding: .7rem .85rem; }
  .slip-title { font-size: 1.9rem; margin: .55rem 0; }
  .slip-end { margin-top: .6rem; padding-top: .4rem; }
  .screen { width: min(25vw, 29svh); }
  .comparison, .letter { padding-block: clamp(.125rem, calc(4svh - 1.35rem), .8rem); }
  #letters p { font-size: clamp(1.25rem, 3.1svh, 1.7rem); }
  #comparisons article, #letters { margin-top: .5rem; }
}
@media (max-width: 600px) and (max-height: 720px), (max-height: 430px) and (orientation: landscape) {
  .button-text { display: none; }
  .section-line button { width: 2.25rem; min-height: 2rem; padding: 0; }
  .section-line .rule { display: block; }
  #letters h3, #letters p { display: inline; }
  #letters p { font-size: 1.125rem; }
  footer { padding-block: .25rem; }
}
@media (max-width: 600px) and (max-height: 700px) {
  .votes, .base { display: inline; }
  .base { font-size: .8125rem; }
  .masthead { min-height: 2.25rem; }
}
@media (max-width: 600px) {
  .edition { text-align: right; }
  .section-line h2 { min-width: 0; overflow-wrap: anywhere; }
  footer a { min-width: 0; }
}
@media (min-width: 540px) and (max-height: 430px) and (orientation: landscape) {
  main { grid-template-columns: minmax(8.5rem, 26%) minmax(0, 1fr); }
  .masthead { min-height: 2rem; }
  h1 { font-size: clamp(3rem, 6.8vw, 5.5rem); }
}
.fact h3 a { font: inherit; text-decoration-thickness: 1px; text-decoration-color: #91877e; }
@media (max-width: 380px) {
  .election-kind { display: none; }
  .edition { min-width: 0; }
  .headline { min-width: 0; }
  .poster { grid-template-columns: minmax(0, 1fr); }
  .poster-inner { grid-template-columns: minmax(0, 1fr); }
  h1 { font-size: clamp(3rem, 22vw, 6rem); }
}
@media (max-width: 380px) and (max-height: 650px) {
  .kicker { gap: .35rem; letter-spacing: .03em; }
  .kicker i { width: 1rem; }
  .fact p { line-height: 1.2; }
  .votes { display: block; }
  .base { display: block; }
  .section-line button { min-height: 1.75rem; }
  #letters p { font-size: 1.0625rem; }
}

footer { align-items: baseline; }
footer .context { min-width: 0; }
footer .context[open] { flex: 1; }
@media (max-width: 380px) {
  .brand, .edition, footer { overflow-wrap: anywhere; }
  .masthead { gap: .25rem; }
  footer { line-height: 1.15; }
  footer a, footer summary { font-size: .8125rem; }
}
@media (max-width: 340px) and (max-height: 610px) {
  .poster-inner { padding-block: .375rem; }
  h1 { font-size: min(20vw, 4.125rem); }
  .comparison, .letter { padding-block: .25rem; }
}
@media (min-width: 540px) and (max-height: 355px) and (orientation: landscape) {
  .comparison, .letter { padding-block: .125rem; }
  .section-line button { min-height: 1.75rem; }
  .fact p { margin-block: .125rem; }
  .base, .votes { display: block; }
  footer { padding-block: .125rem; }
}
