:root {
  --bg: #FFF8EC;
  --ink: #2D2346;
  --muted: #6B6380;
  --card: #FFFFFF;
  --red: #EC4048;
  --yellow: #FFC41E;
  --blue: #3C8CF0;
  --green: #46BE64;
  --purple: #AA5CE0;
  --orange: #FF8E28;
  --band-blue: #E6F2FF;
  --band-pink: #FFEDF0;
  --radius: 28px;
  --shadow: 0 10px 30px rgba(45, 35, 70, .10);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 18px/1.6 "Nunito", system-ui, sans-serif;
}
img { max-width: 100%; height: auto; display: block; }
html, body { overflow-x: hidden; }
a { color: var(--blue); }
h1, h2, h3 { font-family: "Fredoka", "Nunito", sans-serif; line-height: 1.15; margin: 0 0 .4em; }
h2 { font-size: clamp(2rem, 4vw, 2.8rem); text-align: center; }
h3 { font-size: 1.35rem; }

/* rainbow wordmark */
.rainbow {
  font-family: "Fredoka", sans-serif; font-weight: 700;
  background: linear-gradient(90deg, var(--red), var(--orange), var(--yellow), var(--green), var(--blue), var(--purple));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.rainbow.big { font-size: 2rem; margin: .2em 0; }

/* header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 10px clamp(16px, 4vw, 48px);
  background: rgba(255, 248, 236, .92); backdrop-filter: blur(8px);
  border-bottom: 2px solid #F3E7D3;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-size: 1.5rem; }
.brand img { border-radius: 50%; }
.nav { display: flex; gap: 6px; }
.nav a {
  font-family: "Fredoka", sans-serif; font-weight: 600; color: var(--ink); text-decoration: none;
  padding: 8px 14px; border-radius: 999px;
}
.nav a:hover { background: #fff; box-shadow: var(--shadow); }
.menu-toggle { display: none; font-size: 1.6rem; background: none; border: 0; cursor: pointer; color: var(--ink); }

/* buttons */
.btn {
  display: inline-block; font-family: "Fredoka", sans-serif; font-weight: 600; font-size: 1.1rem;
  padding: 14px 26px; border-radius: 999px; text-decoration: none; transition: transform .15s ease;
  border: 3px solid transparent; cursor: pointer;
}
.btn:hover { transform: translateY(-2px) scale(1.02); }
.btn-red { background: var(--red); color: #fff; box-shadow: 0 6px 0 #B92B32; }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--ink); }
.btn[aria-disabled="true"] { background: #DDD6CC; color: #7A7268; box-shadow: none; cursor: default; transform: none; }

/* hero */
.hero {
  display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(20px, 4vw, 56px); align-items: center;
  padding: clamp(28px, 6vw, 80px) clamp(16px, 4vw, 48px);
  max-width: 1300px; margin: 0 auto;
}
.hero > *, .book > *, .char-grid > *, .shop-grid > *, .ep-grid > *, .parents-grid > * { min-width: 0; }
.eyebrow { font-family: "Fredoka", sans-serif; font-weight: 600; color: var(--purple); font-size: 1.2rem; margin: 0 0 8px; }
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
.hl { color: var(--red); }
.lede { font-size: 1.2rem; color: var(--muted); }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 24px; }
.hero-art img { border-radius: var(--radius); box-shadow: var(--shadow); }

/* sections */
.section { padding: clamp(48px, 7vw, 90px) clamp(16px, 4vw, 48px); max-width: 1300px; margin: 0 auto; }
.band { max-width: none; }
.band > * { max-width: 1200px; margin-left: auto; margin-right: auto; }
.band-blue { background: var(--band-blue); }
.band-pink { background: var(--band-pink); }
.section-lede { text-align: center; color: var(--muted); max-width: 640px; margin: 0 auto 36px; font-size: 1.15rem; }
.center { text-align: center; margin-top: 32px; }
.fine { font-size: .9rem; color: var(--muted); }

/* characters */
.char-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.char {
  background: var(--card); border-radius: var(--radius); padding: 18px; text-align: center;
  box-shadow: var(--shadow); border-top: 8px solid var(--c);
  transition: transform .2s ease;
}
.char:hover { transform: translateY(-6px) rotate(-1deg); }
.char img { border-radius: 20px; aspect-ratio: 1; object-fit: cover; margin-bottom: 12px; }
.char h3 { color: var(--c); font-size: 1.8rem; margin: 0; }
.chip { display: inline-block; background: #F7F2EA; border-radius: 999px; padding: 2px 12px; font-size: .9rem; font-weight: 800; margin: 6px 0; }

/* episodes */
.ep-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.ep { background: #fff; border-radius: 22px; overflow: hidden; box-shadow: var(--shadow); text-decoration: none; color: var(--ink); display: block; }
.ep img { aspect-ratio: 16/9; object-fit: cover; }
.ep .ep-body { padding: 12px 16px 16px; }
.ep .ep-tag { font-size: .85rem; font-weight: 800; color: var(--blue); text-transform: uppercase; letter-spacing: .04em; }
.ep h3 { font-size: 1.15rem; margin: 4px 0 0; }
.ep .soon { font-size: .85rem; color: var(--muted); }

/* books */
#book-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; max-width: 1200px; margin: 0 auto; }
.book {
  display: flex; flex-direction: column; gap: 14px;
  background: #fff; border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow);
}
.book img { border-radius: 12px; box-shadow: 0 12px 24px rgba(0,0,0,.18); aspect-ratio: 1; object-fit: cover; }
.book h3 { font-size: 1.5rem; margin: 6px 0 0; }
.book p { margin: 0 0 8px; color: var(--muted); font-size: 1rem; }
.book .btn { align-self: flex-start; }
@media (max-width: 1000px) { #book-list { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { #book-list { grid-template-columns: 1fr; } }

/* shop */
.shop-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.product { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.product img { aspect-ratio: 1; object-fit: cover; }
.product .pbody { padding: 16px 20px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.product h3 { font-size: 1.2rem; margin: 0; }
.price { font-family: "Fredoka", sans-serif; font-weight: 700; font-size: 1.3rem; color: var(--red); }
.product .btn { margin-top: auto; text-align: center; }

/* parents */
.parents-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.p-card { background: #fff; border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.p-ico { font-size: 2.2rem; }

/* footer */
.site-footer { text-align: center; padding: 48px 16px; background: #fff; border-top: 2px solid #F3E7D3; }
.site-footer img { margin: 0 auto; border-radius: 50%; }

/* responsive */
@media (max-width: 1000px) {
  .ep-grid, .parents-grid { grid-template-columns: repeat(2, 1fr); }
  .char-grid, .shop-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; text-align: center; }
  .cta-row { justify-content: center; }
  .hero-art { order: -1; }
  .menu-toggle { display: block; }
  .nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column;
    background: var(--bg); padding: 10px 16px 18px; border-bottom: 2px solid #F3E7D3;
  }
  .nav.open { display: flex; }
}
@media (max-width: 520px) {
  body { font-size: 17px; }
  .char-grid, .shop-grid, .ep-grid, .parents-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .char { transition: none; }
}
