/* ==========================================================================
   Persephone & Brinley — site styles
   Brand tokens locked from character-blocks.md / cover Mockup v4.
   Design language: warm children's-book — cream canvas, rounded everything,
   soft shadows, playful blobs, one accessible typeface (Lexend).
   ========================================================================== */

:root {
  /* Palette (locked) */
  --cream:        #FBF6EA;   /* page canvas */
  --cream-panel:  #FFFDF7;   /* cards / panels */
  --teal:         #205A63;   /* banner/badge dark teal */
  --teal-bright:  #4A9EA1;   /* Persephone's overalls — accent */
  --teal-soft:    #DCEDEC;   /* tinted fills */
  --red:          #CE4434;   /* sneaker-red — primary CTA / title */
  --red-dark:     #B23A2C;
  --sky:          #BFE3F2;   /* cover sky */
  --grass:        #BFD79A;   /* cover grass */
  --sun:          #F4C95D;   /* popcorn/star yellow */
  --ink:          #2B2B2B;   /* body text */
  --ink-soft:     #5A5A52;   /* muted text */
  --white:        #ffffff;

  --maxw: 1140px;
  --radius:   18px;
  --radius-lg: 32px;
  --shadow-sm: 0 4px 14px rgba(32, 90, 99, .08);
  --shadow:    0 14px 40px rgba(32, 90, 99, .12);
  --shadow-lg: 0 26px 60px rgba(32, 90, 99, .16);
  --font: "Lexend", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 19px;
  line-height: 1.6;
  color: var(--ink);
  /* Park setting: soft sky up top easing into the warm cream "ground", so the
     site feels like it sits outdoors in Persephone & Brinley's park. The sky
     band is pinned to the top of the viewport; the rest of the page is cream. */
  background: var(--cream);
  background-image: linear-gradient(180deg, #E8F4FA 0%, #F1F4E9 45%, rgba(251,246,234,0) 100%);
  background-repeat: no-repeat;
  background-size: 100% 620px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); text-decoration: none; }
a:hover { color: var(--red); }
h1, h2, h3 { line-height: 1.15; color: var(--teal); font-weight: 800; margin: 0 0 .5em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); letter-spacing: -.5px; }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.5rem); letter-spacing: -.3px; }
h3 { font-size: 1.3rem; }
p  { margin: 0 0 1rem; }
.muted { color: var(--ink-soft); }

/* ---------- layout ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 72px 0; }
.section--tight { padding: 48px 0; }
.center { text-align: center; }
.eyebrow {
  display: inline-block;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--teal-bright);
  background: var(--teal-soft);
  padding: 6px 16px;
  border-radius: 999px;
  margin-bottom: 18px;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  font-family: var(--font);
  font-size: 1.02rem;
  font-weight: 700;
  padding: 14px 28px;
  border-radius: 999px;
  border: 3px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  text-align: center;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--red); color: #fff; box-shadow: 0 8px 0 var(--red-dark); }
.btn--primary:hover { background: var(--red-dark); color: #fff; transform: translateY(-2px); box-shadow: 0 10px 0 var(--red-dark); }
.btn--secondary { background: var(--white); color: var(--teal); border-color: var(--teal-bright); }
.btn--secondary:hover { background: var(--teal-soft); color: var(--teal); transform: translateY(-2px); }
.btn--ghost { background: transparent; color: var(--teal); border-color: transparent; padding: 14px 18px; }
.btn--lg { font-size: 1.12rem; padding: 17px 34px; }
.btn--block { width: 100%; justify-content: center; }

/* ---------- header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 246, 234, .9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(32,90,99,.08);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; color: var(--teal); font-size: 1.15rem; }
.brand:hover { color: var(--teal); }
.brand .mark {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--red); color: #fff;
  display: grid; place-items: center; font-weight: 800; font-size: 1.1rem;
  box-shadow: var(--shadow-sm);
}
.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a { color: var(--ink); font-weight: 600; font-size: 1rem; padding: 8px 14px; border-radius: 999px; }
.nav-links a:hover, .nav-links a.active { color: var(--teal); background: var(--teal-soft); }
.nav-cta { margin-left: 8px; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 26px; height: 3px; background: var(--teal); border-radius: 2px; margin: 5px 0; transition: .2s; }

/* ---------- hero ---------- */
.hero { position: relative; padding: 56px 0 40px; }
.hero-grid {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center;
}
.hero h1 span { color: var(--red); }
.hero .lede { font-size: 1.2rem; max-width: 30ch; color: var(--ink-soft); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.hero-trust { margin-top: 26px; font-size: .95rem; color: var(--ink-soft); display: flex; align-items: center; gap: 10px; }
.hero-trust .stars { color: var(--sun); letter-spacing: 2px; }
.hero-art {
  position: relative;
  background: linear-gradient(180deg, var(--sky) 0%, #d8eef0 55%, var(--grass) 100%);
  border-radius: var(--radius-lg);
  padding: 18px;
  box-shadow: var(--shadow-lg);
  border: 6px solid #fff;
}
.hero-art img { border-radius: 22px; width: 100%; }
.blob { position: absolute; border-radius: 50%; filter: blur(2px); opacity: .5; z-index: -1; }
.blob--1 { width: 320px; height: 320px; background: var(--teal-soft); top: -40px; left: -80px; }
.blob--2 { width: 260px; height: 260px; background: #fbe5c8; bottom: -60px; right: -60px; }
.pop {
  position: absolute; font-size: 1.6rem; animation: float 4s ease-in-out infinite;
}
.pop--1 { top: 6%; right: 14%; }
.pop--2 { top: 42%; right: -4%; animation-delay: .8s; }
.pop--3 { bottom: 10%; left: -3%; animation-delay: 1.6s; }
@keyframes float { 0%,100% { transform: translateY(0) rotate(-4deg); } 50% { transform: translateY(-12px) rotate(4deg); } }

/* ---------- value cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  background: var(--cream-panel); border-radius: var(--radius); padding: 32px 28px;
  box-shadow: var(--shadow-sm); border: 1px solid rgba(32,90,99,.06);
}
.card .icon {
  width: 58px; height: 58px; border-radius: 16px; display: grid; place-items: center;
  font-size: 1.7rem; margin-bottom: 16px; background: var(--teal-soft);
}
.card h3 { color: var(--teal); margin-bottom: .35em; }
.card p { margin: 0; color: var(--ink-soft); font-size: 1.02rem; }

/* ---------- featured book ---------- */
.book-feature { background: var(--teal-soft); border-radius: var(--radius-lg); overflow: hidden; }
.book-feature-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 8px; align-items: center; }
.book-feature-art { padding: 40px; display: grid; place-items: center; }
.book-feature-art img { border-radius: 16px; box-shadow: var(--shadow); max-width: 340px; transform: rotate(-3deg); transition: transform .3s ease; }
.book-feature-art img:hover { transform: rotate(0deg) scale(1.02); }
.book-feature-body { padding: 48px 48px 48px 8px; }
.book-meta { font-size: .95rem; color: var(--teal); font-weight: 600; margin-bottom: 14px; }
.book-meta span { display: inline-block; background: #fff; padding: 4px 12px; border-radius: 999px; margin: 0 6px 6px 0; }

/* ---------- characters ---------- */
.cast { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; align-items: center; }
.cast-art { display: flex; gap: 18px; }
.cast-art figure { margin: 0; text-align: center; }
.cast-art img { width: 170px; height: 170px; object-fit: cover; border-radius: 50%; border: 5px solid #fff; box-shadow: var(--shadow); }
.cast-art figcaption { margin-top: 10px; font-weight: 700; color: var(--teal); }

/* ---------- metaphor registry ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 10px; }
.chip {
  background: var(--cream-panel); border: 1px solid rgba(32,90,99,.1);
  border-radius: 999px; padding: 10px 18px; font-weight: 600; font-size: .98rem; color: var(--ink);
  display: inline-flex; align-items: center; gap: 8px; box-shadow: var(--shadow-sm);
}
.chip .dot { width: 10px; height: 10px; border-radius: 50%; }

/* ---------- email capture band ---------- */
.signup-band {
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-bright) 100%);
  color: #fff; border-radius: var(--radius-lg); padding: 56px 48px; box-shadow: var(--shadow);
}
.signup-band h2 { color: #fff; }
.signup-band p { color: rgba(255,255,255,.92); }
.signup-form { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; max-width: 560px; }
.signup-form input {
  flex: 1 1 180px; font-family: var(--font); font-size: 1rem; padding: 15px 18px;
  border-radius: 999px; border: 0; background: #fff; color: var(--ink);
}
.signup-form input:focus { outline: 3px solid var(--sun); }
.signup-note { font-size: .85rem; color: rgba(255,255,255,.8); margin-top: 14px; }
.form-status { margin-top: 14px; font-weight: 600; min-height: 1.2em; }
.form-status.ok { color: #d8ffe6; }
.form-status.err { color: #ffd9d3; }

/* ---------- standalone signup page ---------- */
.signup-page-card {
  background: var(--cream-panel); border-radius: var(--radius-lg);
  box-shadow: var(--shadow); padding: 48px; max-width: 620px; margin: 0 auto;
}

/* ---------- footer ---------- */
.site-footer { background: var(--teal); color: rgba(255,255,255,.85); padding: 56px 0 28px; margin-top: 40px; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: var(--sun); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; margin-bottom: 36px; }
.footer-brand .mark { background: var(--red); }
.footer-col h4 { color: #fff; font-size: 1rem; margin: 0 0 14px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 10px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.15); padding-top: 22px; font-size: .85rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* ---------- generic prose page ---------- */
.page-hero { padding: 48px 0 8px; }
.prose { max-width: 720px; }
.prose p { font-size: 1.08rem; }
.prose .pull { font-size: 1.25rem; font-weight: 600; color: var(--teal); border-left: 5px solid var(--teal-bright); padding-left: 20px; margin: 28px 0; }

/* ---------- helpers ---------- */
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.section-head { max-width: 640px; margin: 0 auto 44px; text-align: center; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero .lede { max-width: none; }
  .cards { grid-template-columns: 1fr; }
  .book-feature-grid { grid-template-columns: 1fr; }
  .book-feature-body { padding: 8px 32px 40px; }
  .book-feature-art { padding: 32px 32px 8px; }
  .cast { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-links {
    position: absolute; top: 76px; left: 0; right: 0; flex-direction: column; align-items: stretch;
    background: var(--cream-panel); padding: 14px 20px; gap: 4px; box-shadow: var(--shadow);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 14px; }
  .nav-cta { margin: 8px 0 0; }
  .nav-toggle { display: block; }
}
@media (max-width: 520px) {
  body { font-size: 18px; }
  .section { padding: 52px 0; }
  .signup-band, .signup-page-card { padding: 36px 24px; }
  .footer-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   PERA-20 — park setting + two-series switcher
   ========================================================================== */

/* ---------- park ground (decorative rolling-grass scene before the footer) -- */
.park-ground {
  position: relative;
  margin-top: 24px;
  height: 150px;
  /* layered hills + a lone tree with a tire swing — the Book 1 park, as SVG */
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 150' preserveAspectRatio='xMidYMax slice'%3E%3Cpath d='M0 70 C 240 30 420 95 720 70 C 1020 45 1200 95 1440 65 L1440 150 L0 150 Z' fill='%23CDE3A6'/%3E%3Cpath d='M0 105 C 300 80 520 120 820 100 C 1080 84 1280 118 1440 98 L1440 150 L0 150 Z' fill='%23BFD79A'/%3E%3Cg transform='translate(1180 18)'%3E%3Crect x='34' y='34' width='10' height='62' rx='4' fill='%238A6646'/%3E%3Ccircle cx='39' cy='30' r='34' fill='%237BA05B'/%3E%3Ccircle cx='14' cy='44' r='22' fill='%238FB069'/%3E%3Ccircle cx='66' cy='44' r='22' fill='%238FB069'/%3E%3Cline x1='52' y1='40' x2='62' y2='92' stroke='%235A5A52' stroke-width='2'/%3E%3Cellipse cx='64' cy='96' rx='11' ry='6' fill='none' stroke='%232B2B2B' stroke-width='4'/%3E%3C/g%3E%3C/svg%3E")
    bottom center / cover no-repeat;
}
.park-ground::after { /* tuck it visually onto the teal footer */
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--grass);
}

/* ---------- series switcher ---------- */
.series-switch-band { padding: 22px 0 4px; }
.series-switch {
  display: flex; align-items: center; flex-wrap: wrap; gap: 12px 16px;
  justify-content: center;
}
.series-switch-label { font-weight: 600; color: var(--ink-soft); font-size: .98rem; }
.series-tabs {
  display: inline-flex; gap: 6px; padding: 6px;
  background: var(--cream-panel); border: 1px solid rgba(32,90,99,.12);
  border-radius: 999px; box-shadow: var(--shadow-sm);
}
.series-tab {
  font-family: var(--font); cursor: pointer; border: 0; background: transparent;
  border-radius: 999px; padding: 10px 20px; text-align: center; line-height: 1.15;
  color: var(--ink); transition: background .15s ease, color .15s ease;
}
.series-tab strong { display: block; font-size: 1rem; font-weight: 700; }
.series-tab span { display: block; font-size: .78rem; color: var(--ink-soft); font-weight: 600; }
.series-tab:hover { background: var(--teal-soft); }
.series-tab.is-active { background: var(--teal); color: #fff; }
.series-tab.is-active span { color: rgba(255,255,255,.85); }

/* ---------- Mazie line theming (plum lane; CTA stays brand red) ---------- */
body[data-series="mazie"] {
  --teal:        #4A2A52;   /* deep plum headings */
  --teal-bright: #6B2D5E;   /* plum accent */
  --teal-soft:   #EFE1EC;   /* tinted plum fills */
}
body[data-series="mazie"] .series-tab.is-active { background: #6B2D5E; }

/* ---------- Mazie "coming soon" companion-titles grid ---------- */
.mazie-titles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 8px; }
.mazie-title-card {
  background: var(--cream-panel); border: 1px solid rgba(74,42,82,.12);
  border-radius: var(--radius); padding: 22px 24px; box-shadow: var(--shadow-sm);
}
.mazie-title-card .badge {
  display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: 1px;
  text-transform: uppercase; color: #6B2D5E; background: #EFE1EC;
  padding: 4px 12px; border-radius: 999px; margin-bottom: 12px;
}
.mazie-title-card h3 { color: #4A2A52; margin-bottom: .25em; }
.mazie-title-card p { margin: 0; color: var(--ink-soft); font-size: .98rem; }
.mazie-title-card .mirror { display: block; margin-top: 10px; font-size: .85rem; color: #6B2D5E; font-weight: 600; }
@media (max-width: 680px) { .mazie-titles { grid-template-columns: 1fr; } }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
