/* Self-hosted fonts (Fontsource, latin subset). Was Google Fonts until Nov 2026. */
@font-face{font-family:'Cinzel';font-style:normal;font-weight:500;font-display:swap;src:url(/assets/fonts/cinzel-latin-500-normal.woff2) format('woff2')}
@font-face{font-family:'Cinzel';font-style:normal;font-weight:700;font-display:swap;src:url(/assets/fonts/cinzel-latin-700-normal.woff2) format('woff2')}
@font-face{font-family:'Lato';font-style:normal;font-weight:400;font-display:swap;src:url(/assets/fonts/lato-latin-400-normal.woff2) format('woff2')}
@font-face{font-family:'Lato';font-style:italic;font-weight:400;font-display:swap;src:url(/assets/fonts/lato-latin-400-italic.woff2) format('woff2')}
@font-face{font-family:'Lato';font-style:normal;font-weight:700;font-display:swap;src:url(/assets/fonts/lato-latin-700-normal.woff2) format('woff2')}
/* Layout: full-bleed cinematic hero, then a scrolling shelf of books, author, schools, footer. */
:root{
  --ink:#050a18; --deep:#0a1430; --panel:#0d1938; --line:#1d2d56;
  --gold:#e3b04b; --gold-lo:#8d6a2a;
  --cream:#f4ecdc; --mute:#a8b4cd;
  --f-dsp:'Cinzel', 'Trajan Pro', Georgia, serif;
  --f-txt:'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color-scheme: dark;
}
*{box-sizing:border-box}
body{margin:0;background:var(--ink);color:var(--cream);font:400 16px/1.65 var(--f-txt);-webkit-font-smoothing:antialiased}
img{max-width:100%;display:block}
h1,h2,h3{font-family:var(--f-dsp);font-weight:700;text-wrap:balance;margin:0;letter-spacing:.01em}
a{color:inherit}
.wrap{max-width:1140px;margin-inline:auto;padding-inline:20px}

/* nav */
.nav{position:sticky;top:env(safe-area-inset-top,0px);z-index:50;background:rgba(5,10,24,.9);
  backdrop-filter:blur(10px);border-bottom:1px solid var(--line)}
.navi{display:flex;align-items:center;gap:24px;min-height:68px;flex-wrap:wrap;padding-block:10px}
.lg{font-family:var(--f-dsp);font-size:19px;line-height:1.05;color:var(--gold);letter-spacing:.06em;text-decoration:none}
.lg small{display:block;font-size:11px;letter-spacing:.22em;color:rgba(227,176,75,.8)}
.nl{margin-left:auto;display:flex;gap:22px;flex-wrap:wrap}
.nl a{font-size:12px;letter-spacing:.16em;text-transform:uppercase;color:var(--mute);text-decoration:none;padding-block:6px}
.nl a:hover,.nl a:focus-visible{color:var(--gold)}

/* buttons */
.btn{display:inline-block;background:linear-gradient(180deg,var(--gold),var(--gold-lo));color:#1a1204;
  font-weight:700;font-size:13px;letter-spacing:.1em;text-transform:uppercase;text-decoration:none;
  padding:13px 24px;border-radius:3px;border:1px solid #f0cb7a}
.btn:hover,.btn:focus-visible{filter:brightness(1.1)}
.btn.sm{padding:10px 16px;font-size:11.5px;width:100%;text-align:center}
.btn.out{background:none;color:var(--cream);border:1px solid #3a4b7d}
.btn.ghost{background:none;color:var(--mute);border:1px solid var(--line);cursor:default}

/* hero */
.hero{position:relative;overflow:hidden;background:var(--deep)}
.hero img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:76% 50%}
.hero::after{content:"";position:absolute;inset:0;
  background:linear-gradient(100deg,rgba(5,10,24,.88) 0%,rgba(5,10,24,.80) 30%,rgba(5,10,24,.22) 62%,rgba(5,10,24,.46) 100%)}
.heroc{position:relative;z-index:2;padding-block:78px 86px;max-width:560px}
.hero h1{font-size:clamp(34px,6.2vw,58px);line-height:1.08;color:var(--gold)}
.hero p{font-size:clamp(16px,2.1vw,18.5px);color:#e2dcd0;margin:22px 0 30px;max-width:44ch}
.cta{display:flex;gap:14px;flex-wrap:wrap}
.hero p.eb{font-size:12px;letter-spacing:.18em;color:rgba(227,176,75,.85);margin:0 0 18px;max-width:none}

/* section headers */
.sec{padding-block:70px}
.shd{text-align:center;margin-bottom:44px}
.shd h2{font-size:clamp(17px,2.6vw,23px);letter-spacing:.16em;text-transform:uppercase;color:var(--gold)}
.rule{display:block;width:74px;height:1px;background:var(--gold-lo);margin:16px auto 0}

/* books */
.shelf{display:grid;grid-template-columns:repeat(auto-fit,minmax(196px,1fr));gap:22px}
.bk{display:flex;flex-direction:column;min-width:0;background:var(--panel);border:1px solid var(--line);
  border-radius:5px;overflow:hidden}
.cv{width:100%;aspect-ratio:1;object-fit:cover}
.cv.ph{display:grid;place-items:center;background:linear-gradient(150deg,#12204a,#0a1430);
  font-family:var(--f-dsp);color:#2f4477;font-size:15px;letter-spacing:.14em;text-align:center;line-height:1.7}
.bkb{padding:16px 15px 17px;display:flex;flex-direction:column;gap:9px;flex:1}
.st{margin:0;font-size:10.5px;letter-spacing:.17em;text-transform:uppercase;font-weight:700}
.st.live{color:#7fc47f}.st.soon{color:rgba(227,176,75,.8)}
.bk h3{font-size:12px;font-weight:500;line-height:1.5;color:var(--mute);letter-spacing:.04em}
.bk h3 b{display:block;font-size:15.5px;font-weight:700;color:var(--cream);letter-spacing:.02em;margin-top:2px}
.bl{margin:0;font-size:13px;line-height:1.6;color:#95a2bd;flex:1}
.bkb .btn{margin-top:4px}
.more{text-align:center;margin:34px 0 0;font-size:13.5px;letter-spacing:.06em;color:#8b98b5}

/* author */
.auth{background:var(--deep);border-block:1px solid var(--line)}
.authg{display:grid;grid-template-columns:150px 1fr;gap:30px;align-items:start;padding-block:62px}
.pfp{width:150px;height:150px;border-radius:50%;border:2px solid var(--gold-lo);
  object-fit:cover;object-position:50% 45%;background:#0a1430;box-shadow:0 6px 26px rgba(0,0,0,.45)}
.eb{font-size:11px;letter-spacing:.2em;text-transform:uppercase;color:var(--gold-lo);margin:0 0 6px}
.auth h2{font-size:clamp(21px,3.4vw,28px);color:var(--gold);margin-bottom:14px}
.auth p{color:#c9d2e4;max-width:60ch}
.q{margin:24px 0 0;padding-left:22px;border-left:2px solid var(--gold-lo);
  font-family:var(--f-dsp);font-size:clamp(16px,2.3vw,19px);line-height:1.55;color:var(--cream)}
.sig{font-family:var(--f-dsp);font-size:19px;color:var(--gold);margin-top:20px}

/* schools */
.two{display:grid;grid-template-columns:1fr 1fr;gap:26px}
.pnl{background:var(--panel);border:1px solid var(--line);border-radius:5px;padding:30px 26px;min-width:0}
.pnl h2,.pnl h3{font-size:15px;letter-spacing:.13em;text-transform:uppercase;color:var(--gold);margin-bottom:16px}
.tk{list-style:none;padding:0;margin:0 0 18px;display:grid;gap:11px}
.tk li{display:flex;gap:11px;font-size:15px;color:#d3dbea}
.tk li::before{content:"✓";color:var(--gold);font-weight:700;flex:none}
.pnl p{font-size:14.5px;color:#9dabc6;margin:0}
form{display:grid;gap:11px}
.row2{display:grid;grid-template-columns:1fr 1fr;gap:11px}
input,textarea{width:100%;min-width:0;font:400 14.5px var(--f-txt);color:var(--cream);
  background:#081228;border:1px solid var(--line);border-radius:3px;padding:12px 13px}
input::placeholder,textarea::placeholder{color:#63739a}
input:focus,textarea:focus{outline:2px solid var(--gold-lo);outline-offset:1px;border-color:transparent}
textarea{resize:vertical;min-height:88px}
form .btn{margin-top:4px;justify-self:stretch;text-align:center}
.note{font-size:13px;color:#7fc47f;margin:0;min-height:1.4em}

/* footer */
.ft{border-top:1px solid var(--line);background:var(--ink)}
.ftg{display:flex;gap:26px;align-items:center;justify-content:space-between;flex-wrap:wrap;padding-block:34px}
.ft p{margin:0;font-size:13px;color:#7c8aa8}
.tag{font-family:var(--f-dsp);color:var(--gold);font-size:15px}

@media (max-width:820px){
  .authg{grid-template-columns:1fr;justify-items:start}
  .two{grid-template-columns:1fr}
  .nl{width:100%;margin-left:0;gap:16px}
}
@media (max-width:420px){ .row2{grid-template-columns:1fr} .heroc{padding-block:56px 62px} }
@media (prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}
/* ---------------------------------------------------------------
   STRUCTURAL FIX — <picture> wrappers
   Images are now <picture><img></picture> for WebP support. <picture> is
   inline by default, so the img lost its width constraint. These three
   rules restore the exact sizing the original markup had. No design change.
   --------------------------------------------------------------- */
.bk picture,.bk>a,.hero picture,.bherog picture,.authg picture{display:block}
.bk picture,.bk>a{width:100%}
.hero picture{position:absolute;inset:0;width:100%;height:100%}
.bherog picture{width:100%}
/* width/height attrs are on the <img> for layout stability (stops content jumping
   as images load). They'd otherwise override aspect-ratio, so height goes auto. */
.bk .cv,.bherog img{height:auto}

/* ---------------------------------------------------------------
   BOOK DETAIL PAGES
   New components only. Nothing above this line has been changed,
   so every existing section renders exactly as before.
   --------------------------------------------------------------- */
.bhero{background:var(--deep);border-bottom:1px solid var(--line)}
.bherog{display:grid;grid-template-columns:320px 1fr;gap:44px;align-items:center;padding-block:62px}
.bherog img{width:100%;border-radius:5px;border:1px solid var(--line);box-shadow:0 14px 44px rgba(0,0,0,.5)}
.bhero h1{font-size:clamp(28px,4.6vw,44px);color:var(--gold);line-height:1.1}
.bhero .sub{font-size:12px;letter-spacing:.2em;text-transform:uppercase;color:var(--gold-lo);margin:0 0 10px}
.bhero .lede{font-size:clamp(16px,2vw,18px);color:#e2dcd0;margin:18px 0 0;max-width:52ch}
.meta{display:flex;gap:22px;flex-wrap:wrap;margin:22px 0 26px;font-size:13px;color:var(--mute)}
.meta b{color:var(--cream);font-weight:700}
.bcta{display:flex;gap:12px;flex-wrap:wrap}
.brev{margin:16px 0 0;font-size:15px;color:#e2dcd0}
.brev a{color:var(--gold);font-weight:600;text-decoration:underline;text-underline-offset:3px}
.prose{max-width:66ch;margin-inline:auto}
.prose p{color:#c9d2e4;font-size:16.5px}
.vid{position:relative;aspect-ratio:16/9;max-width:860px;margin-inline:auto;border-radius:5px;
  overflow:hidden;border:1px solid var(--line);background:var(--panel)}
.vid iframe{position:absolute;inset:0;width:100%;height:100%;border:0}
.also{display:grid;grid-template-columns:repeat(auto-fit,minmax(196px,330px));gap:22px;justify-content:center}
.crumb{font-size:12.5px;color:var(--mute);padding-block:18px}
.crumb a{color:var(--mute);text-decoration:none}
.crumb a:hover,.crumb a:focus-visible{color:var(--gold)}
.crumb span{color:#5a688a;margin-inline:7px}
@media (max-width:820px){ .bherog{grid-template-columns:1fr;gap:28px;padding-block:44px} }

/* ---------------------------------------------------------------
   HERO LEGIBILITY ON NARROW SCREENS
   On a phone the hero is portrait, so the original left-to-right
   scrim runs out before the text does and the paragraph lands on
   bright artwork. Same colour, same design — the wash is just
   re-angled so it covers the text block. Desktop is untouched.
   --------------------------------------------------------------- */
@media (max-width:820px){
  .hero::after{background:
    linear-gradient(180deg,rgba(5,10,24,.9) 0%,rgba(5,10,24,.78) 50%,rgba(5,10,24,.22) 100%),
    linear-gradient(90deg,rgba(5,10,24,.42) 0%,rgba(5,10,24,0) 70%)}
}

/* ---------------------------------------------------------------
   LOOK INSIDE — interior artwork gallery on book pages
   New component. Uses the existing panel/border tokens so it sits
   inside the established design rather than beside it.
   --------------------------------------------------------------- */
.lookp{max-width:60ch;margin:0 auto 34px;text-align:center;color:#b9c4da;font-size:15.5px}
.gal{display:grid;grid-template-columns:repeat(2,1fr);gap:20px;max-width:940px;margin:0 auto}
.gi{margin:0;border:1px solid var(--line);border-radius:6px;overflow:hidden;
  background:var(--deep);box-shadow:0 12px 34px rgba(0,0,0,.42);line-height:0}
.gi picture{display:block}
.gi img{width:100%;height:auto;display:block;transition:transform .5s ease}
.gi:hover img{transform:scale(1.035)}
@media (max-width:620px){ .gal{grid-template-columns:1fr;gap:14px} }
@media (prefers-reduced-motion:reduce){ .gi img,.gi:hover img{transition:none;transform:none} }

/* ---------------------------------------------------------------
   BOOK HERO BALANCE + 404
   The book hero grid had no max width, so on a wide screen the text
   column stretched and left a block of dead space on the right.
   Constraining and centring it keeps the same look, composed.
   --------------------------------------------------------------- */
.bherog{max-width:1080px;margin-inline:auto;grid-template-columns:460px minmax(0,1fr);gap:56px}
@media (max-width:820px){ .bherog{max-width:none;margin-inline:0;grid-template-columns:1fr} }

.lost{text-align:center}
.lost h1{font-size:clamp(28px,4.4vw,42px);color:var(--gold);line-height:1.15;margin:6px 0 0}
.lostp{color:#b9c4da;font-size:16.5px;max-width:52ch;margin:20px auto 30px;line-height:1.7}
.lost .cta{justify-content:center}

/* ---------- "Look inside" lightbox ----------
   .gib is a real <button> wrapping each thumbnail so it is clickable and
   keyboard-reachable. Every default button style is stripped so the gallery
   looks exactly as it did before — only the cursor changes. */
.gib{display:block;width:100%;padding:0;margin:0;border:0;background:none;
  font:inherit;color:inherit;cursor:zoom-in}
.gib:focus-visible{outline:2px solid var(--gold);outline-offset:3px}

html.lbopen{overflow:hidden}
.lb{position:fixed;inset:0;z-index:999;display:none;align-items:center;justify-content:center;
  background:rgba(5,10,24,.95);padding:28px}
.lb.on{display:flex}
.lbf{margin:0;display:flex;flex-direction:column;align-items:center;gap:16px;
  max-width:min(94vw,980px)}
.lbi{max-width:100%;max-height:76vh;width:auto;height:auto;display:block;border-radius:5px;
  border:1px solid var(--line);box-shadow:0 26px 70px rgba(0,0,0,.65)}
.lbc{margin:0;color:var(--mute);font-size:14.5px;line-height:1.6;text-align:center;max-width:62ch}
.lbx,.lbn{position:absolute;border:1px solid var(--line);background:rgba(244,236,220,.07);
  color:var(--cream);cursor:pointer;border-radius:50%;line-height:1;padding:0;
  display:flex;align-items:center;justify-content:center}
.lbx{top:20px;right:22px;width:44px;height:44px;font-size:24px}
.lbn{top:50%;transform:translateY(-50%);width:46px;height:46px;font-size:28px}
.lbp{left:18px}.lbq{right:18px}
.lbx:hover,.lbn:hover{background:rgba(244,236,220,.16);border-color:rgba(227,176,75,.8)}
.lbx:focus-visible,.lbn:focus-visible{outline:2px solid var(--gold);outline-offset:2px}

@media (max-width:620px){
  .lb{padding:14px}
  .lbi{max-height:68vh}
  .lbn{width:38px;height:38px;font-size:23px}
  .lbp{left:6px}.lbq{right:6px}
  .lbx{top:10px;right:10px;width:38px;height:38px;font-size:21px}
}
@media (prefers-reduced-motion:reduce){ .gib{cursor:pointer} }

/* Homepage review prompt. Deliberately quiet: it is for the reader who already
   finished a book and came here from the printed back matter, not for the
   browsing visitor the cards above are aimed at. */
.rev{text-align:center;margin:14px 0 0;font-size:13.5px;line-height:1.7;color:#8b98b5;
  max-width:56ch;margin-inline:auto}
.rev a{color:var(--gold);text-decoration:none;border-bottom:1px solid rgba(227,176,75,.35)}
.rev a:hover,.rev a:focus-visible{border-bottom-color:var(--gold)}

/* ---------------------------------------------------------------
   TEACHERS PAGE HERO
   Same construction as the homepage hero — artwork behind, scrim
   over it, text on top — with two differences. The wash is heavier
   (.97/.92 against .96/.88) because Doi Suthep is warm and bright
   where the crystal cave is dark, and object-position is centred
   because this file is already cropped to the hero band rather
   than being a wide frame we slide across.
   --------------------------------------------------------------- */
.thero{position:relative;overflow:hidden;background:var(--deep);
  /* A floor, because the height of these comes from the text and the about
     page has the least of it. Without this it was 404px at 1440 and kept
     getting thinner as the window widened — by full screen the artwork was a
     letterbox strip. Scales with the window so a wide monitor gets a taller
     band instead of a thinner one, and stops at 700 so it never eats the
     screen. Content still wins when there is more of it: the teachers hero
     is 674 on its own and this never shortens it. */
  min-height:clamp(460px,34vw,700px);
  display:flex;flex-direction:column;justify-content:center}
.thero picture{position:absolute;inset:0;width:100%;height:100%}
.thero img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:50% 50%}
.thero::after{content:"";position:absolute;inset:0;
  background:linear-gradient(100deg,rgba(5,10,24,.89) 0%,rgba(5,10,24,.84) 34%,rgba(5,10,24,.30) 66%,rgba(5,10,24,.52) 100%)}
/* width:100% matters. .wrap carries margin-inline:auto, and an auto margin on
   a flex item makes it shrink to its content and centre itself instead of
   filling the line — which indented the hero copy ~250px further than the
   logo and the breadcrumb directly above it. Fill the line and .wrap's own
   max-width does the centring, so hero text lines up with everything else. */
.thero > .wrap{position:relative;z-index:2;width:100%;max-width:none;margin-inline:0;
  padding-inline:clamp(20px,3.4vw,66px)}
/* Each child capped so the lines stay readable once the container is the full
   width of the window. */
.thero > .wrap > *{max-width:56ch}
.thero p,.thero .q{max-width:56ch}

/* Phone: the hero turns portrait, so the left-to-right wash runs out
   long before the text does. Re-angled downward, same colours. */
@media (max-width:820px){
  .thero::after{background:
    linear-gradient(180deg,rgba(5,10,24,.92) 0%,rgba(5,10,24,.82) 52%,rgba(5,10,24,.3) 100%),
    linear-gradient(90deg,rgba(5,10,24,.38) 0%,rgba(5,10,24,0) 70%)}
}

/* ---------------------------------------------------------------
   FREE PRINTABLES STRIP — Teachers & Schools panel
   A slow continuous drift of colouring-sheet thumbnails.
   CSS only, deliberately: the CSP permits exactly one hashed inline
   script and nothing else, so this must never need JavaScript.
   The track holds TWO identical copies of the set and shifts by -50%,
   which lands copy 2 exactly where copy 1 began — a seamless loop.
   For that to be exact the spacing has to be part of each card's own
   width (margin-right), never a flex `gap`, or the loop jumps.
   The global prefers-reduced-motion rule higher up this file already
   stops it dead for anyone who asked their system for less movement.
   --------------------------------------------------------------- */
.pstrip{position:relative;overflow:hidden;margin:0 0 20px;
  -webkit-mask-image:linear-gradient(90deg,transparent,#000 4%,#000 96%,transparent);
          mask-image:linear-gradient(90deg,transparent,#000 4%,#000 96%,transparent)}
.ptrack{display:flex;width:max-content;animation:pdrift 57s linear infinite}
.pcard{flex:none;width:150px;margin-right:13px;border:1px solid var(--line);
  border-radius:4px;overflow:hidden;background:#fff;line-height:0}
.pcard img{display:block;width:100%;height:auto}
@keyframes pdrift{from{transform:translateX(0)}to{transform:translateX(-50%)}}

/* Larger cards on /teachers/, where the printables ARE the page rather than a
   teaser in a half-width panel. Every duration here is set so the strip drifts
   at the same ~20px per second whatever the card size: change a width and you
   must change the matching duration, or the big version races the small one.
   half-track = 7 x (width + margin); duration = half-track / 20. */
.pstrip.lg .pcard{width:210px;margin-right:18px}
.pstrip.lg .ptrack{animation-duration:80s}

@media (max-width:600px){
  .pcard,.pstrip.lg .pcard{width:130px;margin-right:12px}
  .ptrack,.pstrip.lg .ptrack{animation-duration:50s}
}

/* ---------------------------------------------------------------
   COLORING PAGES HERO
   The artwork is white line art, so the usual all-over scrim turns it
   grey. Instead the picture sits on the right and the page colour runs
   solid on the left, fading into it — the text never sits on white.
   On a phone the picture drops below the text, same fade, top-down.
   --------------------------------------------------------------- */
.thero.chero picture{left:auto;right:0;width:64%}
.thero.chero img{object-position:42% 50%}
.thero.chero::after{background:linear-gradient(90deg,#050a18 0%,#050a18 36%,rgba(5,10,24,.7) 44%,rgba(5,10,24,.15) 62%,rgba(5,10,24,0) 80%)}
@media (max-width:820px){
  .thero.chero{padding-bottom:210px}
  .thero.chero picture{top:auto;bottom:0;height:280px;width:100%}
  .thero.chero img{object-position:50% 45%}
  .thero.chero::after{background:linear-gradient(180deg,#050a18 0%,#050a18 calc(100% - 280px),rgba(5,10,24,.6) calc(100% - 215px),rgba(5,10,24,0) calc(100% - 120px))}
}

/* Page heroes (Teachers, About, Coloring Pages) in the homepage hero's
   colours: gold heading, warm off-white copy. .auth p would otherwise turn
   the copy and the eyebrow cool grey-blue. */
.thero h1{color:var(--gold)}
.thero p{color:#e2dcd0}
.thero p b{color:#f6f0e6}
.thero .eb{color:var(--gold)}

/* A character's own set (e.g. the tiger pack), drifting like the strip on
   the homepage but with a caption and download links under each sheet.
   Same loop maths: spacing lives in margin-right, ~20px per second.
   half-track = 7 x (210 + 18) = 1596 -> 80s; phone 7 x (150 + 12) -> 57s. */
.pitem{flex:none;width:210px;margin-right:18px;text-align:center;line-height:1.4}
.pitem .pcard{width:100%;margin-right:0}
.pitem .pcard img{aspect-ratio:3/4;object-fit:contain}
.pstrip.set .ptrack{animation-duration:calc(var(--n,7) * 11.4s)}
@media (max-width:600px){
  .pitem{width:150px;margin-right:12px}
  .pstrip.set .ptrack{animation-duration:calc(var(--n,7) * 8.1s)}
}

/* ---------------------------------------------------------------
   HOMEPAGE "MEET THE AUTHOR"
   Two columns: Wolf and the bio on the left, his own words (every quote
   printed in one of his author's notes) in a panel on the right, so the
   band no longer runs out half way across the page.
   --------------------------------------------------------------- */
.authx{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);gap:clamp(28px,5vw,64px);align-items:center;padding-block:66px}
.authh{display:flex;align-items:center;gap:30px;margin-bottom:22px}
.authh picture{display:block;flex:none}
.authh .pfp{width:200px;height:200px}
.authh h2{margin-bottom:0}
.chips{list-style:none;display:flex;flex-wrap:wrap;gap:8px;margin:20px 0 0;padding:0}
.chips li{font-size:12.5px;letter-spacing:.06em;color:#d3dbea;border:1px solid var(--line);border-radius:999px;padding:6px 12px}
.wq{padding:30px 32px}
.wqb{font-family:var(--f-dsp);font-size:clamp(20px,2.4vw,26px);line-height:1.3;color:var(--gold);margin:6px 0 10px;border:0;padding:0}
.wqs{font-size:13px;color:var(--mute);margin:0 0 22px}
.wql{list-style:none;margin:0;padding:0;border-top:1px solid var(--line)}
.wql li{padding:16px 0;border-bottom:1px solid var(--line)}
.wql li:last-child{border-bottom:0;padding-bottom:0}
.wql q{display:block;color:#e2dcd0;font-size:16px;line-height:1.5}
.wql q::before{content:"\201C"}.wql q::after{content:"\201D"}
.wql span{display:block;margin-top:6px;font-size:12px;letter-spacing:.14em;text-transform:uppercase;color:rgba(227,176,75,.8)}
@media (max-width:820px){
  .authx{grid-template-columns:1fr;padding-block:52px}
  .authh{gap:20px}
  .authh .pfp{width:130px;height:130px}
  .wq{padding:24px 22px}
}

/* ---------------------------------------------------------------
   BOOKS DROPDOWN in the top menu. CSS only (the CSP allows one hashed
   inline script, so no JS here): opens on hover, and on keyboard focus.
   "Books" itself still goes to the shelf on the homepage.
   --------------------------------------------------------------- */
.dd{position:relative;display:inline-block}
.ddm{display:none;position:absolute;left:-14px;top:100%;z-index:50;min-width:250px;padding:8px 0;
  background:#0a1430;border:1px solid var(--line);border-radius:6px;box-shadow:0 14px 34px rgba(0,0,0,.45)}
.dd:hover .ddm,.dd:focus-within .ddm{display:block}
.ddm a{display:block;padding:10px 16px!important;white-space:nowrap}
.ddm a small{font-size:10px;letter-spacing:.12em;color:var(--gold-lo);margin-left:6px}
.ddm a:last-child{border-top:1px solid var(--line);margin-top:4px}

/* Coloring pages: the sheet is portrait, so at the book-cover width it ran
   taller than the screen. Narrower column, sheet capped at 340px. */
@media (min-width:821px){ .chero-sheet .bherog{grid-template-columns:340px minmax(0,1fr)} }
.chero-sheet .bherog picture{max-width:340px}

/* "Read the story" on coloring pages: one book, so lay its card out wide —
   cover left, text right — instead of a lone narrow card in a wide band. */
.bkwide{max-width:860px;margin-inline:auto}
@media (min-width:700px){
  .bkwide .bk{display:grid;grid-template-columns:340px minmax(0,1fr);align-items:center}
  .bkwide .bk .bkb{padding:28px 34px}
  .bkwide .bk h3{font-size:clamp(22px,2.4vw,28px)}
  .bkwide .bk .bl{font-size:16px}
  .bkwide .bk .btn{width:auto;align-self:flex-start;padding-inline:34px}
}

/* Homepage book shelf a touch bigger (22 Oct): this one band runs wider
   than the rest of the page (1140 -> 1300), so each card grows ~15%. */
#books > .wrap{max-width:1300px}
#books .shelf{gap:26px}

/* ---------------------------------------------------------------
   HOMEPAGE HERO, 22 Oct: text lines up with the book shelf (1300),
   and so do the logo and menu. Joel's square crystal-cave artwork sits
   on the right with the page colour solid on the left, fading into it.
   Phones: the picture drops below the text with a top-down fade.
   --------------------------------------------------------------- */
.hero > .wrap,.nav > .wrap{max-width:1300px}
.hero picture{left:auto;right:0;width:64%}
.hero img{object-position:50% 58%}
.hero::after{background:linear-gradient(90deg,#050a18 0%,#050a18 35%,rgba(5,10,24,.85) 41%,rgba(5,10,24,.45) 50%,rgba(5,10,24,.1) 60%,rgba(5,10,24,0) 70%)}
@media (max-width:820px){
  .hero{padding-bottom:300px}
  .hero picture{top:auto;bottom:0;width:100%;height:380px}
  .hero img{object-position:50% 75%}
  .hero::after{background:linear-gradient(180deg,#050a18 0%,#050a18 calc(100% - 380px),rgba(5,10,24,.55) calc(100% - 300px),rgba(5,10,24,0) calc(100% - 200px))}
}
@media (min-width:821px){ .hero{min-height:700px;display:flex;align-items:center} .hero > .wrap{width:100%} }

/* Teachers and About heroes brighter, like the homepage (22 Oct): dark only
   behind the text on the left, the artwork clear on the right, and a touch
   more light in the picture. Desktop only; phones keep their top-down fade. */
@media (min-width:821px){
  .thero:not(.chero)::after{background:linear-gradient(90deg,rgba(5,10,24,.92) 0%,rgba(5,10,24,.82) 30%,rgba(5,10,24,.25) 52%,rgba(5,10,24,0) 70%)}
}
.thero:not(.chero) img{filter:brightness(1.12) saturate(1.1)}

/* Homepage hero picture brightened to match the Teachers and About heroes. */
.hero img{filter:brightness(1.12) saturate(1.1)}

/* Teachers and About heroes on phones (23 Oct): same layout as the homepage.
   Text first on solid navy, then the artwork as a big clear band underneath,
   instead of the picture sitting dim behind all the text. */
@media (max-width:820px){
  .thero:not(.chero){min-height:0;justify-content:flex-start;padding-bottom:300px}
  .thero:not(.chero) picture{top:auto;bottom:0;height:380px;width:100%}
  .thero:not(.chero) img{object-position:70% 60%}
  .thero:not(.chero)::after{background:linear-gradient(180deg,#050a18 0%,#050a18 calc(100% - 380px),rgba(5,10,24,.55) calc(100% - 300px),rgba(5,10,24,0) calc(100% - 200px))}
}

/* "Available now" as a green pill with a pulsing live dot (Joel, 3 Nov 2026).
   Cards and book-page hero. The gold Buy button is unchanged. The global
   prefers-reduced-motion rule above stops the pulse for those visitors. */
.st.live,.bhero .sub.live{display:inline-flex;align-items:center;gap:8px;width:fit-content;color:#7ee2a0;background:rgba(31,166,74,.15);border:1px solid rgba(31,166,74,.5);border-radius:999px;padding:5px 12px 5px 10px;line-height:1.2}
.ldot{position:relative;flex:none;width:8px;height:8px;border-radius:50%;background:#2fd365}
.ldot::after{content:"";position:absolute;inset:0;border-radius:50%;background:#2fd365;animation:ldot 1.8s ease-out infinite}
@keyframes ldot{0%{transform:scale(1);opacity:.8}100%{transform:scale(2.6);opacity:0}}

/* Book page "After the last page": one alignment, one text style (Nov 2026) */
.alp p{text-align:center}
.alp .more{letter-spacing:normal;font-size:16px;margin-top:22px}
.alp .alp-rev{margin-top:30px;color:#c9d2e4}

/* Book lists (Phase 3, Nov 2026) */
.blist{list-style:none;margin:0;padding:0}
.bl-i{padding:22px 0;border-bottom:1px solid var(--line)}
.bl-i:last-child{border-bottom:0}
.bl-i h3{color:#e8edf7;font-size:1.2rem;margin:0 0 4px;line-height:1.3}
.bl-n{color:var(--gold)}
.bl-by{margin:0 0 10px!important;font-size:.95rem;color:#8b98b5!important}
.bl-i p{margin:0}
.bl-buy{margin-top:10px!important;font-size:.95rem}
.bl-tag{display:inline-block;vertical-align:middle;margin-left:6px;padding:2px 8px;border:1px solid rgba(227,176,75,.45);border-radius:999px;font-size:.7rem;letter-spacing:.08em;text-transform:uppercase;color:var(--gold);font-family:inherit}
.bl-own{display:grid;grid-template-columns:120px 1fr;gap:18px;align-items:start}
.bl-cv img{width:100%;height:auto;border-radius:6px;display:block;background:#1a2440;box-shadow:0 4px 14px rgba(0,0,0,.35)}
.bl-cta{margin-top:12px;display:flex;flex-wrap:wrap;gap:10px}
@media (max-width:520px){.bl-own{grid-template-columns:84px 1fr;gap:14px}}
.bl-gh{color:var(--gold);font-size:1.05rem;letter-spacing:.08em;text-transform:uppercase;margin:34px 0 4px}
.bl-g{list-style:none}

/* Book list hero: intro + cover fan, then quick picks (Nov 2026) */
.blh{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);gap:36px;align-items:center;max-width:1080px;padding-block:40px 18px}
.blh-i{margin-top:16px;font-size:17px;line-height:1.65;color:#c9d2e4}
.fan{display:flex;justify-content:center;align-items:center;padding:10px 0 10px 34px}
.fan img{width:118px;height:auto;margin-left:-34px;border-radius:6px;box-shadow:0 10px 26px rgba(0,0,0,.5);transform:rotate(var(--r));background:#1a2440}
.qp{max-width:1080px;padding-bottom:34px}
.qp-h{font-size:12px;letter-spacing:.2em;text-transform:uppercase;color:var(--gold-lo);margin:0 0 10px}
.qp-l{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:10px}
.qp-l li{border:1px solid var(--line);border-radius:8px;padding:12px 14px;background:rgba(255,255,255,.02)}
.qp-l span{display:block;font-size:12px;letter-spacing:.08em;text-transform:uppercase;color:#8b98b5;margin-bottom:4px}
.qp-l a{color:#e8edf7;text-decoration:none;font-weight:700;border-bottom:1px solid rgba(227,176,75,.35)}
.qp-all{margin-top:14px;font-size:15px}
.qp-all summary{cursor:pointer;color:var(--gold)}
.qp-all ol{columns:2;column-gap:28px;margin:12px 0 0;padding-left:22px;color:#8b98b5}
.qp-all li{margin:0 0 6px;break-inside:avoid}
.qp-all a{color:#c9d2e4;text-decoration:none}
@media (max-width:760px){
  .blh{grid-template-columns:1fr;gap:18px;padding-block:30px 10px}
  .fan{padding-left:24px}
  .fan img{width:74px;margin-left:-24px}
  .qp-all ol{columns:1}
  .qp-l{grid-template-columns:1fr 1fr;gap:8px}
  .qp-l li{padding:10px 11px}
  .qp-l span{font-size:10.5px}
  .qp-l a{font-size:14.5px}
}

/* Phone nav: one row of links, never two (CRO audit, Nov 2026). Short labels
   under 560px, and the row scrolls sideways rather than wrapping if it ever
   still doesn't fit. */
@media (max-width:560px){
  .navi{gap:6px 24px;min-height:0;padding-block:10px 4px}
  .nl{flex-wrap:nowrap;overflow-x:auto;gap:18px;scrollbar-width:none;-webkit-overflow-scrolling:touch}
  .nl::-webkit-scrollbar{display:none}
  .nl a{white-space:nowrap;letter-spacing:.12em;font-size:11.5px}
  .nl-x{display:none}
}

/* Homepage hero: topic line inside the H1 (CRO audit, Nov 2026) */
.hero h1 .h1k{display:block;font-family:var(--f-txt);font-size:13px;letter-spacing:.18em;text-transform:uppercase;color:#e2dcd0;font-weight:700;margin-bottom:12px;line-height:1.5}
.bkrev{margin:10px 0 0;text-align:center;font-size:13px}
.bkrev a{color:#a8b4cd;text-decoration:none;border-bottom:1px solid rgba(168,180,205,.35)}
.wfp2{padding:46px 0 50px}
.wfp2 h2{color:var(--gold);text-align:center;font-size:15px;letter-spacing:.22em;margin:0 0 30px;text-transform:uppercase}
.wfp2 .cols{display:grid;grid-template-columns:1fr 1fr;max-width:980px;margin:0 auto}
.wfp2 .col{padding:0 40px}
.wfp2 .col+.col{border-left:1px solid var(--line)}
.wfp2 p{margin:0 0 .55em;font-style:italic;color:#e8edf7;font-size:17px;line-height:1.6}
.wfp2 .cap{margin-top:14px;font-size:12px;letter-spacing:.14em;text-transform:uppercase;color:var(--gold-lo)}
@media (max-width:700px){.wfp2 .cols{grid-template-columns:1fr}.wfp2 .col{padding:0 4px}.wfp2 .col+.col{border-left:0;border-top:1px solid var(--line);margin-top:26px;padding-top:26px}.wfp2 p{font-size:16px}}
