/* TaleBee: mobile-first styles.
   Base rules target small phones; larger layouts are layered on with min-width media queries.

   Look and feel: a sunny meadow. Things you can tap have a chunky ink outline and a hard shadow;
   things you only read (panels, notes, FAQs) are soft cards with no outline, so the tappable bits stand out. */

/* Fonts are served from this site (no third-party font service). Both are SIL Open Font License; see assets/fonts. */
@font-face { font-family: "Fredoka"; font-weight: 500; font-display: swap; src: url("../fonts/fredoka-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Fredoka"; font-weight: 600; font-display: swap; src: url("../fonts/fredoka-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Fredoka"; font-weight: 700; font-display: swap; src: url("../fonts/fredoka-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Nunito"; font-weight: 400; font-display: swap; src: url("../fonts/nunito-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Nunito"; font-weight: 600; font-display: swap; src: url("../fonts/nunito-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Nunito"; font-weight: 800; font-display: swap; src: url("../fonts/nunito-latin-800-normal.woff2") format("woff2"); }

:root {
  --cream: #FFF8EC;
  --cream-2: #F6EAD3;
  --lilac: #B6A3DE;
  --lilac-2: #ECE4FA;
  --lilac-deep: #6C55B8;
  --sky: #DDF0FF;
  --meadow: #E4F6DA;
  --night: #2F3A73;
  --night-deep: #1F2652;
  --honey: #FFC93C;
  --honey-deep: #F29E1F;
  --mint: #E2F7E6;
  --ink: #2B2A4C;
  --ink-soft: #57567C;
  --white: #FFFFFF;
  --yt: #E62117;

  --s1: 8px; --s2: 12px; --s3: 16px; --s4: 24px; --s5: 32px; --s6: 48px; --s7: 64px;
  --radius: 26px;
  --radius-lg: 32px;
  --radius-sm: 16px;
  --line: 3px solid var(--ink);
  --shadow: 0 6px 0 var(--ink);
  --shadow-sm: 0 4px 0 var(--ink);
  --soft: 0 14px 34px rgba(43, 42, 76, .10), 0 2px 6px rgba(43, 42, 76, .06);
  --gutter: 16px;
  --font-head: "Fredoka", "Baloo 2", "Comic Sans MS", system-ui, sans-serif;
  --font-body: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  --hex: polygon(25% 3%, 75% 3%, 100% 50%, 75% 97%, 25% 97%, 0 50%);
  --comb-gold: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='98' viewBox='0 0 56 98'%3E%3Cpath d='M28 0 56 16v33L28 65 0 49V16zM28 65v33' fill='none' stroke='%23E9A92E' stroke-width='2.5' opacity='.45'/%3E%3C/svg%3E");
  --cell: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 104'%3E%3Cpath d='M32 3h56l29 49-29 49H32L3 52z' fill='%23FFC93C' stroke='%232B2A4C' stroke-width='5' stroke-linejoin='round'/%3E%3Cpath d='M38 13h44l23 39-23 39H38L15 52z' fill='%23FFE08A'/%3E%3C/svg%3E");
  --comb-faint: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='98' viewBox='0 0 56 98'%3E%3Cpath d='M28 0 56 16v33L28 65 0 49V16zM28 65v33' fill='none' stroke='%232B2A4C' stroke-width='1.5' opacity='.06'/%3E%3C/svg%3E");
  --comb-dark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='98' viewBox='0 0 56 98'%3E%3Cpath d='M28 0 56 16v33L28 65 0 49V16zM28 65v33' fill='none' stroke='%23FFC93C' stroke-width='2' opacity='.12'/%3E%3C/svg%3E");
  --honeycomb: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='98' viewBox='0 0 56 98'%3E%3Cpath d='M28 0 56 16v33L28 65 0 49V16zM28 65v33' fill='none' stroke='%23fff' stroke-width='2.5' opacity='.55'/%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 104px; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background-color: var(--cream);
  background-image: var(--comb-faint);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--lilac-deep); text-underline-offset: 3px; text-decoration-thickness: 2px; }
h1, h2, h3, .brand-name, .btn, .chip, .eyebrow { font-family: var(--font-head); line-height: 1.12; }
h1 { font-size: clamp(2.2rem, 9vw, 3.6rem); font-weight: 700; margin: var(--s2) 0 var(--s3); }
h2 { font-size: clamp(1.6rem, 6vw, 2.4rem); font-weight: 700; margin: 0 0 var(--s2); }
h3 { font-size: 1.25rem; font-weight: 600; margin: 0 0 var(--s1); }
p { margin: 0 0 var(--s3); }
:focus-visible { outline: 4px solid var(--honey-deep); outline-offset: 3px; border-radius: 10px; }

.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 820px; }
.center { text-align: center; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; z-index: 100; }
.skip:focus { left: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.ico { display: inline-block; flex: none; }

/* ---------- the bee cursor ---------- */
/* A little bee follows the mouse; it turns golden over anything you can click. Typing fields keep the text cursor. */
html { cursor: url("../img/bee-cursor.svg") 3 3, auto; }
a, button, summary, label, select, .yt-btn, [data-filter] { cursor: url("../img/bee-cursor-tap.svg") 3 3, pointer !important; }
input, textarea { cursor: text; }

/* ---------- buttons & chips ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s1);
  min-height: 50px; padding: 10px 22px;
  border: var(--line); border-radius: 999px;
  font-weight: 600; font-size: 1.08rem; text-decoration: none; color: var(--ink);
  background: var(--white); box-shadow: var(--shadow-sm);
  transition: transform .15s ease, box-shadow .15s ease;
  cursor: pointer;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 0 var(--ink); }
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--ink); }
.btn .arrow { transition: transform .2s; }
.btn:hover .arrow { transform: translateX(4px); }
.btn-primary { background: var(--honey); }
.btn-yt { background: var(--yt); color: #fff; }
.btn-ghost { background: var(--lilac-2); }
.btn-white { background: var(--white); }
.btn-sm { min-height: 44px; padding: 6px 16px; font-size: .98rem; box-shadow: 0 3px 0 var(--ink); }
.btn-lg { min-height: 58px; font-size: 1.18rem; padding: 12px 28px; }
.btn-xl { min-height: 70px; font-size: 1.4rem; padding: 12px 32px 12px 14px; box-shadow: var(--shadow); }
.btn-block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--s2); }
.btn-say { margin-top: var(--s3); background: var(--white); }
.btn-say[aria-pressed="true"] { background: var(--lilac-2); }
.no-js [data-print], .no-js [data-say] { display: none; }
.yt-ico { flex: none; }
.ext { display: inline-block; margin-left: 4px; font-size: .85em; text-decoration: none; }
.more { display: flex; justify-content: center; margin-top: var(--s5); }
/* Round "play" badge used inside the big buttons */
.play-ico { position: relative; flex: none; width: 44px; height: 44px; border-radius: 50%; background: var(--ink); }
.play-ico::after { content: ""; position: absolute; left: 17px; top: 13px; border-left: 15px solid #fff; border-top: 9px solid transparent; border-bottom: 9px solid transparent; }
.btn-lg .play-ico { width: 36px; height: 36px; }
.btn-lg .play-ico::after { left: 14px; top: 10px; border-left-width: 12px; border-top-width: 8px; border-bottom-width: 8px; }

.chip {
  --chip: var(--lilac-2);
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 12px 4px 6px; border-radius: 999px;
  background: color-mix(in srgb, var(--chip) 45%, white);
  border: 2px solid var(--ink);
  color: var(--ink); font-size: .92rem; font-weight: 600; text-decoration: none; white-space: nowrap;
}
.chip .ico { width: 22px; height: 22px; }
a.chip:hover { background: var(--chip); }
.chip-row { display: flex; flex-wrap: wrap; gap: var(--s1); }
.chip-btn { cursor: pointer; font-size: 1rem; min-height: 46px; padding: 6px 16px 6px 8px; box-shadow: 0 3px 0 var(--ink); }
.chip-btn[aria-pressed="true"] { background: var(--ink); color: #fff; }
.chip-btn[data-filter="all"] { padding-left: 16px; }

.eyebrow {
  display: inline-block; margin: 0; padding: 6px 16px; border-radius: 999px;
  background: var(--honey); border: 2px solid var(--ink); box-shadow: 0 3px 0 var(--ink);
  color: var(--ink); font-weight: 600; font-size: .95rem; transform: rotate(-2deg);
}
.lead { font-size: 1.15rem; color: var(--ink-soft); }

/* ---------- header ---------- */
/* The hive roof: honey-gold with comb lines, and honey dripping off its bottom edge. */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: #FFE08A var(--comb-gold);
}
.site-header::after {
  content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 22px; pointer-events: none; z-index: 2;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='22' viewBox='0 0 120 22'%3E%3Cpath d='M0 0V4H10C14 4 14 18 18 18C22 18 22 4 26 4H54C58 4 58 12 62 12C66 12 66 4 70 4H88C92 4 92 20 96 20C100 20 100 4 104 4H120V0Z' fill='%23FFE08A'/%3E%3Cpath d='M0 4H10C14 4 14 18 18 18C22 18 22 4 26 4H54C58 4 58 12 62 12C66 12 66 4 70 4H88C92 4 92 20 96 20C100 20 100 4 104 4H120' fill='none' stroke='%232B2A4C' stroke-width='3'/%3E%3C/svg%3E") repeat-x 0 0 / 120px 22px;
}
.header-row { display: flex; align-items: center; justify-content: space-between; min-height: 68px; gap: var(--s2); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand img { width: 46px; height: 46px; transition: transform .3s; filter: drop-shadow(0 3px 0 var(--ink)); }
.brand:hover img { transform: rotate(-10deg) scale(1.06); }
.brand-name { font-size: 1.75rem; font-weight: 700; color: var(--honey); -webkit-text-stroke: 6px var(--ink); paint-order: stroke fill; letter-spacing: .5px; }

.prefs { display: flex; gap: 6px; margin-left: auto; }
.no-js .prefs { display: none; }
/* Sound and bedtime switches are little honey pots */
.pref-btn {
  position: relative; width: 44px; height: 42px; margin-top: 4px; border: var(--line); border-radius: 12px 12px 18px 18px; background: var(--white);
  display: grid; place-items: center; font-size: 1.1rem; cursor: pointer; box-shadow: 0 3px 0 var(--ink); padding: 0;
}
.pref-btn::before { content: ""; position: absolute; left: 5px; right: 5px; top: -8px; height: 8px; background: #C98A3A; border: 2px solid var(--ink); border-radius: 4px 4px 0 0; }
.pref-btn[aria-pressed="true"] { background: var(--honey); }
.pref-btn .pref-on { display: none; }
.pref-btn[aria-pressed="true"] .pref-on { display: inline; }
.pref-btn[aria-pressed="true"] .pref-off { display: none; }

/* The menu button is honey-yellow, so its three lines look like a bee's stripes */
.nav-toggle {
  width: 50px; height: 50px; border: var(--line); border-radius: 16px; background: var(--honey);
  display: grid; place-content: center; gap: 5px; cursor: pointer; box-shadow: var(--shadow-sm);
}
.nav-toggle span { display: block; width: 22px; height: 4px; background: var(--ink); border-radius: 3px; transition: transform .2s, opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* Phone menu: a honeycomb. Each link is a hexagon cell with a picture and its name underneath; the cells sit in
   staggered columns like real comb, and honey drips off the bottom of the panel. */
.site-nav {
  position: absolute; left: 0; right: 0; top: 100%;
  max-height: calc(100vh - 70px); overflow-y: auto;
  display: none;
}
.nav-panel { background: #FFF1C2 var(--comb-gold); padding: var(--s5) var(--gutter); }
.site-nav.open { display: block; animation: drop .2s ease; }
.nav-hello { margin: 0 0 var(--s3); text-align: center; font-family: var(--font-head); font-weight: 600; font-size: 1.25rem; }
.nav-hello::before { content: ""; display: inline-block; width: 34px; height: 33px; margin-right: 8px; vertical-align: -8px; background: url("../img/bee-wave.svg") center / contain no-repeat; }
.site-nav ul { list-style: none; margin: 0 auto var(--s4); padding: 0 0 44px; max-width: 360px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px 6px; justify-items: center; }
.site-nav li:nth-child(3n + 2) { translate: 0 44px; }
.site-nav ul a {
  --dot: var(--honey);
  display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 4px; text-align: center;
  font-family: var(--font-head); font-weight: 600; font-size: 1.02rem; line-height: 1.15; color: var(--ink); text-decoration: none;
}
.site-nav ul a::before { display: none; content: ""; width: 16px; height: 15px; clip-path: var(--hex); background: radial-gradient(circle, var(--dot) 52%, var(--ink) 55%); flex: none; }
.nav-cell { position: relative; display: grid; place-items: center; width: 98px; height: 86px; clip-path: var(--hex); background: var(--ink); transition: transform .15s; }
.nav-cell::before { content: ""; position: absolute; inset: 4px 5px; clip-path: var(--hex); background: color-mix(in srgb, var(--dot) 55%, white); }
.nav-cell img { position: relative; width: 52px; height: auto; }
.site-nav ul a:active .nav-cell { transform: scale(.92); }
.site-nav ul a[aria-current="page"] .nav-cell::before { background: var(--honey) var(--honeycomb); }
.site-nav ul a[aria-current="page"] .nav-label { background: var(--honey); border: 2px solid var(--ink); border-radius: 999px; padding: 0 10px; }
.site-nav.open li { animation: pop .35s cubic-bezier(.2, .9, .3, 1.3) both; }
.site-nav.open li:nth-child(2) { animation-delay: .05s; }
.site-nav.open li:nth-child(3) { animation-delay: .1s; }
.site-nav.open li:nth-child(4) { animation-delay: .15s; }
.site-nav.open li:nth-child(5) { animation-delay: .2s; }
.site-nav.open li:nth-child(6) { animation-delay: .25s; }
.site-nav.open li:nth-child(7) { animation-delay: .3s; }
@keyframes pop { from { opacity: 0; transform: scale(.5); } }
.site-nav .btn { width: 100%; }
/* honey dripping off the bottom of the open menu */
.site-nav.open::after {
  content: ""; display: block; height: 22px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='22' viewBox='0 0 120 22'%3E%3Cpath d='M0 0V4H10C14 4 14 18 18 18C22 18 22 4 26 4H54C58 4 58 12 62 12C66 12 66 4 70 4H88C92 4 92 20 96 20C100 20 100 4 104 4H120V0Z' fill='%23FFF1C2'/%3E%3Cpath d='M0 4H10C14 4 14 18 18 18C22 18 22 4 26 4H54C58 4 58 12 62 12C66 12 66 4 70 4H88C92 4 92 20 96 20C100 20 100 4 104 4H120' fill='none' stroke='%232B2A4C' stroke-width='3'/%3E%3C/svg%3E") repeat-x 0 0 / 120px 22px;
}
.no-js .site-nav { display: block; position: static; border: 0; }
.no-js .nav-toggle { display: none; }
.no-js .header-row { flex-wrap: wrap; }
@keyframes drop { from { opacity: 0; transform: translateY(-8px); } }

/* ---------- breadcrumbs ---------- */
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 2px 6px; padding: var(--s2) 0 0; margin: 0; font-size: .92rem; color: var(--ink-soft); }
.crumbs li { display: flex; align-items: center; }
.crumbs li:not(:last-child)::after { content: ""; width: 9px; height: 8px; margin-left: 6px; clip-path: var(--hex); background: var(--honey-deep); }
.crumbs a { color: var(--ink-soft); display: inline-flex; align-items: center; min-height: 44px; padding: 0 4px; }
.crumbs [aria-current] { font-weight: 800; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 60vw; padding: 0 4px; }

/* ---------- sections & bands ---------- */
.section { padding: var(--s6) 0; }
.section-list { padding-top: var(--s4); }
.section-head { margin-bottom: var(--s4); }
.section-title { display: inline-block; position: relative; padding-bottom: 14px; margin: 0; }
.section-title::after {
  content: ""; position: absolute; left: 0; bottom: -4px; width: 124px; height: 20px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 124 20'%3E%3Cpath d='M2 12c10-8 20 6 30 0s20 6 30 0 20 6 28 0' fill='none' stroke='%23F29E1F' stroke-width='3' stroke-linecap='round' stroke-dasharray='1 7'/%3E%3Cellipse cx='106' cy='4' rx='6' ry='4' fill='%23EAF6FF' stroke='%232B2A4C' stroke-width='1.6'/%3E%3Cellipse cx='111' cy='3' rx='5' ry='3.5' fill='%23EAF6FF' stroke='%232B2A4C' stroke-width='1.6'/%3E%3Cellipse cx='108' cy='11' rx='9' ry='7' fill='%23FFC93C' stroke='%232B2A4C' stroke-width='2'/%3E%3Cpath d='M105 5v12M110 5v12' stroke='%232B2A4C' stroke-width='2'/%3E%3Ccircle cx='115' cy='9' r='1.4' fill='%232B2A4C'/%3E%3C/svg%3E") no-repeat;
}
.section-title.small { font-size: 1.35rem; margin-top: var(--s5); margin-bottom: var(--s3); }
.section-sub { color: var(--ink-soft); margin: var(--s2) 0 0; font-size: 1.1rem; }

.band { --band: var(--lilac-2); position: relative; margin-top: var(--s5); }
.band .wave { display: block; width: 100%; height: 34px; color: var(--band); margin-bottom: -1px; }
.band-inner { background: var(--band) var(--honeycomb); padding: var(--s5) 0 var(--s6); }
.band-lilac { --band: var(--lilac-2); }
.band-sky { --band: var(--sky); }
.band-cream { --band: var(--cream-2); }
.band-meadow { --band: var(--meadow); }
.band-night { --band: var(--night); color: #EEF0FF; }
.band-night .band-inner { background-image: none; }
.band-night .section-title, .band-night h2 { color: #fff; }
.band-night a { color: var(--honey); }

/* ---------- home hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: var(--s5) 0 0;
  background: var(--comb-gold), radial-gradient(ellipse at 70% 30%, #FFF8E1 0%, #FFEDB5 55%, #FFE08A 100%);
}
.hero-grid { position: relative; z-index: 2; display: grid; gap: var(--s5); padding-bottom: 64px; }
.eyebrow-queen { background: var(--honey); color: var(--ink); margin-bottom: var(--s3); }
.eyebrow-queen::before { content: "\265B  "; }
.hero-copy { text-align: center; }
.hero h1 { font-size: clamp(2.8rem, 13vw, 5rem); margin: 0 0 var(--s2); }
.h1-kicker { display: block; font-family: var(--font-body); font-size: clamp(.95rem, 3.6vw, 1.1rem); font-weight: 800; color: var(--lilac-deep); margin-bottom: var(--s1); letter-spacing: .01em; }
.hero-lead { font-family: var(--font-head); font-weight: 600; font-size: clamp(1.2rem, 4.6vw, 1.5rem); color: var(--ink); margin-bottom: var(--s4); }
.hero-cta { display: flex; flex-direction: column; align-items: center; gap: var(--s2); }
.hero-art { position: relative; width: min(100%, 520px); margin: 0 auto; padding-top: 18px; }

/* The "TV" that shows today's story */
.tv { position: relative; background: var(--ink); border-radius: var(--radius-lg); padding: 12px 12px 0; box-shadow: 0 10px 0 rgba(43, 42, 76, .25); transform: rotate(-1.5deg); }
.tv::before, .tv::after { content: ""; position: absolute; top: -26px; width: 5px; height: 34px; background: var(--ink); border-radius: 4px; }
.tv::before { left: 38%; transform: rotate(-24deg); }
.tv::after { left: 52%; transform: rotate(24deg); }
.tv-screen { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 20px; overflow: hidden; background: var(--lilac-2); }
.tv-screen img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.tv-screen:hover img { transform: scale(1.05); }
.tv-screen .play-dot { width: 84px; height: 74px; margin: -37px 0 0 -42px; }
.tv-screen .play-dot::after { left: 33px; top: 23px; border-left-width: 22px; border-top-width: 14px; border-bottom-width: 14px; }
.tv-caption { margin: 0; padding: 10px 8px 12px; color: #fff; font-family: var(--font-head); font-weight: 600; font-size: 1.05rem; line-height: 1.3; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.tv-tag { background: var(--honey); color: var(--ink); border-radius: 999px; padding: 0 10px; font-size: .9rem; }
.hero-queen { position: absolute; width: 104px; left: -10px; top: -44px; z-index: 3; animation: bob 3.2s ease-in-out infinite; }
.hero-art { padding-top: 40px; }
/* The honeycomb stage the crew sits on */
.comb-floor { position: relative; height: 84px; background: #F7B733 var(--honeycomb); border-top: var(--line); }
.crew { position: absolute; bottom: calc(100% - 30px); height: auto; z-index: 3; }
.crew.c1 { left: 4%; width: 70px; }
.crew.c2 { left: 26%; width: 58px; }
.crew.c3 { right: 24%; width: 74px; }
.crew.c4 { right: 4%; width: 56px; }

/* flying bees, sparkles & moon (shared by heroes) */
.flyer { position: absolute; z-index: 1; height: auto; animation: buzz 6s ease-in-out infinite; }
/* On phones the bees stay up in the corners, clear of the heading; wider screens have room for all three. */
.fl1 { width: 38px; top: 18px; left: 4%; }
.fl2 { width: 34px; top: 22px; right: 6%; animation-duration: 7s; animation-delay: -2s; }
.fl3 { display: none; width: 30px; top: 64%; left: 12%; animation-duration: 5s; animation-delay: -1s; }
@keyframes buzz { 25% { transform: translate(14px, -10px) rotate(6deg); } 50% { transform: translate(26px, 4px) rotate(-4deg); } 75% { transform: translate(10px, 10px) rotate(4deg); } }
.spark { position: absolute; z-index: 1; width: 22px; height: 22px; background: var(--honey);
  clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); animation: twinkle 2.6s ease-in-out infinite; }
.sp1 { top: 30%; left: 12%; }
.sp2 { top: 22%; right: 14%; width: 16px; height: 16px; background: #fff; animation-delay: .9s; }
.sp3 { bottom: 22%; right: 22%; width: 14px; height: 14px; background: var(--lilac); animation-delay: 1.6s; }
.moon {
  position: absolute; z-index: 1; width: 84px; height: 84px; right: 8%; top: 28px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M60 6A46 46 0 1 0 94 72 38 38 0 1 1 60 6Z' fill='%23FFE9A8'/%3E%3C/svg%3E") center / contain no-repeat;
  filter: drop-shadow(0 0 18px rgba(255, 233, 168, .55));
}

@keyframes bob { 50% { transform: translateY(-10px) rotate(-3deg); } }
@keyframes twinkle { 50% { transform: scale(.5) rotate(45deg); opacity: .5; } }
@keyframes wiggle { 25% { transform: rotate(-10deg) scale(1.1); } 75% { transform: rotate(10deg) scale(1.1); } }

/* ---------- inner page hero ---------- */
.page-hero { --hero: #CFEAFF; position: relative; overflow: hidden; padding: var(--s6) 0 var(--s5); background: var(--honeycomb), linear-gradient(180deg, var(--hero) 0%, var(--cream) 100%); }
.page-hero .wrap { position: relative; z-index: 2; }
.page-hero .lead { margin-bottom: 0; }
.hero-pic { display: block; margin: 0 auto var(--s2); animation: bob 3.6s ease-in-out infinite; width: max-content; }
.hero-icon { width: 96px; height: auto; margin: 0 auto; }
.flower-frame { display: grid; place-items: center; width: 140px; height: 140px; background: url("../img/flower.svg") center / contain no-repeat; }
.flower-frame .hero-icon { width: 64px; }
.cell-frame { display: grid; place-items: center; width: 170px; height: 148px; background: var(--cell) center / contain no-repeat; }
.cell-frame .hero-icon { width: 104px; margin-top: 6px; }
.tone-sky { --hero: #CFEAFF; }
.tone-mint { --hero: #CDEFD7; }
.tone-peach { --hero: #FFDCC6; }
.tone-lilac { --hero: #E1D6F7; }
.tone-sun { --hero: #FFE9A8; }
.tone-pink { --hero: #FFD3E1; }
.tone-night { background: radial-gradient(#fff 1px, transparent 1.6px) 0 0 / 46px 46px, radial-gradient(#fff 1px, transparent 1.4px) 23px 19px / 61px 61px, linear-gradient(180deg, var(--night-deep) 0%, #34407E 100%); color: #EEF0FF; }
.tone-night h1 { color: #fff; }
.tone-night .lead { color: #DADDF5; }
.center-cta { flex-direction: row; justify-content: center; flex-wrap: wrap; margin-top: var(--s4); }

/* ---------- lite YouTube player ---------- */
.yt { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: #000; border: 4px solid var(--ink); box-shadow: var(--shadow); }
.yt-short { aspect-ratio: 9 / 16; max-width: 360px; margin: 0 auto; }
.yt-btn { all: unset; position: absolute; inset: 0; cursor: pointer; display: block; }
.yt-btn img { width: 100%; height: 100%; object-fit: cover; }
.yt-play { position: absolute; inset: 0; display: grid; place-items: center; }
.play-big { width: 104px; height: 92px; margin: -46px 0 0 -52px; filter: drop-shadow(0 4px 6px rgba(0, 0, 0, .3)); }
.play-big::before { inset: 6px 7px; }
.play-big::after { left: 41px; top: 29px; border-left-width: 28px; border-top-width: 17px; border-bottom-width: 17px; }
.yt-btn:hover .play-big, .yt-btn:focus-visible .play-big { transform: scale(1.1); }
.yt-btn:focus-visible { outline: 5px solid var(--honey); outline-offset: -5px; }
.yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- cards ---------- */
.grid { display: grid; gap: var(--s4); grid-template-columns: 1fr; }
.grid-shorts { grid-template-columns: repeat(2, 1fr); gap: var(--s3); }
/* Rows you swipe on phones. They run edge to edge, but scroll-padding keeps each card snapping one gutter in
   from the screen edge, and the ::after spacer keeps a gutter after the last card (Safari ignores end padding). */
.scroller, .shelf {
  display: flex; gap: var(--s3);
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter);
  margin: 0 calc(var(--gutter) * -1); padding: 8px 0 var(--s3) var(--gutter); scrollbar-width: none;
}
.shelf > * { flex: 0 0 min(78%, 320px); }
.scroller > * { flex: 0 0 min(62%, 240px); }
.scroller::after, .shelf::after { content: ""; flex: 0 0 calc(var(--gutter) - var(--s3)); }
.scroller::-webkit-scrollbar, .shelf::-webkit-scrollbar { display: none; }
.scroller > *, .shelf > * { scroll-snap-align: start; }
.scroller, .shelf, .filters { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 40px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 40px), transparent); }
.swipe-hint { text-align: center; font-family: var(--font-head); font-weight: 600; color: var(--ink-soft); margin: 0; }

.card {
  --tint: var(--lilac);
  position: relative; background: var(--white);
  border: var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  display: flex; flex-direction: column; transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-6px) rotate(-1deg); box-shadow: 0 10px 0 var(--ink); }
.card:nth-child(even):hover { transform: translateY(-6px) rotate(1deg); }
.card[hidden] { display: none; }
.card-link { color: inherit; text-decoration: none; display: flex; flex-direction: column; flex: 1; }
.card-media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: color-mix(in srgb, var(--tint) 45%, white); border-bottom: var(--line); }
.card-short .card-media { aspect-ratio: 9 / 13; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.card:hover .card-media img { transform: scale(1.06); }
.badge-time, .badge-short, .badge-new, .badge-watched { position: absolute; font-family: var(--font-head); font-weight: 600; font-size: .85rem; padding: 2px 10px; border-radius: 999px; }
.badge-time { bottom: 10px; right: 10px; background: var(--ink); color: #fff; }
.badge-short { left: 10px; top: 10px; background: var(--yt); color: #fff; }
.badge-new { left: 10px; top: 10px; background: var(--honey); color: var(--ink); border: 2px solid var(--ink); font-size: .95rem; transform: rotate(-6deg); }
.badge-watched { left: 10px; bottom: 10px; background: var(--honey); color: var(--ink); border: 2px solid var(--ink); padding: 0 10px; }
.card-short .badge-watched { bottom: auto; top: 44px; }
.play-dot { position: absolute; left: 50%; top: 50%; width: 66px; height: 58px; margin: -29px 0 0 -33px; clip-path: var(--hex); background: var(--ink); transition: transform .2s; }
.play-dot::before { content: ""; position: absolute; inset: 4px 5px; clip-path: var(--hex); background: var(--honey); }
.play-dot::after { content: ""; position: absolute; left: 26px; top: 18px; border-left: 18px solid var(--ink); border-top: 11px solid transparent; border-bottom: 11px solid transparent; }
.card:hover .play-dot { transform: scale(1.15); }
.card-body { padding: var(--s3) var(--s3) var(--s1); flex: 1; background: color-mix(in srgb, var(--tint) 16%, white); }
.card-body, .card-tags { background-image: var(--comb-gold); background-size: 42px 74px; }
.card-title { font-size: 1.25rem; margin: 0; }
.card-tags { list-style: none; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; padding: var(--s1) var(--s3) var(--s3); background: color-mix(in srgb, var(--tint) 16%, white); }
.dot { --chip: var(--lilac-2); position: relative; width: 46px; height: 41px; display: grid; place-items: center; clip-path: var(--hex); background: var(--ink); }
.dot::before { content: ""; position: absolute; inset: 2.5px 3px; clip-path: var(--hex); background: color-mix(in srgb, var(--chip) 60%, white); }
.dot .ico { position: relative; width: 28px; height: 28px; }
.card-short .card-body { padding: var(--s2) var(--s2) 4px; }
.card-short .card-title { font-size: 1.08rem; }
.card-short .card-tags { padding: 4px var(--s2) var(--s2); }
.card-short .dot { width: 40px; height: 35px; }
.card-short .dot .ico { width: 23px; height: 23px; }

/* ---------- sticker strip (home) ---------- */
.strip-wrap { padding: var(--s4) 0 0; }
.strip {
  display: grid; grid-template-columns: auto 1fr; align-items: center; gap: var(--s2) var(--s3);
  background: var(--white); border-radius: var(--radius-lg); padding: var(--s3); box-shadow: var(--soft);
  color: var(--ink); text-decoration: none; transition: transform .2s;
}
.strip:hover { transform: translateY(-3px); }
.strip-bee { width: 76px; animation: bob 4s ease-in-out infinite; }
.strip-copy { display: grid; gap: var(--s1); }
.strip-h { font-family: var(--font-head); font-weight: 600; font-size: 1.2rem; line-height: 1.25; }
.strip-slots { display: flex; flex-wrap: wrap; gap: 5px; }
.mini { width: 36px; height: 36px; display: grid; place-items: center; background: url("../img/jar-empty.svg") center / contain no-repeat; }
.mini .ico { width: 17px; height: 17px; margin-top: 9px; opacity: .2; filter: grayscale(1); }
.mini.has-sticker { background-image: url("../img/jar-full.svg"); }
.mini.has-sticker .ico { opacity: 1; filter: none; }
.strip-go { grid-column: 1 / -1; justify-self: start; display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-head); font-weight: 600; background: var(--honey); border: var(--line); border-radius: 999px; padding: 6px 16px; box-shadow: 0 3px 0 var(--ink); }

/* ---------- feelings (home) ---------- */
.face-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s3); }
.face-tile {
  --chip: var(--lilac-2);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--s1); height: 100%; min-height: 150px; padding: var(--s3) var(--s2);
  background: var(--white); border: var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm);
  color: var(--ink); text-decoration: none; text-align: center; font-family: var(--font-head); font-weight: 600; font-size: 1.08rem; line-height: 1.2; transition: transform .2s, background .2s;
}
/* Each feeling bee sits in its own honeycomb cell, in the lesson's colour */
.face-cell { position: relative; display: grid; place-items: center; width: 104px; height: 92px; clip-path: var(--hex); background: var(--ink); }
.face-cell::before { content: ""; position: absolute; inset: 4px 5px; clip-path: var(--hex); background: color-mix(in srgb, var(--chip) 70%, white); }
.face-cell img { position: relative; width: 70px; height: 70px; }
.face-tile { background: var(--white) var(--comb-faint); }
/* The meadow the feeling bees live in: flowers in the corners and a bee buzzing about */
.feelings .band-inner { position: relative; overflow: hidden; }
.feelings .wrap { position: relative; z-index: 2; }
.meadow-flower { position: absolute; z-index: 1; height: auto; animation: bob 5s ease-in-out infinite; }
.mf1 { width: 60px; left: 2%; bottom: 18px; }
.mf2 { width: 46px; right: 3%; top: 26px; animation-delay: -2s; }
.feelings .fl1 { top: 20px; left: auto; right: 16%; }
.feelings .mf2, .feelings .fl1 { display: none; }
.face-tile:hover { transform: translateY(-5px) rotate(-2deg); background: color-mix(in srgb, var(--chip) 45%, white); }
.face-grid li:nth-child(even) .face-tile:hover { transform: translateY(-5px) rotate(2deg); }
.face-tile:hover img { animation: wiggle .5s ease; }

/* ---------- bedtime band (home) ---------- */
.night-band {
  position: relative; overflow: hidden; padding: var(--s6) 0; color: #EEF0FF;
  background: radial-gradient(#fff 1px, transparent 1.6px) 0 0 / 46px 46px, radial-gradient(#fff 1px, transparent 1.4px) 23px 19px / 61px 61px, linear-gradient(180deg, #2B3570, var(--night-deep));
}
.night-inner { position: relative; z-index: 2; display: grid; justify-items: center; text-align: center; gap: var(--s3); }
.night-band .cell-frame { animation: bob 5s ease-in-out infinite; }
.night-bee { width: 104px; margin-top: 8px; }
.night-band h2 { color: #fff; margin-bottom: var(--s1); }
.night-band p { color: #DADDF5; font-size: 1.15rem; }

/* ---------- grown-ups corner (home) ---------- */
.grownups { background: var(--white); }
body:has(.grownups) .site-footer { margin-top: 0; background: var(--white); }
.grownups .section { padding-bottom: var(--s4); }
.grownups-head .eyebrow { margin-bottom: var(--s3); }
.grownups .faq details { background: var(--cream); box-shadow: none; }
.grownups .subscribe { padding-top: var(--s5); }

/* ---------- lessons ---------- */
.lesson-cards { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s3); }
.lesson-card {
  --chip: var(--lilac);
  display: flex; gap: var(--s3); align-items: center; padding: var(--s3); height: 100%; text-decoration: none; color: var(--ink);
  background: color-mix(in srgb, var(--chip) 35%, white); border: var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm);
  transition: transform .2s;
}
.lesson-card:hover { transform: translateY(-4px) rotate(-1deg); }
.lesson-card .lesson-emoji { width: 88px; height: 88px; display: grid; place-items: center; background: url("../img/flower.svg") center / contain no-repeat; flex: none; }
.lesson-card .lesson-emoji img { width: 42px; height: 42px; }
.lesson-card:hover .lesson-emoji img { animation: wiggle .5s ease; }
.lesson-card h2 { font-size: 1.35rem; margin: 0 0 2px; }
.lesson-card p { margin: 0 0 6px; color: var(--ink-soft); font-size: .96rem; }
.count { font-family: var(--font-head); font-size: .88rem; font-weight: 600; background: var(--white); border: 2px solid var(--ink); border-radius: 999px; padding: 0 10px; display: inline-block; }

/* ---------- search & filters ---------- */
.search { display: grid; gap: 6px; max-width: 460px; margin-bottom: var(--s3); }
.search label { font-family: var(--font-head); font-weight: 600; font-size: 1.15rem; }
.search input { min-height: 54px; padding: 0 var(--s3); border: var(--line); border-radius: 999px; font: inherit; color: var(--ink); background: var(--white); box-shadow: 0 3px 0 var(--ink); }
.no-js .search { display: none; }
.filters { display: flex; gap: var(--s1); overflow-x: auto; margin: 0 calc(var(--gutter) * -1) var(--s4); padding: 4px var(--gutter) var(--s2); scrollbar-width: none; }
.filters::-webkit-scrollbar { display: none; }
.filter-empty { text-align: center; font-weight: 800; }

/* ---------- why / faq ---------- */
.why-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s3); }
.why { background: var(--cream); border-radius: var(--radius); padding: var(--s4); }
.why-ico { display: inline-grid; place-items: center; width: 70px; height: 62px; clip-path: var(--hex); background: var(--honey); margin-bottom: var(--s2); }
.why-ico img { width: 46px; height: auto; }
.why p { margin: 0; color: var(--ink-soft); }
.faq { display: grid; gap: var(--s2); }
.faq details { background: var(--white); border-radius: var(--radius-sm); padding: 0 var(--s3); box-shadow: var(--soft); }
.faq summary { cursor: pointer; list-style: none; font-family: var(--font-head); font-weight: 600; font-size: 1.12rem; padding: var(--s3) 44px var(--s3) 0; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  width: 36px; height: 32px; clip-path: var(--hex); background: var(--honey);
  display: grid; place-items: center; font-size: 1.3rem; font-weight: 700; line-height: 1;
}
.faq details[open] summary::after { content: "\2212"; background: var(--lilac); }
.faq details p { color: var(--ink-soft); }

/* ---------- story page ---------- */
.story-top { --tint: var(--lilac); background: linear-gradient(180deg, color-mix(in srgb, var(--tint) 50%, white) 0%, var(--cream) 520px); padding-bottom: var(--s5); }
.story { padding-top: var(--s2); }
.story-wrap { max-width: 920px; display: grid; gap: var(--s4); }
.story-head { text-align: center; }
.story-cast { width: min(72vw, 260px); height: auto; margin: 0 auto var(--s2); background: var(--white); border-radius: var(--radius-lg); padding: 10px; box-shadow: var(--soft); }
.story-head h1 { font-size: clamp(2.1rem, 8vw, 3.4rem); margin-top: var(--s3); }
.kid-line { font-family: var(--font-head); font-weight: 600; font-size: clamp(1.2rem, 4.4vw, 1.5rem); line-height: 1.3; margin: 0 auto; max-width: 34ch; }

.stage { position: relative; background: var(--ink); border-radius: var(--radius-lg); padding: 12px; box-shadow: 0 12px 0 rgba(43, 42, 76, .22); margin-top: var(--s3); }
.stage .yt { border: 0; box-shadow: none; border-radius: 22px; }
.stage-bee { position: absolute; width: 96px; right: -8px; top: -58px; z-index: 3; animation: bob 3.4s ease-in-out infinite; }
.up-next { text-align: center; }

.play-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s2); margin-top: var(--s2); }
.play-tile {
  --chip: var(--honey);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 128px; padding: var(--s2) 6px;
  background: color-mix(in srgb, var(--chip) 45%, white); border: var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm);
  color: var(--ink); text-decoration: none; text-align: center; font-family: var(--font-head); font-weight: 600; font-size: 1.02rem; line-height: 1.15; transition: transform .2s;
}
.play-tile img { width: 58px; height: 58px; }
.play-tile:hover { transform: translateY(-4px); background: var(--chip); }
.play-tile:hover img { animation: wiggle .5s ease; }

.moral-card { position: relative; background: var(--honey) var(--honeycomb); border-radius: var(--radius-lg); padding: var(--s4); padding-right: 104px; box-shadow: var(--soft); }
.moral-queen { position: absolute; right: 10px; bottom: 14px; width: 90px; animation: bob 3.4s ease-in-out infinite; }
.moral-card h2 { font-size: 1.4rem; margin-bottom: var(--s1); }
.moral-big { font-family: var(--font-head); font-size: clamp(1.45rem, 5vw, 1.9rem); font-weight: 700; line-height: 1.2; margin: 0; }

.quiz { background: var(--lilac-2) var(--honeycomb); border-radius: var(--radius-lg); padding: var(--s4); box-shadow: var(--soft); }
.quiz h2 { font-size: 1.4rem; margin-bottom: var(--s1); }
.quiz-q { font-family: var(--font-head); font-size: clamp(1.3rem, 4.6vw, 1.6rem); font-weight: 600; line-height: 1.25; margin: 0; }
.quiz .btn-say { margin: var(--s2) 0 var(--s3); }
.quiz-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s2); }
.quiz-opt {
  --chip: var(--white);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 128px; padding: var(--s2) 6px;
  background: var(--white); border: var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm);
  font-family: var(--font-head); font-weight: 600; font-size: 1.02rem; color: var(--ink); cursor: pointer; transition: transform .15s, background .15s;
}
.quiz-opt:hover { transform: translateY(-3px); background: color-mix(in srgb, var(--chip) 40%, white); }
.quiz-ico { width: 60px; height: 60px; }
.quiz-opt.is-wrong { opacity: .45; animation: shake .4s; }
.quiz-opt[aria-pressed="true"] { background: var(--chip); outline: 5px solid var(--honey-deep); outline-offset: 2px; }
.quiz.is-done .quiz-opt[aria-disabled="true"] { opacity: .45; }
.quiz-msg { min-height: 1.6em; margin: var(--s3) 0 0; font-weight: 800; font-size: 1.15rem; }
.quiz-msg a { margin-left: 4px; }
@keyframes shake { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }

.transcript { background: var(--white); border-radius: var(--radius-lg); padding: var(--s4); box-shadow: var(--soft); }
.transcript h2 { font-size: 1.4rem; }
.read-note { color: var(--ink-soft); font-size: .98rem; }
.transcript details { background: var(--cream); border-radius: var(--radius-sm); padding: 0 var(--s3); }
.transcript summary { cursor: pointer; min-height: 48px; display: flex; align-items: center; font-family: var(--font-head); font-weight: 600; }
.transcript details p { font-size: 1.15rem; line-height: 1.8; margin: 0 0 var(--s3); }

.print-play { background: var(--mint); border-radius: var(--radius-lg); padding: var(--s4); box-shadow: var(--soft); }
.print-play h2 { font-size: 1.4rem; }
.no-js .print-play { display: none; }
.printables { display: none; }

/* "For grown-ups" panel at the bottom of a story */
.gu-panel { background: var(--white); border-radius: var(--radius-lg); padding: var(--s4); box-shadow: var(--soft); margin-top: var(--s4); }
.gu-panel > .eyebrow { margin-bottom: var(--s2); }
.gu-panel h2 { font-size: 1.6rem; }
.gu-grid { display: grid; gap: var(--s4); }
.gu-main h3 { margin-top: var(--s3); }
.gu-main p { color: var(--ink-soft); }
.qs { padding: 0; margin: 0; list-style: none; counter-reset: q; display: grid; gap: var(--s1); }
.qs li { counter-increment: q; background: var(--cream); border-radius: var(--radius-sm); padding: var(--s2) var(--s3) var(--s2) 56px; position: relative; }
.qs li::before { content: counter(q); position: absolute; left: 10px; top: 10px; width: 36px; height: 32px; clip-path: var(--hex); background: var(--honey); color: var(--ink); font-family: var(--font-head); font-weight: 700; display: grid; place-items: center; }
.activity { background: var(--mint); border-radius: var(--radius); padding: var(--s3) var(--s4); margin-top: var(--s4); }
.activity h2, .activity h3 { margin-top: 0; }
.activity p { color: var(--ink); }
.activity p:last-child { margin: 0; }
.facts { background: var(--cream); border-radius: var(--radius); padding: var(--s3); align-self: start; }
.facts dl { margin: 0 0 var(--s2); display: grid; grid-template-columns: 1fr 1fr; gap: var(--s1); }
.facts dl div { background: var(--white); border-radius: 14px; padding: 10px 12px; }
.facts dt { font-size: .8rem; color: var(--ink-soft); font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.facts dd { margin: 0; font-family: var(--font-head); font-weight: 600; font-size: 1.15rem; }
.facts-lead { font-size: .98rem; color: var(--ink-soft); margin-bottom: var(--s2); }
.facts-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: var(--s3); }
.gu-faq-h { margin-top: var(--s4); }
.gu-faq details { background: var(--cream); box-shadow: none; }
.facts-meta { margin: var(--s2) 0 0; font-size: .9rem; color: var(--ink-soft); text-align: center; }

/* ---------- sticker book ---------- */
.book-head { display: flex; align-items: center; justify-content: center; gap: var(--s3); margin-bottom: var(--s4); text-align: center; }
.book-bee { width: 90px; animation: wave-hi 1.6s ease-in-out 3; }
.book-count { margin: 0; font-size: clamp(1.3rem, 5vw, 1.8rem); }
@keyframes wave-hi { 25% { transform: rotate(-14deg); } 75% { transform: rotate(14deg); } }
.sticker-book { list-style: none; margin: 0 0 var(--s5); padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s3); }
.slot {
  --chip: var(--lilac);
  display: flex; flex-direction: column; align-items: center; gap: var(--s1); height: 100%; padding: var(--s3) var(--s2);
  background: var(--white); border: 3px dashed #A9A6C2; border-radius: var(--radius); text-align: center; text-decoration: none; color: var(--ink); transition: transform .2s;
}
.slot:hover { transform: translateY(-3px); }
.slot-sticker { position: relative; width: 100px; height: 100px; display: grid; place-items: center; background: url("../img/jar-empty.svg") center / contain no-repeat; }
.slot-emoji { width: 44px; height: 44px; margin-top: 18px; opacity: .18; filter: grayscale(1); }
.slot-q { margin-top: 18px; }
.slot-q { position: absolute; font-family: var(--font-head); font-size: 2rem; font-weight: 700; color: var(--ink-soft); }
.slot-title { font-family: var(--font-head); font-weight: 600; line-height: 1.2; }
.slot-state { font-size: .85rem; font-weight: 800; color: var(--ink-soft); }
.slot.has-sticker { border: var(--line); background: color-mix(in srgb, var(--chip) 30%, white); box-shadow: var(--shadow-sm); }
.slot.has-sticker .slot-sticker { background-image: url("../img/jar-full.svg"); transform: rotate(-6deg); }
.slot.has-sticker .slot-emoji { background: #fff; border: 2px solid var(--ink); border-radius: 50%; padding: 3px; }
.slot.has-sticker .slot-emoji { opacity: 1; filter: none; }
.slot.has-sticker .slot-q { display: none; }
.slot.has-sticker .slot-state { color: var(--ink); }
.book-note { margin-top: var(--s4); }

/* ---------- bedtime playlist ---------- */
.tonight { background: linear-gradient(160deg, var(--night), var(--night-deep)); color: #EEF0FF; border-radius: var(--radius-lg); padding: var(--s4); box-shadow: var(--soft); }
.tonight h2 { color: #fff; }
.tonight a { color: var(--honey); font-weight: 800; }
.tonight-list { margin: 0 0 var(--s4); padding-left: 1.4em; display: grid; gap: var(--s1); }
.tonight-time { font-size: .9rem; opacity: .85; }
html.bedtime [data-bedtime-on] { display: none; }
.tonight-hint { font-size: .95rem; opacity: .9; margin: var(--s2) 0 0; }

/* ---------- grown-up check before leaving for YouTube ---------- */
.gate { width: min(92vw, 440px); border: 4px solid var(--ink); border-radius: var(--radius); padding: var(--s4); background: var(--cream); color: var(--ink); box-shadow: var(--shadow); text-align: center; }
.gate::backdrop { background: rgba(43, 42, 76, .55); }
.gate h2 { font-size: 1.6rem; }
.gate-bee { width: 88px; margin: 0 auto var(--s1); }
.gate-sum { font-family: var(--font-head); font-size: 2rem; font-weight: 700; margin: var(--s2) 0; }
.gate-answers { display: flex; justify-content: center; gap: var(--s2); margin-bottom: var(--s3); }
.gate-answers .btn { min-width: 64px; font-size: 1.4rem; }
.gate-msg { min-height: 1.5em; font-weight: 800; }
.gate-note { font-size: .92rem; color: var(--ink-soft); }
.contact, .footer-contact { font-weight: 600; }

/* ---------- celebration ---------- */
.fx { position: fixed; inset: 0; pointer-events: none; z-index: 200; overflow: hidden; }
.confetti { position: absolute; top: -20px; width: 18px; height: 16px; clip-path: var(--hex); animation: fall linear forwards; }
.confetti.drop { width: 14px; height: 20px; clip-path: none; border-radius: 50% 50% 50% 50% / 64% 64% 36% 36%; border: 2px solid var(--ink); }
.fx-bee { position: absolute; width: 110px; top: 30%; left: -130px; animation: fly-across 3s ease-in-out forwards; }
@keyframes fall { to { transform: translateY(110vh) rotate(540deg); } }
@keyframes fly-across { 30% { transform: translate(40vw, -40px) rotate(-8deg); } 60% { transform: translate(70vw, 30px) rotate(8deg); } 100% { transform: translate(calc(100vw + 260px), -60px); } }

/* ---------- scroll animations ---------- */
/* main.js adds .reveal to blocks and .in while they're on screen. Only translate, scale and opacity animate,
   so hover effects that use transform keep working. */
.reveal-on .reveal {
  opacity: 0; translate: 0 34px; scale: .96;
  transition: opacity .5s ease, translate .65s cubic-bezier(.2, .9, .3, 1.25), scale .65s cubic-bezier(.2, .9, .3, 1.25);
  transition-delay: calc(var(--i, 0) * 80ms);
}
.reveal-on .reveal.in { opacity: 1; translate: 0 0; scale: 1; }
.reveal-on .section-head.reveal { translate: -24px 0; scale: 1; }
.reveal-on .section-head.reveal.in { translate: 0 0; }
html.bedtime .reveal { opacity: 1 !important; translate: none !important; scale: none !important; }

/* ---------- bedtime mode ---------- */
html.bedtime { background: #15142A; }
html.bedtime body { filter: brightness(.7) saturate(.7) sepia(.2); }
html.bedtime *, html.bedtime *::before, html.bedtime *::after { animation: none !important; transition: none !important; }

/* ---------- prose pages ---------- */
.paper { background: var(--white); border-radius: var(--radius-lg); padding: var(--s4); box-shadow: var(--soft); margin-bottom: var(--s4); }
.paper h2 { font-size: 1.5rem; }
.paper h2:not(:first-child) { margin-top: var(--s4); }
.paper > :last-child { margin-bottom: 0; }
.about-logo { width: 200px; margin: 0 auto var(--s3); }
.steps { padding: 0; margin: 0 0 var(--s3); list-style: none; counter-reset: st; display: grid; gap: var(--s2); }
.steps li { counter-increment: st; position: relative; padding: var(--s2) var(--s3) var(--s2) 56px; background: var(--cream); border-radius: var(--radius-sm); }
.steps li::before { content: counter(st); position: absolute; left: 10px; top: 10px; width: 36px; height: 32px; clip-path: var(--hex); background: var(--honey); color: var(--ink); font-family: var(--font-head); font-weight: 700; display: grid; place-items: center; }
.steps-night li { background: rgba(255, 255, 255, .1); }
.tips { list-style: none; padding: 0; display: grid; gap: var(--s2); margin: 0 0 var(--s4); }
.tips li { background: var(--white); border-radius: var(--radius-sm); padding: var(--s2) var(--s3) var(--s2) 52px; position: relative; box-shadow: var(--soft); }
.tips li::before { content: ""; position: absolute; left: 14px; top: 14px; width: 26px; height: 26px; background: url("../img/bee.svg") center / contain no-repeat; }
.paper .tips li { background: var(--cream); box-shadow: none; }
.glance { display: grid; gap: var(--s1); margin: 0; }
.glance div { display: grid; gap: 2px; background: var(--cream); border-radius: 14px; padding: 10px 14px; }
.glance dt { font-size: .8rem; font-weight: 800; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .04em; }
.glance dd { margin: 0; font-weight: 600; }

/* ---------- subscribe banner ---------- */
.subscribe { padding: var(--s6) 0; }
.subscribe-inner {
  position: relative; display: grid; justify-items: center; text-align: center; gap: var(--s2);
  background: var(--honey) var(--honeycomb); border-radius: var(--radius-lg); padding: var(--s5) var(--s4); box-shadow: var(--soft);
}
.subscribe-bee { width: 110px; animation: bob 3s ease-in-out infinite; }
.subscribe-copy h2 { margin: 0 0 var(--s1); }
.subscribe-copy p { margin: 0 0 var(--s2); }

/* ---------- footer ---------- */
.site-footer { margin-top: var(--s4); color: #E7E5F5; }
.site-footer .wave { display: block; width: 100%; height: 34px; color: var(--ink); margin-bottom: -1px; }
.footer-inner { background: var(--ink) var(--comb-dark); padding: var(--s5) 0 var(--s4); }
.site-footer a { color: #fff; }
.footer-grid { display: grid; gap: var(--s5); }
/* On phones the brand block is centred, and the link lists become compact two-column grids */
.footer-about { display: grid; justify-items: center; align-content: start; text-align: center; }
.footer-about p { max-width: 34ch; }
.footer-about .btn { width: 100%; max-width: 340px; }
.brand-footer { margin-bottom: var(--s2); }
.brand-footer .brand-name { -webkit-text-stroke: 0; color: var(--honey); }
.footer-h { font-size: 1.2rem; color: var(--honey); margin-bottom: var(--s2); }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: var(--s1); }
.foot-links a {
  display: flex; align-items: center; gap: 8px; min-height: 46px; height: 100%; padding: 6px 12px; border-radius: 14px;
  background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 201, 60, .22); text-decoration: none; line-height: 1.25; font-weight: 600;
}
.foot-links a::before { content: ""; flex: none; width: 12px; height: 11px; clip-path: var(--hex); background: var(--honey); }
.foot-lessons a { display: flex; align-items: center; gap: 8px; min-height: 46px; padding: 4px 6px; border-radius: 14px; text-decoration: none; line-height: 1.2; }
.foot-cell { flex: none; display: grid; place-items: center; width: 40px; height: 35px; clip-path: var(--hex); background: var(--honey); }
.foot-cell .ico { width: 24px; height: 24px; }
.foot-links a:hover, .foot-lessons a:hover { background: rgba(255, 201, 60, .16); }
/* Goodbye strip at the very bottom */
.footer-bye { display: grid; justify-items: center; text-align: center; gap: var(--s2); margin-top: var(--s5); padding-top: var(--s4); border-top: 1px dashed rgba(255, 201, 60, .35); }
.footer-bye img { width: 84px; animation: bob 3.6s ease-in-out infinite; }
.bye-text { margin: 0; font-family: var(--font-head); font-weight: 600; font-size: 1.2rem; color: var(--honey); }
.footer-bye .to-top { color: var(--ink); }
.copyright { margin: var(--s2) auto 0; font-size: .9rem; opacity: .8; max-width: 52ch; }

/* ================= ≥ 480px ================= */
@media (min-width: 480px) {
  .hero-cta { flex-direction: row; justify-content: center; flex-wrap: wrap; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .grid-shorts { grid-template-columns: repeat(3, 1fr); }
  .scroller { display: grid; overflow: visible; margin: 0; padding: 0; -webkit-mask-image: none; mask-image: none; }
  .scroller::after { display: none; }
  .scroller + .swipe-hint { display: none; }
  .face-grid { grid-template-columns: repeat(4, 1fr); }
  .sticker-book { grid-template-columns: repeat(3, 1fr); }
  .strip { grid-template-columns: auto 1fr auto; }
  .strip-go { grid-column: auto; justify-self: end; }
  .strip-bee { width: 92px; }
}

/* ================= ≥ 768px ================= */
@media (min-width: 768px) {
  :root { --gutter: 28px; }
  .section { padding: var(--s7) 0; }
  .section-list { padding-top: var(--s5); }
  .band .wave, .site-footer .wave { height: 56px; }
  .band-inner { padding: var(--s6) 0 var(--s7); }
  .page-hero { padding: var(--s7) 0 var(--s6); }
  .shelf { display: grid; grid-template-columns: repeat(2, 1fr); overflow: visible; margin: 0; padding: 0; gap: var(--s4); -webkit-mask-image: none; mask-image: none; }
  .shelf::after { display: none; }
  .shelf + .swipe-hint { display: none; }
  .lesson-cards { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); gap: var(--s4); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-about { grid-column: 1 / -1; }
  .subscribe-inner { grid-template-columns: auto 1fr auto; text-align: left; justify-items: start; align-items: center; gap: var(--s4); padding: var(--s5); }
  .subscribe-copy p { margin: 0; }
  .filters { flex-wrap: wrap; overflow: visible; margin: 0 0 var(--s5); padding: 4px 0 0; -webkit-mask-image: none; mask-image: none; }
  .paper { padding: var(--s5); }
  .grid-shorts { grid-template-columns: repeat(auto-fit, minmax(200px, 260px)); justify-content: center; gap: var(--s4); }
  .sticker-book { grid-template-columns: repeat(4, 1fr); }
  .fl1 { width: 44px; top: 34px; left: 6%; }
  .fl2 { width: 40px; top: 46%; right: 8%; }
  .fl3 { display: block; }
  .feelings .mf2, .feelings .fl1 { display: block; }
  .night-inner { grid-template-columns: auto 1fr; justify-items: start; text-align: left; gap: var(--s5); max-width: 860px; }
  .night-band .cell-frame { width: 210px; height: 182px; }
  .night-bee { width: 128px; }
  .moon { width: 110px; height: 110px; }
  .play-tile { min-height: 150px; font-size: 1.15rem; }
  .play-tile img { width: 72px; height: 72px; }
  .quiz-opt { min-height: 150px; font-size: 1.12rem; }
  .quiz-ico { width: 72px; height: 72px; }
  .stage { padding: 16px; }
  .stage-bee { width: 120px; top: -72px; right: -24px; }
  .gu-panel { padding: var(--s5); }
  .moral-card { padding: var(--s5); padding-right: 160px; }
  .moral-queen { width: 130px; right: 20px; bottom: 50%; transform: translateY(50%); animation: none; }
}

/* ================= ≥ 1024px (desktop) ================= */
@media (min-width: 1024px) {
  .nav-toggle { display: none; }
  .site-nav, .no-js .site-nav { display: flex; align-items: center; gap: var(--s3); position: static; padding: 0; background: none; border: 0; order: 2; margin-left: auto; }
  .site-nav ul { display: flex; margin: 0; gap: 6px; }
  .site-nav ul a { min-height: 44px; padding: 0 14px; font-size: 1.05rem; border-radius: 999px; border: 2px solid transparent; background: none; box-shadow: none; gap: 8px; }
  .site-nav ul a::before { display: block; width: 10px; height: 10px; }
  .site-nav { max-height: none; overflow: visible; }
  .nav-panel { display: contents; }
  .site-nav::after, .site-nav.open::after, .nav-hello, .nav-cell, .nav-home { display: none; }
  .site-nav ul { max-width: none; padding: 0; justify-items: stretch; }
  .site-nav li:nth-child(3n + 2) { translate: none; }
  .site-nav.open li, .site-nav li { animation: none; }
  .site-nav ul a { flex-direction: row; align-items: center; line-height: 1.15; white-space: nowrap; font-weight: 600; }
  .site-nav ul a[aria-current="page"] .nav-label { background: none; border: 0; padding: 0; }
  .site-nav ul a:hover { background: color-mix(in srgb, var(--dot) 40%, white); border-color: var(--ink); }
  .site-nav ul a[aria-current="page"] { background: var(--dot); border-color: var(--ink); box-shadow: 0 3px 0 var(--ink); }
  .site-nav .btn { width: auto; }
  .prefs { order: 3; margin-left: 0; }

  .hero { padding: 80px 0 0; }
  .hero-grid { padding-bottom: 80px; }
  .comb-floor { height: 110px; }
  .crew.c1 { left: 6%; width: 92px; }
  .crew.c2 { left: 18%; width: 76px; }
  .crew.c3 { right: 18%; width: 96px; }
  .crew.c4 { right: 6%; width: 74px; }
  .hero-grid { grid-template-columns: 1fr 1.05fr; align-items: center; gap: var(--s6); }
  .hero-copy { text-align: left; }
  .hero-cta { justify-content: flex-start; }
  .hero-art { width: 100%; max-width: 560px; }
  .hero-queen { width: 150px; left: -64px; top: -52px; }

  .grid { grid-template-columns: repeat(3, 1fr); gap: var(--s5) var(--s4); }
  .shelf { grid-template-columns: repeat(4, 1fr); align-items: start; padding-bottom: 40px; }
  .shelf > :nth-child(even) { margin-top: 40px; }
  .grid-shorts { grid-template-columns: repeat(auto-fit, minmax(220px, 270px)); }
  .lesson-cards { grid-template-columns: repeat(3, 1fr); }
  .why-grid { grid-template-columns: repeat(4, 1fr); }
  .footer-grid { grid-template-columns: 1.1fr 1fr 1.4fr; gap: var(--s6); }
  .footer-about { grid-column: auto; justify-items: start; text-align: left; }
  .footer-about .btn { width: auto; }
  .gu-grid { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: var(--s5); }
}

/* ---------- motion & print ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media print {
  .site-header, .site-footer, .subscribe, .yt, .filters, .flyer, .spark, .moon, .comb-floor, .hero-queen, .btn-say, .up-next, .print-play, .play-tiles, .stage-bee { display: none !important; }
  body { background: #fff; filter: none !important; }
  .reveal { opacity: 1 !important; translate: none !important; scale: none !important; }

  /* The print buttons on story pages print just one sheet. */
  html[data-print] main > :not(.printables) { display: none !important; }
  html[data-print] .printables { display: block; }
  .printable { display: none; color: #000; font-size: 13pt; }
  html[data-print="card"] .printable[data-kind="card"], html[data-print="colour"] .printable[data-kind="colour"] { display: block; }
  .printable h2 { font-size: 24pt; margin: 0 0 10pt; }
  .printable h3 { font-size: 15pt; margin: 14pt 0 4pt; }
  .print-brand { font-family: var(--font-head); font-weight: 600; margin: 0 0 6pt; }
  .print-moral { border: 2pt dashed #000; border-radius: 12pt; padding: 8pt 12pt; font-size: 15pt; }
  .print-foot { margin-top: 16pt; font-size: 11pt; }
  .colour-bee { display: block; width: 55%; max-height: 10cm; margin: 0 auto 12pt; }
  .colour-cast { display: block; width: 100%; height: auto; max-height: 12cm; margin: 0 auto 12pt; }
  .colour-cast + .draw-box { height: 6cm; }
  .draw-box { border: 2pt solid #000; border-radius: 14pt; height: 9cm; padding: 8pt 12pt; }
}
