:root {
  --navy: #1B2A6B;
  --navy-2: #13205A;
  --teal: #12A39A;
  --teal-soft: #DDF3F1;
  --heart: #EE3B45;
  --gold: #F5B82E;
  --butter: #FFE58F;
  --sky: #EAF6F8;
  --cream-yellow: #FFF7DA;
  --muted: #4E5883;
  --paper: #FFFFFF;
  --rule-blue: #8DB8E8;
  --rule-red: #E4576E;
  --pencil: #F7B32B;
  --leaf: #2FA66A;
  --display: "Lexend", "Trebuchet MS", system-ui, sans-serif;
  --body: "Lexend", "Verdana", system-ui, sans-serif;
  --hand: "Gochi Hand", "Comic Sans MS", cursive;
  --wrap: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--navy); font-family: var(--body); font-size: 1.08rem; line-height: 1.65; }
img { max-width: 100%; height: auto; display: block; }
[hidden] { display: none !important; }
a { color: var(--navy); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3 { font-family: var(--display); line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.015em; }
h1 { font-size: clamp(2.5rem, 5.2vw, 4.1rem); font-weight: 800; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); font-weight: 800; }
h3 { font-size: 1.35rem; font-weight: 700; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 1.25rem; }
.narrow { max-width: 760px; }
.section { padding: 5rem 0; }
.section-tint { background: var(--sky); }
.section-sub { color: var(--muted); max-width: 60ch; margin: -.2rem 0 2.5rem; }
.lede { font-size: 1.2rem; color: var(--muted); max-width: 44ch; }

.hand-note { font-family: var(--hand); font-size: 1.5rem; color: var(--teal); margin: 0 0 .3rem; line-height: 1.2; }
.brush {
  display: inline-block; font-family: var(--hand); font-size: 1.55rem; line-height: 1.25; color: var(--navy);
  background: var(--butter); padding: .55rem 1.2rem .6rem;
  clip-path: polygon(1% 12%, 8% 3%, 30% 7%, 55% 1%, 80% 6%, 99% 2%, 97% 40%, 100% 88%, 85% 97%, 60% 93%, 35% 99%, 12% 94%, 0% 98%, 3% 55%);
  transform: rotate(-1.5deg);
}

/* Buttons */
.btn { display: inline-block; text-decoration: none; font-weight: 700; padding: .85rem 1.5rem; border-radius: 999px; border: 2px solid transparent; line-height: 1.2; text-align: center; transition: transform .15s ease; }
.btn:hover { transform: translateY(-2px); }
.btn-ink { background: var(--navy); color: #fff; }
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-teal { background: var(--teal); color: #fff; }
.btn-white { background: #fff; color: var(--navy); }
.btn-pencil { background: var(--gold); color: var(--navy); }
.btn-soon { background: transparent; color: var(--muted); border: 2px dashed var(--muted); cursor: default; }
.btn-soon:hover { transform: none; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.96); box-shadow: 0 1px 0 #E3E8F2; }
.header-inner { display: flex; align-items: center; gap: 1.5rem; min-height: 76px; }
.logo { display: flex; align-items: center; gap: .6rem; text-decoration: none; }
.logo img { width: 54px; height: auto; }
.wordmark { display: flex; flex-direction: column; font-family: var(--display); font-weight: 800; line-height: 1; }
.wm-top { font-size: 1.2rem; letter-spacing: .01em; }
.wm-pos { color: var(--navy); }
.wm-kids { color: var(--teal); }
.wm-books { font-size: .72rem; font-weight: 600; letter-spacing: .42em; color: var(--navy); margin-top: .25rem; padding-left: .1em; }
.nav { display: flex; gap: 1.6rem; margin-left: auto; }
.nav a { text-decoration: none; font-weight: 600; white-space: nowrap; padding: .3rem 0; border-bottom: 3px solid transparent; }
.nav a:hover { border-bottom-color: var(--butter); }
.nav a[aria-current="page"] { border-bottom-color: var(--gold); }
.lang-toggle { font: 600 .95rem var(--body); color: var(--navy); background: #fff; border: 2px solid var(--navy); border-radius: 999px; padding: .4rem 1rem; cursor: pointer; }
.lang-toggle:hover { background: var(--sky); }

/* ============ HOME ============ */
.home-hero { position: relative; background: linear-gradient(180deg, var(--sky) 0%, #F6FBFC 70%, #fff 100%); padding: 3.5rem 0 5.5rem; overflow: hidden; }
.home-hero::before {
  content: ""; position: absolute; width: 560px; height: 560px; right: -140px; top: -160px;
  background: radial-gradient(circle, rgba(245,184,46,.28), rgba(245,184,46,0) 65%); pointer-events: none;
}
.hh-grid { position: relative; display: grid; grid-template-columns: 1fr 1.12fr; gap: 3.5rem; align-items: center; }
.pick { font-weight: 700; margin: 1.8rem 0 .8rem; }
.doors { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.door {
  position: relative; display: flex; flex-direction: column; gap: .1rem; text-decoration: none;
  padding: 1.1rem 1.2rem 1.2rem; border-radius: 22px; transition: transform .15s ease, box-shadow .15s ease;
}
.door:hover { transform: translateY(-3px) rotate(-.5deg); }
.door-hl { background: var(--gold); color: var(--navy); box-shadow: 0 6px 0 #C98F12; }
.door-cc { background: var(--navy); color: #fff; box-shadow: 0 6px 0 #0C1644; }
.door-icon { width: 44px; height: 44px; margin-bottom: .4rem; }
.door-age { font-weight: 700; font-size: .95rem; }
.door-name { font-family: var(--display); font-weight: 800; font-size: 1.35rem; line-height: 1.15; }
.door-note { font-size: .9rem; opacity: .9; line-height: 1.35; margin-top: .2rem; }

.hh-visual { position: relative; }
.photo { margin: 0; background: #fff; padding: 10px; border-radius: 26px; box-shadow: 0 24px 50px -20px rgba(27,42,107,.45); transform: rotate(1.8deg); }
.photo img { border-radius: 18px; width: 100%; }
.hh-stack { position: absolute; left: -34px; bottom: -44px; display: flex; }
.hh-stack a { display: block; width: 118px; margin-right: -46px; transition: transform .15s ease; }
.hh-stack a:nth-child(1) { transform: rotate(-9deg); }
.hh-stack a:nth-child(2) { transform: rotate(4deg) translateY(10px); }
.hh-stack a:hover { transform: rotate(0) translateY(-6px); z-index: 2; }
.hh-stack .book-cover img, .hh-stack .cover-fallback { box-shadow: 0 10px 22px -8px rgba(27,42,107,.55); border-radius: 6px; }
.hh-sticker {
  position: absolute; left: -22px; top: -30px; width: 104px; height: 104px; border-radius: 50%;
  background: var(--heart); color: #fff; display: grid; place-items: center; text-align: center;
  font-family: var(--hand); font-size: 1.1rem; line-height: 1.1; transform: rotate(-10deg); padding: .6rem;
  box-shadow: 0 8px 18px -8px rgba(238,59,69,.7);
}

/* Series blocks */
.series-block { padding: 5.5rem 0; }
.sb-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.sb-hl { background: var(--cream-yellow); }
.hl-illo { background: var(--butter); border-radius: 36px; padding: 1.5rem; }
.hl-illo svg { width: 100%; height: auto; }
.checks { list-style: none; padding: 0; margin: 1.2rem 0 1.5rem; display: grid; gap: .55rem; }
.checks li { position: relative; padding-left: 2rem; font-weight: 600; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: .25rem; width: 1.3rem; height: 1.3rem; border-radius: 50%;
  background: var(--teal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3 3 7-7' stroke='white' stroke-width='2.6' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/80% no-repeat;
}
.mini-row { display: flex; gap: .9rem; margin: 0 0 1.6rem; }
.mini-row a { width: 92px; display: block; transition: transform .15s ease; }
.mini-row a:hover { transform: translateY(-4px) rotate(-2deg); }
.mini-row .book-cover img, .mini-row .cover-fallback { border-radius: 5px; box-shadow: 0 8px 16px -8px rgba(27,42,107,.6); }

.sb-cc { background: var(--navy); color: #fff; }
.sb-cc h2 { color: #fff; }
.cc-photo { margin: 0 0 3rem; border-radius: 30px; overflow: hidden; box-shadow: 0 30px 60px -30px rgba(0,0,0,.6); }
.cc-photo img { width: 100%; aspect-ratio: 2.2 / 1; object-fit: cover; object-position: center 35%; }
.cc-cols { display: grid; grid-template-columns: .9fr 1.1fr; gap: 3.5rem; align-items: start; }
.sb-cc .brush { margin-top: .4rem; color: var(--navy); }
.sb-cc p { color: #D7DDF2; }
.sb-cc .checks li { color: #fff; }
.sb-cc .checks li::before { background-color: var(--gold); }

/* Why */
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem; margin-top: 2.5rem; }
.why-item svg { width: 72px; height: 72px; margin-bottom: 1rem; }
.why-item p { color: var(--muted); margin: 0; }

/* Shelf */
.shelf { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 2.5rem 2rem; }
.shelf a { text-decoration: none; display: flex; flex-direction: column; gap: .25rem; }
.shelf .book-cover { margin-bottom: .7rem; transition: transform .15s ease; }
.shelf a:hover .book-cover { transform: translateY(-5px) rotate(-1.5deg); }
.shelf .book-cover img, .shelf .cover-fallback { border-radius: 8px; box-shadow: 0 16px 28px -14px rgba(27,42,107,.6); }
.shelf .cf-title { font-size: 1.3rem; }
.shelf .cf-alt { font-size: .95rem; }
.shelf-title { font-family: var(--display); font-weight: 800; font-size: 1.15rem; line-height: 1.2; }
.shelf-meta { color: var(--muted); font-size: .92rem; }
.status { align-self: flex-start; font-weight: 700; font-size: .8rem; padding: .1rem .7rem; border-radius: 999px; margin-top: .2rem; }
.status-out { background: var(--teal); color: #fff; }
.status-soon { background: var(--heart); color: #fff; }

/* Signup band */
.signup-band { background: var(--butter); padding: 3.5rem 0; }
.signup-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; }
.signup-inner h2 { margin: 0 0 .2rem; font-size: clamp(1.6rem, 3vw, 2.2rem); }
.signup-inner p { margin: 0; }
.signup { margin-top: 3rem; display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; }
.signup p { font-weight: 700; font-size: 1.2rem; margin: 0; }

/* About */
.about-card { display: grid; grid-template-columns: auto 1fr; gap: 2rem; align-items: center; background: var(--teal-soft); border-radius: 30px; padding: 2.5rem; }
.about-card img { width: 110px; }
.about-card p { margin: 0; }
.signature { font-family: var(--hand); font-size: 1.9rem; color: var(--teal); margin-top: .6rem !important; }

/* Footer */
.site-footer { background: var(--navy); color: #C9D0EA; padding: 3.5rem 0 2.5rem; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 2rem; align-items: start; }
.footer-brand .wordmark .wm-pos, .footer-brand .wordmark .wm-books { color: #fff; }
.footer-brand .wm-kids { color: #5FD6CB; }
.footer-brand p { margin: .8rem 0 0; }
.footer-links h3 { color: #fff; font-size: 1rem; margin-bottom: .6rem; }
.footer-links a { display: block; color: #fff; text-decoration: none; padding: .15rem 0; }
.footer-links a:hover { text-decoration: underline; }
.footer-legal { border-top: 1px solid rgba(255,255,255,.15); margin-top: 2.5rem; padding-top: 1.5rem; }
.footer-legal p { margin: .25rem 0; }
.site-footer a { color: #fff; }
.small { font-size: .88rem; }

/* ============ BOOK ROWS (series pages) ============ */
.book { display: grid; grid-template-columns: 260px 1fr; gap: 3rem; align-items: center; padding: 2.8rem 0; border-top: 2px solid #D9E3F2; }
.book:last-child { border-bottom: 2px solid #D9E3F2; }
.book-cover img { border-radius: 8px; box-shadow: 0 18px 30px -14px rgba(27,42,107,.6); }
.book-meta { color: var(--muted); font-weight: 600; margin: 0 0 .25rem; }
.book h3 { font-size: clamp(1.8rem, 3vw, 2.3rem); font-weight: 800; }
.alt-title { display: block; font-weight: 600; font-size: .68em; color: var(--teal); }
.book-info > p { max-width: 55ch; }
.book-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.25rem; }
.badge { display: inline-block; margin-left: .4rem; padding: .05rem .7rem; background: var(--heart); color: #fff; border-radius: 999px; font-size: .8rem; }

/* Stand-in covers */
.cover-fallback { aspect-ratio: 8.5 / 11; border-radius: 8px; display: flex; flex-direction: column; overflow: hidden; }
.cover-happy-learning.cover-fallback {
  border: 3px solid var(--navy);
  background:
    repeating-linear-gradient(to bottom, transparent 0 30px, var(--rule-blue) 30px 32px, transparent 32px 46px, rgba(228,87,110,.45) 46px 47px, transparent 47px 62px),
    #fff;
}
.cover-happy-learning .cf-title, .cover-happy-learning .cf-alt { background: var(--gold); padding: 0 .9rem; }
.cover-happy-learning .cf-title { padding-top: .9rem; }
.cover-happy-learning .cf-alt { padding-bottom: .8rem; border-bottom: 3px solid var(--navy); }
.cover-comeback-club.cover-fallback {
  background: radial-gradient(circle at 70% 85%, rgba(245,184,46,.35), transparent 55%), var(--navy);
  justify-content: flex-end; padding: 1rem;
}
.cover-comeback-club .cf-title { color: #fff; }
.cover-comeback-club .cf-title::before { content: "The Comeback Club"; display: block; font-family: var(--hand); font-weight: 400; font-size: .6em; color: var(--gold); margin-bottom: .2rem; }
.cf-title { font-family: var(--display); font-weight: 800; font-size: 1.8rem; line-height: 1.05; color: var(--navy); }
.cf-alt { font-family: var(--display); font-weight: 600; font-size: 1.1rem; color: #B8263F; padding-top: .3rem; }
.mini .cf-title, .hh-stack .cf-title { font-size: .95rem; }
.mini .cf-alt, .hh-stack .cf-alt { font-size: .7rem; }
.mini.cover-happy-learning .cf-title, .hh-stack .cover-happy-learning .cf-title { padding: .45rem .45rem 0; }
.mini.cover-happy-learning .cf-alt, .hh-stack .cover-happy-learning .cf-alt { padding: .1rem .45rem .4rem; }

/* ============ HAPPY LEARNING PAGE ============ */
.hl-hero { background: var(--cream-yellow); padding: 4rem 0 3.5rem; }
.hero-inner { display: grid; grid-template-columns: 1.05fr 1fr; gap: 2.5rem; align-items: center; }
.hero-art { background: #fff; border-radius: 30px; padding: 1rem; box-shadow: 0 20px 40px -24px rgba(27,42,107,.5); }
.hero-art svg { width: 100%; height: auto; }
.rule-blue { stroke: var(--rule-blue); stroke-width: 3; }
.rule-red { stroke: var(--rule-red); stroke-width: 3; stroke-dasharray: 14 10; }
.guide { fill: none; stroke: #B9C3DA; stroke-width: 5; stroke-dasharray: 2 14; stroke-linecap: round; }
.trace { fill: none; stroke: var(--pencil); stroke-width: 11; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: trace 2.8s cubic-bezier(.45,.05,.4,1) .5s forwards; }
.start-dot { fill: var(--leaf); }
.end-star { fill: var(--heart); opacity: 0; animation: pop .4s ease-out 3.2s forwards; transform-origin: 480px 195px; }
@keyframes trace { to { stroke-dashoffset: 0; } }
@keyframes pop { from { opacity: 0; transform: scale(.4); } to { opacity: 1; transform: scale(1); } }

.formats { margin-top: 3.5rem; background: var(--sky); border-radius: 26px; padding: 2rem 2.2rem; }
.formats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.formats-grid p { margin: 0; }
.formats-grid strong { display: block; font-size: 1.15rem; }

.series-strip { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(8, 1fr); gap: .75rem; }
.series-strip li { aspect-ratio: 3 / 4; border-radius: 14px; }
.series-strip li a, .series-strip li.soon { height: 100%; display: flex; flex-direction: column; justify-content: space-between; padding: .7rem; text-decoration: none; }
.series-strip .out { background: var(--gold); box-shadow: 0 5px 0 #C98F12; }
.series-strip .soon { border: 2px dashed #9AA6C4; color: var(--muted); background: #fff; }
.series-strip .num { font-family: var(--display); font-weight: 800; font-size: 2rem; line-height: 1; }
.series-strip .name { font-weight: 700; font-size: .85rem; line-height: 1.2; }

details { border-bottom: 2px solid #D9E3F2; padding: 1.1rem 0; }
details:first-of-type { border-top: 2px solid #D9E3F2; }
summary { cursor: pointer; font-weight: 700; font-size: 1.15rem; list-style: none; padding-right: 2rem; position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: .25rem; top: -.2rem; font-size: 1.6rem; color: var(--teal); }
details[open] summary::after { content: "\2212"; }
details p { margin: .6rem 0 0; color: var(--muted); }

/* ============ COMEBACK CLUB PAGE ============ */
.cc-hero { background: linear-gradient(180deg, var(--sky), #fff); padding: 2.5rem 0 4rem; }
.cc-banner { margin: 0 0 2.5rem; border-radius: 32px; overflow: hidden; box-shadow: 0 30px 60px -30px rgba(27,42,107,.55); }
.cc-banner img { width: 100%; }
.cc-hero-cols { display: grid; grid-template-columns: 1fr 1.1fr; gap: 3rem; align-items: start; }
.cc-hero-cols .lede { max-width: none; margin-top: 0; }
.big-p { font-size: 1.25rem; line-height: 1.7; }
.cc-points { background: var(--navy); color: #fff; border-radius: 30px; padding: 2.2rem 2.5rem; margin-top: 2.5rem; }
.cc-points .checks { margin: 0; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.cc-points .checks li::before { background-color: var(--gold); }

/* ============ RESPONSIVE ============ */
@media (max-width: 960px) {
  .hh-grid, .sb-grid, .cc-cols, .hero-inner, .cc-hero-cols { grid-template-columns: 1fr; gap: 2.5rem; }
  .hh-visual { max-width: 640px; margin: 1rem auto 3rem; }
  .why-grid { grid-template-columns: 1fr; gap: 2rem; }
  .series-strip { grid-template-columns: repeat(4, 1fr); }
  .formats-grid { grid-template-columns: 1fr; }
  .cc-points .checks { grid-template-columns: 1fr; }
  .sb-hl .sb-visual { order: 2; }
}
@media (max-width: 640px) {
  body { font-size: 1rem; }
  .header-inner { flex-wrap: wrap; gap: .5rem 1rem; padding: .6rem 1.25rem; min-height: 0; }
  .logo img { width: 44px; }
  .lang-toggle { margin-left: auto; }
  .nav { order: 3; width: 100%; margin: 0; gap: .9rem; font-size: .85rem; overflow-x: auto; }
  .home-hero { padding-top: 2rem; }
  .doors { grid-template-columns: 1fr; }
  .hh-stack a { width: 84px; }
  .hh-stack { left: -8px; bottom: -36px; }
  .hh-sticker { width: 82px; height: 82px; font-size: .9rem; left: -6px; top: -24px; }
  .section, .series-block { padding: 3.8rem 0; }
  .book { grid-template-columns: 1fr; gap: 1.5rem; }
  .book-cover { max-width: 230px; }
  .book-actions .btn { width: 100%; }
  .shelf { grid-template-columns: 1fr 1fr; gap: 2rem 1rem; }
  .cc-photo img { aspect-ratio: 4 / 3; object-position: 30% 40%; }
  .about-card { grid-template-columns: 1fr; padding: 1.8rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .brush { font-size: 1.3rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .trace { animation: none; stroke-dashoffset: 0; }
  .end-star { animation: none; opacity: 1; }
  .btn, .door, .shelf .book-cover, .mini-row a, .hh-stack a { transition: none; }
}
