/* Hallmark · shape: Workbench · genre: editorial · theme: Loom (deal 1/3, seed exam-seating-plan-maker-dd4e·399001b3·2026-12-05·r0) · job: try · draw: manual
 * hero: the head over the rooms and classes and the plan that answers them · nav: edge-aligned, the wordmark and two links · footer: a ruled note over the credit lines · imagery: none, each room drawn as a ruled seat grid · signature: the room as a ruled sheet under an indigo front line, a roll number in mono on every seat, redrawn as you type · loom: ecru, no photographs (the plan is the picture)
 * axes: light/roman-serif/cool · posture: committed · contrast: pass · fold: pass · v2.0.0 */
/* Hallmark · pre-emit critique: P4 H4 E4 S4 R3 V4 · weakest: R, one maker and one page on its rule; the ruled seat grid carries the look */
/* Hallmark · waive 77 · every page · a plan maker and a page on its rule, not a landing strip: the grids are as wide as their benches need */
/* Hallmark · waive 44c · every page · the head stands over the maker, whose inputs and seat grid fill the rest of the first screen; on the rule page the head stands over the rule */
/* Hallmark · waive 79 · the maker · the space under the inputs is where the plan grows as rooms are added */
/* Hallmark · waive 44a · the maker · the head sits high on purpose: the rooms and classes start right under it, so the first screen is the tool */
/* Hallmark · waive 59 · the maker · the 40px gap parts the head from the maker it introduces, one piece read top to bottom; the sections after it keep their 120px */
/* Hallmark · dismissed 58 · the maker · the screen holds the inputs and the plan they make: roll numbers a visitor types and reads back */
: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(95.5% 0.014 85); --color-paper-2: oklch(92% 0.022 84); --color-paper-3: oklch(85% 0.032 80);
  --color-ink: oklch(21% 0.012 60); --color-ink-2: oklch(31% 0.012 60); --color-muted: oklch(46% 0.014 62);
  --color-rule: oklch(83% 0.022 84); --color-rule-ink: oklch(21% 0.012 60);
  --color-accent: oklch(34% 0.115 267); --color-accent-2: oklch(43% 0.125 267); --color-accent-ink: oklch(95.5% 0.014 85); --color-focus: oklch(43% 0.15 267);
  --font-display: "Libre Caslon Display", "Libre Caslon Text", ui-serif, Georgia, serif; --font-body: "Hanken Grotesk", ui-sans-serif, system-ui, sans-serif;
  --font-outlier: "DM Mono", ui-monospace, monospace;
  --radius-card: 0; --radius-pill: 0; --rule-hair: 1px; --rule-ink: 2px;
  --shadow-card: none;
  --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) 22%, 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: natural sat=-12 con=-4 */
[data-slot] > img { filter: saturate(0.88) contrast(0.96); }

:root { --color-sand: var(--color-paper-3); }

@font-face { font-family: "Libre Caslon Display"; src: url("/fonts/caslon-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Hanken Grotesk"; src: url("/fonts/hanken-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Hanken Grotesk"; src: url("/fonts/hanken-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "DM Mono"; src: url("/fonts/dmmono-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }

body { color: var(--color-ink-2); font-size: 1.0625rem; }
h1, h2 { font-weight: 400; color: var(--color-ink); line-height: 1.04; }
h3 { font-family: var(--font-body); font-weight: 500; font-size: var(--text-title); letter-spacing: 0; line-height: 1.25; color: var(--color-ink); }
.num { font-variant-numeric: tabular-nums; }
.roll { font-family: var(--font-outlier); font-variant-numeric: tabular-nums; }
.skip { position: absolute; left: var(--space-md); top: -100px; background: var(--color-ink); color: var(--color-paper); 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: 2px; text-decoration-color: var(--color-ink); transition: text-decoration-color var(--dur-short) var(--ease-out); }
a:hover { text-decoration-color: var(--color-accent); }

.bar { border-bottom: var(--rule-ink) solid var(--color-rule-ink); }
.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); font-size: 2rem; line-height: 1; color: var(--color-ink); text-decoration: none; }
.wordmark span { color: var(--color-accent); }
.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; color: var(--color-ink-2); }
.bar__nav a:active { transform: translateY(1px); }
.bar__nav a[aria-current="page"] { color: var(--color-ink); text-decoration: underline; text-decoration-color: var(--color-accent); text-decoration-thickness: 2px; text-underline-offset: 0.4em; }

.hero { padding-block: var(--space-2xl) 0; }
.work { padding-block: var(--space-xl) var(--section-gap-s); }
.hero h1 { font-size: clamp(2.75rem, 5vw, 4.5rem); max-width: 24ch; }
.hero .lead { margin-top: var(--space-md); color: var(--color-muted); max-width: 62ch; }

/* the maker: the inputs, and the plan that answers them */
.maker { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-xl) var(--space-2xl); align-items: start; }
.ins { display: grid; gap: var(--space-xl); }
.set { margin: 0; padding: var(--space-md) 0 0; border: 0; border-top: var(--rule-ink) solid var(--color-rule-ink); display: grid; gap: var(--space-sm); min-width: 0; }
.set { grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
.set > * { grid-column: 1 / -1; }
.set > legend { float: left; grid-column: 1; padding: 0; font-weight: 500; font-size: var(--text-lg); color: var(--color-ink); }
.set > select { grid-column: 2; width: auto; padding-right: var(--space-lg); }
.line { display: grid; grid-template-columns: minmax(0, 1fr) repeat(3, 4.25rem); gap: var(--space-xs) var(--space-md); align-items: end; }
.line--cls { grid-template-columns: var(--space-lg) minmax(0, 1fr) repeat(3, 4.25rem); align-items: center; }
.line--head { align-items: end; }
.line--head span { font-size: var(--text-xs); font-weight: 500; line-height: 1.25; color: var(--color-muted); }
.cls { display: grid; gap: var(--space-2xs); padding-block: var(--space-sm) var(--space-2xs); border-top: var(--rule-hair) solid var(--color-rule); }
.cls .count-line, .cls .paste { padding-left: var(--space-xl); }
.field { display: grid; gap: var(--space-3xs); font-size: var(--text-sm); font-weight: 500; color: var(--color-muted); min-width: 0; }
input, select, textarea { font-size: var(--text-md); color: var(--color-ink); background: var(--color-paper); border: 1px solid var(--color-muted); border-radius: 0; padding: var(--space-xs) var(--space-sm); min-width: 0; width: 100%; }
input, select { height: 44px; }
textarea { resize: vertical; line-height: 1.5; font-family: var(--font-outlier); }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
input:disabled, select:disabled, textarea:disabled { opacity: 0.5; cursor: not-allowed; }
.paste summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; font-size: var(--text-sm); font-weight: 500; color: var(--color-ink); text-decoration: underline; text-decoration-color: var(--color-rule-ink); text-underline-offset: 0.3em; }
.paste summary:hover { text-decoration-color: var(--color-accent); }
.paste summary:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.count-line { font-size: var(--text-sm); color: var(--color-muted); }
.tag { display: inline-flex; align-items: center; justify-content: center; min-width: 1.5em; height: 1.5em; font-family: var(--font-body); font-weight: 500; font-size: 0.8em; line-height: 1; color: var(--color-accent-ink); background: var(--color-accent); }

.outs { display: grid; gap: var(--space-md); min-width: 0; }
.outs > * { min-width: 0; }
.outs__h { font-size: var(--text-section); }
.say { font-size: var(--text-lg); line-height: 1.4; color: var(--color-ink); max-width: 48ch; }
.acts { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-md) var(--space-lg); }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 var(--space-lg); font: 500 var(--text-sm)/1 var(--font-body); border: 0; border-radius: 0; background: var(--color-accent); color: var(--color-accent-ink); cursor: pointer; transition: background-color var(--dur-short) var(--ease-out), border-color var(--dur-short) var(--ease-out); }
.btn:hover { background: var(--color-accent-2); }
.btn:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 3px; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn--link { min-height: 44px; padding: 0; background: none; color: var(--color-ink); border-bottom: 2px solid var(--color-ink); }
.btn--link:hover { background: none; border-color: var(--color-accent); }
.note { font-size: var(--text-sm); color: var(--color-muted); }
.note:empty { display: none; }

.waiting { padding: var(--space-md) var(--space-lg); background: var(--color-paper-2); border-top: var(--rule-ink) solid var(--color-error); display: grid; gap: var(--space-xs); }
.waiting h3 { color: var(--color-error); }
.waiting ul { margin: 0; padding: 0; list-style: none; display: grid; gap: var(--space-2xs); }

/* a room: the ruled seat grid under the front line */
.rooms { display: grid; gap: var(--space-2xl); min-width: 0; }
.room { display: grid; gap: var(--space-xs); min-width: 0; }
.room__meta { font-size: var(--text-sm); color: var(--color-muted); }
.room__who { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: var(--space-2xs) var(--space-lg); font-size: var(--text-sm); color: var(--color-ink-2); }
.front { margin-top: var(--space-sm); padding-top: var(--space-2xs); border-top: 4px solid var(--color-accent); font-size: var(--text-xs); font-weight: 500; color: var(--color-muted); text-align: center; }
.t-wrap { overflow-x: auto; }
.t-wrap:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.plan { border-collapse: collapse; width: 100%; }
.plan th, .plan td { padding: var(--space-2xs) var(--space-xs); text-align: center; border: var(--rule-hair) solid var(--color-rule); white-space: nowrap; }
.plan thead th { font-size: var(--text-xs); font-weight: 500; color: var(--color-muted); }
.plan thead tr:first-child th { color: var(--color-ink); font-size: var(--text-sm); }
.plan thead td { border: 0; }
.plan tbody th, .plan .plan__row { text-align: left; font-size: var(--text-xs); font-weight: 500; color: var(--color-muted); border-left: 0; padding-left: 0; }
.plan .b0 { border-left: var(--rule-ink) solid var(--color-rule-ink); }
.plan tr > :last-child { border-right: var(--rule-ink) solid var(--color-rule-ink); }
.plan thead tr > :last-child { border-right: 0; }
.plan tbody tr:last-child td { border-bottom: var(--rule-ink) solid var(--color-rule-ink); }
.plan thead tr:last-child th { border-bottom: var(--rule-ink) solid var(--color-rule-ink); }
.s { height: 3rem; min-width: 4.5rem; color: var(--color-ink); }
.s .tag { margin-right: var(--space-2xs); }
.s .roll { font-size: var(--text-md); }
.c1 { background: var(--color-paper-2); }
.c2 { background: var(--color-sand); }
.c3 { background: var(--color-paper-2); }
.s--empty { font-size: var(--text-xs); color: var(--color-muted); }

.head { padding-block: var(--space-3xl) var(--space-2xl); }
.head h1 { font-size: clamp(2.5rem, 5vw, 4.2rem); max-width: 18ch; }
.head .lead { margin-top: var(--space-md); color: var(--color-muted); max-width: 56ch; }

.sec { padding-block: var(--section-gap-s); 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; margin-bottom: var(--space-xl); }
.sec__note { margin-top: var(--space-xl); max-width: 64ch; }
.rooms--one { max-width: 40rem; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; max-width: 66ch; border-top: var(--rule-ink) solid var(--color-rule-ink); }
.steps li { padding: var(--space-lg) 0; border-bottom: var(--rule-hair) solid var(--color-rule); }
.steps b { color: var(--color-ink); font-weight: 500; }

/* where each student sits: a ruled list a class */
.lists { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 22rem), 1fr)); gap: var(--space-xl); align-items: start; }
.list { border-collapse: collapse; width: 100%; font-size: var(--text-sm); }
.list caption { caption-side: top; text-align: left; padding-bottom: var(--space-xs); font-size: var(--text-md); font-weight: 500; color: var(--color-ink); }
.list th, .list td { padding: var(--space-2xs) var(--space-xs) var(--space-2xs) 0; text-align: left; border-bottom: var(--rule-hair) solid var(--color-rule); white-space: nowrap; }
.list thead th { font-weight: 500; color: var(--color-muted); border-bottom: var(--rule-ink) solid var(--color-rule-ink); }
.list tbody th { font-weight: 400; color: var(--color-ink); }
.list .list__room th { padding-top: var(--space-sm); font-weight: 500; color: var(--color-ink); border-bottom: var(--rule-hair) solid var(--color-rule-ink); }
.list .wait .list__room th { color: var(--color-error); }

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

@media (max-width: 1100px) {
  .maker { grid-template-columns: minmax(0, 1fr); }
  .ins { grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); align-items: start; }
}
@media (max-width: 600px) {
  .head { padding-block: var(--space-xl) var(--space-lg); }
  .hero { padding-top: var(--space-xl); }
  .line { grid-template-columns: minmax(0, 1fr) repeat(3, 3.4rem); column-gap: var(--space-xs); }
  .cls .count-line, .cls .paste { padding-left: 0; }
  .line--cls { grid-template-columns: var(--space-lg) minmax(0, 1fr) repeat(3, 3.4rem); }
  /* a room is seen whole on a phone: narrower seat cells and smaller roll numbers (print keeps its own A4 layout) */
  .plan th, .plan td { padding: var(--space-2xs) var(--space-3xs); }
  .plan tbody th, .plan .plan__row { padding-right: var(--space-2xs); }
  .s { min-width: 2.75rem; }
  .s .roll { font-size: var(--text-xs); }
  .s .tag { display: flex; width: fit-content; margin: 0 auto var(--space-3xs); }
  .s .roll { display: block; }
}
@media print {
  @page { size: A4; margin: 12mm; }
  /* white paper: the page's tinted surfaces are not printed, only the class shading in the cells */
  html, body, main, .work, .maker, .rooms, .room, .t-wrap, .where { background: none !important; }
  body { font-size: 11pt; }
  .skip, .bar, .foot, .hero, .ins, .outs__h, .acts, .note, .say { display: none !important; }
  .room h3 { font-size: 20pt; }
  .hero, .work, .sec { padding: 0; border: 0; }
  .maker { display: block; margin: 0; }
  .rooms { display: block; }
  .room { break-inside: avoid; }
  .room + .room { break-before: page; margin-top: 0; }
  .where { break-before: page; }
  .where h2 { font-size: 20pt; }
  .t-wrap { overflow: visible; }
  .plan th, .plan td { border-color: var(--color-ink); }
  .tag { color: var(--color-ink); background: none; border: 1px solid var(--color-ink); }
  .lists { display: block; columns: 2; column-gap: 10mm; }
  .list-wrap { break-inside: avoid-column; margin-bottom: 6mm; }
}
