/* AI OR DIE: the vote page (D-124), the CD's design pass (D-125), and the type pass of 2026-11-12 (D-128,
   docs/design/TYPE.md). A standalone page outside the story's app: the site's own fonts, and its own copy of the
   story's tokens (the scale and the three voices, under the same names), so the two agree without sharing a file.
   The idea is unchanged: everything under the picture lies on the hearing room's table. The answers are one paper
   ballot with a box to mark (a pencil cross, drawn when you vote); the result is set straight on the table, large,
   with no box around it; the share step is a folded note and the sign-up an index card, side by side; the foot is a
   colophon, not a box.
   The type pass: the face says which truth is speaking. The story (Fraunces): its question, its kicker, the two
   answers' names. The record (Atkinson): the ballot's own words, the count, the note, the card, every control. No
   mono, no slanted Fraunces (the family here has no italic), no capitals with tracking. One column for the whole
   page (--col), so the ballot, the count, the desk and the foot share their edges. On a wide window the two answers
   lie side by side: neither comes first by scrolling.
   The picture: the hearing plate on top, never cropped; its blank wall screen carries the question in type wherever
   the picture is 600 px wide or more, and the question moves below the picture where it is not. On a landscape window
   the ballot is laid over the plate's lower third (the table), never higher, so nothing ever covers the empty ninth
   chair; on a phone, or any upright window, it sits below the picture. */

@font-face { font-family: 'Fraunces'; src: url('../fonts/fraunces.woff2') format('woff2'); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: 'Atkinson Hyperlegible'; src: url('../fonts/atkinson-400.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Atkinson Hyperlegible'; src: url('../fonts/atkinson-700.woff2') format('woff2'); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Atkinson Hyperlegible'; src: url('../fonts/atkinson-400-italic.woff2') format('woff2'); font-weight: 400; font-style: italic; font-display: swap; }

:root {
  --table: #14100c;
  --groove: #251d16;      /* the table's grain, where a strip of the count lies */
  --paper: #efe4cc;       /* the folded note */
  --ballot: #f6f0e1;      /* the ballot: paler, smoother paper */
  --card: #fbf7ee;        /* the index card */
  --card-margin: #c9705f; /* the index card's one red line, as index cards have */
  --paper-edge: #cbb894;
  --rule: #b9a47f;        /* the ballot's printed rules */
  --ink: #231c16;
  --ink-soft: #54473a;
  --pencil: #2e2a26;
  --lamp: #f0b45c;
  --focus: #ffd47a;
  --focus-ink: #8f2d14;
  --text: #f4ece0;
  --text-soft: #d6cbbb;

  /* the three voices (TYPE.md): the story, the record, the screens */
  --story: 'Fraunces', Georgia, 'Times New Roman', serif;
  --record: 'Atkinson Hyperlegible', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
  --screens: 'IBM Plex Mono', ui-monospace, Consolas, 'Courier New', monospace; /* not used on this page, so its files are never fetched */
  --serif: var(--story); --sans: var(--record); --mono: var(--screens); /* the older names */

  /* the scale (TYPE.md), fluid from a phone to a laptop; the root stays 18 px */
  --fs-display: clamp(2.4rem, 1.2rem + 3.6vw, 4.4rem);
  --fs-title: clamp(2rem, 1.3rem + 2.2vw, 3.1rem);
  --fs-lede: clamp(1.25rem, 1.05rem + 0.75vw, 1.6rem);
  --fs-card: clamp(1.2rem, 1.1rem + 0.4vw, 1.4rem);
  --fs-story: clamp(1.06rem, 1rem + 0.25vw, 1.17rem);
  --fs-body: clamp(1rem, 0.97rem + 0.12vw, 1.06rem);
  --fs-small: 0.89rem;
  --fs-note: 0.78rem;
  --fs-screen: 0.83rem;
  /* Fraunces' settings for each step */
  --fv-display: 'opsz' 144, 'SOFT' 80, 'WONK' 1;
  --fv-title: 'opsz' 96, 'SOFT' 100, 'WONK' 0;
  --fv-lede: 'opsz' 36, 'SOFT' 100, 'WONK' 0;
  --fv-card: 'opsz' 30, 'SOFT' 100, 'WONK' 0;
  --fv-story: 'opsz' 18, 'SOFT' 50, 'WONK' 0;

  /* the page's one column and its gutter */
  --col: 880px;
  --gutter: 16px;
  /* paper, one language: a faint fibre (drawn here, nothing fetched), a contact shadow and an ambient one */
  --fibre: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='f' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.08 0.8' numOctaves='2' seed='11' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.36 0 0 0 0 0.27 0 0 0 0 0.16 0 0 0 0.1 0'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23f)'/%3E%3C/svg%3E");
  --paper-shadow: 0 1px 2px rgba(0, 0, 0, 0.5), 0 18px 40px rgba(0, 0, 0, 0.46);
  --radius: 3px; /* one radius, for paper and for buttons */
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--table); color: var(--text); font-family: var(--record); font-size: 18px; line-height: 1.5; font-optical-sizing: auto; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; background: var(--table); overflow-x: hidden; }
img { display: block; }
a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
button { font: inherit; color: inherit; }
p { margin: 0; }
[hidden] { display: none !important; }
::selection { background: var(--lamp); color: var(--ink); }
:focus { outline: none; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
/* on paper the ring is dark */
.ballot :focus-visible, .note-paper :focus-visible, .index-card :focus-visible, .slip :focus-visible { outline-color: var(--focus-ink); }
[tabindex="-1"]:focus { outline: none; }

/* ---------- the picture (unchanged by either pass) ---------- */
.hero { container: hero / inline-size; }
.band { position: relative; overflow: hidden; background: var(--table); }
.stage { container: stage / inline-size; position: relative; z-index: 1; width: 100%; margin: 0 auto; }
.stage .plate { width: 100%; height: auto; aspect-ratio: 16 / 9; user-select: none; }
.wall { display: none; }
/* the question below the picture (a narrow picture): the story's question, at the title's step */
.q { margin: 0; padding: 14px var(--gutter) 0; font-family: var(--story); font-weight: 580; font-size: var(--fs-title); line-height: 1.08; letter-spacing: -0.012em; font-variation-settings: var(--fv-title); text-wrap: balance; color: var(--text); }
/* the question on the wall screen: the screen darkened inside its own four corners (art/plates/hearing.screens.json,
   s1 on the 2048 x 1152 plate: 687,68 1365,66 1363,373 693,374), the words set inside it. Its size is the screen's,
   not the scale's: 4.05% of the picture's width fills the screen at every window size. */
@container stage (min-width: 600px) {
  .wall { display: block; position: absolute; inset: 0; pointer-events: none;
    clip-path: polygon(33.545% 5.903%, 66.650% 5.729%, 66.553% 32.378%, 33.838% 32.465%);
    background:
      linear-gradient(158deg, rgba(255, 255, 255, 0.07) 0%, rgba(255, 255, 255, 0) 38%),
      radial-gradient(ellipse 17% 14% at 50.1% 19.1%, rgba(16, 28, 42, 0.56) 0%, rgba(7, 12, 19, 0.74) 100%); }
  .q { position: absolute; left: 34.6%; top: 6.6%; width: 31.4%; height: 25.1%; padding: 0; display: flex; align-items: center; justify-content: center; text-align: center; font-size: 4.05cqw; line-height: 1.06; color: #f7f0e3; text-shadow: 0 0 0.45em rgba(150, 200, 245, 0.22); }
}

/* the way out, top left (the CD, 2026-11-12): a paper tab hanging from the window's top edge, as the story's own
   sheets hang from its bar; the record's voice; the first thing a keyboard reaches */
.way-out { position: absolute; z-index: 3; top: 0; left: var(--gutter); margin: 0; line-height: 1; }
.way-out a { display: inline-flex; align-items: center; min-height: 40px; padding: 9px 14px 8px; background-color: var(--paper); background-image: var(--fibre); color: var(--ink); font-size: var(--fs-small); font-weight: 700; line-height: 1.2; text-decoration: none; border-radius: 0 0 3px 3px; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.5), 0 8px 18px rgba(0, 0, 0, 0.38); transform: rotate(-0.7deg); transform-origin: 0 0; }
.way-out a:hover { text-decoration: underline; text-decoration-thickness: 1.5px; }
.way-out a:focus-visible { outline-offset: 2px; }

/* ---------- landscape windows: the picture as large as fits, uncropped; a blurred copy of it fills the sides ---------- */
@media (min-aspect-ratio: 6/5) {
  .stage { width: min(100%, 177.78vh); }
  @supports (height: 100dvh) { .stage { width: min(100%, 177.78dvh); } }
  .band::before { content: ''; position: absolute; inset: -48px; background: url('/media/plates/hearing-1280.jpg') center / cover no-repeat; filter: blur(30px) brightness(0.32) saturate(0.85); }
}
/* the ballot over the plate's lower third: it starts at 68% of the picture's height (the chair ends near 65%). The
   scrim is the table itself rising: by the kicker's first line the picture is gone, so the words never lie on it. */
@media (min-aspect-ratio: 6/5) and (min-height: 338px) {
  @container hero (min-width: 600px) {
    .ask { position: relative; z-index: 2; margin-top: calc(-0.32 * min(56.25cqw, 100vh)); min-height: calc(0.32 * min(56.25cqw, 100vh));
      background: linear-gradient(to bottom, rgba(20, 16, 12, 0) 0, rgba(20, 16, 12, 0.72) 10px, rgba(20, 16, 12, 0.95) 24px, var(--table) 44px); }
    .hero .ask { padding-top: 16px; }
    @supports (height: 100dvh) { .ask { margin-top: calc(-0.32 * min(56.25cqw, 100dvh)); min-height: calc(0.32 * min(56.25cqw, 100dvh)); } }
  }
}

/* ---------- the ballot ---------- */
.ask { padding: 8px var(--gutter) 6px; }
.ask-inner { max-width: var(--col); margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
/* the story's line, as a narrator's (the lede's step) */
.kicker { font-family: var(--story); font-size: var(--fs-lede); line-height: 1.3; font-weight: 420; font-variation-settings: var(--fv-lede); color: var(--text); text-wrap: balance; }
/* what this is, in plain words under the story's line (the CD's words, 2026-11-12): the record's voice, small */
.what { margin-top: -5px; font-size: var(--fs-small); line-height: 1.4; color: var(--text-soft); text-wrap: balance; }
.ballot { position: relative; width: 100%; margin-top: 2px; padding: 26px 20px 4px; background-color: var(--ballot); color: var(--ink); border-radius: var(--radius);
  box-shadow: 0 1px 0 #d8caa9, var(--paper-shadow);
  background-image: radial-gradient(ellipse at 20% 0%, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0) 55%), radial-gradient(ellipse at 90% 100%, rgba(150, 120, 80, 0.10), rgba(0, 0, 0, 0) 50%), var(--fibre);
  transform: rotate(-0.45deg); }
/* the slip's perforated stub along its top */
.ballot::before { content: ''; position: absolute; left: 12px; right: 12px; top: 11px; height: 0; border-top: 2px dotted rgba(35, 28, 22, 0.28); }
/* the ballot's own words are the record's, as a ballot's printed instruction is: out here the choice is real */
.ballot .lede { font-size: var(--fs-body); line-height: 1.3; font-weight: 700; text-wrap: balance; }
.ballot .hint { margin-top: 2px; font-size: var(--fs-small); color: var(--ink-soft); }
.answers { list-style: none; margin: 12px 0 0; padding: 0; border-top: 2px solid var(--ink); }
.answers li + li { border-top: 1.5px solid var(--rule); }
.answer { --box: 44px; width: 100%; display: grid; grid-template-columns: var(--box) minmax(0, 1fr); column-gap: 14px; align-items: start; padding: 14px 4px 14px 0; border: 0; background: transparent; color: var(--ink); text-align: left; cursor: pointer; border-radius: 2px; }
.answer .box { width: var(--box); height: var(--box); display: grid; place-items: center; border: 2.5px solid var(--ink); border-radius: 1px; background: #fffdf7; transition: background-color 0.15s ease; }
/* the name sits level with the middle of its box; its line hangs under it. The two names are the page's one act, so
   they take the lede's step, a step above a story card's choice. */
.answer .words { display: flex; flex-direction: column; gap: 4px; min-width: 0; padding-top: calc((var(--box) - 1.12 * var(--fs-lede)) / 2); }
.answer .label { font-family: var(--story); font-size: var(--fs-lede); line-height: 1.12; font-weight: 600; letter-spacing: -0.005em; font-variation-settings: var(--fv-lede); }
.answer .line { font-size: var(--fs-small); line-height: 1.45; color: var(--ink-soft); text-wrap: pretty; }
.answer .mine { grid-column: 2; margin-top: 6px; justify-self: start; font-size: var(--fs-small); font-weight: 700; line-height: 1.3; color: var(--ink); }
.answer:hover:not(:disabled) .box { background: #f1e6cf; }
.answer:disabled { cursor: default; }
.answer:focus-visible { outline-offset: 2px; }
.answers[aria-busy="true"] .answer { cursor: progress; }
/* closed: the boxes are printed but cannot be marked yet */
.ask-inner:has(#vote-note:not([hidden])) .answer .box { border-color: var(--rule); background: transparent; }
/* the pencil cross: two strokes, drawn when the box is marked */
.cross { width: 38px; height: 38px; overflow: visible; }
.cross path { fill: none; stroke: var(--pencil); stroke-opacity: 0.9; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 64; stroke-dashoffset: 64; transition: stroke-dashoffset 0.22s cubic-bezier(0.4, 0, 0.6, 1); }
.cross .s2 { transition-delay: 0.16s; }
.answer[aria-pressed="true"] .cross path { stroke-dashoffset: 0; }
.count { min-height: 1.5em; font-size: var(--fs-small); color: var(--text-soft); }
.note { font-size: var(--fs-body); color: var(--lamp); }

/* ---------- after the vote: the result, straight on the table ---------- */
.after { max-width: calc(var(--col) + 2 * var(--gutter)); margin: clamp(44px, 6vw, 76px) auto 0; padding: 0 var(--gutter); }
#after-h { margin: 0; font-family: var(--story); font-size: var(--fs-title); line-height: 1.08; font-weight: 580; letter-spacing: -0.012em; font-variation-settings: var(--fv-title); text-wrap: balance; scroll-margin-top: 32px; }
.voted { margin-top: 10px; font-size: var(--fs-body); color: var(--text-soft); }
.results { margin-top: 34px; }
/* a label: the record's voice, bold, sentence case, soft */
.split-h { margin: 0 0 14px; font-size: var(--fs-small); line-height: 1.3; font-weight: 700; color: var(--text-soft); }
.split { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 26px; }
/* each answer's row: its share as one large figure, and beside it the name, the count and the strip, on one edge */
.split li { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto auto auto; column-gap: clamp(12px, 1.6vw, 20px); align-items: end; }
.split .pct { grid-row: 1 / span 3; align-self: center; inline-size: 4.2ch; font-size: var(--fs-display); line-height: 0.9; font-weight: 700; letter-spacing: -0.035em; font-variant-numeric: lining-nums tabular-nums; color: var(--text); }
.split .lab { font-family: var(--story); font-size: var(--fs-card); line-height: 1.15; font-weight: 600; font-variation-settings: var(--fv-card); }
/* "Your vote", in words, with the ballot's own cross beside it */
.split .yours { display: inline-block; margin-left: 14px; padding-left: 1.25em; font-family: var(--record); font-size: var(--fs-small); font-weight: 700; line-height: 1.3; font-variation-settings: normal; color: var(--lamp); vertical-align: 0.12em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cpath d='M4 8.5Q5.5 6.8 7.5 8.2C14 13.5 22 21.5 35.5 33.5M33.5 5.5C27 12.5 18 22.5 6.5 35.5' fill='none' stroke='%23f0b45c' stroke-width='5' stroke-linecap='round'/%3E%3C/svg%3E") left 0.2em / 0.85em 0.85em no-repeat; }
.split .cnt { margin-top: 2px; font-size: var(--fs-small); color: var(--text-soft); font-variant-numeric: tabular-nums; }
/* the share as a strip of paper laid in a groove of the table */
.split .bar { margin-top: 10px; height: 14px; background: var(--groove); border-radius: 1px; box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.6); overflow: hidden; }
.split .bar span { display: block; height: 100%; width: 0; background: rgba(239, 228, 204, 0.5); transition: width 0.6s cubic-bezier(0.25, 0.8, 0.25, 1); }
.split li.mine .bar span { background: var(--paper); }
.change { margin-top: 34px; max-width: 26.5em; font-size: var(--fs-body); color: var(--text); text-wrap: pretty; }
.how { margin-top: 8px; max-width: 26.5em; font-size: var(--fs-small); color: var(--text-soft); text-wrap: pretty; }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }

/* ---------- the desk: a folded note to pass on, and an index card for the list ---------- */
.desk { max-width: calc(var(--col) + 2 * var(--gutter)); margin: clamp(48px, 6vw, 72px) auto 0; padding: 0 var(--gutter); display: grid; grid-template-columns: minmax(0, 1fr); gap: 34px; align-items: start; }
.note-paper, .index-card { position: relative; color: var(--ink); padding: 26px 22px 26px; }
.note-paper h2, .index-card h2 { margin: 0; font-family: var(--story); font-size: var(--fs-card); line-height: 1.15; font-weight: 600; font-variation-settings: var(--fv-card); text-wrap: balance; }
.note-paper .sub, .index-card .sub { margin-top: 8px; font-size: var(--fs-body); line-height: 1.45; color: var(--ink); text-wrap: pretty; }
/* the note: cream paper with one corner folded down */
.note-paper { background-color: var(--paper); transform: rotate(-0.7deg); border-radius: var(--radius);
  box-shadow: 0 1px 0 var(--paper-edge), var(--paper-shadow);
  background-image: linear-gradient(225deg, var(--table) 0 22px, rgba(0, 0, 0, 0) 22px), linear-gradient(225deg, rgba(0, 0, 0, 0) 22px, rgba(255, 255, 255, 0.35) 22px, rgba(255, 255, 255, 0) 60%), var(--fibre); }
.note-paper::after { content: ''; position: absolute; top: 0; right: 0; width: 31px; height: 31px; background: linear-gradient(45deg, #d9c9a6 0 50%, rgba(0, 0, 0, 0) 50%); box-shadow: -2px 2px 3px rgba(0, 0, 0, 0.18); }
.note-paper .row { margin-top: 20px; }
.copied { min-height: 1.5em; margin-top: 10px; font-size: var(--fs-small); font-weight: 700; }
.copy-field { margin: 8px 0 16px; }
/* the link itself, to copy by hand: the record's voice on paper, never mono */
.copy-field input { width: 100%; min-height: 48px; padding: 8px 10px; border: 2px solid var(--ink); border-radius: 3px; background: #fffaf0; color: var(--ink); font-family: var(--record); font-size: var(--fs-small); }
.plain-links { margin-top: 6px; padding-top: 16px; border-top: 1.5px dashed var(--paper-edge); }
.plain-links p { font-size: var(--fs-small); font-weight: 700; line-height: 1.3; color: var(--ink-soft); }
/* eight plain text links in even columns, each a full 40 px target */
.plain-links ul { list-style: none; margin: 2px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 0 8px; }
.plain-links li { display: flex; }
.plain-links a { flex: 1; min-width: 40px; padding: 9px 0; color: var(--ink); font-size: var(--fs-small); text-decoration: underline; text-decoration-thickness: 1.5px; }
.plain-links a:hover { text-decoration-thickness: 2.5px; }
/* the card: white card, with its one red line under the heading */
.index-card { background-color: var(--card); transform: rotate(0.6deg); border-radius: var(--radius);
  box-shadow: 0 1px 0 #ddd3bf, var(--paper-shadow);
  background-image: radial-gradient(ellipse at 15% 0%, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0) 55%), var(--fibre); }
.index-card h2 { margin: 0 -22px; padding: 0 22px 14px; border-bottom: 2px solid var(--card-margin); }
.index-card .sub { margin-top: 16px; }
.signup-form { margin-top: 14px; }
.field label { display: block; margin-bottom: 6px; font-size: var(--fs-small); font-weight: 700; line-height: 1.3; }
/* a line to write on, at the body's step (18 px and up), so a phone does not zoom into it */
.field input { width: 100%; min-height: 48px; padding: 8px 2px 6px; border: 0; border-bottom: 2.5px solid var(--ink); border-radius: 0; background: transparent; color: var(--ink); font-family: var(--record); font-size: var(--fs-body); }
.field input:focus-visible { outline: 3px solid var(--focus-ink); outline-offset: 2px; }
/* a refused address: the line turns to the stamp's red and thickens, and the words under the button say why */
.field input[aria-invalid="true"] { border-bottom-color: var(--focus-ink); border-bottom-width: 4px; }
.consent { margin: 12px 0 18px; max-width: 26.5em; font-size: var(--fs-small); line-height: 1.45; color: var(--ink-soft); text-wrap: pretty; }
.signup-status:not(:empty) { margin-top: 14px; font-size: var(--fs-body); font-weight: 700; line-height: 1.4; text-wrap: pretty; }
.signup-status.bad { color: var(--focus-ink); }
.note-ink { margin-top: 12px; font-weight: 700; }
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* buttons, two kinds, one height and one radius: ink on paper (the next step), and the quiet outline. Controls are
   the record's voice. */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 8px 22px; border: 2px solid var(--ink); border-radius: var(--radius); background: var(--ink); color: var(--ballot); font-family: var(--record); font-size: 1rem; font-weight: 700; line-height: 1.2; text-decoration: none; cursor: pointer; }
.btn:hover { background: #3a2f25; border-color: #3a2f25; }
.btn.quiet { background: transparent; color: var(--ink); }
.btn.quiet:hover { background: rgba(35, 28, 22, 0.08); border-color: var(--ink); }
.btn[aria-disabled="true"] { cursor: progress; }

/* ---------- the foot: a colophon on the table, one block on the page's column, set like a title page. At the left
   the title, its byline and the way on; at the right the paper's credit. The record's voice at the note's step, soft.
   Its words do not change. ---------- */
.foot { max-width: calc(var(--col) + 2 * var(--gutter)); margin: clamp(64px, 8vw, 104px) auto 0; padding: 0 var(--gutter) 56px; color: var(--text-soft); }
.foot-in { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; padding-top: 24px; border-top: 1px solid rgba(214, 203, 187, 0.22); }
.foot-title { line-height: 1.1; }
/* the site's name, small: the display's cut, with its optical size set by hand for this size */
.foot-title a { display: inline-flex; align-items: center; min-height: 40px; font-family: var(--story); font-size: var(--fs-card); font-weight: 640; font-variation-settings: 'opsz' 48, 'SOFT' 80, 'WONK' 1; color: var(--text); text-decoration: none; }
.foot .byline { margin-top: 2px; max-width: 24rem; font-size: var(--fs-note); line-height: 1.5; color: var(--text); text-wrap: balance; }
.foot .byline em { color: var(--text-soft); }
.foot nav { margin-top: 8px; }
.foot nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0 24px; }
.foot nav a { display: inline-block; padding: 9px 0; color: var(--text); font-size: var(--fs-small); font-weight: 700; text-decoration-thickness: 1px; }
.foot nav a:hover, .foot-title a:hover { text-decoration-thickness: 2px; }
.foot-title a:hover { text-decoration: underline; }
/* 20.5rem holds about 58 characters of the note's step */
.foot .credit { max-width: 20.5rem; font-size: var(--fs-note); line-height: 1.5; text-wrap: pretty; }
.foot .credit a { color: var(--text); }

/* ---------- the small pages: what we keep, confirmed, the way out (an index card each) ---------- */
body.small { --col: 588px; } /* a card whose lines hold about 60 characters */
.small-main { max-width: calc(var(--col) + 2 * var(--gutter)); margin: 0 auto; padding: 22px var(--gutter) 0; }
.mast { margin: 0 0 24px; line-height: 1.1; }
.mast a { display: inline-block; padding: 8px 0; font-family: var(--story); font-size: var(--fs-card); font-weight: 640; font-variation-settings: 'opsz' 48, 'SOFT' 80, 'WONK' 1; color: var(--text); text-decoration: none; }
.mast a:hover { text-decoration: underline; text-decoration-thickness: 2px; }
.slip { position: relative; color: var(--ink); padding: 28px 22px 30px; background-color: var(--card); border-radius: var(--radius); transform: rotate(-0.4deg);
  box-shadow: 0 1px 0 #ddd3bf, var(--paper-shadow);
  background-image: radial-gradient(ellipse at 15% 0%, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0) 55%), var(--fibre); }
.slip h1 { margin: 0 -22px 22px; padding: 0 22px 16px; border-bottom: 2px solid var(--card-margin); font-family: var(--story); font-size: var(--fs-title); line-height: 1.08; font-weight: 580; letter-spacing: -0.012em; font-variation-settings: var(--fv-title); text-wrap: balance; }
.slip p { font-size: var(--fs-body); text-wrap: pretty; }
/* what we keep: a list with hanging marks, each a small printed square */
.keep { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.keep li { position: relative; padding-left: 26px; font-size: var(--fs-body); line-height: 1.5; text-wrap: pretty; }
.keep li::before { content: ''; position: absolute; left: 2px; top: 0.58em; width: 7px; height: 7px; background: var(--card-margin); border-radius: 1px; }
.slip .contact { margin-top: 20px; padding-top: 16px; border-top: 1.5px dashed var(--paper-edge); font-size: var(--fs-small); color: var(--ink-soft); }
.to-vote { margin: 30px 0 0; }
/* the way back: the story's question, in its own voice */
.to-vote a { display: inline-block; padding: 8px 0; font-family: var(--story); font-size: var(--fs-lede); line-height: 1.2; font-weight: 580; font-variation-settings: var(--fv-lede); color: var(--text); text-decoration-thickness: 1.5px; text-underline-offset: 0.18em; }
.to-vote a:hover { text-decoration-thickness: 3px; }
#unsub-form { margin-top: 4px; }
.done, .expired { display: none; margin-top: 14px; font-size: var(--fs-body); font-weight: 700; line-height: 1.45; }
.unsub-status:not(:empty) { margin-top: 12px; font-weight: 700; }
/* the link's answer, without JavaScript too: #done and #expired come back on the address (CSS :target) */
#done:target, #expired:target, body.state-done #done, body.state-expired #expired { display: block; }
body:has(#done:target) #unsub-form, body:has(#expired:target) #unsub-form, body.state-done #unsub-form, body.state-expired #unsub-form { display: none; }
body:has(#expired:target) .ok, body.state-expired .ok { display: none; }
/* an answer that stands first on its card (after the heading's own space, or with no heading at all) */
.ok + .expired, .slip h1 ~ .done, .slip h1 ~ .expired { margin-top: 0; }

/* ---------- wider windows ---------- */
@media (min-width: 700px) {
  :root { --gutter: 24px; }
  .kicker, .what, .note { text-align: center; }
  .ballot { padding: 32px 34px 8px; }
  /* two answers lie side by side, with a printed rule between them: neither is first by scrolling. Three or more
     keep the list. */
  .answers:not(:has(> li:nth-child(3))) { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .answers:not(:has(> li:nth-child(3))) li + li { border-top: 0; border-left: 1.5px solid var(--rule); }
  .answers:not(:has(> li:nth-child(3))) li:first-child .answer { padding-right: 24px; }
  .answers:not(:has(> li:nth-child(3))) li + li .answer { padding-left: 24px; padding-right: 0; }
  .answers:not(:has(> li:nth-child(3))) .answer { height: 100%; align-content: start; padding-top: 18px; padding-bottom: 18px; }
  .count { text-align: center; }
  .note-paper, .index-card { padding: 30px 30px 32px; }
  .index-card h2 { margin: 0 -30px; padding: 0 30px 14px; }
  .slip { padding: 32px 34px 34px; }
  .slip h1 { margin: 0 -34px 24px; padding: 0 34px 16px; }
}
@media (min-width: 820px) {
  .desk { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; }
  /* before a vote only the card is on the desk: it sits in the middle */
  .desk:has(> #share[hidden]) { grid-template-columns: minmax(0, 520px); justify-content: center; }
  .foot-in { grid-template-columns: minmax(0, 1fr) minmax(0, 20.5rem); gap: 48px; align-items: start; }
  .foot .credit { padding-top: 12px; } /* its first line level with the title's */
  body.small .foot-in { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  body.small .foot .credit { padding-top: 0; }
}
/* a large window: the column grows a little with it */
@media (min-width: 1600px) {
  :root { --col: 960px; }
}
/* the kicker may run past the column on one line, under the picture, like a caption under a plate */
@media (min-width: 1100px) {
  .kicker { margin: 0 calc((var(--col) - min(100vw - 2 * var(--gutter), 1280px)) / 2); }
}

/* ---------- reduced motion: nothing moves at all (the device's setting, or the site's own toggle: html.reduced) ---------- */
html.reduced *, html.reduced *::before, html.reduced *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
@media (prefers-reduced-motion: reduce) {
  html:not(.motion-full) *, html:not(.motion-full) *::before, html:not(.motion-full) *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
