/* trilavi.com/learn (owner's pick, 22 Nov 2026): the learning book in the site's warm look. Loaded in the page itself,
   after the site's lab.css and redesign.css; the book draws inside the shadow root of #book, and every token below
   reaches it by inheritance. Values point at the site's own tokens wherever the site has one (so a change there moves
   the book too); a few have no site twin and are written out, each in light and dark.

   The colour dictionary (design research R24), one meaning each, on the site's terms (brand master: warm neutrals,
   charcoal never black, yellow is "now" and never a data series or ramp, sage and coral for worked and did not):
     his recording (the truth)  ink: charcoal on paper, cream on the dark page
     our voice                  amber (the site's warm chart amber), in both modes
     look here now              Trilavi yellow; on paper with the charcoal casing the site gives its "now" marks
     worked / better            the site's green (sage on the dark page)
     did not / worse            the site's coral red
     plain and dim marks        the site's mid and quiet greys
   Marks reach 3:1 on the stage and the page, text in a meaning's colour 4.5:1 (lab/test/learnpage.test.cjs). */
#book {
  --floor: var(--bg); --floor-2: var(--panel); --floor-3: var(--bg2); --line: var(--line-2);
  --t: var(--ink); --t-ink: var(--ink);
  --b: #B28324; --b-ink: #8A6516; /* the site's warm chart amber (lab.css --cat-3), the same on the dark page */
  --y: var(--yellow); --y-ink: var(--ink); --y-hl: var(--yellow); --casing: var(--now-casing); --on-y: #2A2826;
  --g: var(--good); --g-ink: var(--good-ink);
  --c: var(--bad); --c-ink: var(--miss-ink);
  --tn-plain: var(--dim); --tn-dim: var(--meta); --tn-dim-ink: var(--dim);
  --held: var(--tn-plain); --held-ink: var(--ink); /* a slice's spectrum, the steps taken: data, so ink, never yellow */
  --glow: var(--ink); --shade: var(--panel); --sheet: var(--bg2); --veil: var(--overlay); --ramp-floor: var(--panel); --ramp-top: #24221F;
  --hand-fill: var(--panel); --hand-edge: var(--ink); --focus-ring: var(--focus);
  --bk-sel-bg: var(--sel-bg); --bk-sel-ink: var(--sel-ink); --bk-key-bg: var(--kp-bg); --bk-key-ink: var(--kp-ink);
  --font: var(--body); --display-font: var(--display); --display-weight: 600;
  --math: "Cambria Math", "STIX Two Math", "Latin Modern Math", "Times New Roman", serif;
  color-scheme: light;
  display: block;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme=light]) #book {
    --b-ink: #D9A441; --y-ink: var(--yellow); --y-hl: transparent; --casing: transparent; --ramp-top: #FFFDF8; color-scheme: dark;
  }
}
:root[data-theme=dark] #book {
  --b-ink: #D9A441; --y-ink: var(--yellow); --y-hl: transparent; --casing: transparent; --ramp-top: #FFFDF8; color-scheme: dark;
}

/* the page around the book: the site's header and menu scroll away (the book's own bar stays at the top while a scene
   fills the screen), and the footer follows the book */
body.learnpage { overscroll-behavior-x: none; }
body.learnpage #bar { position: static; }
/* in the flow, but still the box its menus hang from, and above the book's own bar */
body.learnpage #toc { position: relative; top: auto; z-index: 30; }
body.learnpage .barhome { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; border: 0; }
body.learnpage footer { margin-top: 0; }
