/* Crayon Cottage: "the blank page". The site looks like a page of our books before it is colored:
   white paper, thick dark-brown outlines, and colour only where something is "colored in", with a
   crayon texture, in the six crayon colours of the logo (the Amazon author photo).
   One type scale and one spacing rhythm; mobile first. Fonts: OFL, self-hosted (tools/fonts). */

@font-face { font-family: "Fredoka"; src: url(/fonts/fredoka.woff2) format("woff2"); font-weight: 300 700; font-display: swap; }
@font-face { font-family: "Nunito"; src: url(/fonts/nunito.woff2) format("woff2"); font-weight: 200 1000; font-display: swap; }

/* =========================================================================
   TOKENS
   ========================================================================= */
:root {
  /* paper and ink */
  --paper: #FFFFFF;
  --wash: #F7F3ED;          /* the faintest tint, for quiet backgrounds */
  --rule: #E3D9CD;          /* dashed dividers */
  --ink: #3A2414;           /* outlines and text: the brown of our line art */
  --ink-2: #5E4636;         /* secondary text (8.6:1 on white) */
  --ink-3: #75604F;         /* quiet text (5.9:1 on white) */
  /* crayons: fills */
  --red: #F26450; --orange: #F7A04B; --yellow: #FFD45C; --green: #7CC46A; --blue: #64A9EC; --purple: #A985D6;
  /* strong colours: text and main buttons */
  --roof: #C73A25; --roof-2: #A92F1C; --leaf: #2F6E27;
  /* bands */
  --band-yellow: #FFE9A8; --band-pink: #FFD9CF; --band-blue: #DBEEFB;

  --ol: 3px solid var(--ink);
  --ol-thin: 2px solid var(--ink);
  --pop: 5px 5px 0 var(--ink);
  --pop-sm: 3px 3px 0 var(--ink);
  --pop-lg: 8px 8px 0 var(--ink);
  --tex: repeating-linear-gradient(112deg, rgba(255, 255, 255, .22) 0 2px, transparent 2px 7px),
         repeating-linear-gradient(28deg, rgba(58, 36, 20, .06) 0 1px, transparent 1px 6px);

  /* type scale: 8 sizes, nothing below 13 px */
  --fs-label: .8125rem;                                  /* 13 uppercase labels */
  --fs-sm: .9375rem;                                     /* 15 meta, small print */
  --fs-body: 1.0625rem;                                  /* 17 body */
  --fs-lead: 1.1875rem;                                  /* 19 intros */
  --fs-h3: 1.3125rem;                                    /* 21 card titles */
  --fs-h2: clamp(1.75rem, 1.2rem + 2.2vw, 2.625rem);     /* 28 to 42 */
  --fs-h1: clamp(2.375rem, 1.45rem + 4.4vw, 4.25rem);    /* 38 to 68 */
  --fs-sheet: clamp(1.75rem, 7vw, 2.25rem);              /* phone menu links */

  /* spacing: 4-px steps; one rhythm between sections */
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 64px;
  --section: clamp(72px, 4rem + 4vw, 128px);             /* content-to-content gap between sections */
  --gutter: clamp(16px, 4vw, 28px);
  --wrap: 1160px;
  --r-lg: 22px; --r-md: 16px; --r-sm: 10px;
  color-scheme: light;
}

/* =========================================================================
   BASE
   ========================================================================= */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body { margin: 0; background: var(--paper); color: var(--ink);
  font: 400 var(--fs-body)/1.65 "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--roof-2); text-underline-offset: .2em; text-decoration-thickness: .09em; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 8px; }
h1, h2, h3 { font-family: "Fredoka", "Nunito", sans-serif; color: var(--ink); margin: 0; text-wrap: balance; }
h1 { font-size: var(--fs-h1); font-weight: 700; line-height: 1.04; letter-spacing: -.012em; }
h2 { font-size: var(--fs-h2); font-weight: 600; line-height: 1.1; letter-spacing: -.006em; }
h3 { font-size: var(--fs-h3); font-weight: 600; line-height: 1.2; }
p { margin: 0 0 1em; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--yellow); color: var(--ink); }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding-block: calc(var(--section) / 2); }
.page-head { padding-top: var(--s7); padding-bottom: var(--s5); }
.lead { font-size: var(--fs-lead); line-height: 1.55; color: var(--ink-2); max-width: 38em; margin-top: var(--s4); }
.note { font-size: var(--fs-sm); color: var(--ink-3); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--paper); padding: 8px 12px; z-index: 90; border: var(--ol); border-radius: 8px; }
.skip:focus { left: 8px; }

/* one label style for every small uppercase line */
.eyebrow, .kicker, .buy-label, .mega-h, .sheet-h, .occ-date, .foot-h, .ba figcaption, .filters-label {
  font: 600 var(--fs-label)/1.3 "Fredoka", sans-serif; letter-spacing: .08em; text-transform: uppercase; }
.eyebrow { color: var(--roof-2); margin: 0 0 var(--s3); }
.kicker { color: var(--leaf); margin: 0 0 var(--s2); }
.buy-label { color: var(--ink-3); margin: 0 0 var(--s2); }

/* headings get a crayon underline below their last line, a new colour per section (below the letters, so they stay easy to read) */
h2 { position: relative; width: fit-content; isolation: isolate; }
h2:not(.no-swash) { padding-bottom: .3em; }
h2:not(.no-swash)::after { content: ""; position: absolute; z-index: -1; left: -.12em; right: -.18em; bottom: 0; height: .34em;
  background-color: var(--hl, var(--yellow)); background-image: var(--tex);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 20' preserveAspectRatio='none'%3E%3Cpath d='M1 7C14 3 27 6 41 4S70 2 83 4s14 1 16 3l-1 7c-11 4-27 1-42 3S22 19 9 17 0 15 1 13z'/%3E%3C/svg%3E") 0 0 / 100% 100%;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 20' preserveAspectRatio='none'%3E%3Cpath d='M1 7C14 3 27 6 41 4S70 2 83 4s14 1 16 3l-1 7c-11 4-27 1-42 3S22 19 9 17 0 15 1 13z'/%3E%3C/svg%3E") 0 0 / 100% 100%;
  transform-origin: left; transition: transform .9s cubic-bezier(.2, .8, .2, 1) .15s; }
main > section:nth-of-type(6n+1) { --hl: var(--yellow); }
main > section:nth-of-type(6n+2) { --hl: var(--blue); }
main > section:nth-of-type(6n+3) { --hl: var(--green); }
main > section:nth-of-type(6n+4) { --hl: var(--orange); }
main > section:nth-of-type(6n+5) { --hl: var(--purple); }
main > section:nth-of-type(6n) { --hl: var(--red); }
/* a highlighted word inside a big heading */
.hl { background: linear-gradient(transparent 60%, var(--hl-word, var(--yellow)) 60% 94%, transparent 94%);
  -webkit-box-decoration-break: clone; box-decoration-break: clone; padding: 0 .06em; }

/* =========================================================================
   BUTTONS, CHIPS, ICONS
   ========================================================================= */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--s2); min-height: 48px; padding: 11px 22px;
  border: var(--ol); border-radius: 999px; box-shadow: var(--pop-sm); background-color: var(--paper); background-image: var(--tex);
  color: var(--ink); text-decoration: none; cursor: pointer; font: 600 1rem/1.1 "Fredoka", sans-serif; white-space: nowrap;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease; }
.btn:hover { transform: translate(-2px, -2px); box-shadow: 5px 5px 0 var(--ink); color: var(--ink); }
.btn:active { transform: translate(1px, 1px); box-shadow: 1px 1px 0 var(--ink); }
.btn-main { background-color: var(--roof); color: #fff; }
.btn-main:hover { background-color: var(--roof-2); color: #fff; }
.btn-buy { background-color: var(--yellow); }
.btn-buy:hover { background-color: #FFCB3D; }
.btn-soft:hover, .btn-ghost:hover { background-color: #FFF4D6; }
.btn-big { min-height: 56px; padding: 14px 28px; font-size: 1.125rem; }
.btns { display: flex; flex-wrap: wrap; gap: var(--s2) 10px; margin-bottom: var(--s3); }
.ctas { display: flex; flex-wrap: wrap; gap: var(--s3) var(--s4); margin: 0; }
.flag { font: 800 .75rem/1 "Nunito", sans-serif; letter-spacing: .04em; background: var(--paper); color: var(--ink);
  border: var(--ol-thin); padding: 3px 4px; border-radius: 5px; }
.also { font-size: var(--fs-sm); color: var(--ink-3); margin: 0; }
.arr { width: 16px; height: 16px; flex: none; transition: transform .2s; }
a:hover > .arr { transform: translateX(3px); }

.chip { display: inline-block; width: fit-content; border: var(--ol-thin); border-radius: 999px; padding: 3px 12px;
  font: 600 var(--fs-sm)/1.45 "Fredoka", sans-serif; color: var(--ink); background-color: var(--wash); background-image: var(--tex);
  text-decoration: none; }
.chip-toddlers { background-color: var(--orange); } .chip-kids { background-color: var(--blue); }
.chip-adults { background-color: var(--red); } .chip-seniors { background-color: var(--green); }
.ic { width: 56px; height: 56px; padding: 7px; border: var(--ol); border-radius: 14px; color: var(--ink);
  background-color: var(--red); background-image: var(--tex); }

/* =========================================================================
   HEADER
   ========================================================================= */
.top { position: sticky; top: 0; z-index: 40; padding: 10px 12px 0; pointer-events: none; transition: transform .45s cubic-bezier(.2, .8, .2, 1); }
.top > * { pointer-events: auto; }
.top.hide { transform: translateY(-125%); }
.bar { position: relative; z-index: 2; max-width: calc(var(--wrap) + 20px); margin: 0 auto; display: flex; align-items: center; gap: 6px;
  height: 68px; padding: 0 10px; border: var(--ol); border-radius: 22px; background: rgba(255, 255, 255, .97); box-shadow: var(--pop);
  transition: height .3s ease; }
.top.scrolled .bar { height: 60px; }
.bar-crayons { position: absolute; left: 26px; right: 26px; bottom: -3px; height: 5px; display: flex; border-radius: 3px; overflow: hidden;
  transform-origin: left; transform: scaleX(var(--read, 1)); }
html.js .bar-crayons { --read: 0; }
.bar-crayons i { flex: 1; }
.bar-crayons i:nth-child(1), .mf-crayons i:nth-child(1) { background: var(--red); }
.bar-crayons i:nth-child(2) { background: var(--orange); }
.bar-crayons i:nth-child(3), .mf-crayons i:nth-child(2) { background: var(--yellow); }
.bar-crayons i:nth-child(4) { background: var(--green); }
.bar-crayons i:nth-child(5), .mf-crayons i:nth-child(3) { background: var(--blue); }
.bar-crayons i:nth-child(6) { background: var(--purple); }

.logo { display: flex; align-items: center; gap: 10px; flex: none; color: var(--ink); text-decoration: none;
  font: 600 1.3125rem/1 "Fredoka", sans-serif; padding: 6px 8px 6px 2px; border-radius: 16px; }
.logo:hover { color: var(--ink); }
.mark { width: 44px; height: 44px; border-radius: 50%; flex: none; box-shadow: 0 0 0 2px var(--ink); transition: transform .5s cubic-bezier(.3, 1.6, .5, 1); }
.logo:hover .mark { transform: rotate(-10deg) scale(1.06); }
.top.scrolled .mark { width: 40px; height: 40px; }

.nav { flex: 1; display: flex; justify-content: center; align-items: center; gap: 2px; }
.nav-link { position: relative; display: inline-flex; align-items: center; gap: 6px; padding: 10px 13px; border-radius: 13px;
  font: 500 1.0625rem/1 "Fredoka", sans-serif; color: var(--ink); text-decoration: none; white-space: nowrap; transition: background-color .2s; }
.nav-link::after { content: ""; position: absolute; left: 50%; bottom: 2px; width: 0; height: 6px; border-radius: 3px; background: var(--yellow);
  border: var(--ol-thin); transform: translateX(-50%); opacity: 0; transition: width .3s cubic-bezier(.2, .8, .2, 1), opacity .15s; }
.nav-link:hover, .menu-toggle:hover { background: #FFF4D6; color: var(--ink); }
.nav-link:hover::after, .nav-link[aria-current]::after { width: 26px; opacity: 1; }
.free { font: 800 .75rem/1 "Nunito", sans-serif; letter-spacing: .05em; text-transform: uppercase; color: var(--ink);
  background: var(--green); border: var(--ol-thin); padding: 3px 6px; border-radius: 6px; }
.has-menu { position: relative; display: flex; align-items: center; }
.has-menu > .nav-link { padding-right: 4px; }
.menu-toggle { display: inline-grid; place-items: center; width: 30px; height: 34px; border: 0; padding: 0; border-radius: 9px;
  background: transparent; color: var(--ink); cursor: pointer; }
.chev { width: 12px; height: 12px; transition: transform .3s ease; }
.has-menu.open .chev { transform: rotate(180deg); }
@media (hover: hover) { .has-menu:hover .chev { transform: rotate(180deg); } }

.mega { position: absolute; top: calc(100% + 18px); left: 50%; width: min(880px, 94vw); padding: var(--s5) var(--s5) 0;
  background: var(--paper); border: var(--ol); border-radius: 24px; box-shadow: var(--pop-lg); overflow: hidden;
  opacity: 0; visibility: hidden; transform: translate(-50%, 10px); transition: opacity .22s ease, transform .3s cubic-bezier(.2, .8, .2, 1), visibility 0s .3s; }
.mega::before { content: ""; position: absolute; left: 0; right: 0; top: -22px; height: 22px; }
.has-menu.open > .mega, .has-menu:focus-within > .mega { opacity: 1; visibility: visible; transform: translate(-50%, 0); transition-delay: 0s; }
@media (hover: hover) { .has-menu:hover > .mega { opacity: 1; visibility: visible; transform: translate(-50%, 0); transition-delay: 0s; } }
.mega-in { display: grid; grid-template-columns: 1.15fr 1fr 1.15fr; gap: var(--s6); padding-bottom: var(--s5); }
.mega-h { color: var(--ink-3); margin: 2px 0 var(--s3); }
.mm-who { display: grid; gap: 2px; }
.mm-who a, .mm-series a { display: flex; align-items: center; gap: var(--s3); padding: 8px 10px; border-radius: 14px; color: var(--ink); text-decoration: none;
  transition: background-color .2s, transform .2s; }
.mm-who a:hover, .mm-series a:hover, .mm-book:hover, .lang-list a:hover { background: #FFF4D6; color: var(--ink); }
.mm-who a:hover, .mm-series a:hover { transform: translateX(3px); }
.mm-dot img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px var(--ink); }
.mm-who-t { display: flex; flex-direction: column; line-height: 1.25; }
.mm-who-t strong { font: 600 1.0625rem "Fredoka", sans-serif; }
.mm-who-t em { font-style: normal; font-size: var(--fs-sm); color: var(--ink-3); }
.mm-series a { justify-content: space-between; font: 500 1.0625rem "Fredoka", sans-serif; }
.mm-n { font: 800 var(--fs-label)/1 "Nunito", sans-serif; border: var(--ol-thin); padding: 3px 8px; border-radius: 999px; }
.mm-all { display: inline-flex; align-items: center; gap: 6px; margin: var(--s3) 10px 0; font: 600 1rem "Fredoka", sans-serif; text-decoration: none; }
.mm-books { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s3); }
.mm-book { display: flex; flex-direction: column; gap: 6px; padding: 8px; border-radius: 16px; color: var(--ink); text-decoration: none;
  font: 500 var(--fs-sm)/1.3 "Fredoka", sans-serif; }
.mm-book img { transition: transform .3s cubic-bezier(.3, 1.4, .5, 1); }
.mm-book:hover img { transform: translateY(-5px) rotate(-2deg); }
.mega-foot { display: flex; align-items: center; gap: var(--s3); margin: 0 calc(var(--s5) * -1); padding: 14px var(--s5);
  background-color: var(--yellow); background-image: var(--tex); border-top: var(--ol); color: var(--ink); text-decoration: none;
  font: 600 1.0625rem "Fredoka", sans-serif; }
.mega-foot:hover { color: var(--ink); background-color: #FFCB3D; }
.mf-crayons { display: flex; gap: 3px; }
.mf-crayons i { width: 8px; height: 24px; border-radius: 2px; outline: 2px solid var(--ink); clip-path: polygon(50% 0, 100% 24%, 100% 100%, 0 100%, 0 24%); }

.bar-end { display: flex; align-items: center; gap: var(--s2); flex: none; margin-left: auto; }
.lang-btn { display: inline-flex; align-items: center; gap: 6px; width: auto; height: 44px; padding: 0 10px 0 12px; border-radius: 999px;
  border: var(--ol); box-shadow: var(--pop-sm); background: var(--paper); font: 600 var(--fs-sm) "Fredoka", sans-serif; }
.globe { width: 18px; height: 18px; }
.lang-list { position: absolute; right: 0; top: calc(100% + 14px); min-width: 210px; padding: var(--s2); border-radius: 18px; background: var(--paper);
  border: var(--ol); box-shadow: var(--pop); opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .2s, transform .25s, visibility 0s .25s; }
.lang-list::before { content: ""; position: absolute; left: 0; right: 0; top: -18px; height: 18px; }
.lang-menu.open .lang-list, .lang-menu:focus-within .lang-list { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
@media (hover: hover) { .lang-menu:hover .lang-list { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; } }
.lang-list a { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 12px; color: var(--ink); text-decoration: none;
  font: 500 1.0625rem "Fredoka", sans-serif; }
.lang-list a[aria-current]::after { content: ""; margin-left: auto; width: 10px; height: 10px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 2px var(--ink); }
.lc { font: 800 var(--fs-label)/1 "Nunito", sans-serif; border: var(--ol-thin); padding: 3px 5px; border-radius: 6px; }
.bar-cta { min-height: 46px; padding: 10px 20px; }

.burger { display: none; position: relative; width: 48px; height: 48px; border: 0; border-radius: 14px; background: var(--ink); cursor: pointer; box-shadow: var(--pop-sm); }
.burger span { position: absolute; left: 13px; right: 13px; height: 3px; border-radius: 2px; background: var(--paper); transition: transform .35s cubic-bezier(.2, .8, .2, 1), opacity .2s; }
.burger span:nth-child(1) { top: 16px; } .burger span:nth-child(2) { top: 23px; right: 19px; } .burger span:nth-child(3) { top: 30px; }
.top.sheet-open .burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.top.sheet-open .burger span:nth-child(2) { opacity: 0; }
.top.sheet-open .burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.sheet { position: fixed; inset: 0; z-index: 1; overflow-y: auto; padding: 100px var(--gutter) var(--s6); background: var(--paper);
  clip-path: circle(0 at calc(100% - 48px) 44px); transition: clip-path .55s cubic-bezier(.6, 0, .2, 1); }
.top.sheet-open .sheet { clip-path: circle(150% at calc(100% - 48px) 44px); }
html.menu-open { overflow: hidden; }
.sheet-nav li { opacity: 0; translate: 0 18px; transition: opacity .4s ease, translate .5s cubic-bezier(.2, .8, .2, 1); transition-delay: calc(var(--i) * 60ms + 150ms); }
.top.sheet-open .sheet-nav li { opacity: 1; translate: 0 0; }
.sheet-nav a { display: flex; align-items: center; justify-content: space-between; padding: var(--s4) 2px; border-bottom: 2px dashed var(--rule);
  font: 600 var(--fs-sheet)/1.1 "Fredoka", sans-serif; color: var(--ink); text-decoration: none; }
.sheet-nav a[aria-current] { color: var(--roof); }
.sheet-nav .arr { width: 26px; height: 26px; color: var(--roof); }
.sheet-h { color: var(--ink-3); margin: var(--s6) 0 var(--s3); }
.sheet-aud { display: flex; flex-wrap: wrap; gap: var(--s2); }
.sheet-aud .chip { padding: 8px 14px; font-size: 1rem; }
.sheet-langs { display: flex; gap: 6px; padding: 4px; border: var(--ol); border-radius: 999px; width: max-content; max-width: 100%; }
.sheet-langs a { padding: 8px 14px; border-radius: 999px; color: var(--ink-2); text-decoration: none; font: 600 1rem "Fredoka", sans-serif; }
.sheet-langs a[aria-current] { background: var(--yellow); color: var(--ink); }
.sheet-ctas { display: grid; gap: var(--s3); margin: var(--s6) 0 0; }
.sheet-contact { margin-top: var(--s5); text-align: center; font-weight: 700; }

@media (max-width: 1039px) {
  html.js .nav { display: none; }
  html.js .burger { display: block; }
  .bar { height: 64px; }
  .top.scrolled .bar { height: 58px; }
  html:not(.js) .bar { flex-wrap: wrap; height: auto; padding: 8px 12px; }
  html:not(.js) .nav { order: 3; flex-basis: 100%; justify-content: flex-start; overflow-x: auto; }
  html:not(.js) .mega { display: none; }
}
@media (max-width: 639px) {
  .top { padding: 8px 8px 0; }
  .bar .bar-cta, html.js .bar .lang-menu { display: none; }
  .logo { font-size: 1.1875rem; }
  .mark { width: 40px; height: 40px; }
}
@media (min-width: 1040px) { .sheet { display: none !important; } }

/* =========================================================================
   HOME
   ========================================================================= */
.hero { position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; width: 560px; height: 560px; right: -160px; top: -160px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(255, 212, 92, .35), rgba(255, 212, 92, 0) 70%); }
.hero-in { position: relative; z-index: 1; display: grid; gap: var(--s7); padding-top: var(--s7); padding-bottom: var(--s6); }
.hero h1 { max-width: 11em; }
.hero .lead { max-width: 32em; margin: var(--s5) 0 var(--s6); }
.hero-shelf { position: relative; }
.shelf { position: relative; display: flex; align-items: flex-end; justify-content: center; padding: 0 4px; }
.shelf::after { content: ""; position: absolute; left: -2%; right: -2%; bottom: 8px; height: 18px; border-radius: 6px; z-index: 0;
  border: var(--ol); background: linear-gradient(#E3B07D, #C68A55); box-shadow: var(--pop-sm); }
.shelf-book { position: relative; z-index: 1; flex: 0 1 23%; margin: 0 -2.2% 15px; }
.shelf-book picture { display: block; transition: transform .25s ease; }
.shelf-book:nth-child(odd) picture { transform: rotate(-1.5deg); }
.shelf-book:nth-child(even) picture { transform: rotate(1.5deg); }
.shelf-book:hover picture { transform: translateY(-12px) rotate(0); }
.shelf-note { text-align: center; font: 600 var(--fs-sm) "Fredoka", sans-serif; color: var(--ink-3); margin: var(--s4) 0 0; }
.mock { width: 100%; }

.doodle { position: absolute; width: clamp(44px, 7vw, 86px); height: auto; z-index: 0; pointer-events: none; overflow: visible; }
.doodle path { fill: none; stroke: var(--c); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; }
@media (max-width: 699px) { .doodle-heart, .doodle-loop, .doodle-squiggle { display: none; } }

/* scroll-to-color story */
.story { position: relative; }
.story-sticky { padding-block: calc(var(--section) / 2); }
.story-in { display: grid; gap: var(--s6); align-items: center; }
.story-text h2 { margin-bottom: var(--s5); }
.story-steps { display: grid; gap: 10px; }
.story-steps li { position: relative; padding: 12px 16px 12px 54px; border-radius: var(--r-md); background: var(--paper); border: 3px dashed var(--rule);
  color: var(--ink-3); font-size: var(--fs-body); line-height: 1.5; transition: all .4s ease; }
.story-steps li::before { content: attr(data-n); position: absolute; left: 12px; top: 50%; translate: 0 -50%; width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center; background: var(--wash); border: var(--ol-thin); font: 600 1rem "Fredoka", sans-serif; transition: all .4s ease; }
.story-steps li.on { border: var(--ol); color: var(--ink); box-shadow: var(--pop); }
.story-steps li.on::before { background: var(--roof); color: #fff; }
.story-bar { height: 14px; border-radius: 7px; border: var(--ol-thin); background: var(--paper); margin-top: var(--s5); overflow: hidden; }
.story-bar i { display: block; height: 100%; width: 100%; transform-origin: left; transform: scaleX(var(--p, 1));
  background: linear-gradient(90deg, var(--red), var(--orange), var(--yellow), var(--green), var(--blue), var(--purple)); }
.story-stage { position: relative; width: min(100%, 70vh, 560px); aspect-ratio: 1; margin: 0 auto; background: #fff; border-radius: 18px;
  box-shadow: 0 0 0 3px var(--ink), 9px 9px 0 3px var(--ink); }
.story-line, .story-svg { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 16px; }
.story-crayon { --cc: var(--red); position: absolute; left: 0; top: 0; width: 0; height: 0; pointer-events: none; opacity: 0; transition: opacity .3s; }
.story-crayon span { position: absolute; left: -12px; top: -128px; width: 24px; height: 108px; rotate: 30deg; transform-origin: 50% 118%;
  background: var(--cc); border: var(--ol-thin); border-radius: 4px 4px 2px 2px; transition: background-color .3s; filter: drop-shadow(4px 6px 0 rgba(58, 36, 20, .25)); }
.story-crayon span::before { content: ""; position: absolute; left: -2px; right: -2px; bottom: -22px; height: 22px; background: var(--ink);
  clip-path: polygon(0 0, 100% 0, 50% 100%); }
.story-crayon span::after { content: ""; position: absolute; left: 0; right: 0; top: 38px; height: 24px; background: rgba(255, 255, 255, .45); border-block: var(--ol-thin); }

/* book showcase */
.showcase { --tint: var(--paper); background: var(--tint); transition: background-color .7s ease; position: relative; }
.show-sticky { padding-block: calc(var(--section) / 2); }
.show-head { text-align: center; }
.show-head h2 { margin-inline: auto; }
.show-view { overflow-x: auto; scroll-snap-type: x mandatory; margin-top: var(--s6); }
.show-track { position: relative; display: flex; gap: 6vw; padding: 10px var(--gutter) 24px; width: max-content; }
.slide { width: min(62vw, 300px); scroll-snap-align: center; text-align: center; transform-origin: 50% 60%; }
.slide-mock { display: block; }
.slide-cap { display: flex; flex-direction: column; align-items: center; gap: var(--s2); margin-top: var(--s2); }
.slide-cap .kicker { margin: 0; }
.slide-cap h3 a { color: var(--ink); text-decoration: none; }
.slide-cap .chip { box-shadow: var(--pop-sm); }
.slide-link { display: inline-flex; align-items: center; gap: 6px; margin-top: var(--s1); font: 600 1rem "Fredoka", sans-serif; text-decoration: none; }
.show-dots { display: none; }
.show-dots i { width: 12px; height: 12px; border-radius: 50%; border: var(--ol-thin); background: var(--paper); transition: all .3s ease; }
.show-dots i.on { width: 32px; border-radius: 6px; background: var(--roof); }

/* audiences */
.auds { display: grid; gap: var(--s4); margin-top: var(--s6); }
.aud { --tone: var(--orange); display: grid; grid-template-columns: 96px 1fr; gap: var(--s4); align-items: center; padding: var(--s4);
  background: var(--paper); border: var(--ol); border-radius: var(--r-lg); box-shadow: var(--pop); color: var(--ink); text-decoration: none;
  transition: translate .18s ease, box-shadow .18s ease; }
.aud:hover { translate: -2px -2px; box-shadow: 7px 7px 0 var(--ink); color: var(--ink); }
.aud-kids { --tone: var(--blue); } .aud-adults { --tone: var(--red); } .aud-seniors { --tone: var(--green); }
.aud-pic img { width: 84px; height: 84px; margin: 6px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 3px var(--ink), 0 0 0 9px var(--tone), 0 0 0 11px var(--ink); }
.aud-txt { display: flex; flex-direction: column; align-items: flex-start; }
.aud strong { font: 600 var(--fs-h3)/1.15 "Fredoka", sans-serif; }
.aud em { font: 600 var(--fs-label)/1.3 "Fredoka", sans-serif; font-style: normal; letter-spacing: .08em; text-transform: uppercase;
  background-color: var(--tone); background-image: var(--tex); border: var(--ol-thin); padding: 2px 8px; border-radius: 6px; margin: var(--s2) 0; }
.aud-desc { color: var(--ink-2); font-size: var(--fs-body); line-height: 1.5; }
.aud-n { font: 600 1rem "Fredoka", sans-serif; margin-top: var(--s3); }

/* colored bands */
.band { position: relative; margin-block: 0; padding-block: calc(var(--section) * .55);
  background-color: var(--band); background-image: var(--tex); }
.band::before, .band::after { content: ""; position: absolute; left: 0; right: 0; height: 18px; background-color: var(--band); background-image: var(--tex);
  -webkit-mask: radial-gradient(18px 12px at 50% 100%, #000 98%, transparent) 0 0 / 36px 18px repeat-x;
  mask: radial-gradient(18px 12px at 50% 100%, #000 98%, transparent) 0 0 / 36px 18px repeat-x; }
.band::before { top: -17px; }
.band::after { bottom: -17px; transform: scaleY(-1); }
.band-play { --band: var(--band-yellow); }
.band-bears { --band: var(--band-pink); }
.band-inside { --band: var(--band-blue); }
.play, .bears { display: grid; gap: var(--s7); align-items: center; }
.play-txt h2, .bears-txt h2 { margin-bottom: var(--s4); }
.play-txt p, .bears-txt p { max-width: 34em; }
.ba { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s4); max-width: 520px; }
.ba figure { margin: 0; background: #fff; padding: 10px 10px 4px; border: var(--ol); border-radius: var(--r-md); box-shadow: var(--pop-sm); }
.ba img { border-radius: 8px; aspect-ratio: 3 / 4; object-fit: contain; width: 100%; background: #fff; }
.ba figcaption { text-align: center; padding: 10px 0 6px; }
.ba-tilt figure:first-child { transform: rotate(-3deg); }
.ba-tilt figure:last-child { transform: rotate(3deg) translateY(10px); }
.bears-pics { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s4); }
.bears-pics li { background: #fff; padding: 8px; border: var(--ol); border-radius: var(--r-md); box-shadow: var(--pop-sm); }
.bears-pics li:nth-child(1) { rotate: -2deg; } .bears-pics li:nth-child(2) { rotate: 2deg; translate: 0 12px; }
.bears-pics li:nth-child(3) { rotate: 1.5deg; } .bears-pics li:nth-child(4) { rotate: -2deg; translate: 0 12px; }
.bears-pics img { border-radius: 10px; aspect-ratio: 1; object-fit: cover; width: 100%; }

/* holidays */
.occs { display: grid; gap: var(--s4); margin-top: var(--s6); }
.occ { --tone: var(--orange); position: relative; overflow: hidden; padding: var(--s7) var(--s5) var(--s5); background: var(--paper);
  border: var(--ol); border-radius: var(--r-lg); box-shadow: var(--pop); }
.occ::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 14px; background-color: var(--tone); background-image: var(--tex); border-bottom: var(--ol); }
.occ-advent { --tone: var(--green); } .occ-sinterklaas { --tone: var(--red); } .occ-christmas { --tone: var(--blue); }
.occ-date { color: var(--ink-3); margin: 0 0 var(--s1); }
.occ h3 { font-size: 1.5rem; margin-bottom: var(--s4); }
.occ ul { display: grid; gap: var(--s3); }
.occ a { display: flex; align-items: center; gap: var(--s3); font-weight: 700; color: var(--ink); text-decoration: none; line-height: 1.3; }
.occ a:hover span { text-decoration: underline; }
.occ-mock { width: 56px; flex: none; }

/* what every book has */
.easy { display: grid; gap: var(--s4); margin-top: var(--s6); }
.easy li { padding: var(--s5); background: var(--paper); border: var(--ol); border-radius: var(--r-lg); box-shadow: var(--pop); }
.easy h3 { margin: var(--s4) 0 var(--s2); }
.easy p { color: var(--ink-2); margin: 0; }
.easy li:nth-child(2) .ic { background-color: var(--blue); }
.easy li:nth-child(3) .ic { background-color: var(--green); }
.easy li:nth-child(4) .ic { background-color: var(--purple); }

/* coming soon box */
.soon { display: flex; gap: var(--s5); align-items: center; padding: var(--s5); background: var(--paper); border: var(--ol); border-radius: var(--r-lg); box-shadow: var(--pop); }
.soon h2 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 1.875rem); margin-bottom: var(--s3); }
.soon p { margin: 0; color: var(--ink-2); max-width: 46em; }
.soon .soon-link { margin-top: var(--s3); font-weight: 700; }
.cal { flex: none; width: 128px; overflow: hidden; text-align: center; background: var(--paper); border: var(--ol); border-radius: 18px; box-shadow: var(--pop-sm); rotate: -3deg; }
.cal-top { display: block; padding: 6px 4px; background-color: var(--red); background-image: var(--tex); border-bottom: var(--ol);
  font: 600 var(--fs-label)/1.2 "Fredoka", sans-serif; letter-spacing: .06em; text-transform: uppercase; }
.cal strong { display: block; font: 700 3.75rem/1 "Fredoka", sans-serif; margin-top: 8px; }
.cal-unit { display: block; padding: 0 6px 10px; font: 600 var(--fs-sm)/1.2 "Fredoka", sans-serif; color: var(--ink-2); }
@media (max-width: 559px) { .soon { flex-direction: column; align-items: flex-start; } .cal { width: 112px; } }

/* FAQ */
.faq h2 { margin-bottom: var(--s6); }
.faq details { max-width: 820px; margin-bottom: var(--s3); background: var(--paper); border: var(--ol); border-radius: var(--r-md); box-shadow: var(--pop-sm); }
.faq summary { position: relative; cursor: pointer; padding: var(--s4) 56px var(--s4) var(--s5); font: 600 1.125rem/1.35 "Fredoka", sans-serif; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: var(--s5); top: 50%; transform: translateY(-50%); font: 600 1.6rem/1 "Fredoka", sans-serif; transition: transform .25s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { padding: 0 var(--s5) var(--s5); margin: 0; color: var(--ink-2); max-width: 64ch; }

/* finale: the logo */
.finale { text-align: center; padding-block: calc(var(--section) * .75) var(--section); overflow: hidden; }
.finale h2 { margin: 0 auto var(--s4); font-size: clamp(2.125rem, 1.4rem + 3.2vw, 3.5rem); --hl-word: var(--yellow); }
.finale-text p { color: var(--ink-2); font-size: var(--fs-lead); margin-bottom: var(--s6); }
.finale .ctas { justify-content: center; }
.finale-logo { width: 220px; height: 220px; margin: 0 auto var(--s7); border-radius: 50%; position: relative; }
.finale-logo img { width: 100%; height: 100%; border-radius: 50%; box-shadow: 0 0 0 3px var(--ink), 0 0 0 10px #fff, 0 0 0 13px var(--ink), 10px 12px 0 13px var(--ink); }
.finale-logo::before { content: ""; position: absolute; inset: -30px; border-radius: 50%; z-index: -1;
  background: conic-gradient(var(--red), var(--orange), var(--yellow), var(--green), var(--blue), var(--purple), var(--red));
  -webkit-mask: radial-gradient(circle, transparent 64%, #000 65%, #000 71%, transparent 72%);
  mask: radial-gradient(circle, transparent 64%, #000 65%, #000 71%, transparent 72%); }

/* keep-scrolling guide */
.keep { position: fixed; left: 50%; bottom: max(18px, env(safe-area-inset-bottom)); z-index: 35; display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 14px 10px 20px; border: var(--ol); border-radius: 999px; background: var(--paper); box-shadow: var(--pop); cursor: pointer;
  color: var(--ink); font: 600 1rem/1.2 "Fredoka", sans-serif; transform: translate(-50%, 0); transition: opacity .35s ease, transform .35s cubic-bezier(.2, .8, .2, 1); }
.keep.away { opacity: 0; transform: translate(-50%, 24px); pointer-events: none; }
.keep:hover { background: #FFF4D6; }
.keep-crayon { position: relative; width: 26px; height: 34px; display: grid; place-items: center; }
.keep-crayon i { position: relative; width: 12px; height: 20px; background-color: var(--roof); border: var(--ol-thin); border-radius: 3px 3px 1px 1px; margin-top: -8px; }
.keep-crayon i::after { content: ""; position: absolute; left: -2px; right: -2px; bottom: -11px; height: 11px; background: var(--ink); clip-path: polygon(0 0, 100% 0, 50% 100%); }

/* =========================================================================
   BOOKS PAGE AND CARDS
   ========================================================================= */
.filters { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2); margin-top: var(--s5); }
.filters-label { color: var(--ink-3); margin-right: var(--s1); }
.fchip { min-height: 44px; padding: 8px 16px; border: var(--ol); border-radius: 999px; background: var(--paper); box-shadow: var(--pop-sm);
  color: var(--ink); font: 600 1rem "Fredoka", sans-serif; cursor: pointer; transition: transform .15s, box-shadow .15s; }
.fchip:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--ink); }
.fchip[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.filter-none { margin-top: var(--s4); font-weight: 700; }
.series-head h2 { margin-bottom: var(--s3); }
.series-head p { color: var(--ink-2); max-width: 30em; }
.cards { display: grid; gap: var(--s5); margin-top: var(--s5); }
.card { display: grid; grid-template-columns: 38% 1fr; gap: var(--s4); align-items: start; padding: var(--s4) var(--s5) var(--s5) var(--s2);
  background: var(--paper); border: var(--ol); border-radius: var(--r-lg); box-shadow: var(--pop); }
.card-mock { display: block; transition: transform .2s ease; }
.card-mock:hover { transform: translate(-2px, -4px) rotate(-1deg); }
.card-body { padding-top: var(--s2); }
.card h3 { margin-bottom: var(--s2); }
.card h3 a { color: var(--ink); text-decoration: none; }
.card h3 a:hover { color: var(--roof-2); text-decoration: underline; }
.sub { color: var(--ink-2); font-size: var(--fs-body); line-height: 1.5; margin-bottom: var(--s3); }
.card .chip { margin-bottom: var(--s4); }
@media (max-width: 479px) {
  .card { grid-template-columns: 1fr; padding: var(--s4) var(--s4) var(--s5); }
  .card-mock { max-width: 230px; margin: 0 auto; }
}

/* =========================================================================
   BOOK PAGE
   ========================================================================= */
.crumb { font-size: var(--fs-sm); color: var(--ink-3); margin-bottom: var(--s5); }
.book { padding-top: var(--s6); }
.book-in { display: grid; gap: var(--s5); }
.book-mock { position: relative; z-index: 0; max-width: 440px; width: 86%; margin: 0 auto; }
.book-mock::before { content: ""; position: absolute; inset: 8% 2% 4%; border-radius: 50%; z-index: -1;
  background: radial-gradient(circle, rgba(255, 212, 92, .5), rgba(255, 212, 92, 0) 68%); }
.book-text h1 { font-size: clamp(2rem, 1.5rem + 2.4vw, 3rem); margin-bottom: var(--s3); }
.book-text .sub { font-size: var(--fs-lead); }
.book-text .chip { margin-bottom: var(--s4); }
.blurb { font-size: var(--fs-body); max-width: 36em; margin-bottom: var(--s5); }
.buybox { max-width: 580px; padding: var(--s5) var(--s5) var(--s3); background: var(--paper); border: var(--ol); border-radius: var(--r-lg); box-shadow: var(--pop); }
.buybox-h { font: 600 var(--fs-h3) "Fredoka", sans-serif; margin-bottom: var(--s4); }
.fmt + .fmt { border-top: 2px dashed var(--rule); padding-top: var(--s4); }
.band-inside h2 { margin-bottom: var(--s3); }
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s4); margin-top: var(--s6); }
.gallery a { display: block; padding: 8px; background: #fff; border: var(--ol); border-radius: 14px; box-shadow: var(--pop-sm); transition: transform .18s ease; }
.gallery li:nth-child(odd) a { transform: rotate(-1.2deg); }
.gallery li:nth-child(even) a { transform: rotate(1.2deg); }
.gallery a:hover { transform: scale(1.03) rotate(0); }
.gallery img { border-radius: 8px; width: 100%; }
.book-more { display: grid; gap: var(--s7); }
.book-more h2 { margin-bottom: var(--s5); }
.facts li { position: relative; padding: 10px 0 10px 36px; border-bottom: 2px dashed var(--rule); }
.facts li::before { content: ""; position: absolute; left: 4px; top: 15px; width: 18px; height: 18px; border-radius: 50%; background: var(--green); border: var(--ol-thin); }
.facts li:nth-child(6n+2)::before { background: var(--orange); } .facts li:nth-child(6n+3)::before { background: var(--blue); }
.facts li:nth-child(6n+4)::before { background: var(--red); } .facts li:nth-child(6n+5)::before { background: var(--purple); }
.facts li:nth-child(6n+6)::before { background: var(--yellow); }
.ba-box .ba { margin-bottom: var(--s5); }
.viewer { border: 0; padding: 0; background: transparent; max-width: 96vw; max-height: 96vh; overflow: visible; }
.viewer::backdrop { background: rgba(40, 24, 12, .85); }
.viewer img { max-width: min(92vw, 720px); max-height: 88vh; width: auto; border-radius: 12px; background: #fff; border: var(--ol); }
.viewer button { position: fixed; width: 50px; height: 50px; border: var(--ol); border-radius: 50%; cursor: pointer; background: var(--paper); color: var(--ink);
  font: 600 1.8rem/1 "Fredoka", sans-serif; box-shadow: var(--pop-sm); }
.viewer-x { top: 14px; right: 14px; }
.viewer-prev { left: 10px; top: 50%; transform: translateY(-50%); }
.viewer-next { right: 10px; top: 50%; transform: translateY(-50%); }

/* =========================================================================
   COLORING CORNER
   ========================================================================= */
.color-app { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s5); padding-top: var(--s2); padding-bottom: var(--s7); }
.color-app > * { min-width: 0; }
.pages ul { display: flex; gap: var(--s3); overflow-x: auto; padding: 4px 6px 12px 2px; scrollbar-width: thin; }
.pg { flex: none; width: 78px; padding: 4px; background: #fff; border: var(--ol); border-radius: 12px; box-shadow: var(--pop-sm); cursor: pointer; transition: transform .15s; }
.pg:hover { transform: translateY(-3px); }
.pg[aria-pressed="true"] { background: var(--yellow); }
.pg img { border-radius: 6px; aspect-ratio: 3 / 4; object-fit: contain; width: 100%; background: #fff; }
.stage { position: relative; width: 100%; max-width: 640px; margin: 0 auto; background: #fff; border-radius: 16px; overflow: hidden;
  box-shadow: 0 0 0 3px var(--ink), 9px 9px 0 3px var(--ink); touch-action: manipulation; }
.stage canvas, .stage .lines { position: absolute; inset: 0; width: 100%; height: 100%; }
.stage canvas { cursor: crosshair; }
.stage .lines { mix-blend-mode: multiply; pointer-events: none; }
.from { text-align: center; margin: var(--s6) 0 0; font-size: var(--fs-sm); color: var(--ink-2); }
.from a { font-weight: 700; }
.tools { display: flex; flex-direction: column; gap: var(--s3); }
.crayons-box { display: flex; flex-wrap: wrap; gap: 6px 4px; align-items: flex-end; }
.crayon { --c: #E5483A; position: relative; width: 30px; height: 64px; border: 0; padding: 0; cursor: pointer; background: transparent; transition: transform .15s ease; }
.crayon::before { content: ""; position: absolute; left: 3px; right: 3px; top: 0; height: 18px; background: var(--c); clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.crayon::after { content: ""; position: absolute; left: 3px; right: 3px; top: 17px; bottom: 0; background: var(--c); border-radius: 0 0 4px 4px;
  box-shadow: inset 0 -12px 0 rgba(0, 0, 0, .12), inset 0 6px 0 rgba(255, 255, 255, .25), 0 0 0 2px var(--ink); }
.crayon:hover { transform: translateY(-5px); }
.crayon[aria-pressed="true"] { transform: translateY(-14px); }
.tool-btns { display: flex; flex-wrap: wrap; gap: var(--s2); }
@media (max-width: 959px) {
  .tools { position: sticky; bottom: 0; z-index: 5; margin: 0 calc(var(--gutter) * -1); padding: 10px var(--gutter) 12px; background: rgba(255, 255, 255, .97);
    border-top: var(--ol); border-radius: 18px 18px 0 0; }
  .tools .buy-label { display: none; }
  .tools .crayons-box { flex-wrap: nowrap; overflow-x: auto; padding-top: 14px; scrollbar-width: none; }
  .tools .crayon { flex: none; width: 28px; height: 50px; }
  .tool-btns { flex-wrap: nowrap; }
  .tool-btns .btn { flex: 1; min-height: 44px; padding: 6px 8px; font-size: var(--fs-sm); white-space: normal; line-height: 1.1; }
}

/* =========================================================================
   COMING SOON PAGE, PROSE
   ========================================================================= */
.section-tight { padding-bottom: calc(var(--section) / 2); }
.soon-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: var(--s5) var(--s4); }
.soon-grid li { position: relative; aspect-ratio: 3 / 4; border: var(--ol); border-radius: 4px 10px 10px 4px; overflow: hidden; box-shadow: var(--pop-sm); }
.soon-grid li::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 9%; z-index: 1;
  background: linear-gradient(90deg, rgba(40, 25, 15, .28), rgba(255, 255, 255, .18) 70%, transparent); }
.soon-grid li:nth-child(3n+1) { rotate: -1deg; } .soon-grid li:nth-child(3n+2) { rotate: .8deg; }
.soon-img { width: 100%; height: 100%; object-fit: cover; }
.soon-tag { position: absolute; left: 50%; top: 50%; z-index: 2; transform: translate(-50%, -50%) rotate(-6deg); white-space: nowrap;
  padding: 3px 10px; background: var(--paper); border: var(--ol-thin); border-radius: 999px; color: var(--roof-2);
  font: 600 var(--fs-label)/1.3 "Fredoka", sans-serif; letter-spacing: .08em; text-transform: uppercase; }
.soon-more { margin-top: var(--s7); text-align: center; }
.prose { max-width: 760px; padding-bottom: var(--section); }
.prose h1 { margin-bottom: var(--s5); font-size: clamp(2.125rem, 1.6rem + 2.4vw, 3rem); }
.prose p { max-width: 66ch; }

/* =========================================================================
   FOOTER
   ========================================================================= */
.foot { position: relative; background: var(--ink); color: #F3E6D6; padding: var(--s8) 0 var(--s6); }
.foot::before { content: ""; position: absolute; left: 0; right: 0; top: -6px; height: 6px;
  background: linear-gradient(90deg, var(--red) 0 16.66%, var(--orange) 0 33.33%, var(--yellow) 0 50%, var(--green) 0 66.66%, var(--blue) 0 83.33%, var(--purple) 0); }
.foot a { color: #FFD98F; }
.foot a:hover { color: #fff; }
.foot-in { display: grid; gap: var(--s6); }
.foot-brand { display: flex; align-items: center; gap: var(--s3); font: 600 1.375rem "Fredoka", sans-serif; margin-bottom: var(--s3); }
.foot-brand .mark { box-shadow: 0 0 0 2px #F3E6D6; }
.foot-tag { color: #E1CFBB; max-width: 24em; }
.foot-h { color: #C9B39C; margin-bottom: var(--s3); }
.foot ul { display: grid; gap: var(--s2); }
.foot ul a { color: #F3E6D6; text-decoration: none; }
.foot ul a:hover, .foot ul a[aria-current] { color: #FFD98F; text-decoration: underline; }
.foot-base { margin-top: var(--s7); padding-top: var(--s5); border-top: 1px solid rgba(243, 230, 214, .18); font-size: var(--fs-sm); color: #C9B39C; }
.foot-base p { margin: 0 0 var(--s2); }

/* =========================================================================
   LARGER SCREENS
   ========================================================================= */
@media (min-width: 700px) {
  .auds, .occs, .easy { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(4, 1fr); gap: var(--s5); }
  .play, .bears { grid-template-columns: 1fr 1fr; }
  .book-more { grid-template-columns: 1fr 1fr; align-items: start; }
  .card { grid-template-columns: 200px 1fr; gap: var(--s5); }
  .foot-in { grid-template-columns: 1.4fr 1fr 1fr 1.3fr; }
}
@media (min-width: 960px) {
  .hero-in { grid-template-columns: .95fr 1.2fr; gap: var(--s7); align-items: center; padding-top: var(--s8); padding-bottom: var(--s7); }
  .shelf-book { flex-basis: 25%; margin-inline: -1.8%; }
  .auds { grid-template-columns: repeat(4, 1fr); }
  .aud { grid-template-columns: 1fr; padding: var(--s5); }
  .aud-pic img { width: 104px; height: 104px; }
  .occs, .easy { grid-template-columns: repeat(4, 1fr); }
  .story-in { grid-template-columns: 1fr 1.1fr; gap: var(--s8); }
  .series { display: grid; grid-template-columns: 300px 1fr; gap: var(--s7); align-items: start; }
  .series-head { position: sticky; top: 110px; }
  .series .cards { margin-top: 0; }
  .book-in { grid-template-columns: 440px 1fr; gap: var(--s8); align-items: center; }
  .book-mock { width: 100%; }
  .color-app { grid-template-columns: 116px minmax(0, 1fr) 236px; align-items: start; gap: var(--s6); }
  .pages ul { flex-direction: column; overflow: visible; }
  .pg { width: 100px; }
  .tools { position: sticky; top: 110px; }
}

/* =========================================================================
   MOTION. html.js is set by /js-on.js before the page paints; html.still = the
   visitor prefers reduced motion (everything shows in its final state, nothing pins).
   ========================================================================= */
@keyframes rise { from { opacity: 0; translate: 0 26px; } }
@keyframes drop { 0% { opacity: 0; translate: 0 -140px; rotate: -8deg; } 60% { opacity: 1; translate: 0 8px; rotate: 2deg; }
  80% { translate: 0 -4px; } 100% { translate: 0 0; rotate: 0deg; } }
@keyframes shelfIn { from { transform: scaleX(0); } }
@keyframes draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes bob { 50% { translate: 0 -8px; rotate: 4deg; } }
@keyframes nudge { 0%, 100% { translate: 0 -2px; } 50% { translate: 0 5px; } }
@keyframes logoPop { 0% { scale: .3; rotate: -25deg; opacity: 0; } 60% { scale: 1.08; rotate: 6deg; opacity: 1; } 80% { scale: .97; rotate: -2deg; } 100% { scale: 1; rotate: 0deg; } }
@keyframes ringSpin { to { rotate: 360deg; } }

/* the hero text glides in but is visible from the first frame (fading it would delay Largest Contentful Paint) */
@keyframes glide { from { translate: 0 18px; } }
html.js:not(.still) .hero-up { animation: glide .9s cubic-bezier(.2, .8, .2, 1) backwards; animation-delay: calc(var(--i) * 90ms); }
html.js:not(.still) .shelf-book { animation: drop .9s cubic-bezier(.3, .9, .4, 1) backwards; animation-delay: calc(var(--i) * 140ms + 450ms); }
html.js:not(.still) .shelf::after { animation: shelfIn .7s cubic-bezier(.2, .8, .2, 1) backwards .25s; transform-origin: left; }
html.js:not(.still) .doodle path { animation: draw 1.4s ease-out backwards; animation-delay: calc(var(--i) * 180ms + 900ms); }
html.js:not(.still) .doodle { animation: bob 6s ease-in-out infinite; animation-delay: calc(var(--i) * -1.2s); }
.hero-shelf, .doodle { will-change: transform; }

html.js:not(.still) .story { height: 300vh; }
html.js:not(.still) .story-sticky { position: sticky; top: 0; height: 100vh; display: flex; align-items: center; padding: 96px 0 88px; overflow: hidden; contain: layout paint; }
html.js:not(.still) .story-crayon.on { opacity: 1; }
@media (max-width: 899px) {
  html.js:not(.still) .story-steps li:not(.on) { display: none; }
  html.js:not(.still) .story-text h2 { margin-bottom: var(--s4); }
  html.js:not(.still) .story-in { gap: var(--s5); }
}

html.js:not(.still) .showcase { height: calc(var(--n) * 80vh + 40vh); }
html.js:not(.still) .show-sticky { position: sticky; top: 0; height: 100vh; overflow: hidden; display: flex; flex-direction: column; justify-content: center;
  padding: 88px 0 92px; contain: layout paint; }
html.js:not(.still) .show-view { overflow: visible; margin-top: var(--s5); }
html.js:not(.still) .show-track { padding: 0 calc(50vw - min(31vw, 150px)); will-change: transform; }
html.js:not(.still) .slide { will-change: transform, opacity; backface-visibility: hidden; }
html.js:not(.still) .show-dots { display: flex; gap: var(--s2); justify-content: center; margin-top: var(--s4); }
@media (max-height: 720px) { html.js:not(.still) .slide { width: min(50vw, 230px); } }
@media (min-width: 900px) { html.js:not(.still) .show-track { gap: 4vw; } }

html.js:not(.still) .rv { opacity: 0; translate: 0 34px; transition: opacity .8s ease, translate .8s cubic-bezier(.2, .8, .2, 1); transition-delay: var(--d, 0ms); }
html.js:not(.still) .rv.in { opacity: 1; translate: 0 0; }
html.js:not(.still) h2.rv:not(.in)::after { transform: scaleX(0); }

html.js:not(.still) .finale:not(.in) :is(.finale-logo, .finale-text) { opacity: 0; }
html.js:not(.still) .finale:not(.in) .finale-text { translate: 0 24px; }
html.js:not(.still) .finale-text { transition: opacity .8s ease .6s, translate .8s ease .6s; }
html.js:not(.still) .finale.in .finale-logo { animation: logoPop 1s cubic-bezier(.3, .9, .4, 1) backwards; }
html.js:not(.still) .finale.in .finale-logo::before { animation: ringSpin 18s linear infinite; }

html.js:not(.still) .keep-crayon i { animation: nudge 1.4s ease-in-out infinite; }

/* page-to-page fade where the browser supports it */
@view-transition { navigation: auto; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* =========================================================================
   RELEASE DATES (releases.csv)
   ========================================================================= */
.next-rel { display: inline-flex; flex-wrap: wrap; align-items: center; gap: var(--s1) var(--s2); margin: var(--s3) 0 0; padding: 6px 14px;
  border: var(--ol-thin); border-radius: 999px; background-color: var(--yellow); background-image: var(--tex); font: 500 1rem "Fredoka", sans-serif; }
.next-rel strong { font-weight: 600; }
.rel-weeks { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: var(--s5); }
.rel-week { --tone: var(--orange); position: relative; overflow: hidden; padding: var(--s7) var(--s4) var(--s4); background: var(--paper);
  border: var(--ol); border-radius: var(--r-lg); box-shadow: var(--pop); }
.rel-week::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 14px; background-color: var(--tone); background-image: var(--tex); border-bottom: var(--ol); }
.rel-week .rel-date { font: 600 1.375rem/1.15 "Fredoka", sans-serif; margin: 0; }
.rel-week .rel-count { margin: var(--s1) 0 var(--s4); }
.rel-tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s3); }
.rel-tiles li { position: relative; aspect-ratio: 3 / 4; border: var(--ol-thin); border-radius: 3px 8px 8px 3px; overflow: hidden; }
.rel-tiles li:nth-child(odd) { rotate: -1.5deg; } .rel-tiles li:nth-child(even) { rotate: 1.5deg; }
.rel-count { color: var(--ink-3); font-size: var(--fs-sm); }
.rel-later { margin-top: var(--s8); }
.rel-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--s2) var(--s4); margin-bottom: var(--s5); padding-bottom: var(--s3); border-bottom: 2px dashed var(--rule); }
.rel-head .rel-date { font-size: clamp(1.375rem, 1.1rem + 1vw, 1.75rem); }
.rel-head .rel-count { margin: 0; }

/* store buttons: compact so all three stores sit on one row */
.buy .btn, .buybox .btn { min-height: 44px; padding: 8px 14px 8px 10px; font-size: .9375rem; gap: 7px; }
.buy .btns, .buybox .btns { gap: var(--s2); }
.buy, .buybox { container-type: inline-size; }
@container (max-width: 470px) {
  .btns { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .btns .btn { padding: 8px 6px; justify-content: center; }
  .az { display: none; }
}
.keep { white-space: nowrap; max-width: calc(100vw - 24px); }
@media (max-width: 479px) { .keep { font-size: .9375rem; padding: 8px 10px 8px 16px; gap: 6px; } }
.chip { border-radius: 14px; }
@media (max-width: 599px) {
  html.js:not(.still) .slide { width: min(54vw, 240px); }
  html.js:not(.still) .show-track { padding: 0 calc(50vw - min(27vw, 120px)); }
  html.js:not(.still) .show-sticky { padding-bottom: 100px; justify-content: flex-start; padding-top: 96px; }
  .slide-cap h3 { font-size: 1.125rem; }
}
/* two colored bands in a row share one wavy seam */
.band + .band::before { display: none; }
.free, .flag { font-size: .8125rem; }

/* =========================================================================
   AMAZON STORE PICKER (cards and book pages)
   ========================================================================= */
.picker { display: grid; gap: var(--s3); }
.fmt-switch { display: inline-flex; width: fit-content; padding: 3px; border: var(--ol); border-radius: 999px; background: var(--paper); box-shadow: var(--pop-sm); }
.fmt-switch button { border: 0; border-radius: 999px; padding: 7px 16px; background: transparent; color: var(--ink-2); cursor: pointer;
  font: 600 var(--fs-sm)/1.1 "Fredoka", sans-serif; transition: background-color .2s, color .2s; }
.fmt-switch button:hover { color: var(--ink); background: #FFF4D6; }
.fmt-switch button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.picker-row { position: relative; display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-start; }
.buy-main { gap: 9px; }
.store-name { white-space: nowrap; }
.stores > summary { list-style: none; }
.stores > summary::-webkit-details-marker { display: none; }
.stores-btn .globe { width: 18px; height: 18px; }
.stores[open] .stores-btn { background-color: #FFF4D6; }
.stores[open] .stores-btn .chev { transform: rotate(180deg); }
.stores-panel { position: absolute; left: 0; right: 0; top: calc(100% + 10px); z-index: 30; min-width: min(100%, 300px); max-height: min(70vh, 520px); overflow: auto;
  padding: var(--s4) var(--s4) var(--s3); background: var(--paper); border: var(--ol); border-radius: 18px; box-shadow: var(--pop-lg); }
.stores-h { font: 600 1.125rem/1.2 "Fredoka", sans-serif; margin: 0; }
.stores-sub { margin: 2px 0 var(--s3); font-size: var(--fs-sm); color: var(--ink-3); }
.stores-list + .stores-list { margin-top: var(--s3); }
html.js .stores-list .buy-label { display: none; }
.stores-list ul { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 190px), 1fr)); gap: 2px var(--s2); }
.store { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; color: var(--ink); text-decoration: none; transition: background-color .15s; }
.store:hover, .store:focus-visible { background: #FFF4D6; color: var(--ink); }
.store-txt { display: flex; flex-direction: column; line-height: 1.2; }
.store-txt strong { font: 500 1rem "Fredoka", sans-serif; }
.store-txt em { font-style: normal; font-size: var(--fs-label); color: var(--ink-3); }
.store.is-current { background: var(--wash); box-shadow: inset 0 0 0 2px var(--ink); }
/* an open dropdown sits above the cards that follow it */
.card:has(.stores[open]), .book-text:has(.stores[open]) { position: relative; z-index: 30; }
.card .picker { margin-top: var(--s1); }
@media (max-width: 399px) { .btn-big { white-space: normal; text-align: center; line-height: 1.2; } }

/* the audience filter needs JS; laid out before the first paint so nothing shifts */
html:not(.js) .filters { display: none; }

/* =========================================================================
   ABOUT, GUIDES, ARTICLES
   ========================================================================= */
.about-grid { display: grid; gap: var(--s7); }
.about-grid h2 { margin-bottom: var(--s5); }
.about-h { margin-top: var(--s7); }
.about-series { display: grid; gap: var(--s3); }
.about-series li { display: grid; gap: 2px; padding: var(--s3) var(--s4); border: var(--ol); border-radius: var(--r-md); box-shadow: var(--pop-sm); }
.about-series a { color: var(--ink); text-decoration: none; font-family: "Fredoka", sans-serif; font-size: 1.125rem; }
.about-series a:hover { text-decoration: underline; }
.about-series span { color: var(--ink-2); font-size: var(--fs-sm); }
.guide-list { display: grid; gap: var(--s5); }
.guide-card a { display: block; padding: var(--s5); border: var(--ol); border-radius: var(--r-lg); box-shadow: var(--pop); color: var(--ink); text-decoration: none;
  transition: translate .18s, box-shadow .18s; }
.guide-card a:hover { translate: -2px -2px; box-shadow: 7px 7px 0 var(--ink); }
.guide-card h2 { font-size: clamp(1.375rem, 1.1rem + 1vw, 1.75rem); margin-bottom: var(--s3); }
.guide-card p { color: var(--ink-2); margin-bottom: var(--s3); }
.guide-meta { font: 600 1rem "Fredoka", sans-serif; color: var(--roof-2); }
.article { max-width: 760px; }
.article h1 { font-size: clamp(2.125rem, 1.5rem + 2.6vw, 3.25rem); margin-bottom: var(--s4); }
.article-meta { color: var(--ink-3); font-size: var(--fs-sm); margin-bottom: var(--s7); }
.prose-body { font-size: 1.125rem; line-height: 1.7; }
.prose-body > * { max-width: 66ch; }
.prose-body h2 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem); margin: var(--s7) 0 var(--s4); }
.prose-body h3 { margin: var(--s6) 0 var(--s3); }
.prose-body ul, .prose-body ol { margin: 0 0 1em; padding-left: 1.4em; list-style: disc; }
.prose-body ol { list-style: decimal; }
.prose-body li { margin-bottom: .4em; }
.prose-body strong { color: var(--ink); }
.prose-body blockquote { margin: var(--s5) 0; padding: var(--s4) var(--s5); border: var(--ol); border-radius: var(--r-md); background: #FFF4D6; }
@media (min-width: 900px) { .about-grid { grid-template-columns: 1fr 1fr; gap: var(--s8); } }

/* =========================================================================
   PERSONAL SECTIONS: who, promise, activities
   ========================================================================= */
.aud strong { font-size: 1.5rem; }
.aud-n { color: var(--roof-2); }
.promise .eyebrow, .acts .eyebrow { margin-bottom: var(--s3); }
.promise h2 { max-width: 16em; }
.promise .lead, .acts .lead { margin-bottom: var(--s2); }
.act-list { display: flex; flex-wrap: wrap; gap: var(--s3); margin-top: var(--s6); }
.act { --tone: var(--yellow); display: inline-flex; align-items: center; gap: 10px; padding: 10px 18px 10px 10px; border: var(--ol); border-radius: 999px;
  background: var(--paper); box-shadow: var(--pop-sm); font: 600 1.0625rem "Fredoka", sans-serif; }
.act-ic { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: var(--ol-thin); background-color: var(--tone); background-image: var(--tex); }
.act-ic svg { width: 24px; height: 24px; color: var(--ink); }
.act-more { margin-top: var(--s6); }
.aud { align-items: start; }

/* hero emblem: two hands holding a red heart, next to the small line */
.hero-badge { display: flex; align-items: center; gap: var(--s4); margin-top: var(--s5); }
.hero-badge .eyebrow { margin: 0; max-width: 18em; }
.hands { display: block; width: clamp(112px, 13vw, 168px); flex: none; transform-origin: 50% 60%; }
.hands img { width: 100%; height: auto; }
@keyframes beat { 0%, 70%, 100% { transform: scale(1); } 80% { transform: scale(1.06); } 90% { transform: scale(.99); } }
html.js:not(.still) .hands { animation: beat 2.8s ease-in-out infinite 1.2s; }
/* the word highlight: slimmer, sits under the letters like a crayon line */
.hl { background: linear-gradient(transparent 66%, var(--hl-word, var(--yellow)) 66% 90%, transparent 90%); }
.hero h1 { font-size: clamp(2.25rem, 1.2rem + 4.2vw, 4.75rem); max-width: 17em; text-wrap: balance; }
/* the title runs across the whole hero, above the text and the shelf */
.hero-in > h1 { grid-column: 1 / -1; margin: 0; }
@media (min-width: 900px) { .hero-in { row-gap: var(--s6); } }
/* the line next to the hands: a readable sentence, not a small label */
.hero-badge .eyebrow { font: 600 clamp(1.125rem, .95rem + .8vw, 1.5rem)/1.25 "Fredoka", sans-serif; text-transform: none; letter-spacing: 0;
  color: var(--ink); max-width: 15em; }

/* illustrations beside text (promise, activities, About) */
.split { display: grid; gap: var(--s6); align-items: center; }
.art { display: block; max-width: 440px; margin: 0 auto; }
.art img { width: 100%; height: auto; }
.promise .split { margin-bottom: var(--s2); }
.article-art { max-width: 560px; margin: 0 0 var(--s7); }
.article-art .art { max-width: 100%; }
.love { margin: 6px 0 0; font: 600 1rem/1.2 "Fredoka", sans-serif; color: var(--roof); display: flex; align-items: center; gap: 6px; }
.love::before { content: ""; width: 14px; height: 13px; background: var(--red);
  clip-path: path("M7 13C3 10 0 7.6 0 4.6 0 2 2 0 4.2 0 5.4 0 6.4.7 7 1.7 7.6.7 8.6 0 9.8 0 12 0 14 2 14 4.6 14 7.6 11 10 7 13z"); }
@media (min-width: 900px) {
  .split { grid-template-columns: 1.2fr .8fr; gap: var(--s8); }
  .about .split { grid-template-columns: 1.1fr .9fr; }
}

/* =========================================================================
   BIG MOMENTS (home): manifesto, zoom, numbers, closing lines
   ========================================================================= */
/* manifesto: one huge sentence lights up word by word */
.mani { padding-block: calc(var(--section) / 2); }
.mani-text { margin: 0; max-width: 17em; font: 600 clamp(2rem, 1.1rem + 4.3vw, 4.75rem)/1.12 "Fredoka", sans-serif; letter-spacing: -.012em; text-wrap: balance; }
.w { color: var(--ink); transition: color .35s ease; }
.k0 { color: var(--roof); } .k1 { color: #2F6FB5; } .k2 { color: var(--leaf); }
html.js:not(.still) .mani { height: 330vh; padding: 0; }
html.js:not(.still) .mani-sticky { position: sticky; top: 0; height: 100vh; display: flex; align-items: center; }
/* the words arrive after the drawings: hidden, then fade up into place one by one */
html.js:not(.still) .w { display: inline-block; opacity: 0; translate: 0 .3em; transition: opacity .45s ease, translate .55s cubic-bezier(.2, .8, .2, 1); }
html.js:not(.still) .w.lit { opacity: 1; translate: 0 0; color: var(--ink); }
html.js:not(.still) .k0.lit { color: var(--roof); } html.js:not(.still) .k1.lit { color: #2F6FB5; } html.js:not(.still) .k2.lit { color: var(--leaf); }

/* zoom: the family picture grows to fill the screen */
.zoom { padding-block: calc(var(--section) / 2); }
.zoom-sticky { display: flex; flex-direction: column; align-items: center; gap: var(--s5); }
.zoom-lines { order: -1; display: flex; flex-wrap: wrap; justify-content: center; gap: .1em .35em; margin: 0; padding: 0 var(--gutter); text-align: center;
  font: 700 clamp(2rem, 1.1rem + 4vw, 4.5rem)/1.05 "Fredoka", sans-serif; letter-spacing: -.015em; }
.zl1 { color: var(--ink); } .zl2 { color: var(--roof); } .zl3 { color: #2F6FB5; }
.zoom-card { width: min(94vw, 1080px); display: grid; place-items: center; padding: 3vh 3vw; border: var(--ol); border-radius: 32px; box-shadow: var(--pop-lg);
  background-color: var(--band-yellow); background-image: var(--tex); transform-origin: 50% 40%; }
.zoom-art { max-width: none; }
.zoom-art img { width: auto; max-width: 100%; max-height: 56vh; }
html.js:not(.still) .zoom { height: 230vh; padding: 0; }
html.js:not(.still) .zoom-sticky { position: sticky; top: 0; height: 100vh; justify-content: center; padding-top: 70px; overflow: hidden; }
html.js:not(.still) .zoom-card { transform: scale(var(--z, .6)); will-change: transform; }
html.js:not(.still) .zl { opacity: 0; translate: 0 30px; transition: opacity .5s ease, translate .6s cubic-bezier(.2, .8, .2, 1); }
html.js:not(.still) .zl.on { opacity: 1; translate: 0 0; }

/* numbers */
.nums h2 { margin-bottom: var(--s6); }
.num-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s6) var(--s5); }
.num-list li { border-top: 3px solid var(--ink); padding-top: var(--s4); }
.num { display: block; font: 700 clamp(3.75rem, 2.4rem + 5vw, 7rem)/.95 "Fredoka", sans-serif; letter-spacing: -.03em; color: var(--roof); font-variant-numeric: tabular-nums; }
.num-list li:nth-child(2) .num { color: #2F6FB5; } .num-list li:nth-child(3) .num { color: var(--leaf); } .num-list li:nth-child(4) .num { color: var(--ink); }
.num-list span { display: block; margin-top: var(--s2); font: 600 var(--fs-lead)/1.3 "Fredoka", sans-serif; color: var(--ink-2); max-width: 14em; }
@media (min-width: 900px) { .num-list { grid-template-columns: repeat(4, 1fr); } }

/* closing lines slide past each other */
.closing { overflow: hidden; padding-block: calc(var(--section) * .6); contain: paint; }
.cl { margin: 0; padding: .04em var(--gutter); text-align: center; font: 700 clamp(2.125rem, 1.2rem + 3.6vw, 5.25rem)/1.08 "Fredoka", sans-serif; letter-spacing: -.02em; }
/* outline only: a white fill painted over a double-width stroke hides the font's overlapping inner shapes */
.cl1 span { color: var(--paper); -webkit-text-stroke: 4px var(--ink); paint-order: stroke fill; }
.cl2 span { color: var(--roof); }
html.js:not(.still) .cl { will-change: transform; }
@media (min-width: 900px) { html.js:not(.still) .cl { white-space: nowrap; } }
@media (max-width: 599px) { .cl1 span { -webkit-text-stroke-width: 3px; } }

/* manifesto drawings: crayons, cocoa, heart pop in with their phrase; doodles draw themselves */
.mani-sticky { position: relative; }
.mani-wrap { position: relative; }
.mani { --stw: clamp(104px, 11vw, 180px); }
.st { position: absolute; display: block; width: var(--stw); pointer-events: none; }
.st img { width: 100%; height: auto; }
.mani-text { padding-block: calc(var(--stw) * 1.25 + 18px); }   /* room for the drawings (the mug is the tallest) */
.st0 { right: 4%; top: 0; rotate: -8deg; }
.st1 { left: 0; bottom: 0; rotate: 6deg; }
.st2 { right: 8%; bottom: 0; rotate: -6deg; }
.md { position: absolute; width: clamp(48px, 6vw, 84px); overflow: visible; pointer-events: none; }
.md path { fill: none; stroke: var(--c); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; }
.md0 { left: 6%; top: 14%; } .md1 { right: 8%; top: 12%; } .md2 { left: 10%; bottom: 14%; } .md3 { right: 16%; bottom: 10%; }
@keyframes popIn { 0% { opacity: 0; scale: .3; } 60% { opacity: 1; scale: 1.12; } 100% { scale: 1; } }
@keyframes floaty { 50% { translate: 0 -8px; } }
html.js:not(.still) .st { opacity: 0; scale: .3; }
html.js:not(.still) .st.on { opacity: 1; scale: 1; animation: popIn .7s cubic-bezier(.3, 1.5, .5, 1), floaty 5s ease-in-out .7s infinite; transition: opacity .6s ease, scale .6s ease; }
/* once the words come, the drawings step back so the eye moves to the text */
html.js:not(.still) .mani.reading .st.on { opacity: .8; scale: .88; }
html.js:not(.still) .mani.reading .md { opacity: .6; transition: opacity .6s ease; }
html.js:not(.still) .md path { stroke-dashoffset: calc(1 - var(--mp, 0)); }
@media (max-width: 899px) { .md3 { display: none; } .md0 { top: 6%; } .md1 { top: 8%; } .md2 { bottom: 4%; } }

/* ---------- story: crayon doodles and drawings around the page ---------- */
.sd { position: absolute; width: clamp(44px, 5.5vw, 80px); overflow: visible; pointer-events: none; }
.sd path { fill: none; stroke: var(--c); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; }
.sd0 { left: 4%; top: 16%; rotate: -10deg; } .sd1 { right: 4%; top: 12%; }
.sd2 { left: 5%; bottom: 10%; } .sd3 { right: 5%; bottom: 8%; }
.sd4 { left: 24%; top: 11%; rotate: 8deg; } .sd5 { left: 28%; bottom: 7%; }
.sst { position: absolute; z-index: 2; pointer-events: none; }
.sst img { width: 100%; height: auto; }
.sst0 { width: clamp(84px, 27%, 150px); right: -9%; top: -9%; rotate: 14deg; }
.sst1 { width: clamp(64px, 20%, 116px); right: -7%; bottom: -7%; rotate: 10deg; }
html.js:not(.still) .sd path { stroke-dashoffset: calc(1 - var(--sp, 0)); }
html.js:not(.still) .sst { opacity: 0; scale: .3; transition: opacity .5s ease, scale .5s ease; }
html.js:not(.still) .sst.on { opacity: 1; scale: 1; animation: popIn .7s cubic-bezier(.3, 1.5, .5, 1), floaty 5s ease-in-out .7s infinite; }
@media (max-width: 899px) { .sst0 { top: 1%; right: -5%; } .sd4, .sd5 { display: none; } .sd0 { top: 9%; } .sd1 { top: 8%; } .sd2 { bottom: 3%; } .sd3 { bottom: 3%; } }

/* ---------- book cards: free sample page link ---------- */
.sample-link { display: inline-flex; align-items: center; gap: 10px; margin-top: var(--s4); padding: 6px 2px;
  font: 600 1rem/1.2 "Fredoka", sans-serif; color: var(--ink); text-decoration: underline 2px var(--rule); text-underline-offset: 5px; }
.sample-link:hover { text-decoration-color: var(--red); }
.sample-link .mf-crayons i { height: 20px; }
.print-link { text-align: center; }
.print-under { display: none; text-align: center; margin-top: var(--s3); }
@media (max-width: 959px) { .print-under { display: block; } .tool-btns .print-link { display: none; } }

/* ---------- coming soon: who the books are for (general, never tied to a tile or date) ---------- */
.soon-for { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: var(--s3) var(--s4); margin-bottom: var(--s7); text-align: center; }
.soon-for-h { margin: 0; font: 600 clamp(1.25rem, 1rem + 1vw, 1.625rem)/1.2 "Fredoka", sans-serif; color: var(--ink); }
.soon-for-list { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s2); margin: 0; padding: 0; list-style: none; }
.soon-for-list li { padding: 6px 16px; border: var(--ol-thin); border-radius: 999px; background: color-mix(in srgb, var(--c) 30%, #fff);
  font: 600 1rem/1.2 "Fredoka", sans-serif; color: var(--ink); box-shadow: 3px 3px 0 var(--ink); }
.soon-for-list li:nth-child(odd) { rotate: -2deg; } .soon-for-list li:nth-child(even) { rotate: 1.5deg; }
.author-line { margin-top: var(--s3); }
.author-line a, .foot-col .author-link { font-weight: 700; text-decoration: underline 2px var(--rule); text-underline-offset: 4px; }
.author-line a:hover, .foot-col .author-link:hover { text-decoration-color: var(--red); }
.legal { display: grid; grid-template-columns: max-content 1fr; gap: var(--s2) var(--s5); margin: var(--s5) 0; }
.legal dt { font-weight: 700; color: var(--ink); }
.legal dd { margin: 0; }
@media (max-width: 499px) { .legal { grid-template-columns: 1fr; gap: 2px; } .legal dd { margin-bottom: var(--s3); } }
/* coloring corner: the way to the whole book */
.buy-box { margin-top: var(--s6); padding-top: var(--s5); border-top: 3px dashed var(--rule); }
.buy-box-h { margin: 0 0 var(--s3); font: 600 1.0625rem/1.3 "Fredoka", sans-serif; color: var(--ink); }
.buy-box .buy-book { width: 100%; justify-content: center; text-align: center; white-space: normal; line-height: 1.2; padding-inline: 14px; }
.print-under { display: none; flex-direction: column; align-items: center; gap: var(--s3); }
@media (max-width: 959px) { .buy-box { display: none; } .print-under { display: flex; } }
/* closing lines: a text-sized emoji at the end of each line (no outline on the outlined line) */
.cl .emo { display: inline-block; font-size: .82em; line-height: 1; vertical-align: .04em; -webkit-text-stroke: 0; paint-order: normal;
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif; }

/* welcome page behind the QR code in every book (/hello/) */
.hello-list { grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); }
.hello-for { font: 600 clamp(1.25rem, 1.05rem + .8vw, 1.625rem)/1.3 "Fredoka", sans-serif; color: var(--ink); margin-bottom: var(--s4); }
.hello-for cite { font-style: normal; color: var(--roof-2); }
