/* self-hosted fonts */
@font-face {
  font-family: 'Fredoka';
  font-style: normal;
  font-weight: 500;
  font-stretch: 100%;
  font-display: swap;
  src: url(/fredoka-latin-1.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Fredoka';
  font-style: normal;
  font-weight: 600;
  font-stretch: 100%;
  font-display: swap;
  src: url(/fredoka-latin-1.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Fredoka';
  font-style: normal;
  font-weight: 700;
  font-stretch: 100%;
  font-display: swap;
  src: url(/fredoka-latin-1.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/inter-latin-1.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/inter-latin-1.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/inter-latin-1.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/inter-latin-1.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root{
  --navy:#2B2D6E;
  --navy-deep:#1E2050;
  --cream:#FFF8EC;
  --pink:#FF5D8F;
  --pink-deep:#B8325E;
  --yellow:#FFD23F;
  --yellow-deep:#E08E00;
  --teal:#4CC9F0;
  --green:#8AE6A2;
  --ink:#1B1C3A;
  --line:rgba(27,28,58,.12);
  --max:1120px;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family:'Inter',system-ui,sans-serif;
  color:var(--ink);
  background:var(--cream);
  line-height:1.6;
  font-size:17px;
}
h1,h2,h3,h4{
  font-family:'Fredoka',system-ui,sans-serif;
  font-weight:600;
  line-height:1.15;
  margin:0 0 .5em;
  letter-spacing:-.01em;
}
p{margin:0 0 1em}
a{color:inherit}
img{max-width:100%;display:block}
.wrap{max-width:var(--max);margin:0 auto;padding:0 24px}
.btn{
  display:inline-flex;align-items:center;gap:8px;
  font-family:'Fredoka',sans-serif;font-weight:600;font-size:17px;
  padding:14px 28px;border-radius:14px;text-decoration:none;
  border:3px solid var(--ink);transition:transform .15s ease;
}
.btn:hover{transform:translateY(-2px)}
.btn-primary{background:var(--yellow);color:var(--ink);box-shadow:4px 4px 0 var(--ink)}
.btn-primary:hover{box-shadow:6px 6px 0 var(--ink)}
.btn-ghost{background:transparent;border-color:currentColor}

/* header */
.site-header{
  background:var(--navy);color:#fff;padding:18px 0;position:sticky;top:0;z-index:50;
  border-bottom:3px solid var(--navy-deep);
}
.site-header .wrap{display:flex;align-items:center;justify-content:space-between}
.logo{
  font-family:'Fredoka',sans-serif;font-weight:700;font-size:22px;color:#fff;
  text-decoration:none;display:flex;align-items:center;gap:10px;
}
.logo .cube{
  width:28px;height:28px;background:var(--yellow);border:2.5px solid var(--ink);
  border-radius:6px;display:inline-block;transform:rotate(-8deg);
}
nav.main-nav ul{display:flex;gap:28px;list-style:none;margin:0;padding:0}
nav.main-nav a{color:#fff;text-decoration:none;font-weight:600;font-size:15px}
nav.main-nav a:hover{color:var(--yellow)}
.nav-toggle{display:none;background:none;border:none;color:#fff;font-size:26px}

/* hero */
.hero{
  background:var(--navy);color:#fff;padding:72px 0 96px;position:relative;overflow:hidden;
}
.hero .wrap{display:grid;grid-template-columns:1.1fr .9fr;gap:48px;align-items:center}
.hero-eyebrow{
  font-family:'Fredoka',sans-serif;font-size:15px;color:var(--yellow);font-weight:600;margin-bottom:14px;
}
.hero h1{font-size:52px;color:#fff}
.hero h1 span{color:var(--pink)}
.hero p.lead{font-size:19px;color:#D9DAF5;max-width:46ch}
.hero-cta{display:flex;gap:16px;margin-top:32px;flex-wrap:wrap}
.hero-art{position:relative;height:360px;display:flex;align-items:center;justify-content:center}
.hero-art svg{position:absolute;filter:drop-shadow(6px 6px 0 rgba(0,0,0,.25))}
.hero-art img{max-height:100%;width:auto}

/* sections */
section{padding:88px 0}
.section-cream{background:var(--cream)}
.section-navy{background:var(--navy);color:#fff}
.kicker{
  font-family:'Fredoka',sans-serif;color:var(--pink-deep);font-weight:600;font-size:15px;margin-bottom:10px;
}
.section-navy .kicker{color:var(--yellow)}
h2.section-title{font-size:36px;max-width:22ch}

.grid-3{display:grid;grid-template-columns:repeat(3,1fr);gap:28px;margin-top:40px}
.grid-2{display:grid;grid-template-columns:1fr 1fr;gap:40px;align-items:center}

.feature{
  background:#fff;border:3px solid var(--ink);border-radius:18px;padding:28px;
  box-shadow:5px 5px 0 var(--ink);
}
.feature .icon{
  width:52px;height:52px;border-radius:12px;display:flex;align-items:center;justify-content:center;
  font-size:26px;margin-bottom:16px;border:2.5px solid var(--ink);
}
.feature h3{font-size:20px;margin-bottom:8px}
.feature p{margin:0;color:#4a4b6a;font-size:15.5px}

/* book showcase */
.book-card{
  display:grid;grid-template-columns:300px 1fr;gap:40px;background:#fff;
  border:3px solid var(--ink);border-radius:22px;padding:36px;box-shadow:7px 7px 0 var(--ink);
  align-items:center;
}
.book-card img{border-radius:12px;border:3px solid var(--ink)}
.price-tag{
  display:inline-flex;align-items:baseline;gap:6px;background:var(--yellow);border:3px solid var(--ink);
  border-radius:12px;padding:8px 18px;font-family:'Fredoka',sans-serif;font-weight:700;font-size:24px;
}
.price-tag .was{font-size:15px;font-weight:500;text-decoration:line-through;opacity:.6}
.stars{color:var(--yellow-deep);font-size:18px;letter-spacing:2px}

/* faq */
.faq-item{border-bottom:2px solid var(--line);padding:22px 0}
.faq-item h3{font-size:18px;margin-bottom:8px;display:flex;gap:10px}
.faq-item p{color:#4a4b6a;margin:0}

/* blog */
.post-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:28px;margin-top:40px}
.post-card{
  background:#fff;border:3px solid var(--ink);border-radius:18px;overflow:hidden;
  box-shadow:5px 5px 0 var(--ink);text-decoration:none;color:var(--ink);display:block;
}
.post-card .thumb{height:150px;display:flex;align-items:center;justify-content:center;font-size:52px}
.post-card .body{padding:22px}
.post-card .tag{
  font-family:'Fredoka',sans-serif;font-size:12.5px;font-weight:600;color:var(--pink-deep);
  text-transform:uppercase;letter-spacing:.04em;
}
.post-card h3{font-size:19px;margin:8px 0}
.post-card p{color:#4a4b6a;font-size:14.5px;margin:0}

article.post{max-width:720px;margin:0 auto;padding:64px 24px}
article.post .meta{color:#4a4b6a;font-size:14px;margin-bottom:8px}
article.post h1{font-size:38px}
article.post h2{font-size:26px;margin-top:1.6em}
article.post p{font-size:17.5px;color:#2b2c4d}
article.post ul{padding-left:1.3em}
article.post li{margin-bottom:.5em}
.post-hero-icon{font-size:64px;margin-bottom:16px}

/* footer */
footer{background:var(--navy-deep);color:#c7c8ea;padding:56px 0 28px;font-size:14.5px}
footer .wrap{display:grid;grid-template-columns:2fr 1fr 1fr;gap:32px}
footer h4{color:#fff;font-size:15px;margin-bottom:14px}
footer a{color:#c7c8ea;text-decoration:none}
footer a:hover{color:#fff}
footer .bottom{margin-top:40px;padding-top:24px;border-top:1px solid rgba(255,255,255,.12);font-size:13px;color:#8f90c0}
.social-row{display:flex;gap:14px;margin-top:10px}
.social-row a{
  width:38px;height:38px;border-radius:10px;background:rgba(255,255,255,.08);
  display:flex;align-items:center;justify-content:center;font-size:17px;
}

@media (max-width:880px){
  .hero .wrap{grid-template-columns:1fr}
  .hero-art{height:auto;order:-1;margin-bottom:8px}
  .hero-art img{max-height:320px;max-width:60%}
  .hero h1{font-size:38px}
  .grid-3,.post-grid{grid-template-columns:1fr}
  .grid-2{grid-template-columns:1fr}
  .book-card{grid-template-columns:1fr;text-align:center}
  .book-card img{margin:0 auto;width:220px}
  nav.main-nav{display:none}
  .nav-toggle{display:block}
  footer .wrap{grid-template-columns:1fr;gap:28px}
}

/* ---------- accessibility & AI-readability helpers ---------- */
img{height:auto}
.sr-only{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.skip-link{position:absolute;left:16px;top:-60px;z-index:100;background:var(--yellow);color:var(--ink);
  font-weight:700;padding:10px 16px;border:3px solid var(--ink);border-radius:10px;text-decoration:none;transition:top .15s}
.skip-link:focus{top:12px}
main:focus{outline:none}
a:focus-visible,button:focus-visible{outline:3px solid var(--yellow);outline-offset:3px;border-radius:6px}
.age-badge{display:inline-block;font-family:'Fredoka',sans-serif;font-weight:600;font-size:14px;
  background:var(--cream);color:var(--ink);border:2px solid var(--ink);border-radius:999px;padding:4px 14px;margin-bottom:6px}
article.post .meta time{font-weight:600}
article.post section{padding:0}
article.post [data-ai-role='article-intro'] p:first-child{font-size:19px}
.related{margin-top:56px;padding-top:28px;border-top:2px solid var(--line)}
.related h2{font-size:22px;margin-top:0}
article.post .related ul{list-style:none;padding:0;margin:0}
.related li{margin:0 0 10px}
.related a{font-weight:600;color:var(--pink-deep)}
@media (max-width:880px){
  .site-header .wrap{position:relative}
  nav.main-nav.open{display:block;position:absolute;top:calc(100% + 18px);left:0;right:0;background:var(--navy);
    border-bottom:3px solid var(--navy-deep);padding:12px 24px 20px}
  nav.main-nav.open ul{flex-direction:column;gap:14px}
}
@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  .btn,.skip-link{transition:none}
  .btn:hover{transform:none}
}

/* ---------- heading-order classes & picture ---------- */
picture{display:contents}
footer .footer-title{color:#fff;font-size:15px;margin-bottom:14px}
.post-card h2.card-title{font-size:19px;margin:8px 0}
.feature h2.card-title{font-size:17px;margin-bottom:8px}
