@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700;800&family=Fredoka:wght@400;500;600;700&display=swap');
:root{--ink:#292344;--muted:#706c83;--purple:#5b45b5;--pink:#ff7e9e;--yellow:#ffd66e;--paper:#fffdf9;--line:#eeeaf5;--shadow:0 18px 55px #33245e14}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--paper);color:var(--ink);font-family:'DM Sans',sans-serif}a{color:inherit;text-decoration:none}.announcement{text-align:center;background:#4e3c9b;color:white;padding:9px 14px;font-size:12px;font-weight:700;letter-spacing:.03em}.site-header{height:82px;display:flex;align-items:center;justify-content:space-between;padding:0 max(calc((100% - 1180px)/2),5%);background:#fff;position:sticky;top:0;z-index:10;box-shadow:0 4px 20px #3020500b}.brand{display:flex;align-items:center;gap:10px;font:700 20px Fredoka}.brand img{width:52px;height:52px;object-fit:contain}.brand small{display:block;font:600 9px 'DM Sans';letter-spacing:.04em;color:var(--muted);margin-top:2px}nav{display:flex;align-items:center;gap:25px;font-size:13px;font-weight:700}nav a:hover,.text-link:hover{color:var(--purple)}.nav-cta{background:#5b45b5;color:white;padding:12px 17px;border-radius:30px}.menu-toggle{display:none;border:0;background:none;font-size:25px}.hero{max-width:1180px;margin:0 auto;padding:72px 25px 65px;display:grid;grid-template-columns:.9fr 1.1fr;align-items:center;gap:35px;min-height:510px}.eyebrow{font-size:10px;letter-spacing:.16em;font-weight:800;color:#8b70c7}.hero h1{font:600 clamp(45px,6vw,72px)/.99 Fredoka;letter-spacing:-.04em;margin:17px 0}.hero h1 em{font-style:normal;color:#e76d96}.hero-copy>p,.section-heading p,.story-copy>p,.parent-copy>p{color:var(--muted);line-height:1.75;font-size:15px;max-width:490px}.hero-actions{display:flex;gap:12px;margin-top:27px;flex-wrap:wrap}.btn{display:inline-flex;align-items:center;justify-content:center;gap:14px;padding:14px 21px;border-radius:30px;font-size:13px;font-weight:800;transition:.2s}.btn:hover{transform:translateY(-2px);box-shadow:var(--shadow)}.primary{background:var(--purple);color:#fff}.light{background:#f1edfc;color:var(--purple)}.cream{background:#fff;color:#493777}.age-note{font-size:11px;color:#918ba1;margin-top:22px}.hero-art{position:relative}.hero-art img{width:100%;max-height:390px;object-fit:cover;border-radius:32px;box-shadow:var(--shadow)}.floating-note{position:absolute;bottom:20px;left:-18px;background:#fff;padding:14px 18px;border-radius:18px;box-shadow:var(--shadow);font-weight:800;font-size:13px}.trust-strip{display:flex;justify-content:center;gap:42px;flex-wrap:wrap;background:#f5f1ff;padding:20px 15px;color:#63558b;font-size:12px;font-weight:800}.section{max-width:1180px;margin:auto;padding:85px 25px}.section-heading{display:flex;justify-content:space-between;align-items:end;margin-bottom:30px}.section h2,.story-copy h2,.bedtime-banner h2,.parent-copy h2{font:600 clamp(32px,4vw,44px)/1.08 Fredoka;margin:9px 0 8px;letter-spacing:-.025em}.text-link{font-size:13px;font-weight:800;color:var(--purple);white-space:nowrap}.age-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:15px}.age-card{border-radius:22px;padding:23px;min-height:205px;display:flex;flex-direction:column;align-items:flex-start;transition:.2s}.age-card:hover{transform:translateY(-5px);box-shadow:var(--shadow)}.peach{background:#fff0e8}.lilac{background:#f1ebff}.mint{background:#e9f8ef}.sky{background:#eaf5ff}.age-icon{font-size:31px;margin-bottom:16px}.age-card b{font:600 19px Fredoka}.age-card small{font-size:11px;font-weight:800;color:#8268b7;margin:4px 0 12px}.age-card>span:last-child{font-size:12px;line-height:1.5;color:#716c7f}.feature-game{margin-top:25px;border:1px solid var(--line);border-radius:24px;padding:25px 30px;display:flex;align-items:center;gap:23px;position:relative;background:white}.feature-emoji{width:75px;height:75px;display:grid;place-items:center;border-radius:22px;background:#fff4c9;font-size:38px;flex-shrink:0}.feature-game h3,.resource-card h3{font:600 25px Fredoka;margin:7px 0}.feature-game p,.resource-card p{font-size:13px;line-height:1.6;color:var(--muted);max-width:600px}.feature-game .btn{margin-top:5px}.feature-pill{margin-left:auto;background:#fff4d6;color:#926b1e;padding:9px 13px;border-radius:20px;font-size:11px;font-weight:800;white-space:nowrap}.story-section{background:#f3efff;padding:72px max(calc((100% - 1130px)/2),5%);display:grid;grid-template-columns:.8fr 1.2fr;gap:60px;align-items:center}.story-art img{width:100%;max-height:370px;object-fit:cover;border-radius:26px;box-shadow:var(--shadow)}.story-copy>p{max-width:580px}.audio-card{background:white;border-radius:18px;padding:18px;margin-top:24px;box-shadow:0 8px 30px #34235c0c}.audio-top{display:flex;flex-direction:column;gap:4px;margin-bottom:12px}.audio-top span{font-size:9px;letter-spacing:.15em;color:#9877c9;font-weight:800}.audio-top b{font:600 18px Fredoka}.audio-top small{font-size:11px;color:var(--muted)}audio{width:100%;height:38px}.small-note{font-size:10px!important}.round-icon{font-size:36px;background:#fff2d5;border-radius:50%;width:70px;height:70px;display:grid;place-items:center}.song-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:15px}.song-grid article{border:1px solid var(--line);border-radius:20px;padding:23px;background:white}.song-grid article>span{font-size:28px}.song-grid h3{font:600 18px Fredoka;margin:13px 0 7px}.song-grid p{font-size:12px;line-height:1.6;color:var(--muted);margin:0}.center-note{text-align:center;color:#8c849c;font-size:11px;margin-top:22px}.bedtime-banner{margin:0 auto 15px;max-width:1130px;border-radius:30px;padding:42px 55px;background:linear-gradient(115deg,#302b70,#6550b3 70%,#8a71c9);color:white;display:flex;justify-content:space-between;align-items:center;overflow:hidden}.bedtime-banner .eyebrow{color:#e9d8ff}.bedtime-banner h2{font-size:40px}.bedtime-banner p{max-width:590px;color:#e5def8;font-size:13px;line-height:1.7}.moon-art{font-size:100px;position:relative;filter:drop-shadow(0 10px 15px #16104466)}.moon-art span{font-size:32px;position:absolute;top:0;right:-18px}.moon-art i{font-style:normal;font-size:48px;position:absolute;bottom:-14px;left:-25px}.resource-card{display:flex;align-items:center;gap:30px;padding:20px;border:1px solid var(--line);border-radius:24px;background:#fff}.resource-card img{width:200px;height:190px;object-fit:cover;border-radius:16px}.resource-card .btn{margin-top:8px}.download-note{padding:16px;text-align:center;color:#8b8499;font-size:11px}.parent-section{background:#f9edf3;padding:75px max(calc((100% - 1130px)/2),5%);display:grid;grid-template-columns:1.1fr .9fr;gap:40px;align-items:center}.parent-art img{width:100%;border-radius:25px}.social-links{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:25px 0}.social-links a{background:white;border:1px solid #f1e5ed;border-radius:14px;padding:14px;font-size:13px;font-weight:800}.social-links span{display:block;font-size:10px;color:#8b70b6;margin-top:5px}.newsletter{background:white;padding:20px;border-radius:18px}.newsletter h3{font:600 19px Fredoka;margin:0 0 5px}.newsletter p{font-size:11px;color:var(--muted)}.coming-soon{font-size:10px;font-weight:800;color:#8a6abc}footer{background:#272044;color:white;padding:48px max(calc((100% - 1130px)/2),5%) 25px;display:grid;grid-template-columns:2fr 1fr 1fr;gap:35px}footer a{display:block;color:#d6cfe8;font-size:12px;margin-top:11px}footer small{grid-column:1/-1;border-top:1px solid #ffffff22;padding-top:20px;color:#aaa2c2;font-size:10px}.footer-brand img{width:45px;vertical-align:middle;margin-right:7px}.footer-brand p{color:#aaa2c2;font-size:11px}
@media(max-width:850px){nav{gap:13px;font-size:11px}.hero{grid-template-columns:1fr;padding-top:50px}.hero-art{order:-1}.hero-art img{max-height:300px}.age-grid{grid-template-columns:repeat(2,1fr)}.story-section{gap:28px}.song-grid{grid-template-columns:repeat(2,1fr)}}@media(max-width:620px){.site-header{height:70px;padding:0 18px}.brand img{width:44px;height:44px}.menu-toggle{display:block}nav{display:none;position:absolute;top:70px;left:0;right:0;background:white;padding:20px;box-shadow:var(--shadow);flex-direction:column;align-items:stretch}nav.open{display:flex}.hero{padding:35px 20px 45px;gap:25px}.hero h1{font-size:51px}.hero-art img{border-radius:22px}.floating-note{left:8px}.trust-strip{gap:13px;font-size:10px}.section{padding:60px 20px}.section-heading{align-items:start;gap:12px;flex-direction:column}.age-grid{gap:10px}.age-card{padding:17px;min-height:190px}.feature-game{padding:18px;align-items:flex-start;flex-wrap:wrap}.feature-pill{margin-left:0}.story-section{grid-template-columns:1fr;padding:55px 20px}.story-art img{max-height:270px}.song-grid{gap:10px}.song-grid article{padding:16px}.bedtime-banner{margin:0 15px 10px;padding:30px 25px}.bedtime-banner h2{font-size:32px}.moon-art{font-size:65px}.resource-card{align-items:flex-start;gap:15px}.resource-card img{width:115px;height:145px}.resource-card h3{font-size:20px}.parent-section{grid-template-columns:1fr;padding:55px 20px}.parent-art{order:-1}.social-links{grid-template-columns:1fr 1fr}footer{padding:40px 22px 22px;grid-template-columns:1fr 1fr}.footer-brand{grid-column:1/-1}}


/* Amelia Harper visual refinement — accessible, touch-friendly enhancements */
:root{--purple-dark:#43318f;--lavender:#f4f0ff;--coral:#f17898;--mint:#e8f7ef;--focus:#f2b93b}
::selection{background:#e9ddff;color:#30244f}
a:focus-visible,button:focus-visible,select:focus-visible,audio:focus-visible{outline:3px solid var(--focus);outline-offset:4px}
.site-header{backdrop-filter:saturate(150%) blur(12px);background:rgba(255,255,255,.96)}
.brand{letter-spacing:-.02em}
nav a:not(.nav-cta){padding:10px 0;position:relative}
nav a:not(.nav-cta)::after{content:"";position:absolute;left:0;right:100%;bottom:3px;height:2px;background:var(--pink);transition:right .2s}
nav a:not(.nav-cta):hover::after{right:0}
.nav-cta{box-shadow:0 7px 18px #5b45b52b}
.hero{padding-top:82px;padding-bottom:76px}
.hero-art img{object-position:center;border:7px solid #fff;box-shadow:0 24px 65px #35245e1c}
.hero-copy>p{font-size:16px;max-width:470px}
.age-card{position:relative;overflow:hidden;border:1px solid #ffffffb8;box-shadow:0 7px 22px #33245e08}
.age-card::after{content:"";position:absolute;width:100px;height:100px;border-radius:50%;right:-36px;top:-40px;background:#ffffff50;pointer-events:none}
.age-card b{font-size:20px}
.feature-game{box-shadow:0 12px 34px #33245e09}
.story-section{position:relative}
.story-art img{border:6px solid #fff}
.song-grid article{transition:transform .2s,box-shadow .2s}
.song-grid article:hover{transform:translateY(-4px);box-shadow:var(--shadow)}
.bedtime-banner{box-shadow:0 18px 45px #30265a1c}
.resource-card{box-shadow:0 10px 30px #33245e08}
.resource-card img{object-fit:contain;background:#fff7e7}
.parent-section{border-radius:0}
.parent-art img{border:6px solid #fff;box-shadow:var(--shadow)}
.social-links a{transition:transform .2s,border-color .2s}
.social-links a:hover{transform:translateY(-2px);border-color:#c9b8f1}
footer a:hover{color:#fff;text-decoration:underline}
@media(min-width:1100px){.hero{min-height:560px}.hero-art img{max-height:430px}.section{padding-top:96px;padding-bottom:96px}}
@media(max-width:620px){.hero{padding-top:26px}.hero-art img{max-height:245px;border-width:4px}.hero h1{font-size:clamp(43px,12vw,54px)}.feature-game{gap:14px}.feature-emoji{width:58px;height:58px;font-size:30px}.feature-game h3{font-size:22px}.bedtime-banner{border-radius:24px}.resource-card{padding:14px}.resource-card img{width:104px;height:130px}.social-links a{min-height:68px;display:flex;flex-direction:column;justify-content:center}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}}

/* ABC Letter Adventure: clear, child-friendly answer states */
.answers{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.answers button{min-height:90px;display:flex;align-items:center;justify-content:center;transition:transform .16s,border-color .16s,background .16s;touch-action:manipulation}
.answers button:active{transform:scale(.98)}
.answers button:disabled{cursor:default;opacity:1}
.answers button.correct{border-color:#37a66b;background:#e8f8ef;color:#17683d;box-shadow:0 0 0 3px #37a66b20}
.answers button.incorrect{border-color:#e56b76;background:#fff0f1;color:#a32e3b}
.answers button.picture-answer{padding:10px;min-height:160px;background:#fff}
.answers button.picture-answer img{max-height:145px;object-fit:contain}
.feedback{margin:15px 0;padding:10px 12px;border-radius:12px;line-height:1.5}
@media(max-width:600px){.answers{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.answers button{min-height:82px;padding:12px;font-size:18px}.answers button.picture-answer{min-height:135px}.answers button.picture-answer img{height:112px!important}}

.game-progress-row{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:14px 0 8px}
.game-progress-label{font-size:9px;letter-spacing:.12em;font-weight:800;color:#927bbd}
.game-progress-track{height:9px;background:#eeeaf7;border-radius:20px;overflow:hidden;margin-bottom:20px}
#progress-fill{display:block;height:100%;width:0;background:linear-gradient(90deg,#7d65cb,#f17c9d);border-radius:20px;transition:width .25s ease}
@media(prefers-reduced-motion:reduce){#progress-fill{transition:none}}


/* =========================================================
   VISUAL POLISH — cohesive, playful premium design system
   Shared by the homepage and content-library pages
   ========================================================= */
:root{
  --surface:#ffffff;
  --surface-soft:#faf7ff;
  --line-strong:#e8e1f3;
  --shadow-card:0 14px 38px rgba(48,34,87,.09);
  --shadow-hover:0 22px 48px rgba(48,34,87,.14);
}
body{
  background:
    radial-gradient(ellipse at 8% 10%,rgba(255,214,110,.12),transparent 28rem),
    radial-gradient(ellipse at 92% 24%,rgba(199,180,255,.15),transparent 30rem),
    var(--paper);
}
.announcement{
  min-height:34px;
  display:flex;
  justify-content:center;
  align-items:center;
  font-size:11px;
  letter-spacing:.07em;
}
.site-header{
  border-bottom:1px solid rgba(232,225,243,.7);
  box-shadow:0 7px 25px rgba(48,32,80,.055);
}
.brand img{filter:drop-shadow(0 4px 6px rgba(60,42,105,.12))}
.brand span{line-height:1.05}
nav{gap:clamp(13px,1.8vw,25px)}
nav a{transition:color .18s ease,background .18s ease,transform .18s ease}
.nav-cta{padding:12px 19px}
.nav-cta:hover{background:var(--purple-dark);color:#fff;transform:translateY(-2px)}
.hero{position:relative;isolation:isolate}
.hero::before{
  content:"";
  position:absolute;
  z-index:-1;
  width:360px;height:360px;
  right:4%;top:8%;
  border-radius:50%;
  background:linear-gradient(145deg,rgba(235,225,255,.65),rgba(255,239,220,.3));
  filter:blur(2px);
}
.hero-art img{
  aspect-ratio:1.42/1;
  object-fit:cover;
  border-radius:34px;
}
.hero h1 em{background:linear-gradient(90deg,#e76d96,#9a76d5);background-clip:text;-webkit-background-clip:text;color:transparent}
.btn{min-height:48px;box-shadow:0 6px 18px rgba(49,36,89,.07)}
.btn:focus-visible{outline-offset:5px}
.trust-strip{border-top:1px solid #eee7fa;border-bottom:1px solid #eee7fa}
.section-heading{gap:20px}
.section-heading p{margin-bottom:0}
.age-card{
  min-height:220px;
  border-radius:25px;
  padding:25px;
  box-shadow:0 8px 22px rgba(48,34,87,.055);
}
.age-card b{letter-spacing:-.015em}
.age-card>span:last-child{max-width:190px}
.feature-game{
  border-color:var(--line-strong);
  border-radius:26px;
  background:linear-gradient(105deg,#fff 0%,#fff 65%,#faf6ff 100%);
}
.story-section{
  border-top:1px solid #e9e2f7;
  border-bottom:1px solid #e9e2f7;
}
.audio-card{border:1px solid #eee8f6}
audio{accent-color:var(--purple)}
.song-grid article{
  border-color:var(--line-strong);
  min-height:190px;
  padding:25px;
}
.song-grid article:nth-child(1){background:linear-gradient(145deg,#fff,#fff5f0)}
.song-grid article:nth-child(2){background:linear-gradient(145deg,#fff,#fff9e8)}
.song-grid article:nth-child(3){background:linear-gradient(145deg,#fff,#f2edff)}
.song-grid article:nth-child(4){background:linear-gradient(145deg,#fff,#edf8f1)}
.bedtime-banner{
  position:relative;
  isolation:isolate;
  border:1px solid rgba(255,255,255,.16);
}
.bedtime-banner::after{
  content:"";
  position:absolute;
  z-index:-1;
  width:280px;height:280px;
  right:9%;top:-150px;
  border-radius:50%;
  border:1px solid rgba(255,255,255,.16);
  box-shadow:0 0 0 24px rgba(255,255,255,.035),0 0 0 50px rgba(255,255,255,.025);
}
.resource-card{
  border-color:var(--line-strong);
  border-radius:26px;
  padding:25px;
}
.resource-card img{border-radius:19px}
.parent-section{
  position:relative;
  overflow:hidden;
  border-top:1px solid #f1e4ee;
  border-bottom:1px solid #f1e4ee;
}
.parent-section::before{
  content:"";
  position:absolute;
  width:300px;height:300px;
  left:-150px;bottom:-190px;
  border-radius:50%;
  background:#f3ddea;
}
.parent-copy,.parent-art{position:relative}
.social-links a{
  border-color:#eee2ec;
  box-shadow:0 5px 14px rgba(65,39,75,.035);
}
.newsletter{border:1px solid #f0e6ef}
footer{position:relative}
footer a{transition:color .18s ease,transform .18s ease}
footer a:hover{transform:translateX(3px)}
/* Shared content pages */
.library-page,.catalogue,.privacy-page{position:relative}
.library-hero,.catalogue-hero,.privacy-hero{
  position:relative;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.85);
  box-shadow:var(--shadow-card);
}
.library-hero::after,.catalogue-hero::after,.privacy-hero::after{
  content:"✦";
  position:absolute;
  right:6%;top:4%;
  color:rgba(139,112,199,.2);
  font-size:clamp(70px,12vw,130px);
  line-height:1;
  transform:rotate(12deg);
  pointer-events:none;
}
.media-card,.resource-item,.topic{
  border-color:var(--line-strong);
  border-radius:25px;
  box-shadow:var(--shadow-card);
  transition:transform .2s ease,box-shadow .2s ease;
}
.media-card:hover,.resource-item:hover,.topic:hover{
  transform:translateY(-3px);
  box-shadow:var(--shadow-hover);
}
.media-card img{border-radius:20px;box-shadow:0 8px 22px rgba(48,34,87,.08)}
.topic{min-height:175px}
.coming,.draft-note{border:1px solid rgba(232,187,88,.22);border-radius:16px}
.privacy-page h2{color:#45338c}
.catalogue-card{
  border-color:var(--line-strong);
  border-radius:24px;
  transition:transform .2s ease,box-shadow .2s ease;
}
.catalogue-card:hover{transform:translateY(-4px);box-shadow:var(--shadow-hover)}
.catalogue-card .icon{box-shadow:inset 0 0 0 1px rgba(91,69,181,.06)}
.filters input:focus,.filters select:focus{outline:3px solid rgba(91,69,181,.16);border-color:#9b87d5}
@media(max-width:850px){
  .hero::before{width:260px;height:260px;right:0}
  nav{gap:12px}
}
@media(max-width:620px){
  .announcement{font-size:9px;letter-spacing:.04em;padding:8px 10px}
  .site-header{box-shadow:0 5px 18px rgba(48,32,80,.07)}
  nav{gap:5px}
  nav a{padding:12px 10px!important;font-size:13px}
  nav .nav-cta{text-align:center;margin-top:5px}
  .hero::before{width:190px;height:190px;top:0;right:0}
  .hero-art img{aspect-ratio:1.25/1}
  .age-card{min-height:195px;padding:18px;border-radius:21px}
  .song-grid article{min-height:165px;padding:18px}
  .bedtime-banner::after{right:-30%;top:-110px}
  .media-card,.resource-item{padding:17px;border-radius:21px}
  .library-hero,.catalogue-hero,.privacy-hero{border-radius:22px}
}
@media(prefers-reduced-motion:reduce){
  .media-card,.resource-item,.topic,.catalogue-card,.btn,footer a{transition:none}
}


/* CONTENT POLISH — clearer page entry points and accessible navigation */
.skip-link{position:absolute;z-index:1000;top:8px;left:8px;padding:12px 16px;border-radius:12px;background:#fff;color:var(--purple-dark);font-weight:800;box-shadow:var(--shadow);transform:translateY(-160%)}
.skip-link:focus{transform:translateY(0);outline:3px solid var(--focus);outline-offset:3px}
.hero-with-art{display:grid;grid-template-columns:minmax(0,1fr) minmax(210px,.72fr);align-items:center;gap:28px}
.hero-with-art>div{position:relative;z-index:1}
.hero-with-art>img{width:100%;height:220px;object-fit:contain;border-radius:22px;filter:drop-shadow(0 14px 18px rgba(48,34,87,.12))}
.catalogue-hero.hero-with-art>img{height:245px;object-fit:cover;border:5px solid rgba(255,255,255,.85);box-shadow:var(--shadow-card)}
.library-hero.hero-with-art>img{max-height:235px}
@media(max-width:650px){.hero-with-art{grid-template-columns:1fr;gap:12px}.hero-with-art>img{height:180px;max-width:290px;margin:0 auto}.catalogue-hero.hero-with-art>img{height:165px}.library-hero.hero-with-art>img{max-height:175px}}
@media(prefers-reduced-motion:reduce){.skip-link{transition:none}}
