/* Hallmark · shape: Workbench · genre: playful · theme: Paste-up (deal 1/3, seed random-name-picker-group-a8be·46fb0dce·2026-12-05·r1) · job: try · draw: manual
 * hero: the head over the list sheet and the fluorescent slip that names who goes next · nav: edge-aligned, the wordmark and two links · footer: a ruled note over the credit lines · imagery: none, the names on paper slips are the picture · signature: the picked name in League Gothic on the one fluorescent slip, a degree off square and set at a new tilt on every pick · pasteup: kraft, no fibre wash (owner rule: nothing behind text)
 * axes: mid/display-condensed/chromatic-yellow · posture: committed · contrast: pass · fold: pass · v2.0.0 */
/* Hallmark · pre-emit critique: P4 H4 E4 S4 R3 V4 · weakest: R, one picker and one page on its rule; the paper slips carry the look */
/* Hallmark · waive 77 · every page · a picker and a page on its rule, not a landing strip */
/* Hallmark · waive 44c · every page · the list sheet and the fluorescent slip are the first screen's visual; on the rule page the head stands over its steps */
/* Hallmark · waive 79 · the picker · the space under the groups is where more groups land as the list grows */
/* Hallmark · waive 44a · the picker · the head sits high on purpose: the list and the slip start right under it, so the first screen is the tool */
/* Hallmark · waive 59 · the picker · the 40px gap parts the head from the list and slip it introduces, one piece read top to bottom; the groups after it keep their 120px */
:root {
  color-scheme: light;
  --space-3xs: 2px; --space-2xs: 4px; --space-xs: 8px; --space-sm: 12px; --space-md: 16px; --space-lg: 24px; --space-xl: 40px; --space-2xl: 64px; --space-3xl: 96px; --space-4xl: 144px;
  --text-xs: 0.8125rem; --text-sm: 0.875rem; --text-md: 1rem; --text-lg: 1.25rem; --text-xl: 1.5625rem; --text-2xl: 1.953rem; --text-3xl: 2.441rem;
  --text-display-s: clamp(2.25rem, 4vw + 0.5rem, 3.75rem); --text-display: clamp(2.75rem, 5vw + 1rem, 5.25rem);
  --text-section: clamp(2rem, 2.5vw + 1rem, 3.5rem); --text-title: clamp(1.25rem, 0.75vw + 0.875rem, 1.625rem); --text-lead: clamp(1.125rem, 0.35vw + 1rem, 1.375rem);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1); --ease-in: cubic-bezier(0.7, 0, 0.84, 0); --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-micro: 120ms; --dur-short: 220ms; --dur-long: 420ms;
  --color-error: oklch(52% 0.19 27); --color-success: oklch(50% 0.12 150);
  --container: 1440px; --gutter: 64px; --gap-columns: 32px; --section-gap-s: 120px; --section-gap: 144px; --section-gap-l: 176px;
  --z-base: 1; --z-raised: 10; --z-dropdown: 100; --z-sticky: 200; --z-sticky-nav: 300; --z-modal: 400; --z-toast: 500; --z-tooltip: 600;
  --color-paper: oklch(73% 0.068 70); --color-paper-2: oklch(66% 0.072 68); --color-paper-3: oklch(97% 0.008 90);
  --color-ink: oklch(17% 0.01 60); --color-ink-2: oklch(24% 0.014 60); --color-muted: oklch(28% 0.026 62);
  --color-rule: oklch(50% 0.055 68); --color-rule-2: oklch(84% 0.012 85);
  --color-accent: oklch(93% 0.2 112); --color-accent-ink: oklch(17% 0.01 60); --color-focus: oklch(17% 0.01 60);
  --font-display: "League Gothic", Impact, sans-serif; --font-body: "Newsreader", Georgia, serif;
  --radius-card: 0; --radius-pill: 999px; --rule-hair: 1px;
  --shadow-card: 0 1px 0 oklch(18% 0.01 60 / 0.2), 0 4px 10px oklch(18% 0.01 60 / 0.12);
  --shadow-sheet: 0 14px 30px oklch(18% 0.01 60 / 0.26), 0 2px 4px oklch(18% 0.01 60 / 0.14);
  --tracking-display: 0.01em; --display-weight: 400;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: clip; }
html { scrollbar-color: var(--color-muted) var(--color-paper); scroll-padding-top: var(--space-3xl); }
body { margin: 0; background: var(--color-paper); color: var(--color-ink); font-family: var(--font-body); font-size: var(--text-md); line-height: 1.55; -webkit-font-smoothing: antialiased; caret-color: var(--color-accent); }
::selection { background: color-mix(in oklab, var(--color-accent) 70%, transparent); color: var(--color-ink); }
:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.16em; }
h1, h2, h3 { margin: 0; font-family: var(--font-display); font-weight: var(--display-weight, 700); font-synthesis: none; letter-spacing: var(--tracking-display); line-height: 1.05; overflow-wrap: break-word; min-width: 0; text-wrap: balance; }
h1 { max-width: 20ch; font-size: var(--text-display); } h2 { max-width: 30ch; font-size: var(--text-section); } h3 { max-width: 40ch; font-size: var(--text-title); line-height: 1.2; }
.lead { font-size: var(--text-lead); line-height: 1.45; max-width: 52ch; }
p { margin: 0; text-wrap: pretty; }
p:not([class]) { max-width: 65ch; }
img, video { max-width: 100%; height: auto; display: block; }
svg { display: block; }
[hidden] { display: none !important; }
button, input, select, textarea { font: inherit; }
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); box-sizing: border-box; }
.num, .figure, td.num { font-variant-numeric: tabular-nums; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
[data-slot] { position: relative; overflow: hidden; background: linear-gradient(160deg, var(--color-paper-2, var(--color-paper)), var(--color-paper-3, var(--color-paper))); }
[data-slot] > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
[data-slot]:has(> img) > :not(img):not([data-keep]) { display: none !important; }
@media (max-width: 60rem) { :root { --gutter: 24px; --section-gap-s: 80px; --section-gap: 96px; --section-gap-l: 120px; } }
@media (max-width: 40rem) { :root { --gutter: 16px; --section-gap-s: 56px; --section-gap: 72px; --section-gap-l: 96px; --gap-columns: 16px; } }
@media (prefers-reduced-motion: reduce) { *:not(.keep-motion), *:not(.keep-motion)::before, *:not(.keep-motion)::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; } }
/* photographs: mono con=45 */
[data-slot] > img { filter: grayscale(1) contrast(1.45); }

@font-face { font-family: "League Gothic"; src: url("/fonts/league-gothic-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url("/fonts/newsreader-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url("/fonts/newsreader-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }

body { font-size: 1.125rem; line-height: 1.5; color: var(--color-ink); }
h1, h2 { font-weight: 400; text-transform: uppercase; line-height: 1; }
h1 { line-height: 0.92; }
h3 { font: 500 var(--text-title)/1.2 var(--font-body); letter-spacing: 0; }
.num { font-variant-numeric: tabular-nums; }
.skip { position: absolute; left: var(--space-md); top: -100px; background: var(--color-ink); color: var(--color-paper-3); padding: var(--space-xs) var(--space-md); z-index: var(--z-modal); }
.skip:focus-visible { top: var(--space-md); }
a { color: var(--color-ink); text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 3px; }

/* the bar */
.bar { border-bottom: var(--rule-hair) solid var(--color-rule); }
.bar__in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-2xs) var(--space-xl); padding-block: var(--space-sm); }
.wordmark { font-family: var(--font-display); text-transform: uppercase; font-size: 2.25rem; line-height: 1; color: var(--color-ink); text-decoration: none; letter-spacing: var(--tracking-display); }
.bar__nav { display: flex; flex-wrap: wrap; gap: 0 var(--space-lg); }
.bar__nav a { min-height: 44px; display: inline-flex; align-items: center; text-decoration: none; font-weight: 500; font-size: 1rem; }
.bar__nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.3em; }

/* the head */
.hero { padding-block: var(--space-2xl) var(--space-xl); }
.hero h1 { font-size: clamp(3.4rem, 7.4vw, 7.25rem); max-width: 16ch; }
.hero .lead { margin-top: var(--space-md); max-width: 40ch; }
.head { padding-block: var(--space-3xl) var(--space-2xl); }
.head h1 { font-size: clamp(3rem, 6.4vw, 6rem); max-width: 16ch; }
.head .lead { margin-top: var(--space-md); max-width: 50ch; }

/* controls: paper on a hard ink offset */
.btn { border: 0; border-radius: 0; min-height: 44px; padding: var(--space-sm) var(--space-md); font: 500 15px/1.2 var(--font-body); color: var(--color-ink); background: var(--color-paper-3); box-shadow: 4px 4px 0 var(--color-ink); cursor: pointer; transition: translate var(--dur-micro) var(--ease-out), box-shadow var(--dur-micro) var(--ease-out); }
.btn:hover { translate: 1px 1px; box-shadow: 3px 3px 0 var(--color-ink); }
.btn:active { translate: 4px 4px; box-shadow: none; }
.btn:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 3px; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: 0.5; cursor: not-allowed; translate: none; box-shadow: 4px 4px 0 var(--color-muted); }
input:disabled, textarea:disabled { opacity: 0.5; cursor: not-allowed; }
.btn--primary { background: var(--color-accent); color: var(--color-accent-ink); font-size: 1.125rem; padding-inline: var(--space-lg); }
.btn--secondary { background: var(--color-paper-3); }
.check { display: flex; align-items: center; gap: var(--space-sm); min-height: 44px; font-weight: 500; font-size: 1rem; cursor: pointer; }
.check input { width: 22px; height: 22px; margin: 0; accent-color: var(--color-ink); flex: none; }
.check input:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 3px; }

/* the work: the list on copy paper, the slip on the fluorescent */
.work { padding-bottom: var(--section-gap-s); }
.work__in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-2xl); align-items: start; }
.sheet { background: var(--color-paper-3); box-shadow: var(--shadow-sheet); padding: var(--space-xl); }
.list { display: grid; gap: var(--space-sm); }
.list__label { font-weight: 500; font-size: 1rem; }
.list textarea { width: 100%; min-height: 17rem; resize: vertical; padding: var(--space-sm) var(--space-md); border: 1px solid var(--color-ink); border-radius: 0; background: var(--color-paper-3); color: var(--color-ink); font: 400 1.125rem/1.5 var(--font-body); }
.list textarea:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 3px; }
.list textarea::placeholder { color: var(--color-muted); }
.list__count { font-weight: 500; }
.list__twice { padding: var(--space-xs) var(--space-sm); border: var(--rule-hair) solid var(--color-ink); }
.keep { display: grid; gap: var(--space-sm); margin-top: var(--space-xs); padding-top: var(--space-md); border-top: var(--rule-hair) solid var(--color-rule-2); }
.keep__acts { display: flex; flex-wrap: wrap; gap: var(--space-md); }
.keep__say { font-size: 1rem; }

.picker { display: grid; gap: var(--space-lg); justify-items: start; }
.slip { --r: -1.5deg; width: 100%; min-height: 15rem; display: grid; place-items: center; padding: var(--space-xl) var(--space-lg); background: var(--color-accent); color: var(--color-accent-ink); box-shadow: var(--shadow-sheet); rotate: var(--r); transition: rotate var(--dur-short) var(--ease-out); }
.slip__name { font-family: var(--font-display); text-transform: uppercase; font-size: clamp(3.5rem, 7.5vw, 7.5rem); line-height: 0.92; text-align: center; overflow-wrap: anywhere; max-width: 100%; letter-spacing: var(--tracking-display); }
.acts { display: flex; flex-wrap: wrap; gap: var(--space-md); margin-top: var(--space-sm); }
.picker__say { font-weight: 500; }
.picked { margin: 0; padding: 0 0 0 1.4em; columns: 2; column-gap: var(--space-xl); font-size: 1rem; }
.nojs { margin-top: var(--space-lg); font-weight: 500; }

/* the groups */
.groups { padding-block: var(--section-gap-s); border-top: var(--rule-hair) solid var(--color-rule); }
.groups h2 { font-size: var(--text-section); }
.split { display: flex; flex-wrap: wrap; align-items: end; gap: var(--space-lg) var(--space-2xl); margin-top: var(--space-lg); }
.split__how { margin: 0; padding: 0; border: 0; display: grid; gap: var(--space-xs); }
.split__how legend { padding: 0; margin-bottom: var(--space-xs); font-weight: 500; font-size: 1rem; }
.opt { display: flex; align-items: center; gap: var(--space-sm); min-height: 44px; }
.opt input[type="radio"] { width: 20px; height: 20px; margin: 0; accent-color: var(--color-ink); }
.opt label { font-size: 1rem; min-width: 12.5rem; cursor: pointer; }
.opt input[type="number"], .split__seed input { height: 44px; padding: 0 var(--space-sm); border: 1px solid var(--color-ink); border-radius: 0; background: var(--color-paper-3); color: var(--color-ink); font: 500 1.125rem/1 var(--font-body); font-variant-numeric: tabular-nums; }
.opt input[type="number"] { width: 5.5rem; }
.opt input:focus-visible, .split__seed input:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 3px; }
.split__seed { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-md); }
.seed { font-weight: 500; font-size: 1rem; }
.split__seed input { width: 9rem; }
.split__say { margin-top: var(--space-lg); font-size: var(--text-lg); font-weight: 500; }
.print-only { display: none; }

.board { list-style: none; margin: var(--space-xl) 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr)); gap: var(--space-xl); }
.group { background: var(--color-paper-3); box-shadow: var(--shadow-card); padding: var(--space-lg); }
.group:nth-child(2) { rotate: 0.8deg; }
.group h3 { font-size: var(--text-title); }
.group__n { font-size: 1rem; margin-top: var(--space-3xs); padding-bottom: var(--space-sm); border-bottom: var(--rule-hair) solid var(--color-rule-2); }
.group__names { list-style: none; margin: var(--space-sm) 0 0; padding: 0; display: grid; gap: var(--space-2xs); font-size: 1.25rem; }
.groups__note { margin-top: var(--space-xl); }

/* the rule page */
.sec { padding-block: var(--section-gap); border-top: var(--rule-hair) solid var(--color-rule); }
.sec--first { padding-top: var(--space-2xl); }
.sec h2 { font-size: var(--text-section); }
.sec h2 + * { margin-top: var(--space-lg); }
.sec__lead { max-width: 60ch; }
.sec__lead + .board { margin-top: var(--space-lg); }
.sec__note { margin-top: var(--space-lg); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-md); max-width: 62ch; }
.steps li { padding: var(--space-md) var(--space-lg); background: var(--color-paper-3); box-shadow: var(--shadow-card); }
.steps b { font-weight: 500; }
.steps--n { counter-reset: step; }
.steps--n li { counter-increment: step; display: grid; grid-template-columns: 2.5rem minmax(0, 1fr); column-gap: var(--space-sm); }
.steps--n li::before { content: counter(step); font-family: var(--font-display); font-size: 2.25rem; line-height: 1; grid-row: span 2; }

.foot { border-top: var(--rule-hair) solid var(--color-rule); }
.foot__in { padding-block: var(--space-xl); display: grid; gap: var(--space-xs); font-size: 1rem; }
.foot__note, .foot__line { margin: 0; max-width: 72ch; }

@media (max-width: 900px) {
  .work__in { grid-template-columns: minmax(0, 1fr); gap: var(--space-xl); }
}
@media (max-width: 600px) {
  .hero { padding-block: var(--space-xl) var(--space-lg); }
  .head { padding-block: var(--space-xl) var(--space-lg); }
  .sheet { padding: var(--space-lg); }
  .list textarea { min-height: 13rem; }
  .slip { min-height: 11rem; }
  .opt label { min-width: 0; flex: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .btn, .slip { transition: none; }
  .btn:hover, .btn:active { translate: none; }
}

/* the print: the groups on A4, white paper, no controls */
@media print {
  @page { size: A4; margin: 12mm; }
  html, body, main, .groups, .group { background: none !important; }
  body { font-size: 11pt; color: var(--color-ink); }
  .skip, .bar, .foot, .hero, .work, .split, .split__say, .groups__note, .groups h2, noscript { display: none !important; }
  .groups { padding: 0; border: 0; }
  .groups .container { padding: 0; max-width: none; }
  .print-only { display: block; font: 500 14pt/1.3 var(--font-body); margin-bottom: 6mm; }
  .board { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6mm; margin: 0; }
  .group { box-shadow: none; border: 1pt solid var(--color-ink); rotate: none !important; padding: 4mm; break-inside: avoid; }
  .group h3 { font-size: 14pt; }
  .group__n { font-size: 10pt; }
  .group__names { font-size: 12pt; }
}
