/* Hallmark · shape: departure boards, the site read like the app's Today screen · genre: modern-minimal · theme: custom (inherited from the app's Wayfind tokens, ui/theme/Color.kt and Type.kt) · job: try · idea: "the website is a board you read the way you read the app: one ink plate, one amber figure, rows between rules" · vibe: "transit signage for a student's week"
 * paper: oklch(95.7% 0.006 255) · accent: oklch(51.2% 0.216 266) cobalt, amber oklch(80.6% 0.158 82) only for figures on ink · display: Chivo Mono 800 · body: Chivo Mono 400/500 · hero: name, one sentence and the download on the left, the Today screen built at phone size on the right · nav: the app's screen header, wordmark and one link over a 2px ink rule · footer: a mast, the wordmark over the unofficial line and two links · imagery: the product built (Today screen, illustrative, data-slot today-screen) · signature: the next-class plate with its amber countdown
 * axes: light/mono-heavy/cool · posture: restrained · contrast: pass · fold: pass · v2.0.0 */
/* Hallmark · pre-emit critique: P4 H5 E4 S5 R4 V4 · weakest: E, a built mock of an Android app that cannot be captured here; kept it inside a data-slot, captioned as illustrative, so a real screenshot replaces it */
/* Hallmark · waive 77 · one line and one action in an ink plate, once · the feedback board closes the page; the download already sits in the hero and in install step 1 */
/* Hallmark · dismissed 58 · the 85-word window at 1440 holds the two feature boards, ten rows the owner listed, kept at their true count */
/* Hallmark · dismissed render-font · only the file:// shots miss Chivo Mono; served over HTTP the face loads (document.fonts.check passes) */
/* Hallmark · waive 84 · data-slot today-screen holds a built Today screen · the Android app cannot run in this build and a real capture would show a student's own timetable */

/* ------------------------------------------------------------------ font */
@font-face {
  font-family: "Chivo Mono";
  src: url("./fonts/chivo-mono.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* ------------------------------------------------------------------ tokens (from the app's Wayfind palette) */
: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;

  /* the app's scale, about 1.2: 12 / 14 / 16 / 19 / 23 / 28 / 34 / 40 */
  --text-xs: 0.75rem; --text-sm: 0.875rem; --text-md: 1rem; --text-lg: 1.1875rem; --text-xl: 1.4375rem; --text-2xl: 1.75rem; --text-3xl: 2.125rem; --text-figure: 2.5rem;
  --text-display: clamp(2.75rem, 5vw + 1rem, 5.25rem);
  --text-section: clamp(1.75rem, 2.4vw + 1rem, 3rem);
  --text-lead: clamp(1.0625rem, 0.4vw + 0.95rem, 1.25rem);
  --tracking-display: -0.03em;

  --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: 100ms; --dur-short: 180ms; --dur-long: 360ms;

  --container: 1280px; --gutter: 64px; --gap-columns: 40px; --section-gap-s: 96px; --section-gap: 144px;
  --z-base: 1; --z-raised: 10; --z-sticky-nav: 300; --z-toast: 500;

  /* palette */
  --color-paper: oklch(95.7% 0.006 255);     /* paper  #EEF1F5 */
  --color-paper-2: oklch(92.1% 0.009 258);   /* paper2 #E1E5EB */
  --color-paper-3: oklch(99.4% 0.002 248);   /* paper3 #FCFDFE */
  --color-ink: oklch(18.1% 0.016 262);       /* ink    #0E1219 */
  --color-ink-2: oklch(30.4% 0.016 260);     /* ink2   #2A2F37 */
  --color-muted: oklch(50.5% 0.02 259);      /* muted  #5E6570 */
  --color-rule: oklch(83.1% 0.011 257);      /* rule   #C3C8CF */
  --color-accent: oklch(51.2% 0.216 266);    /* cobalt #2B55E0 */
  --color-accent-hover: oklch(45% 0.2 266);
  --color-accent-ink: oklch(99.4% 0.002 248);
  --color-amber: oklch(80.6% 0.158 82);      /* amber  #F2B425 */
  --color-on-amber: oklch(18.1% 0.016 262);
  --color-focus: oklch(51.2% 0.216 266);
  --color-border: oklch(18.1% 0.016 262);
  --color-error: oklch(18.1% 0.016 262);     /* the app writes errors in ink, with an icon, never in red */

  /* the plate: an ink box holding one instruction and its figure */
  --color-plate: oklch(18.1% 0.016 262);
  --color-plate-text: oklch(99.4% 0.002 248);
  --color-plate-muted: oklch(76.8% 0.014 258);
  --color-plate-rule: oklch(36.7% 0.017 262);
  --color-plate-focus: oklch(80.6% 0.158 82);

  /* muted per-course swatches, the only extra hues the app allows */
  --color-swatch-1: oklch(57% 0.058 252);
  --color-swatch-2: oklch(60% 0.072 135);
  --color-swatch-3: oklch(59.3% 0.066 60);

  --font-display: "Chivo Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --font-body: "Chivo Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --border: 2px; --rule-hair: 1px; --radius: 0;
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --color-paper: oklch(16.7% 0.014 258);
    --color-paper-2: oklch(21.6% 0.016 257);
    --color-paper-3: oklch(24.2% 0.017 260);
    --color-ink: oklch(96.3% 0.005 258);
    --color-ink-2: oklch(85% 0.012 260);
    --color-muted: oklch(66.1% 0.018 259);
    --color-rule: oklch(32.3% 0.018 258);
    --color-accent: oklch(62.3% 0.202 267);
    --color-accent-hover: oklch(68% 0.18 267);
    --color-accent-ink: oklch(16.7% 0.014 258);
    --color-focus: oklch(62.3% 0.202 267);
    --color-border: oklch(96.3% 0.005 258);
    --color-error: oklch(96.3% 0.005 258);
    /* at night the plate stays a dark signboard: raised fill, light lettering, amber figures */
    --color-plate: oklch(24.2% 0.017 260);
    --color-plate-text: oklch(96.3% 0.005 258);
    --color-plate-muted: oklch(66.1% 0.018 259);
    --color-plate-rule: oklch(36.7% 0.017 262);
    --color-swatch-1: oklch(71.1% 0.049 254);
    --color-swatch-2: oklch(73.9% 0.059 133);
    --color-swatch-3: oklch(71.8% 0.058 60);
  }
}

/* ------------------------------------------------------------------ base */
*, *::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-xl); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--color-paper);
  color: var(--color-ink);
  font-family: var(--font-body);
  font-size: var(--text-md);
  font-weight: 400;
  line-height: 1.55;
  font-variant-numeric: tabular-nums;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  caret-color: var(--color-accent);
}
::selection { background: color-mix(in oklab, var(--color-accent) 24%, transparent); color: var(--color-ink); }
:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
a { color: inherit; text-decoration-thickness: 2px; text-underline-offset: 0.2em; }
a:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
h1, h2, h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: var(--tracking-display);
  line-height: 1.05;
  overflow-wrap: break-word;
  min-width: 0;
  text-wrap: balance;
}
h1 { max-width: 20ch; }
h2 { max-width: 30ch; }
h3 { max-width: 40ch; }
p { margin: 0; text-wrap: pretty; }
p:not([class]) { max-width: 65ch; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img, video { max-width: 100%; height: auto; display: block; }
svg { display: block; flex-shrink: 0; }
[hidden] { display: none !important; }
button, input, select, textarea { font: inherit; color: inherit; }
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
[data-slot] { position: relative; overflow: hidden; background: var(--color-paper); }
[data-slot] > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top center; z-index: 1; }
.screen:has(> img) { aspect-ratio: 9 / 19.5; }
[data-slot]:has(> img) > :not(img):not([data-keep]) { display: none !important; }

.skip { position: absolute; left: var(--space-md); top: calc(-1 * var(--space-3xl)); z-index: var(--z-toast); padding: var(--space-xs) var(--space-md); background: var(--color-ink); color: var(--color-paper); font-weight: 800; }
.skip:focus-visible { top: var(--space-md); }

/* ------------------------------------------------------------------ controls (square, 2px ink border, all eight states) */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  min-height: 52px;
  padding: 0 var(--space-lg);
  border: var(--border) solid var(--color-border);
  border-radius: var(--radius);
  background: transparent;
  color: var(--color-ink);
  font: 800 var(--text-md)/1.2 var(--font-body);
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--dur-micro) var(--ease-out), color var(--dur-micro) var(--ease-out), transform var(--dur-micro) var(--ease-out);
}
.btn svg { width: 20px; height: 20px; }
.btn:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 3px; }
.btn:active { transform: translateY(1px); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; transform: none; }
.btn[aria-busy="true"] { cursor: progress; }
.btn--primary { background: var(--color-accent); color: var(--color-accent-ink); }
@media (hover: hover) {
  .btn:hover { background: var(--color-paper-2); }
  .btn--primary:hover { background: var(--color-accent-hover); }
  .btn:disabled:hover { background: transparent; }
  .btn--primary:disabled:hover { background: var(--color-accent); }
}

/* text link with the app's 2px underline */
.link { font-weight: 800; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.25em; transition: color var(--dur-micro) var(--ease-out); }
@media (hover: hover) { .link:hover { color: var(--color-accent); } }
.link:active { color: var(--color-accent-hover); }

/* ------------------------------------------------------------------ masthead (the app's screen header) */
.masthead { background: var(--color-paper); border-bottom: var(--border) solid var(--color-border); }
.masthead__row { display: flex; align-items: center; justify-content: space-between; gap: var(--space-md); min-height: 64px; }
.wordmark { display: inline-flex; align-items: center; gap: var(--space-sm); min-height: 48px; font-weight: 800; font-size: var(--text-lg); letter-spacing: var(--tracking-display); text-decoration: none; white-space: nowrap; }
.wordmark svg { width: 28px; height: 28px; }
.masthead__link { display: inline-flex; align-items: center; min-height: 48px; padding-inline: var(--space-2xs); font-weight: 500; white-space: nowrap; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.25em; transition: color var(--dur-micro) var(--ease-out); }
.masthead__link[aria-current="page"] { text-decoration-color: var(--color-accent); }
@media (hover: hover) { .masthead__link:hover { color: var(--color-accent); } }
.masthead__link:active { color: var(--color-accent-hover); }

/* mark colours for the inline logo */
.mark-ink { fill: var(--color-plate); }
.mark-amber { fill: var(--color-amber); }
.mark-cobalt { fill: var(--color-accent); }

/* ------------------------------------------------------------------ shared surfaces: plate, panel, board rows */
.plate { border: var(--border) solid var(--color-border); background: var(--color-plate); color: var(--color-plate-text); padding: var(--space-md); }
.plate :focus-visible { outline-color: var(--color-plate-focus); }
.plate__label { font-size: var(--text-sm); font-weight: 500; line-height: 1.25; color: var(--color-plate-muted); }
.plate__figure { font-size: var(--text-figure); font-weight: 800; line-height: 1.05; letter-spacing: var(--tracking-display); color: var(--color-amber); }

.panel { border: var(--border) solid var(--color-border); background: var(--color-paper-3); color: var(--color-ink); padding: var(--space-3xs); }
.panel__head { display: flex; align-items: center; gap: var(--space-sm); min-height: 52px; padding: var(--space-xs) var(--space-sm); border-bottom: var(--border) solid var(--color-border); }
.panel__title { flex: 1; min-width: 0; font-size: var(--text-lg); font-weight: 800; letter-spacing: var(--tracking-display); line-height: 1.2; }
.panel__count { font-size: var(--text-lg); font-weight: 800; }
.panel--ink { background: var(--color-plate); color: var(--color-plate-text); }
.panel--ink .panel__head { border-bottom-color: var(--color-plate-rule); }
.panel--ink .panel__count { color: var(--color-amber); }

.swatch { display: inline-block; width: 10px; height: 10px; flex-shrink: 0; }
.swatch--1 { background: var(--color-swatch-1); }
.swatch--2 { background: var(--color-swatch-2); }
.swatch--3 { background: var(--color-swatch-3); }

/* ------------------------------------------------------------------ hero */
.hero { padding-block: var(--space-2xl) var(--space-3xl); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-2xl); align-items: start; }
.hero__text { display: grid; gap: var(--space-lg); align-content: start; }
.hero h1 { font-size: var(--text-display); line-height: 0.98; max-width: 9ch; }
.hero__lede { max-width: 34ch; font-size: var(--text-lead); line-height: 1.5; color: var(--color-ink-2); }
.get { display: grid; gap: var(--space-sm); justify-items: start; padding-top: var(--space-xs); }
.get .btn { width: 100%; max-width: 22rem; }
.release { font-size: var(--text-sm); line-height: 1.45; color: var(--color-muted); }
.release strong { font-weight: 500; color: var(--color-ink); }
.notes { display: grid; gap: var(--space-xs); max-width: 44ch; padding-top: var(--space-xs); border-top: var(--rule-hair) solid var(--color-rule); }
.notes__title { padding-top: var(--space-xs); font-size: var(--text-sm); font-weight: 500; color: var(--color-muted); }
.notes ul { display: grid; gap: var(--space-2xs); font-size: var(--text-sm); line-height: 1.45; }
.notes li { display: grid; grid-template-columns: var(--space-sm) minmax(0, 1fr); gap: var(--space-xs); }
.notes li::before { content: ""; width: var(--space-xs); height: var(--space-3xs); margin-top: 0.65em; background: var(--color-ink); }

@media (min-width: 60rem) {
  .hero { padding-block: var(--space-2xl) var(--space-3xl); }
  .hero__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 384px); gap: var(--space-2xl); }
  .hero h1 { max-width: 14ch; }
}

/* ------------------------------------------------------------------ the Today screen, built at phone size (illustrative) */
.screen-figure { margin: 0; display: grid; gap: var(--space-sm); justify-items: center; }
.screen { width: 100%; max-width: 384px; border: var(--border) solid var(--color-border); background: var(--color-paper); }
.screen__inner { display: grid; }
.scr-head { display: flex; align-items: center; gap: var(--space-sm); min-height: 64px; padding-inline: var(--space-md); border-bottom: var(--border) solid var(--color-border); }
.scr-head__title { flex: 1; font-size: var(--text-2xl); font-weight: 800; letter-spacing: var(--tracking-display); line-height: 1.05; }
.scr-head__date { display: grid; justify-items: end; line-height: 1.25; }
.scr-head__date span:first-child { font-size: var(--text-sm); font-weight: 500; color: var(--color-muted); }
.scr-head__date span:last-child { font-weight: 500; }
.scr-body { display: grid; gap: var(--space-md); padding: var(--space-md); }
.scr-course { font-size: var(--text-xl); font-weight: 800; letter-spacing: var(--tracking-display); line-height: 1.1; padding-top: var(--space-2xs); }
.scr-meta { display: flex; gap: var(--space-lg); padding-block: var(--space-sm) var(--space-sm); }
.scr-meta > div { display: grid; }
.scr-code { display: inline-flex; align-items: center; gap: var(--space-xs); }
.scr-btn { display: flex; align-items: center; justify-content: center; gap: var(--space-xs); min-height: 48px; border: var(--border) solid var(--color-border); font-size: var(--text-sm); font-weight: 800; }
.scr-btn svg { width: 20px; height: 20px; }
.scr-heads { display: grid; grid-template-columns: 80px minmax(0, 1fr) 56px; gap: var(--space-xs); padding: var(--space-xs) var(--space-sm); background: var(--color-paper-2); border-bottom: var(--rule-hair) solid var(--color-rule); font-size: var(--text-sm); font-weight: 500; color: var(--color-muted); line-height: 1.25; }
.scr-row { display: grid; grid-template-columns: var(--space-2xs) 80px minmax(0, 1fr) 56px; column-gap: var(--space-xs); padding: var(--space-sm) var(--space-sm) var(--space-sm) 0; line-height: 1.35; }
.scr-row + .scr-row { border-top: var(--rule-hair) solid var(--color-rule); }
.scr-row__bar { align-self: stretch; margin-block: calc(-1 * var(--space-sm)); }
.scr-row--next .scr-row__bar { background: var(--color-accent); }
.scr-row--done { color: var(--color-muted); }
.scr-time b, .scr-name { font-weight: 500; }
.scr-name { display: block; }
.scr-time span, .scr-room { display: block; font-size: var(--text-sm); color: var(--color-muted); }
.scr-small { font-size: var(--text-sm); color: var(--color-muted); }
.scr-block { display: block; }
.scr-status { justify-self: end; font-size: var(--text-sm); font-weight: 500; }
.scr-row--next .scr-status { font-weight: 800; color: var(--color-ink); }
.scr-due { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--space-sm); padding: var(--space-sm); line-height: 1.35; }
.scr-due__fig { display: grid; justify-items: end; align-content: start; }
.scr-due__fig b { font-size: var(--text-2xl); font-weight: 800; line-height: 1.05; color: var(--color-amber); }
.scr-due__fig span, .scr-due .scr-small { color: var(--color-plate-muted); font-size: var(--text-xs); }
.scr-due .scr-small { font-size: var(--text-sm); }
.screen-figure figcaption { max-width: 384px; width: 100%; font-size: var(--text-sm); line-height: 1.45; color: var(--color-muted); }

/* ------------------------------------------------------------------ sections */
.section { padding-block: var(--section-gap-s); }
.section__head { display: grid; gap: var(--space-sm); margin-bottom: var(--space-xl); }
.section__head h2 { font-size: var(--text-section); }
.section__intro { max-width: 52ch; font-size: var(--text-lead); line-height: 1.5; color: var(--color-ink-2); }

/* what it tells you: two boards */
.boards { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-lg); align-items: start; }
.board-row { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-2xs); padding: var(--space-sm); }
.board-row + .board-row { border-top: var(--rule-hair) solid var(--color-rule); }
.panel--ink .board-row + .board-row { border-top-color: var(--color-plate-rule); }
.board-row__when { font-size: var(--text-xl); font-weight: 800; letter-spacing: var(--tracking-display); line-height: 1.1; }
.panel--ink .board-row__when { color: var(--color-amber); }
.board-row__what { font-weight: 500; line-height: 1.45; }
.panel--ink @media (min-width: 40rem) {
  .board-row { grid-template-columns: 9.5rem minmax(0, 1fr); column-gap: var(--space-md); }
}
@media (min-width: 60rem) {
  .boards { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--gap-columns); }
}

/* install: a change of paper, four platforms */
.band { background: var(--color-paper-2); color: var(--color-ink); border-block: var(--border) solid var(--color-border); }
.steps { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-lg); counter-reset: step; }
.step { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--space-md); align-items: start; counter-increment: step; }
.step::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border: var(--border) solid var(--color-border);
  background: var(--color-plate);
  color: var(--color-amber);
  font-size: var(--text-2xl);
  font-weight: 800;
  line-height: 1;
}
.step h3 { font-size: var(--text-xl); line-height: 1.15; padding-top: var(--space-2xs); }
.step p { margin-top: var(--space-xs); color: var(--color-ink-2); max-width: 48ch; }
.step .link { display: inline-block; margin-top: var(--space-xs); }
.install-foot { margin-top: var(--space-xl); padding-top: var(--space-md); border-top: var(--border) solid var(--color-border); max-width: 70ch; color: var(--color-ink-2); }
@media (min-width: 40rem) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--gap-columns); row-gap: var(--space-xl); } }
@media (min-width: 72rem) {
  .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .step { grid-template-columns: minmax(0, 1fr); }
}

/* privacy */
.privacy { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-xl); align-items: start; }
.privacy__plate { display: grid; gap: var(--space-xs); padding: var(--space-lg); }
.privacy__plate .plate__figure { font-size: clamp(var(--text-2xl), 3vw + 1rem, 3.25rem); overflow-wrap: break-word; min-width: 0; }
.privacy__plate p:not(.plate__label):not(.plate__figure) { max-width: 52ch; }
.privacy__plate .plate__rule { height: var(--rule-hair); margin-block: var(--space-sm); background: var(--color-plate-rule); }
.facts { display: grid; gap: var(--space-lg); }
.facts dl { margin: 0; display: grid; gap: var(--space-lg); }
.facts dt { font-weight: 800; font-size: var(--text-lg); line-height: 1.25; letter-spacing: var(--tracking-display); }
.facts dd { margin: var(--space-2xs) 0 0; color: var(--color-ink-2); max-width: 52ch; }
.never { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.never li { display: flex; align-items: center; justify-content: space-between; gap: var(--space-xs); min-height: 52px; padding: var(--space-xs) var(--space-sm); border-top: var(--rule-hair) solid var(--color-rule); font-weight: 500; }
.never li:nth-child(-n+2) { border-top: 0; }
.never li:nth-child(odd) { border-right: var(--rule-hair) solid var(--color-rule); }
.never li span { font-size: var(--text-sm); font-weight: 500; color: var(--color-muted); }
@media (min-width: 60rem) { .privacy { grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: var(--gap-columns); } }

/* the closing board: feedback */
.closing { padding-block: var(--section-gap-s); }
.closing__plate { display: grid; gap: var(--space-md); align-items: center; padding: var(--space-lg); }
.closing__plate h2 { font-size: var(--text-section); color: var(--color-plate-text); }
.btn--on-ink { border-color: var(--color-plate-text); color: var(--color-plate-text); }
.btn--on-ink:focus-visible { outline-color: var(--color-plate-focus); }
@media (hover: hover) { .btn--on-ink:hover { background: var(--color-plate-rule); } }
.closing__plate .btn { justify-self: start; }
@media (min-width: 60rem) {
  .closing__plate { grid-template-columns: minmax(0, 1fr) auto; column-gap: var(--space-2xl); padding: var(--space-xl); }
}

/* ------------------------------------------------------------------ footer (a mast) */
.footer { border-top: var(--border) solid var(--color-border); padding-block: var(--space-xl) var(--space-2xl); }
.footer__grid { display: grid; gap: var(--space-lg); }
.footer .wordmark { font-size: var(--text-xl); }
.footer__line { color: var(--color-ink-2); max-width: 60ch; }
.footer__links { display: flex; flex-wrap: wrap; gap: var(--space-xs) var(--space-lg); }
.footer__links a { display: inline-flex; align-items: center; min-height: 48px; font-weight: 400; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.25em; white-space: nowrap; transition: color var(--dur-micro) var(--ease-out); }
@media (hover: hover) { .footer__links a:hover { color: var(--color-accent); } }
.footer__links a:active { color: var(--color-accent-hover); }
@media (min-width: 60rem) { .footer__grid { grid-template-columns: minmax(0, 1fr) auto; align-items: end; } }

/* ------------------------------------------------------------------ feedback page */
.fb { padding-block: var(--space-2xl) var(--section-gap-s); }
.fb__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-xl); align-items: start; }
.fb__intro { display: grid; gap: var(--space-md); align-content: start; }
.fb__intro h1 { font-size: var(--text-section); max-width: 16ch; }
.fb__intro p { color: var(--color-ink-2); max-width: 46ch; }
.fb__intro .fb__tip { font-size: var(--text-sm); color: var(--color-muted); max-width: 46ch; padding-top: var(--space-sm); border-top: var(--rule-hair) solid var(--color-rule); }
@media (min-width: 60rem) { .fb__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-2xl); } }

.form { display: grid; gap: var(--space-lg); padding: var(--space-lg) var(--space-md); }
@media (min-width: 40rem) { .form { padding: var(--space-lg); } }
.field { display: grid; gap: var(--space-xs); min-width: 0; }
.field label, .seg legend { font-size: var(--text-sm); font-weight: 500; line-height: 1.25; color: var(--color-ink); }
.optional { color: var(--color-muted); font-weight: 400; }
.input {
  width: 100%;
  min-height: 52px;
  padding: var(--space-sm) var(--space-sm);
  border: var(--border) solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-paper-3);
  color: var(--color-ink);
  font-size: var(--text-md);
  line-height: 1.45;
  outline: 3px solid transparent;
  outline-offset: -3px;
  transition: background-color var(--dur-micro) var(--ease-out);
}
textarea.input { min-height: 9rem; resize: vertical; }
.input::placeholder { color: var(--color-muted); opacity: 1; }
@media (hover: hover) { .input:hover { background: var(--color-paper); } }
.input:focus-visible { outline: 3px solid var(--color-focus); outline-offset: -3px; }
.input:disabled { opacity: 0.55; cursor: not-allowed; }
.input[aria-invalid="true"] { background: var(--color-paper-2); }
.field__foot { display: flex; justify-content: space-between; gap: var(--space-sm); min-height: 1lh; font-size: var(--text-sm); line-height: 1.4; color: var(--color-muted); }
.counter { margin-left: auto; white-space: nowrap; }
.counter.is-near { color: var(--color-ink); font-weight: 800; }
.error { display: flex; align-items: flex-start; gap: var(--space-xs); font-size: var(--text-sm); line-height: 1.4; color: var(--color-error); font-weight: 500; }
.error:empty { display: none; }
.error::before { content: "!"; display: grid; place-items: center; flex-shrink: 0; width: 18px; height: 18px; margin-top: 1px; background: var(--color-ink); color: var(--color-paper); font-size: var(--text-xs); font-weight: 800; line-height: 1; }
.row-2 { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-lg); }
@media (min-width: 40rem) { .row-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* type: the app's segmented control, square cells sharing 2px borders */
.seg { margin: 0; padding: 0; border: 0; min-width: 0; }
.seg legend { padding: 0; margin-bottom: var(--space-xs); }
.seg__cells { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: var(--border) solid var(--color-border); }
.seg__cell { position: relative; display: grid; }
.seg__cell + .seg__cell { border-left: var(--border) solid var(--color-border); }
.seg input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.seg label { display: grid; place-items: center; min-height: 48px; padding: 0 var(--space-sm); font-size: var(--text-sm); font-weight: 500; color: var(--color-ink); cursor: pointer; transition: background-color var(--dur-micro) var(--ease-out), color var(--dur-micro) var(--ease-out); }
@media (hover: hover) { .seg input:not(:checked) + label:hover { background: var(--color-paper-2); } }
.seg input:checked + label { background: var(--color-ink); color: var(--color-paper); font-weight: 800; }
.seg input:focus-visible + label { outline: 3px solid var(--color-focus); outline-offset: -3px; }
.seg input:checked:focus-visible + label { outline-color: var(--color-amber); }
.seg input:active + label { background: var(--color-paper-2); }
.seg input:checked:active + label { background: var(--color-ink-2); }
.seg input:disabled + label { opacity: 0.55; cursor: not-allowed; }

.form__actions { display: grid; gap: var(--space-sm); justify-items: start; }
.form__actions .btn { width: 100%; }
@media (min-width: 40rem) { .form__actions .btn { width: auto; min-width: 16rem; } }
.status { min-height: 1lh; font-weight: 500; }
.status.is-ok { display: block; padding: var(--space-sm) var(--space-md); background: var(--color-plate); color: var(--color-plate-text); }
.status.is-error { display: block; padding: var(--space-sm) var(--space-md); background: var(--color-amber); color: var(--color-on-amber); }
.status:empty { padding: 0; background: transparent; }
.nojs { padding: var(--space-sm) var(--space-md); background: var(--color-amber); color: var(--color-on-amber); font-weight: 500; }

/* ------------------------------------------------------------------ wider screens */
@media (min-width: 60rem) { :root { --section-gap-s: 144px; } }
@media (max-width: 60rem) { :root { --gutter: 24px; --section-gap-s: 72px; --gap-columns: 24px; } }
@media (max-width: 40rem) { :root { --gutter: 16px; --section-gap-s: 56px; --gap-columns: 16px; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .btn:active { transform: none; }
}
