/*
 * The notebook landing page. Implements the canvas "Hitotsu — Landing Caderno"
 * (claude.ai artifact FomvLoz3TkPiQWxyGpJ9Go), 2026-10-19.
 *
 * Self-contained on purpose: deployed separately from the SPA
 * (README.md), so the brand values below are copied, not imported.
 * Fonts are served from this origin because the CSP in _headers is
 * `default-src 'self'`.
 *
 * Two layouts share these rules:
 *   html.no-js          the pages stack as a plain document (also what a
 *                       crawler and a screen reader read, in order)
 *   html.is-3d          src/main.js has lifted every page into a three.js
 *                       CSS3D scene and sized it through --page-w/--page-h
 *   [data-mode=single]  phones and portrait screens: one page per screen
 */

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

:root {
  color-scheme: light;

  --desk: #E7E5DF;
  --board: #FCFBF8;
  --paper: #F4EFE4;
  --ink: #2B2A27;
  --ink-2: #4E4D48;
  --ink-3: #67665F;
  --rule: #CFC9BC;
  --rule-2: #8E897E;
  --mute-mark: #B8B2A5;
  --ember: #FF4B00;
  /* Filled buttons: white on --ember is 3.35:1, so text sits on the solid. */
  --ember-solid: #CD4805;
  --ember-solid-hover: #A94703;
  /* The cover's book cloth (matte, so a step deeper than the screen ember). */
  --cloth: #E2470E;
  --cloth-shade: #B83A0B;
  /* The threads on the desk (src/desk.js reads both). */
  --thread: #C4BDAF;

  --display: 'Fraunces', Georgia, serif;
  --sans: 'Raleway', ui-sans-serif, sans-serif;

  /* Set by src/main.js for the 3D layouts. */
  --page-w: 578px;
  --page-h: 696px;
  --board-m: 12px;
  --cover-w: 590px;
  --cover-h: 720px;
}

* { box-sizing: border-box; }

html, body { margin: 0; }

body {
  background: var(--desk);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--ink); }
a:hover { color: var(--ember-solid-hover); }
:focus-visible { outline: 2px solid var(--ember); outline-offset: 2px; }

/* ---- Paper ---------------------------------------------------------------- */

.page {
  position: relative;
  width: var(--page-w);
  height: var(--page-h);
  display: flex;
  flex-direction: column;
  gap: 26px;
  padding: 72px 76px 60px 72px;
  background-color: var(--paper);
  background-image:
    linear-gradient(to right, rgba(0, 0, 0, 0) 84%, rgba(40, 36, 28, 0.11)),
    radial-gradient(rgba(43, 42, 39, 0.16) 1px, transparent 1.4px);
  background-size: 100% 100%, 20px 20px;
  overflow: hidden;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.page--left { border-radius: 4px 0 0 4px; }

.page--right {
  padding: 72px 64px 56px 76px;
  border-radius: 0 4px 4px 0;
  background-image:
    linear-gradient(to left, rgba(0, 0, 0, 0) 84%, rgba(40, 36, 28, 0.11)),
    radial-gradient(rgba(43, 42, 39, 0.16) 1px, transparent 1.4px);
}

.page__num {
  position: absolute;
  top: 28px;
  left: 28px;
  width: 28px;
  height: 28px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 500;
}
.page--right .page__num { left: auto; right: 28px; }

/* The light on a turning sheet. src/main.js drives its opacity. */
.shade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(to right, rgba(30, 28, 24, 0.55), rgba(30, 28, 24, 0.25));
  opacity: 0;
  border-radius: inherit;
}

/* ---- Type ------------------------------------------------------------------ */

.eyebrow {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.display {
  margin: 0;
  font-family: var(--display);
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.display--xl { font-weight: 900; font-size: 68px; line-height: 1.02; }
.display--lg { font-weight: 900; font-size: 56px; line-height: 1.04; }
.display--md { font-weight: 700; font-size: 32px; line-height: 1.25; letter-spacing: -0.01em; }
.display--sm { font-weight: 700; font-size: 26px; line-height: 1.2; letter-spacing: 0; }
.quote { color: var(--mute-mark); }

.body { margin: 0; max-width: 34ch; font-size: 17px; line-height: 1.7; text-wrap: pretty; }
.body--muted { color: var(--ink-2); font-size: 16px; line-height: 1.65; max-width: 36ch; }
.small { font-size: 13px; }
.muted { color: var(--ink-3); }
.muted-strong { margin: 0; color: var(--ink-2); font-size: 14px; line-height: 1.6; }
.hand { margin: 0; font-family: var(--display); font-style: italic; font-size: 17px; line-height: 1.4; }
.hand--lg { font-size: 21px; }

/* ---- 2 · Principles -------------------------------------------------------- */

.principles { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 36px; }
.principles li { display: flex; gap: 20px; align-items: flex-start; }
.principles li > div { display: flex; flex-direction: column; gap: 8px; }
.principles h3 { font-size: 28px; }
.bullet { flex: none; width: 16px; height: 16px; margin-top: 10px; border: 2px solid var(--ink); border-radius: 50%; }

/* ---- 3 · Capture ----------------------------------------------------------- */

.capture { margin-top: 12px; display: flex; flex-direction: column; gap: 14px; }
.capture__line {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--ink);
  font-size: 17px;
}
.caret { width: 2px; height: 20px; background: var(--ink); animation: caret 1.1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 1px solid var(--ink); border-radius: 999px; padding: 4px 12px; font-size: 13px; white-space: nowrap; }
.chip--dashed { border-style: dashed; }

/* ---- 4 · Kanban ------------------------------------------------------------ */

.kanban { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 8px; }
.kanban__col { display: flex; flex-direction: column; gap: 14px; }
.kanban__head {
  margin: 0 0 4px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--ink);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.slip {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px;
  background: var(--board);
  border: 1px solid #D6D0C3;
  box-shadow: 3px 5px 10px -8px rgba(30, 28, 24, 0.5);
  transform: rotate(var(--tilt, 0deg));
  font-size: 15px;
  line-height: 1.4;
}
.slip small { font-size: 12px; color: var(--ink-3); }
.slip--focus { border-color: var(--ink); }
.slip--done s { color: var(--ink-3); }
.slip__stamp { position: absolute; right: 8px; bottom: 8px; width: 70px; height: 20px; transform: rotate(-8deg); }
.focus {
  display: flex;
  align-items: center;
  gap: 8px;
  font-style: normal;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--ember); }

/* ---- 6 · The day ----------------------------------------------------------- */

.page[data-face="6"] { gap: 18px; }
.day__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.day { margin: 0; padding: 0; list-style: none; }
.day li { display: flex; gap: 16px; padding: 12px 0; border-top: 1px solid var(--rule); }
.day li:last-child { border-bottom: 1px solid var(--rule); }
.day time { flex: none; width: 48px; font-size: 13px; color: var(--ink-3); }
.day li > div { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.day__title { display: flex; align-items: center; gap: 8px; font-size: 15px; }
.day small { font-size: 12px; color: var(--ink-3); }
.day .is-quiet .day__title { color: var(--ink-3); }

.tomorrow { display: flex; gap: 14px; align-items: flex-start; padding: 14px 16px; border: 1px dashed var(--rule-2); }
.tomorrow__label {
  flex: none;
  padding-top: 3px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 4px;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 700;
  cursor: default;
}
.btn--solid { border: 0; background: var(--ember-solid); color: #FFFFFF; }
.btn--line { border: 1px solid var(--ink); background: transparent; color: var(--ink); }
button.btn--solid { cursor: pointer; }
button.btn--solid:hover { background: var(--ember-solid-hover); }

/* ---- 8 · The month --------------------------------------------------------- */

.page[data-face="8"] { gap: 22px; font-variant-numeric: tabular-nums; }
.totals { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.totals > div { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; border: 1px solid var(--rule); background: var(--board); }
.totals > .is-key { border-color: var(--ink); }
.totals small { font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); }
.totals strong { font-size: 18px; }

.ledger { margin: 0; padding: 0; list-style: none; font-size: 14px; }
.ledger li { display: flex; align-items: center; gap: 14px; padding: 11px 0; border-top: 1px solid var(--rule); }
.ledger li:last-child { border-bottom: 1px solid var(--rule); }
.ledger__date { flex: none; width: 46px; color: var(--ink-3); }
.ledger__what { flex: 1; min-width: 0; }
.ledger__what small { font-size: 12px; color: var(--ink-3); }
.ledger .chip { border-color: var(--rule-2); padding: 2px 10px; font-size: 12px; }
.ledger strong, .ledger__amt { flex: none; width: 96px; text-align: right; }

/* ---- 10 · The assistant ---------------------------------------------------- */

.page[data-face="10"] { padding-top: 80px; }
.note {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px 22px;
  background: var(--board);
  border: 1px solid var(--rule);
  box-shadow: 4px 7px 14px -10px rgba(30, 28, 24, 0.45);
  transform: rotate(var(--tilt, 0deg));
}
.note--key { border-color: var(--ink); gap: 16px; padding: 20px 22px; }
.note__label { font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); }
.note__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.note__actions .btn { min-height: 40px; padding: 0 17px; font-size: 14px; }

/* ---- 11 · Waitlist --------------------------------------------------------- */

.signup { display: flex; flex-direction: column; gap: 22px; max-width: 400px; }
.signup label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.signup input {
  font-family: var(--display);
  font-style: italic;
  font-size: 22px;
  padding: 6px 0;
  border: 0;
  border-bottom: 1px solid var(--ink);
  border-radius: 0;
  /* Explicit: a form control with no background falls back to the UA white. */
  background: transparent;
  color: var(--ink);
  outline: none;
  user-select: text;
}
.signup input:focus { border-bottom: 2px solid var(--ember-solid); padding-bottom: 5px; }
.signup .btn { margin-top: 6px; }
.signup .btn:disabled { opacity: 0.6; cursor: progress; }
/* The consent box reads as a sentence, not as one of the uppercase field labels. */
.signup .signup__consent {
  flex-direction: row;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  line-height: 1.5;
  color: var(--ink-2);
}
.signup .signup__consent input {
  flex: none;
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  padding: 0;
  border: 0;
  accent-color: var(--ember-solid);
}
.signup .signup__consent input:focus { border: 0; padding: 0; }
.signup .signup__consent input:focus-visible { outline: 2px solid var(--ember); outline-offset: 2px; }
/* Honeypot: off-screen rather than display:none, which some bots skip. */
.signup__trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
/* Turnstile in interaction-only mode stays empty unless it needs a click. */
.signup__check:empty { display: none; }
.signup__status { margin: 0; min-height: 1.5em; color: var(--ink); font-size: 14px; line-height: 1.5; }
.signup__status:empty { min-height: 0; }

/* ---- 12 · Closing ---------------------------------------------------------- */

.page--closing { justify-content: center; gap: 22px; }
.closing__mark { width: 96px; height: 28px; }
.page--closing .display--md { max-width: 22ch; }

/* ---- Cover ----------------------------------------------------------------- */

.cover {
  position: relative;
  display: block;
  width: var(--cover-w);
  height: var(--cover-h);
  container-type: size;
  background: var(--board);
  border-radius: 4px 10px 10px 4px;
  box-shadow:
    1px 1px 0 #E4DFD3, 2px 2px 0 #F4EFE4, 3px 3px 0 #E4DFD3,
    4px 4px 0 #F4EFE4, 5px 5px 0 #E4DFD3,
    30px 40px 60px -30px rgba(30, 28, 24, 0.45);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  cursor: pointer;
}
/* Book cloth, not plastic: a matte orange a step deeper than the screen
   ember, a fine weave, and a soft fall-off where it wraps round the spine.
   Narrow, so the cover stays mostly white. */
.cover__spine {
  position: absolute;
  inset: 0 auto 0 0;
  width: 5cqw;
  border-radius: 4px 0 0 4px;
  background-color: var(--cloth);
  background-image:
    linear-gradient(to right, rgba(0, 0, 0, 0.16), rgba(0, 0, 0, 0) 40%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.06) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(90deg, rgba(0, 0, 0, 0.06) 0 1px, transparent 1px 3px);
}
/* The hinge: a groove pressed into the board beside the cloth. */
.cover__spine::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: calc(100% + 1.6cqw);
  width: 1.2cqw;
  background: linear-gradient(to right, rgba(43, 42, 39, 0), rgba(43, 42, 39, 0.05) 45%, rgba(255, 255, 255, 0.5) 75%, rgba(255, 255, 255, 0));
}
/* Press stamped: the filters in index.html sink these into the board. */
.cover__defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.cover__mark {
  position: absolute;
  top: 50%;
  left: 52.5cqw; /* centre of the board beside the spine */
  width: 16.8cqw;
  height: 16.8cqw;
  transform: translate(-50%, -50%);
  overflow: visible;
}
.cover__stamp {
  position: absolute;
  left: 8.5cqw;
  bottom: 5.5cqh;
  width: 6cqw;
  height: 26cqw;
  overflow: visible;
  font-family: var(--display);
  font-weight: 900;
  font-size: 48px; /* SVG user units: 4.8cqw on the cover */
  letter-spacing: 0.06em;
  fill: var(--board); /* blind embossed: the board's own colour, raised */
}
.cover__ribbon {
  position: absolute;
  top: 100%;
  left: 63%;
  width: 3.5cqw;
  height: 7cqh;
  background: var(--ink);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 80%, 0 100%);
}

/* The white boards a 3D open book sits on (built by src/main.js). */
.board-sheet {
  position: relative;
  background: var(--board);
  box-shadow: 30px 40px 60px -30px rgba(30, 28, 24, 0.45);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}
.board-sheet--left { border-radius: 8px 0 0 8px; padding: var(--board-m) 0 var(--board-m) var(--board-m); }
.board-sheet--right { border-radius: 0 8px 8px 0; }
/* The spine's edge, beyond the cover: the same cloth, in its own shade. */
.spine-cloth { background: var(--cloth-shade); border-radius: 3px; }

/* ---- The desk ------------------------------------------------------------- */

/* Threads under the notebook (src/desk.js draws and moves them). Only in the
   open-book layout: on a phone there is no desk beside the page. The canvas
   runs a little past every edge so its mouse drift never shows one. */
.desk { display: none; }
html.is-3d[data-mode="book"] .desk {
  display: block;
  position: fixed;
  left: -24px;
  top: -24px;
  pointer-events: none;
  will-change: transform;
}

/* ---- Chrome around the book ----------------------------------------------- */

.hint, .site-footer { display: none; }

html.is-3d body { position: fixed; inset: 0; overflow: hidden; }
html.is-3d .book { position: fixed; inset: 0; }

html.is-3d .hint {
  display: block;
  position: fixed;
  left: 0;
  right: 0;
  /* Above the footer, which is always on screen. */
  bottom: 56px;
  margin: 0;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
  pointer-events: none;
  transition: opacity 300ms ease;
}
html.is-3d .hint[hidden] { display: block; opacity: 0; }

/* A page that turns when clicked (src/main.js marks it). */
html.is-3d [data-turn] { cursor: pointer; }
html.is-3d [data-turn] input,
html.is-3d [data-turn] form { cursor: auto; }

/* Sticky notes on the page edge, one per section. The end glued to the page
   is the translucent part of the flag; the label sits on the part that
   stands out past the board. --tab-* come from src/main.js. */
.tabs, .tab { display: none; }
.tab {
  align-items: center;
  justify-content: center;
  width: var(--tab-w);
  height: var(--tab-h);
  padding: 0 0 0 var(--tab-pad);
  border: 0;
  border-radius: 0 5px 5px 0;
  background: linear-gradient(to right, rgba(246, 205, 182, 0.55) var(--tab-pad), #F6CDB6 var(--tab-pad));
  box-shadow: 2px 2px 5px -3px rgba(30, 28, 24, 0.45);
  color: var(--ink);
  font: 700 11px/1 var(--sans);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transition: background-color 160ms ease, color 160ms ease, opacity 300ms ease;
}
.tab span { writing-mode: vertical-rl; }
/* The face a turned leaf shows, on the left edge: mirror the glue side. */
.tab--back {
  padding: 0 var(--tab-pad) 0 0;
  border-radius: 5px 0 0 5px;
  background: linear-gradient(to left, rgba(246, 205, 182, 0.55) var(--tab-pad), #F6CDB6 var(--tab-pad));
  box-shadow: -2px 2px 5px -3px rgba(30, 28, 24, 0.45);
}
.tab:hover { background-image: linear-gradient(to right, rgba(240, 178, 146, 0.6) var(--tab-pad), #F0B292 var(--tab-pad)); }
.tab--back:hover { background-image: linear-gradient(to left, rgba(240, 178, 146, 0.6) var(--tab-pad), #F0B292 var(--tab-pad)); }
/* The section on screen. */
.tab[aria-current] { background-image: linear-gradient(to right, rgba(205, 72, 5, 0.6) var(--tab-pad), var(--ember-solid) var(--tab-pad)); color: #fff; }
.tab--back[aria-current] { background-image: linear-gradient(to left, rgba(205, 72, 5, 0.6) var(--tab-pad), var(--ember-solid) var(--tab-pad)); }
html.is-3d .tab { display: flex; }
/* On a phone the cover stays bare; the notes come with the first page. */
html.is-3d[data-mode="single"][data-closed] .tab { opacity: 0; pointer-events: none; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

html.is-3d .site-footer {
  display: flex;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
  padding: 12px clamp(16px, 6vw, 96px);
  border-top: 1px solid var(--rule);
  background: rgba(231, 229, 223, 0.92);
  font-size: 13px;
  color: var(--ink-3);
  transition: opacity 300ms ease;
}
.site-footer svg { width: 34px; height: 10px; }
.site-footer__copy { margin-right: auto; }
.site-footer a { color: var(--ink-2); }

/* ---- One page per screen (phones, portrait) -------------------------------- */

html[data-mode="single"] .page {
  padding: 60px 26px 28px 32px;
  gap: 18px;
  border-radius: 0 4px 4px 0;
  background-image:
    linear-gradient(to right, rgba(40, 36, 28, 0.12), rgba(0, 0, 0, 0) 10%),
    radial-gradient(rgba(43, 42, 39, 0.16) 1px, transparent 1.4px);
  background-size: 100% 100%, 18px 18px;
  overflow-y: auto;
  box-shadow: 18px 24px 40px -24px rgba(30, 28, 24, 0.45), -6px 0 0 var(--cloth);
}
html[data-mode="single"] .page__num { left: auto; right: 18px; top: 18px; width: 26px; height: 26px; font-size: 11px; }
html[data-mode="single"] .display--xl { font-size: 42px; }
html[data-mode="single"] .display--lg { font-size: 36px; }
html[data-mode="single"] .display--md { font-size: 26px; }
html[data-mode="single"] .display--sm,
html[data-mode="single"] .principles h3 { font-size: 22px; }
html[data-mode="single"] .body { font-size: 16px; line-height: 1.65; }
html[data-mode="single"] .principles { gap: 22px; }
html[data-mode="single"] .kanban { grid-template-columns: minmax(0, 1fr); gap: 14px; }
html[data-mode="single"] .slip { padding: 10px 12px; font-size: 14px; }
html[data-mode="single"] .ledger { font-size: 13px; }
html[data-mode="single"] .ledger li { gap: 8px; }
html[data-mode="single"] .ledger .chip { display: none; }
html[data-mode="single"] .ledger strong,
html[data-mode="single"] .ledger__amt { width: 80px; }
html[data-mode="single"] .totals strong { font-size: 15px; }
html[data-mode="single"] .hand--lg { font-size: 18px; }
html[data-mode="single"] .page[data-face="10"] { padding-top: 60px; }
html[data-mode="single"] .signup input { font-size: 19px; }
/* One line on a phone: the links, nothing decorative. */
html.is-3d[data-mode="single"] .site-footer { gap: 16px; padding: 8px 16px; font-size: 12px; justify-content: center; }
html.is-3d[data-mode="single"] .site-footer svg,
html.is-3d[data-mode="single"] .site-footer__copy { display: none; }
html.is-3d[data-mode="single"] .hint { bottom: 40px; }

/* ---- No script: the notebook as a plain document --------------------------- */

html.no-js .book {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  padding: 32px 16px 64px;
}
html.no-js .page {
  width: min(100%, 578px);
  height: auto;
  min-height: 0;
  padding: 56px 28px 40px;
  border-radius: 4px;
}
html.no-js .cover { width: min(100%, 360px); height: auto; aspect-ratio: 590 / 720; }
html.no-js .kanban { grid-template-columns: minmax(0, 1fr); }

@media (prefers-reduced-motion: reduce) {
  .caret { animation: none; }
}
