/* Hallmark · shape: Bento · genre: playful · theme: custom (colour blocks) · redesign: full · job: try
 * hero: Counter · nav: a notch hanging from the top edge · footer: statement · imagery: screenshots 4 (captured from the app) · signature: a wrong answer traced to the sentence that caused it, with corner marks landing on the lecture slides that put it right
 * axes: light/rounded-sans/chromatic-blue · posture: full-palette · contrast: pass · fold: pass · v2.0.0 */
/* Hallmark · pre-emit critique: P4 H5 E4 S5 R3 V5 · weakest: R, five hues at full strength is a lot, so each block holds one idea and the type stays one face in ink */
/* Hallmark · reworded "Three steps, one classmate." to "How does it work?" · the old heading now answers it as the lead line */
/* Hallmark · reworded "Why it works." to "Why does it work?" · a question, like the section before it */
/* Hallmark · reworded "Step 1: See what’s due 1" to "See what’s due" · the three steps are tabs beside their screens now, not headings on cards */
/* Hallmark · reworded "Step 2: Open the book 2" to "Open the book" · the three steps are tabs beside their screens now, not headings on cards */
/* Hallmark · reworded "Step 3: Teach it out loud 3" to "Teach it out loud" · the three steps are tabs beside their screens now, not headings on cards */
/* Hallmark · dismissed 49 · each step is a tab that holds its title and its one line, set as a block that wraps on purpose */
/* Hallmark · waive 80 · Rookie is the team's own character and the product's mark, drawn in code from their notebook sketch · the page is about teaching Rookie, so Rookie stays on it as drawn */
/* Hallmark · waive 59 · every section is a block of its own colour, 16px from the next, so the page reads as one board · the blocks of colour part the sections, and a wide gap of bare paper is what this page is built to avoid */

/* The page is one board of blocks: every section is a block of colour or a white card, a small gap from the next.
   Colours and fonts all come from tokens.css. */
:root { --u: 9px; }                                  /* Rookie's grid unit in the hero */
@media (max-width: 75rem) { :root { --u: 7px; } }
@media (max-width: 40rem) { :root { --u: 5.6px; } }

/* Skip link: off screen until focused, moved with transform only */
.skip { position: absolute; left: var(--space-md); top: var(--space-xs); z-index: var(--z-modal); padding: var(--space-xs) var(--space-md); border-radius: var(--radius-pill); background: var(--color-ink); color: var(--color-on-ink); font-weight: var(--weight-strong); text-decoration: none; transform: translateY(-300%); }
.skip:focus-visible { transform: none; }

main { display: grid; gap: var(--gap-blocks); padding-top: var(--gap-blocks); }
.block, .hero-copy, .hero-stage, .how-text, .screens, .wrong-screen, .wrong-text, .st-in, .foot-in { border-radius: var(--radius-win); }

/* ---------- Nav: a black notch hanging from the top of the window ---------- */
.nav { position: fixed; top: calc(var(--space-2xs) * -1); left: 0; right: 0; z-index: var(--z-sticky-nav); display: flex; justify-content: center; padding-inline: var(--space-sm); pointer-events: none; }
.nav-in { pointer-events: auto; display: flex; align-items: center; gap: var(--space-lg); height: 64px; padding: var(--space-2xs) var(--space-xs) 0 var(--space-lg); background: var(--color-ink); color: var(--color-on-ink); border-radius: 0 0 var(--radius-pane) var(--radius-pane); }
.brand { display: inline-flex; align-items: center; gap: var(--space-sm); font-family: var(--font-display); font-weight: var(--display-weight); font-size: var(--text-lg); letter-spacing: var(--tracking-display); text-decoration: none; white-space: nowrap; }
.brand:hover { color: var(--color-sand); }
.nav-links { display: flex; gap: var(--space-lg); }
.nav-links a { font-size: var(--text-md); color: var(--color-on-ink-dim); text-decoration: none; white-space: nowrap; transition: color var(--dur-micro) var(--ease-out); }
.nav-links a:hover { color: var(--color-on-ink); }
.nav :focus-visible { outline-color: var(--color-sand); }
.nav .btn.sm { margin-bottom: 0; box-shadow: none; background: var(--color-sand); color: var(--color-ink); }
.nav .btn.sm:hover { background: var(--color-on-ink); }
.nav .btn.sm:active { transform: scale(0.97); }

/* ---------- Hero: two blocks that fill the first screen. The words on blue; Rookie under his books on yellow ---------- */
.hero-in { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--gap-blocks); min-height: min(calc(100dvh - 2 * var(--gap-blocks) - 132px), 780px); }
.hero-copy { display: flex; flex-direction: column; gap: var(--space-xl); padding: var(--space-3xl) var(--space-2xl) var(--space-2xl); background: var(--color-ice); }
.hero h1 { max-width: 9ch; font-size: clamp(3.25rem, 8.6vw + 0.25rem, 8.75rem); line-height: 0.94; }
.lead { font-size: var(--text-lead); line-height: 1.42; max-width: 34ch; color: var(--color-text-2); }
.hero .lead { margin-top: var(--space-lg); max-width: 26ch; color: var(--color-ink); font-size: var(--text-2xl); font-weight: var(--weight-strong); line-height: 1.3; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-md) var(--space-lg); margin-top: auto; }
.hero-actions .btn { font-size: var(--text-xl); }
.hero-actions .link { margin-bottom: var(--key-foot); font-size: var(--text-lg); }
.hero-stage { display: grid; justify-items: center; align-content: end; overflow: hidden; padding-top: var(--space-3xl); background: var(--color-sand); }
.hero-stage .book { box-shadow: inset 0 -5px 0 0 color-mix(in oklab, var(--sc) 80%, var(--color-ink)), 0 0 0 3px var(--color-ink); }
.stack { display: grid; justify-items: center; gap: var(--space-3xs); margin-bottom: calc(var(--u) * -1); }
.stack .book { width: var(--bw); height: 62px; }
.stack .book:nth-child(4) { --bw: calc(var(--u) * 47); transform: translateX(10px); }
.stack .book:nth-child(5) { --bw: calc(var(--u) * 43); transform: translateX(-8px); }
.stack .book:nth-child(1) { --bw: calc(var(--u) * 42); transform: translateX(-14px); }
.stack .book:nth-child(2) { --bw: calc(var(--u) * 46); transform: translateX(12px); }
.stack .book:nth-child(3) { --bw: calc(var(--u) * 44); transform: translateX(-4px); }
.hero-rk { display: block; }
.hero-rk svg { width: calc(var(--u) * 52); height: auto; overflow: clip; }  /* the peek crop: nothing below the eyes */

/* ---------- Section heads ---------- */
h2 { font-size: var(--text-section); max-width: 16ch; }

/* ---------- How does it work? The three steps as big tabs; the screen beside them takes the step's colour ---------- */
.how-in { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--gap-blocks); }
.how-text { display: flex; flex-direction: column; padding: var(--space-2xl); background: var(--color-card); }
.how .lead { margin-top: var(--space-md); }
.steps { counter-reset: step; display: grid; gap: var(--space-xs); margin-top: auto; padding-top: var(--space-xl); }
.step { --hue: var(--color-lilac); counter-increment: step; display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: var(--space-2xs) var(--space-md); align-items: center; width: 100%; padding: var(--space-md) var(--space-lg) var(--space-md) var(--space-md); border: 0; border-radius: var(--radius-pane); background: var(--color-cell); color: var(--color-text); text-align: left; cursor: pointer; transition: background-color var(--dur-micro) var(--ease-out); }
.step:nth-child(2) { --hue: var(--color-sage); }
.step:nth-child(3) { --hue: var(--color-coral); }
.step::before { content: counter(step); grid-row: 1 / span 2; display: grid; place-items: center; width: 52px; height: 52px; border-radius: var(--radius-pill); background: var(--hue); color: var(--color-ink); font-family: var(--font-display); font-weight: var(--display-weight); font-size: var(--text-xl); line-height: 1; font-variant-numeric: tabular-nums; }
.step b { font-family: var(--font-display); font-weight: var(--display-weight); font-size: var(--text-title); letter-spacing: var(--tracking-display); line-height: 1.1; }
.step span { grid-column: 2; line-height: 1.35; color: var(--color-text-2); }
.step:hover { background: var(--color-cell-hover); }
.step:active { transform: translateY(1px); }
.js .step[aria-selected="true"] { background: var(--hue); }
.js .step[aria-selected="true"]::before { background: var(--color-ink); color: var(--color-on-ink); }
.js .step[aria-selected="true"] span { color: var(--color-ink); }
.screens { display: grid; gap: var(--gap-blocks); align-content: center; padding: var(--space-xl); background: var(--color-lilac); transition: background-color var(--dur-short) var(--ease-out); }
.screens[data-on="2"] { background: var(--color-sage); }
.screens[data-on="3"] { background: var(--color-coral); }
.screen { border-radius: var(--radius-pane); overflow: hidden; background: var(--color-desk); }
.screen img { width: 100%; height: auto; }
.js .screens .screen:not(.is-on) { display: none; }

/* ---------- What if Rookie gets it wrong? The trace on a coral field, and the key to its hues ---------- */
.wrong-in { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: var(--gap-blocks); }
.wrong-screen { display: grid; place-items: center; padding: var(--space-xl); background: var(--color-coral-field); overflow: visible; }
.wrong-screen img { width: 100%; max-width: 640px; border-radius: var(--radius-pane); }
.wrong-text { display: flex; flex-direction: column; padding: var(--space-2xl); background: var(--color-card); }
.wrong-rk { display: block; margin-bottom: var(--space-lg); }
.wrong .lead { margin-top: var(--space-md); }
.key { display: grid; gap: var(--space-xs); margin-top: auto; padding-top: var(--space-xl); }
.key > div { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-xs) var(--space-md); align-items: center; padding: var(--space-md) var(--space-lg); border-radius: var(--radius-pane); background: var(--color-cell); }
.key > div:nth-child(1) { background: var(--color-coral-field); }
.key > div:nth-child(2) { background: var(--color-ice-field); }
.key > div:nth-child(3) { background: var(--color-sand-field); }
.key dt { justify-self: start; }
.key dd { color: var(--color-text-2); font-size: var(--text-lg); line-height: 1.3; }

/* ---------- The statement from A Private Universe, on the one ink block ---------- */
.st-in { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-2xl); align-items: center; padding: var(--space-3xl) var(--space-2xl); background: var(--color-ink); color: var(--color-on-ink); }
.statement :focus-visible { outline-color: var(--color-sand); }
.figure { display: grid; gap: var(--space-sm); }
.figure b { font-variant-numeric: tabular-nums; font-family: var(--font-display); font-weight: var(--display-weight); font-size: clamp(4rem, 9vw, 9.5rem); line-height: 0.9; letter-spacing: var(--tracking-display); color: var(--color-sand); white-space: nowrap; }
.figure span { font-variant-numeric: tabular-nums; font-size: var(--text-lead); color: var(--color-on-ink-dim); }
.statement h2 { max-width: 18ch; }
.statement p:not(.figure) { font-variant-numeric: tabular-nums; margin-top: var(--space-lg); max-width: 54ch; font-size: var(--text-lead); line-height: 1.4; color: var(--color-on-ink-dim); }
.statement cite { font-style: normal; font-weight: var(--weight-strong); color: var(--color-on-ink); }
.statement .link { display: inline-block; margin-top: var(--space-lg); color: var(--color-sand); font-size: var(--text-lg); }

/* ---------- Why does it work? The report card: three findings, three blocks ---------- */
.why > .container { display: grid; gap: var(--gap-blocks); }
.why-head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--space-lg); padding: var(--space-2xl) var(--space-2xl) 0; border-radius: var(--radius-win); background: var(--color-card); overflow: hidden; }
.why-words { padding-bottom: var(--space-2xl); }
.report-rk { margin-right: var(--space-2xl); }
.report-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--space-xs) var(--space-md); margin-top: var(--space-md); }
.report-head h3 { font-size: var(--text-title); }
.report-head p { color: var(--color-dim); font-size: var(--text-lg); }
.report table, .report tbody { display: grid; }
.report thead { display: none; }
.report tbody { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap-blocks); }
.report tbody tr { display: grid; grid-template-rows: auto 1fr auto; gap: var(--space-md); align-content: start; min-height: 320px; padding: var(--space-xl) var(--space-xl) var(--space-xl); border-radius: var(--radius-win); background: var(--color-ice); }
.report tbody tr:nth-child(2) { background: var(--color-lilac); }
.report tbody tr:nth-child(3) { background: var(--color-sage); }
.report tbody th, .report tbody td { display: block; padding: 0; text-align: left; }
.report tbody th { font-family: var(--font-display); font-weight: var(--display-weight); font-size: var(--text-2xl); letter-spacing: var(--tracking-display); line-height: 1.05; }
.report tbody td { font-size: var(--text-lead); line-height: 1.42; color: var(--color-ink); }
.report cite { display: block; margin-top: var(--space-sm); font-style: normal; font-size: var(--text-md); color: var(--color-text-2); }
.report .col-mark .mark { background: var(--color-ink); color: var(--color-on-ink); min-height: 36px; padding: 0 var(--space-md); font-size: var(--text-md); }

/* ---------- Footer: one closing question, the shelf, Rookie asleep at the end ---------- */
.foot { padding-block: var(--gap-blocks); }
.foot-in { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: var(--space-2xl); max-width: calc(var(--container) - 2 * var(--gutter)); margin-inline: auto; padding: var(--space-2xl) var(--space-2xl) 0; background: var(--color-card); overflow: hidden; }
.foot > .foot-in.container { width: calc(100% - 2 * var(--gutter)); }
.foot-text { padding-bottom: var(--space-2xl); }
.foot-text h2 { font-size: var(--text-display); line-height: 0.98; max-width: 10ch; }
.foot-text .lead { margin-top: var(--space-md); }
.shelf { position: relative; }
.shelf-row { display: flex; align-items: flex-end; gap: var(--space-2xs); }
.book.upright { writing-mode: vertical-rl; justify-content: flex-start; align-items: center; width: 72px; height: 280px; padding: var(--space-lg) 0; border-radius: var(--radius-book) var(--radius-book) 0 0; box-shadow: inset -6px 0 0 0 color-mix(in oklab, var(--sc) 80%, var(--color-ink)); }
.book.upright b { font-size: var(--text-xl); line-height: 1; }
.book.upright:nth-child(2) { width: 64px; height: 316px; }
.book.upright:nth-child(3) { width: 78px; height: 262px; }
.book.upright:nth-child(4) { width: 66px; height: 224px; }
.book.upright:nth-child(5) { width: 74px; height: 298px; }
.shelf-rk { margin-left: var(--space-md); }
.shelf-rk svg { width: 220px; height: auto; }
.foot-base { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-sm) var(--space-xl); padding-block: var(--space-lg) var(--space-xl); }
.foot-base p { font-size: var(--text-sm); max-width: 60ch; color: var(--color-dim); }
.foot-links { display: flex; flex-wrap: wrap; gap: var(--space-xs) var(--space-lg); font-size: var(--text-md); font-weight: var(--weight-strong); }
.foot-links a { white-space: nowrap; }
.foot-links a:hover { text-decoration-thickness: 4px; }

/* ---------- Narrower screens: the blocks stack, each still filling its row ---------- */
@media (max-width: 68rem) {
  .hero-in { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .hero-copy { padding: var(--space-3xl) var(--space-xl) var(--space-xl); }
  .hero-stage { padding-top: var(--space-xl); }
  .how-in, .wrong-in { grid-template-columns: minmax(0, 1fr); }
  .how-text, .wrong-text { padding: var(--space-xl); }
  .st-in { grid-template-columns: minmax(0, 1fr); gap: var(--space-xl); padding: var(--space-2xl) var(--space-xl); }
  .report tbody { grid-template-columns: minmax(0, 1fr); }
  .report tbody tr { min-height: 0; }
  .why-head { padding: var(--space-xl) var(--space-xl) 0; }
  .why-words { padding-bottom: var(--space-xl); }
  .report-rk { margin-right: var(--space-lg); }
  .foot-in { grid-template-columns: minmax(0, 1fr); gap: var(--space-lg); padding: var(--space-xl) var(--space-xl) 0; }
  .foot-text { padding-bottom: 0; }
  .shelf { justify-self: start; }
}
@media (max-width: 40rem) {
  .nav-links { display: none; }
  .nav-in { gap: var(--space-md); padding-left: var(--space-md); }
  .brand { font-size: var(--text-md); }
  .hero-copy { padding: var(--space-3xl) var(--space-lg) var(--space-lg); }
  .hero-actions .btn { font-size: var(--text-lg); }
  .how-text, .wrong-text { padding: var(--space-lg); }
  .screens, .wrong-screen { padding: var(--space-md); }
  .st-in { padding: var(--space-xl) var(--space-lg); }
  .stack .book { height: 44px; padding: 0 var(--space-sm) 0 var(--space-md); font-size: var(--text-xs); }
  .stack .book b { font-size: var(--text-md); }
  .key > div { grid-template-columns: minmax(0, 1fr); padding: var(--space-md); }
  .why-head { padding: var(--space-lg) var(--space-lg) 0; }
  .why-words { padding-bottom: var(--space-lg); }
  .report tbody tr { padding: var(--space-lg); }
  .report-rk svg { width: 112px; height: auto; }
  .foot-in { padding: var(--space-lg) var(--space-lg) 0; }
  .book.upright { width: 48px; height: 220px; }
  .book.upright b { font-size: var(--text-md); }
  .book.upright:nth-child(2) { width: 42px; height: 250px; }
  .book.upright:nth-child(3) { width: 52px; height: 206px; }
  .book.upright:nth-child(4) { width: 44px; height: 176px; }
  .book.upright:nth-child(5) { width: 50px; height: 234px; }
  .shelf-rk { margin-left: var(--space-xs); }
  .shelf-rk svg { width: 112px; height: auto; }
}
