/* ===========================================================
   Jules Verne — Kids' Storybook Biography
   Playful "Little Storytellers"-inspired theme for Worldly.
   Cream + mint bands, hand-printed headings, paper doodles.
   =========================================================== */

:root {
  /* paper grounds */
  --paper:      #FBF5E9;
  --paper-2:    #FCF8F0;
  --mint:       #D7E9E1;
  --mint-2:     #CFE5DB;

  /* ink */
  --navy:       #213A5C;
  --ink:        #394a5e;
  --muted:      #76859a;

  /* accents */
  --teal:       #2E8E86;
  --teal-deep:  #237872;
  --coral:      #ED9A95;
  --coral-deep: #E87E86;
  --butter:     #FBE79B;
  --butter-2:   #F7DC85;
  --sky:        #C4DFEC;
  --sky-deep:   #A9D0E2;
  --gold:       #F2C94C;
  --lilac:      #B0A6D8;
  --leaf:       #7BB58E;
  --white:      #ffffff;

  --font-hand: 'Patrick Hand', 'Comic Sans MS', cursive;
  --font-body: 'Nunito', system-ui, -apple-system, sans-serif;
  --font-logo: 'Fredoka', 'Nunito', sans-serif;

  --r-card: 18px;
  --r-lg:   26px;
  --r-pill: 999px;

  --shadow-sticker: 0 14px 30px -16px rgba(33,58,92,.40);
  --shadow-soft:    0 10px 24px -14px rgba(33,58,92,.30);
  --shadow-tiny:    0 4px 12px -6px rgba(33,58,92,.30);

  --wrap: 1200px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 clamp(20px, 4vw, 48px); }

/* ---------- shared band system ---------- */
.band { position: relative; }
.band.cream { background: var(--paper); }
.band.mint  { background: var(--band-soft, var(--mint)); }
.band.pad   { padding: clamp(48px, 7vw, 90px) 0; }

/* soft wavy divider between bands */
.wave { display: block; width: 100%; height: 46px; }
.wave path { fill: var(--band-soft, var(--mint)); }
.wave.up path { fill: var(--paper); }

/* Per-author soft band palettes (varies between authors of same gender) */
.theme-male.bv-1 { --band-soft: #D7E9E1; }  /* mint */
.theme-male.bv-2 { --band-soft: #CFE0EE; }  /* soft sky */
.theme-male.bv-3 { --band-soft: #DDE8CE; }  /* soft leaf */
.theme-male.bv-4 { --band-soft: #D5E3E8; }  /* dusty teal */
.theme-male.bv-5 { --band-soft: #E2E6D2; }  /* sage */

.theme-female.bv-1 { --band-soft: #F4D7D4; }  /* soft coral */
.theme-female.bv-2 { --band-soft: #E4DCF1; }  /* soft lilac */
.theme-female.bv-3 { --band-soft: #F8E8B6; }  /* soft butter */
.theme-female.bv-4 { --band-soft: #F3D9E1; }  /* rose */
.theme-female.bv-5 { --band-soft: #EBD9EE; }  /* mauve */

/* Quick-facts sticky note — gendered, varies between authors */
.theme-male.bv-1 { --note-bg: #FBE79B; }  /* butter */
.theme-male.bv-2 { --note-bg: #C4DFEC; }  /* sky */
.theme-male.bv-3 { --note-bg: #D4E8C2; }  /* leaf */
.theme-male.bv-4 { --note-bg: #FBE79B; }  /* butter */
.theme-male.bv-5 { --note-bg: #BCD7E5; }  /* deeper sky */

.theme-female.bv-1 { --note-bg: #F4B6B0; }  /* coral */
.theme-female.bv-2 { --note-bg: #CABEE8; }  /* lilac */
.theme-female.bv-3 { --note-bg: #FBE79B; }  /* butter */
.theme-female.bv-4 { --note-bg: #F4C5D3; }  /* rose */
.theme-female.bv-5 { --note-bg: #D8C0DE; }  /* mauve */

/* ---------- Gothic override (Poe) ---------- */
/* Doubled class to beat .theme-male.bv-N specificity (0,2,0) */
.theme-dark.theme-dark { --band-soft: #2A2730; --note-bg: #1F1C25; }
.theme-dark .band.mint,
.theme-dark .band.mint p,
.theme-dark .band.mint h2,
.theme-dark .band.mint h3,
.theme-dark .band.mint .kicker,
.theme-dark .band.mint .sec-title,
.theme-dark .band.mint .sec-intro,
.theme-dark .band.mint .bk-year,
.theme-dark .band.mint .bk-meta,
.theme-dark .band.mint .pbook { color: #E8DFD0; }
.theme-dark .band.mint .sec-title { color: #F2E9D8; }
.theme-dark .band.mint .squiggle path { stroke: #B48F6A; }
.theme-dark .band.mint .star { fill: #B48F6A; }
.theme-dark .band.mint .pcard { background: #1F1C25; color: #E8DFD0; }
.theme-dark .band.mint .pcard h3,
.theme-dark .band.mint .pcard p { color: #E8DFD0; }
.theme-dark .band.mint .pcard .pic-ic svg { stroke: #B48F6A; }
.theme-dark .band.mint .faq-item { background: #1F1C25; color: #E8DFD0; }
.theme-dark .band.mint .faq-item summary,
.theme-dark .band.mint .faq-item p { color: #E8DFD0; }

/* Notepad goes dark with parchment text */
.theme-dark .notepad { color: #E8DFD0; }
.theme-dark .notepad .qf-title { color: #F2E9D8; }
.theme-dark .notepad .qf-list,
.theme-dark .notepad .qf-list li { color: #E8DFD0; }
.theme-dark .notepad .qf-list b { color: #F2E9D8; }
.theme-dark .notepad .qf-list .qf-ic { stroke: #B48F6A; }
.theme-dark .notepad .qf-list .qf-ic { stroke: #B48F6A; }
.theme-dark .notepad .sparks { stroke: #B48F6A; }

/* Timeline dots stay visible against either band (doubled class beats gendered overrides) */
.theme-dark.theme-dark .tl-dot { background: #B48F6A; box-shadow: 0 0 0 5px var(--paper); }
.theme-dark.theme-dark .tl-item:nth-child(2n) .tl-dot { background: #7E6A53; }
.theme-dark.theme-dark .tl-item:nth-child(3n) .tl-dot { background: #5C4E40; }
.theme-dark.theme-dark .band.mint .tl-dot { box-shadow: 0 0 0 5px var(--band-soft); }
.theme-dark .timeline::before {
  background: repeating-linear-gradient(180deg, #6E5C46 0 14px, transparent 14px 26px);
}

/* Quote card + did-you-know go dark too */
.theme-dark .quote-card,
.theme-dark .quote-card[class*="q-"] { background: #1F1C25; }
.theme-dark .quote-card blockquote,
.theme-dark .quote-card .sb-accent { color: #F2E9D8; }
.theme-dark .quote-card .qmark { color: #B48F6A; }
.theme-dark .quote-card cite { color: #B48F6A; }
.theme-dark .quote-card .qline path { stroke: #B48F6A; }
.theme-dark .quote-card .tape.t1 { background: rgba(180,143,106,.42); }
.theme-dark .quill svg { stroke: #B48F6A; }

.theme-dark .dyk { background: #1F1C25; }
.theme-dark .dyk b { color: #F2E9D8; }
.theme-dark .dyk p { color: #E8DFD0; }
.theme-dark .dyk .bulb svg { stroke: #B48F6A; }

/* Story cards on Poe's page go dark too (override gendered cover palettes) */
.theme-dark.theme-dark .cover.c-teal,
.theme-dark.theme-dark .cover.c-sky,
.theme-dark.theme-dark .cover.c-leaf,
.theme-dark.theme-dark .cover.c-butter,
.theme-dark.theme-dark .cover.c-coral,
.theme-dark.theme-dark .cover.c-lilac { background: #1F1C25; color: #E8DFD0; }

.theme-dark .book:nth-child(2n) .cover { background: #28242E; }
.theme-dark .book:nth-child(3n) .cover { background: #2E2832; }
.theme-dark .cover .frame { background: rgba(180,143,106,.10); }
.theme-dark .cover .ct { color: #F2E9D8; }
.theme-dark .cover .motif svg { stroke: #B48F6A; }

/* Coming-soon badge against dark card */
.theme-dark .book-badge { background: #B48F6A; color: #1F1C25; }
.theme-dark .book-badge.soon { color: #1F1C25; }

/* Fun-facts cards on Poe go dark (doubled selector beats gendered fcard rules) */
.theme-dark.theme-dark .fcard:nth-child(6n+1) { background: #1F1C25; }
.theme-dark.theme-dark .fcard:nth-child(6n+2) { background: #28242E; }
.theme-dark.theme-dark .fcard:nth-child(6n+3) { background: #2A2332; }
.theme-dark.theme-dark .fcard:nth-child(6n+4) { background: #1F1C25; }
.theme-dark.theme-dark .fcard:nth-child(6n+5) { background: #2E2832; }
.theme-dark.theme-dark .fcard:nth-child(6n+6) { background: #251F2A; }
.theme-dark .fcard h3 { color: #F2E9D8; }
.theme-dark .fcard p { color: #E8DFD0; }
.theme-dark .fcard .fnum {
  background: rgba(180,143,106,.18);
  color: #B48F6A;
}

/* ---------- doodles ---------- */
.doodle { position: absolute; pointer-events: none; z-index: 1; }
.heart  { fill: var(--coral); }
.heart.navy { fill: var(--navy); }
.star   { fill: var(--gold); }
svg.squiggle { display: block; width: 100%; height: 12px; }
svg.squiggle path { fill: none; stroke: var(--coral-deep); stroke-width: 3.4; stroke-linecap: round; }
svg.squiggle.teal path { stroke: var(--teal); }

/* sparkle ticks (the little lines beside titles) */
.sparks { stroke: var(--teal); stroke-width: 2.4; stroke-linecap: round; fill: none; }

/* ============================================================
   TOP NAV
   ============================================================ */
.topnav {
  position: sticky; top: 0; z-index: 60;
  background: rgba(252, 248, 240, .92);
  backdrop-filter: blur(10px);
  border-bottom: 2px solid #efe6d4;
}
.topnav .row {
  max-width: var(--wrap); margin: 0 auto;
  padding: 12px clamp(18px, 4vw, 48px);
  display: flex; align-items: center; gap: 18px;
}
.logo { display: flex; flex-direction: column; line-height: .9; text-decoration: none; flex-shrink: 0; }
.logo .little { font-family: var(--font-hand); font-size: 17px; color: var(--teal); margin-left: 3px; }
.logo .name { font-family: var(--font-logo); font-weight: 700; font-size: 27px; letter-spacing: .5px; }
.logo .name b { font-weight: 700; }
.logo .name .c1 { color: var(--teal); }
.logo .name .c2 { color: var(--coral-deep); }
.logo .name .c3 { color: var(--navy); }
.logo .name .c4 { color: var(--gold); }

.nav-links { display: flex; align-items: center; gap: clamp(8px, 2vw, 26px); margin-left: auto; }
.nav-links a {
  display: inline-flex; align-items: center; gap: 8px;
  text-decoration: none; color: var(--navy);
  font-family: var(--font-body); font-weight: 700; font-size: 16.5px;
  padding: 6px 4px 12px; position: relative;
}
.nav-links a svg { width: 24px; height: 24px; }
.nav-links a .ic { stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; fill: none; }
.nav-links a.active { color: var(--navy); }
.nav-links a svg.nav-squig { position: absolute; left: 32px; right: 4px; bottom: 1px; width: auto; height: 9px; overflow: visible; }
.nav-squig path { fill: none; stroke: var(--teal); stroke-width: 2.4; stroke-linecap: round; }
.nav-cta {
  margin-left: 6px; flex-shrink: 0;
  background: var(--coral-deep); color: #fff !important;
  border-radius: var(--r-pill); padding: 9px 18px !important;
  box-shadow: var(--shadow-tiny); font-weight: 800 !important;
}
.nav-cta:hover { background: #e06a73; }
@media (max-width: 940px) {
  .nav-links a span.lbl { display: none; }
  .nav-links a.active::after,
  .nav-links a svg.nav-squig { display: none; }
  .nav-cta { padding: 9px 16px !important; }
  .nav-cta span.lbl { display: inline !important; }
}

/* ============================================================
   HERO
   ============================================================ */
.hero { position: relative; padding: clamp(34px, 5vw, 60px) 0 clamp(30px, 5vw, 56px); }
.hero-grid {
  display: grid;
  grid-template-columns: 300px 1fr 340px;
  gap: clamp(20px, 3vw, 44px);
  align-items: start;
}
@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: 260px 1fr; }
  .hero .qf-col { grid-column: 1 / -1; }
  .qf-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: center; }
}
@media (max-width: 720px) {
  .hero-grid { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .qf-wrap { grid-template-columns: 1fr; }
}

/* polaroid portrait */
.polaroid-col { position: relative; }
.polaroid {
  position: relative; background: #fff; padding: 14px 14px 20px;
  border-radius: 6px; box-shadow: var(--shadow-sticker);
  transform: rotate(-3deg); max-width: 300px;
}
.polaroid .pic {
  aspect-ratio: 3/3.6; border-radius: 3px; overflow: hidden;
  background: linear-gradient(160deg, #eef4f2, #e4eeea);
  display: flex; align-items: center; justify-content: center;
}
.polaroid .pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.polaroid .cap { font-family: var(--font-hand); font-size: 21px; color: var(--navy); text-align: center; margin-top: 8px; }
.tape {
  position: absolute; width: 116px; height: 38px;
  background: var(--tape-1, rgba(237,154,149,.55));
  box-shadow: inset 0 0 0 100px rgba(255,255,255,.06);
  background-image: repeating-linear-gradient(90deg, rgba(255,255,255,.18) 0 6px, transparent 6px 12px);
}
.tape.t1 { top: -16px; left: -18px; transform: rotate(-26deg); }
.tape.t2 { top: -14px; right: -16px; transform: rotate(20deg); background: var(--tape-2, rgba(196,223,236,.6)); }

/* Gendered tape colors — male = cool, female = warm */
.theme-male   { --tape-1: rgba(124,182,224,.55); --tape-2: rgba(140,196,166,.55); }  /* sky + leaf */
.theme-female { --tape-1: rgba(237,154,149,.58); --tape-2: rgba(196,170,224,.55); }  /* coral + lilac */

/* Hearts: keep for women, hide for men + dark */
.theme-male .polaroid-col .doodle.heart,
.theme-dark .polaroid-col .doodle.heart { display: none; }

/* Dark theme tape — muted sepia + slate */
.theme-dark.theme-dark { --tape-1: rgba(180,143,106,.42); --tape-2: rgba(120,113,128,.45); }

/* placeholder slot (drop real art later) */
.slot {
  position: relative; width: 100%; height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 16px; color: var(--muted);
}
.slot svg.ph { width: 30px; height: 30px; stroke: var(--teal); fill: none; stroke-width: 1.7; margin-bottom: 10px; }
.slot .l1 { font-family: var(--font-body); font-weight: 800; font-size: 13px; line-height: 1.25; color: var(--navy); letter-spacing: .2px; max-width: 92%; margin: 0; }
.slot .l2 { font-family: ui-monospace, monospace; font-size: 10.5px; line-height: 1.3; color: var(--muted); max-width: 94%; margin: 7px 0 0; }

/* hero center text */
.hero-main { padding-top: 6px; position: relative; }
.hero-name {
  font-family: var(--font-hand); color: var(--navy);
  font-size: clamp(54px, 8vw, 96px); line-height: .92; margin: 0;
  letter-spacing: 1px;
}
.name-underline { width: min(360px, 80%); margin: 2px 0 14px; }
.hero-tag {
  font-family: var(--font-hand); color: var(--teal-deep);
  font-size: clamp(26px, 3.4vw, 36px); line-height: 1.12; margin: 0 0 18px;
}
.hero-body { font-size: clamp(17px, 1.7vw, 20px); color: var(--ink); max-width: 540px; }
@media (max-width: 720px) { .hero-body { margin-inline: auto; } .name-underline { margin-inline: auto; } }
.hero-body p { margin: 0 0 12px; }
.loop { width: 150px; margin-top: 8px; }
.loop path { fill: none; stroke: var(--teal); stroke-width: 2.6; stroke-linecap: round; }

/* ---------- Quick Facts sticky note ---------- */
.notepad {
  position: relative; background: var(--note-bg, var(--butter));
  border-radius: 4px 4px 10px 10px;
  padding: 40px 26px 28px; transform: rotate(1.2deg);
  box-shadow: var(--shadow-sticker);
}
.notepad { margin-top: 9px; }
.notepad::before { /* scalloped torn top edge */
  content: ''; position: absolute; top: -9px; left: 0; right: 0; height: 12px;
  background: radial-gradient(circle at 11px 13px, var(--note-bg, var(--butter)) 8px, transparent 9px) repeat-x;
  background-size: 22px 12px;
}
.notepad .qf-title {
  font-family: var(--font-hand); color: var(--navy); font-size: 30px;
  margin: 0 0 16px; display: flex; align-items: center; gap: 8px;
}
.qf-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 13px; }
.qf-list li { display: flex; gap: 11px; align-items: flex-start; font-size: 16px; line-height: 1.4; color: var(--ink); }
.qf-list .qf-ic { flex-shrink: 0; width: 26px; height: 26px; margin-top: 1px; }
.qf-list b { color: var(--navy); font-weight: 800; }

.hero-illo {
  margin-top: 18px; position: relative; aspect-ratio: 4/3.4;
  background: rgba(255,255,255,.5); border: 2px dashed rgba(46,142,134,.4);
  border-radius: var(--r-card);
}
/* When the slot contains a real vignette image, drop the placeholder chrome */
.hero-illo:has(> img) {
  background: transparent;
  border: none;
}
@media (max-width: 1080px) { .hero-illo { margin-top: 0; } }

/* thought bubble */
.thought { position: absolute; top: -10px; right: 10px; width: 64px; z-index: 3; }

/* ============================================================
   SECTION HEADER (star + hand title + squiggle underline)
   ============================================================ */
.sec-head { margin-bottom: 26px; }
.sec-head.center { text-align: center; }
.sec-title {
  font-family: var(--font-hand); color: var(--navy);
  font-size: clamp(30px, 4.4vw, 50px); line-height: 1; margin: 0;
  display: inline-flex; align-items: center; gap: 12px;
}
.sec-title .star { width: 34px; height: 34px; flex-shrink: 0; }
.sec-underline { width: 230px; max-width: 70%; margin-top: 4px; }
.sec-head.center .sec-underline { margin-inline: auto; }
.sec-intro { font-size: clamp(16px, 1.6vw, 19px); color: var(--ink); max-width: 640px; margin: 12px 0 0; }
.sec-head.center .sec-intro { margin-inline: auto; }
.kicker { font-family: var(--font-hand); color: var(--coral-deep); font-size: 22px; margin: 0 0 2px; }

/* ============================================================
   BOOK COVERS (famous works strip)
   ============================================================ */
.books { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2.4vw, 28px); }
@media (max-width: 760px) { .books { grid-template-columns: 1fr 1fr; } }
@media (max-width: 420px) { .books { grid-template-columns: 1fr 1fr; gap: 14px; } }

.book { text-decoration: none; display: flex; flex-direction: column; align-items: center; }
.cover {
  position: relative; width: 100%; aspect-ratio: 1/1; border-radius: 10px;
  box-shadow: var(--shadow-soft); overflow: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-start;
  padding: 18px 14px; text-align: center;
  transition: transform .18s ease, box-shadow .18s ease;
}
.book:hover .cover { transform: translateY(-6px) rotate(-1deg); box-shadow: var(--shadow-sticker); }
.cover .ct { font-family: var(--font-hand); font-size: 21px; line-height: 1.02; margin: 2px 0 10px; }
.cover .motif { width: 86px; height: 86px; margin-top: auto; margin-bottom: 6px; }
.cover .motif svg { width: 100%; height: 100%; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.cover .frame {
  width: 92px; height: 110px; margin: auto auto 4px; border-radius: 50%/46%;
  display: flex; align-items: center; justify-content: center;
}
/* cover color themes */
.cover.c-teal   { background: #2F8377; color: #eafaf5; }
.cover.c-teal   .frame { background: rgba(255,255,255,.14); }
.cover.c-butter { background: var(--butter); color: var(--navy); }
.cover.c-butter .frame { background: rgba(33,58,92,.07); }
.cover.c-coral  { background: #F2BEBA; color: var(--navy); }
.cover.c-coral  .frame { background: rgba(33,58,92,.08); }
.cover.c-lilac  { background: #B6ACDC; color: #2a2350; }
.cover.c-lilac  .frame { background: rgba(255,255,255,.18); }
.cover.c-sky    { background: #9FCDDE; color: #173a47; }
.cover.c-sky    .frame { background: rgba(255,255,255,.2); }
.cover.c-leaf   { background: #88BD97; color: #173a26; }
.cover.c-leaf   .frame { background: rgba(255,255,255,.2); }
.cover .motif svg { stroke: currentColor; }

.book-badge {
  position: absolute; top: 9px; right: 9px;
  background: #fff; color: var(--teal-deep);
  font-family: var(--font-body); font-weight: 800; font-size: 10.5px;
  text-transform: uppercase; letter-spacing: .5px;
  padding: 4px 9px; border-radius: var(--r-pill);
  box-shadow: var(--shadow-tiny);
  display: inline-flex; align-items: center; gap: 4px;
}
.book-badge.soon { color: var(--muted); }
/* Centered badge for coming-soon books (replaces the corner badge + motif) */
.book-badge.center {
  top: 50%; left: 50%; right: auto;
  transform: translate(-50%, -50%);
  font-size: 13px;
  padding: 7px 16px;
  letter-spacing: .8px;
}
.book-cap { font-size: 14px; color: var(--ink); margin-top: 12px; line-height: 1.4; max-width: 92%; }
.book-cap b { color: var(--navy); display: block; font-family: var(--font-hand); font-size: 17px; font-weight: 400; }

/* pink CTA pill */
.pill-cta {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--coral-deep); color: #fff; text-decoration: none;
  font-family: var(--font-hand); font-size: 22px; letter-spacing: .3px;
  padding: 13px 30px; border-radius: var(--r-pill);
  box-shadow: var(--shadow-soft); transition: transform .15s ease, background .15s ease;
}
.pill-cta:hover { transform: translateY(-2px); background: #e06a73; }
.pill-cta svg { width: 22px; height: 22px; stroke: #fff; fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

/* ============================================================
   QUOTE CARD (taped paper + quill)
   ============================================================ */
.quote-card {
  position: relative; background: var(--paper-2);
  border-radius: 6px; padding: clamp(30px, 4vw, 46px) clamp(26px, 4vw, 50px);
  box-shadow: var(--shadow-sticker); transform: rotate(-1deg);
  display: grid; grid-template-columns: 1fr auto; gap: 28px; align-items: center;
  max-width: 820px; margin: 0 auto;
}
@media (max-width: 560px) { .quote-card { grid-template-columns: 1fr; } .quill { display: none; } }
.quote-card .qmark { font-family: var(--font-hand); font-size: 60px; color: var(--coral-deep); line-height: 0; height: 30px; }
.quote-card blockquote {
  font-family: var(--font-hand); color: var(--navy); margin: 0;
  font-size: clamp(24px, 3vw, 34px); line-height: 1.18;
}
.quote-card .qline { width: 150px; margin: 12px 0 10px; }
.quote-card cite { font-family: var(--font-hand); font-style: normal; color: var(--teal-deep); font-size: 22px; }
.quill { width: 110px; }
.quill svg { width: 100%; fill: none; stroke: var(--teal-deep); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.quill img { width: 100%; height: auto; display: block; }
.quote-card .tape.t1 { top: -15px; left: 50%; transform: translateX(-50%) rotate(-3deg); background: rgba(196,223,236,.62); }

/* compact quote card for the hero polaroid column */
.quote-card.hero-quote {
  display: block; max-width: none; margin: 28px 0 0;
  padding: 22px 22px 20px; transform: rotate(-1.5deg);
}
.quote-card.hero-quote .qmark { font-size: 44px; height: 22px; }
.quote-card.hero-quote blockquote { font-size: clamp(18px, 1.7vw, 22px); line-height: 1.18; }
.quote-card.hero-quote .qline { width: 110px; margin: 8px 0 6px; }
.quote-card.hero-quote cite { font-size: 17px; }
.hero-quote-spot {
  position: absolute;
  top: -22px; right: -26px;
  width: 80px;
  height: auto;
  transform: rotate(12deg);
  z-index: 2;
  pointer-events: none;
  filter: drop-shadow(0 4px 8px rgba(33,58,92,.20));
}

/* Quote card color variants. Male palette = bolder, female palette = softer. */
.quote-card.q-teal   { background: #BFE2D9; }    /* boylike: teal */
.quote-card.q-sky    { background: #C4DFEC; }    /* boylike: sky */
.quote-card.q-leaf   { background: #C8E5C8; }    /* boylike: leaf */
.quote-card.q-gold   { background: #FBE79B; }    /* neutral: gold */
.quote-card.q-coral  { background: #F4C5C1; }    /* girlie: coral */
.quote-card.q-lilac  { background: #DAD4F0; }    /* girlie: lilac */
.quote-card.q-butter { background: #FBE79B; }    /* girlie: butter */
.quote-card.q-pink   { background: #F8D5DC; }    /* girlie: pink */

/* ---------- did-you-know blob ---------- */
.dyk {
  display: flex; align-items: center; gap: 14px;
  background: var(--sky); border-radius: var(--r-lg);
  padding: 16px 22px; box-shadow: var(--shadow-tiny);
}
.dyk .bulb { width: 38px; height: 38px; flex-shrink: 0; }
.dyk .bulb svg { width: 100%; height: 100%; fill: none; stroke: var(--navy); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.dyk b { font-family: var(--font-hand); font-size: 19px; color: var(--navy); display: block; }
.dyk p { margin: 1px 0 0; font-size: 15px; color: var(--ink); line-height: 1.4; }

/* compact dyk for the hero qf column (under the illustration) */
.dyk.hero-dyk {
  margin-top: 14px;
  padding: 12px 16px;
}
.dyk.hero-dyk .bulb { width: 30px; height: 30px; }
.dyk.hero-dyk b { font-size: 17px; }
.dyk.hero-dyk p { font-size: 14px; }

/* ============================================================
   TIMELINE
   ============================================================ */
/* Timeline: line and dots both centered at x = 24px from the left of the column */
.timeline { position: relative; max-width: 880px; margin: 0 auto; }
.timeline::before {
  content: ''; position: absolute; left: 24px; top: 10px; bottom: 10px; width: 4px;
  transform: translateX(-50%);
  background: repeating-linear-gradient(180deg, var(--teal) 0 14px, transparent 14px 26px);
  border-radius: 4px; opacity: .55;
}
.tl-item { position: relative; padding: 0 0 30px 70px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-dot {
  position: absolute; left: 24px; top: 6px; width: 24px; height: 24px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 5px var(--paper);
}
.tl-item:nth-child(2n) .tl-dot { background: var(--coral-deep); }
.tl-item:nth-child(3n) .tl-dot { background: var(--gold); }
.tl-year {
  display: inline-block; font-family: var(--font-hand); font-size: 17px; color: #fff;
  background: var(--navy); padding: 1px 14px; border-radius: var(--r-pill); margin-bottom: 7px;
}
.tl-head { font-family: var(--font-hand); color: var(--navy); font-size: clamp(21px, 2.4vw, 27px); margin: 0 0 5px; line-height: 1.1; }
.tl-body { margin: 0; font-size: 16.5px; color: var(--ink); max-width: 640px; }
.tl-body .hl { color: var(--navy); font-weight: 800; }
.band.cream .tl-dot { box-shadow: 0 0 0 5px var(--paper); }
.band.mint .tl-dot { box-shadow: 0 0 0 5px var(--band-soft, var(--mint)); }

/* ============================================================
   PREDICTION CARDS  (worlds he imagined)
   ============================================================ */
.cards3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 860px) { .cards3 { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; } }
.pcard {
  background: #fff; border-radius: var(--r-lg); padding: 26px 24px 24px;
  box-shadow: var(--shadow-soft); position: relative; overflow: hidden;
}
.pcard::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 8px; }
.pcard:nth-child(1)::before { background: var(--teal); }
.pcard:nth-child(2)::before { background: var(--coral-deep); }
.pcard:nth-child(3)::before { background: var(--gold); }
.pcard .pic-ic {
  width: 58px; height: 58px; border-radius: 16px; display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
}
.pcard:nth-child(1) .pic-ic { background: rgba(46,142,134,.14); }
.pcard:nth-child(2) .pic-ic { background: rgba(232,126,134,.16); }
.pcard:nth-child(3) .pic-ic { background: rgba(242,201,76,.22); }
.pcard .pic-ic svg { width: 32px; height: 32px; fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.pcard:nth-child(1) .pic-ic svg { stroke: var(--teal-deep); }
.pcard:nth-child(2) .pic-ic svg { stroke: var(--coral-deep); }
.pcard:nth-child(3) .pic-ic svg { stroke: #c79a16; }
.pcard .pbook { font-family: var(--font-body); font-weight: 800; font-size: 11.5px; letter-spacing: .6px; text-transform: uppercase; color: var(--teal-deep); }
.pcard h3 { font-family: var(--font-hand); color: var(--navy); font-size: 25px; margin: 3px 0 8px; line-height: 1.08; }
.pcard p { margin: 0; font-size: 15.5px; color: var(--ink); line-height: 1.55; }

/* ============================================================
   FUN FACTS
   ============================================================ */
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 860px) { .facts { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .facts { grid-template-columns: 1fr; } }
.fcard {
  border-radius: var(--r-lg); padding: 22px 22px 24px; position: relative;
  box-shadow: var(--shadow-tiny);
}
.fcard:nth-child(6n+1) { background: var(--sky); }
.fcard:nth-child(6n+2) { background: var(--butter); }
.fcard:nth-child(6n+3) { background: #F2C9C5; }
.fcard:nth-child(6n+4) { background: #CDEBDD; }
.fcard:nth-child(6n+5) { background: #DAD4F0; }
.fcard:nth-child(6n+6) { background: #FCE3B6; }

/* ═══════════════════════════════════════════════════════
   Gender theming — male: bolder palette, female: softer
   ═══════════════════════════════════════════════════════ */

/* MALE: teal, sky, leaf, gold, mint, butter */
.theme-male .fcard:nth-child(6n+1) { background: #C4DFEC; }   /* sky */
.theme-male .fcard:nth-child(6n+2) { background: #BFE2D9; }   /* teal */
.theme-male .fcard:nth-child(6n+3) { background: #C8E5C8; }   /* leaf */
.theme-male .fcard:nth-child(6n+4) { background: #FBE79B; }   /* butter */
.theme-male .fcard:nth-child(6n+5) { background: #D7E9E1; }   /* mint */
.theme-male .fcard:nth-child(6n+6) { background: #DCEDDA; }   /* deeper leaf */

/* FEMALE: coral, lilac, pink, butter, peach, blush */
.theme-female .fcard:nth-child(6n+1) { background: #F2C9C5; }  /* coral */
.theme-female .fcard:nth-child(6n+2) { background: #DAD4F0; }  /* lilac */
.theme-female .fcard:nth-child(6n+3) { background: #F8D5DC; }  /* pink */
.theme-female .fcard:nth-child(6n+4) { background: #FBE79B; }  /* butter */
.theme-female .fcard:nth-child(6n+5) { background: #FCD9B3; }  /* peach */
.theme-female .fcard:nth-child(6n+6) { background: #F4C5C1; }  /* blush coral */

/* Prediction cards (Worlds He Imagined) top stripe */
.theme-male .pcard:nth-child(1)::before { background: var(--teal); }
.theme-male .pcard:nth-child(2)::before { background: var(--sky-deep); }
.theme-male .pcard:nth-child(3)::before { background: var(--leaf); }
.theme-female .pcard:nth-child(1)::before { background: var(--coral-deep); }
.theme-female .pcard:nth-child(2)::before { background: var(--lilac); }
.theme-female .pcard:nth-child(3)::before { background: #E87E9E; }   /* pink */

.theme-male .pcard:nth-child(1) .pic-ic { background: rgba(46,142,134,.14); }
.theme-male .pcard:nth-child(2) .pic-ic { background: rgba(169,208,226,.30); }
.theme-male .pcard:nth-child(3) .pic-ic { background: rgba(123,181,142,.25); }
.theme-female .pcard:nth-child(1) .pic-ic { background: rgba(232,126,134,.22); }
.theme-female .pcard:nth-child(2) .pic-ic { background: rgba(176,166,216,.30); }
.theme-female .pcard:nth-child(3) .pic-ic { background: rgba(232,126,158,.22); }

.theme-male .pcard:nth-child(1) .pic-ic svg { stroke: var(--teal-deep); }
.theme-male .pcard:nth-child(2) .pic-ic svg { stroke: var(--sky-deep); }
.theme-male .pcard:nth-child(3) .pic-ic svg { stroke: #4a8458; }
.theme-female .pcard:nth-child(1) .pic-ic svg { stroke: var(--coral-deep); }
.theme-female .pcard:nth-child(2) .pic-ic svg { stroke: #6a5fb0; }
.theme-female .pcard:nth-child(3) .pic-ic svg { stroke: #b6396b; }

/* Book cover placeholder colors (when no real image) */
.theme-male .cover.c-teal,
.theme-male .cover.c-coral,
.theme-male .cover.c-lilac { background: #BFE2D9; color: #1d4540; }       /* swap girly → teal */
.theme-male .cover.c-butter { background: #FBE79B; color: var(--navy); }
.theme-male .cover.c-sky    { background: #9FCDDE; color: #173a47; }
.theme-male .cover.c-leaf   { background: #88BD97; color: #173a26; }

.theme-female .cover.c-teal,
.theme-female .cover.c-leaf,
.theme-female .cover.c-sky  { background: #F2BEBA; color: var(--navy); }  /* swap boy → coral */
.theme-female .cover.c-butter { background: var(--butter); color: var(--navy); }
.theme-female .cover.c-coral { background: #F4C5C1; color: var(--navy); }
.theme-female .cover.c-lilac { background: #DAD4F0; color: #2a2350; }

/* Timeline dot colors */
.theme-male .tl-dot { background: var(--teal); }
.theme-male .tl-item:nth-child(2n) .tl-dot { background: var(--sky-deep); }
.theme-male .tl-item:nth-child(3n) .tl-dot { background: var(--leaf); }
.theme-female .tl-dot { background: var(--coral-deep); }
.theme-female .tl-item:nth-child(2n) .tl-dot { background: var(--lilac); }
.theme-female .tl-item:nth-child(3n) .tl-dot { background: var(--gold); }
.fcard .fnum {
  font-family: var(--font-hand); font-size: 30px; color: var(--navy);
  width: 46px; height: 46px; border-radius: 50%; background: rgba(255,255,255,.7);
  display: flex; align-items: center; justify-content: center; margin-bottom: 12px;
  box-shadow: var(--shadow-tiny);
}
.fcard h3 { font-family: var(--font-hand); color: var(--navy); font-size: 22px; margin: 0 0 6px; line-height: 1.08; }
.fcard p { margin: 0; font-size: 15.5px; color: #2f3e4f; line-height: 1.5; }

/* ============================================================
   FAQ
   ============================================================ */
.faq { max-width: 820px; margin: 0 auto; }
.faq-item { background: #fff; border-radius: var(--r-card); margin-bottom: 12px; box-shadow: var(--shadow-tiny); overflow: hidden; }
.faq-item summary {
  list-style: none; cursor: pointer; padding: 18px 22px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  font-family: var(--font-hand); font-size: clamp(19px, 2.2vw, 23px); color: var(--navy);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item .plus {
  flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%; background: var(--mint);
  color: var(--teal-deep); font-size: 24px; line-height: 28px; text-align: center;
  transition: transform .2s ease, background .2s ease;
}
.faq-item[open] .plus { transform: rotate(45deg); background: var(--coral); color: #fff; }
.faq-item .ans { padding: 0 22px 20px; font-size: 16.5px; color: var(--ink); line-height: 1.6; }
.faq-item .ans p { margin: 0; }

/* ============================================================
   BIG CTA
   ============================================================ */
.cta {
  background: #fff; border-radius: var(--r-lg); box-shadow: var(--shadow-sticker);
  display: grid; grid-template-columns: 200px 1fr; gap: clamp(22px, 4vw, 46px);
  align-items: center; padding: clamp(26px, 4vw, 44px) clamp(26px, 4vw, 50px);
  max-width: 960px; margin: 0 auto; position: relative; overflow: hidden;
}
@media (max-width: 640px) { .cta { grid-template-columns: 1fr; justify-items: center; text-align: center; } }
.cta .cover-feat { width: 100%; max-width: 200px; border-radius: 8px; box-shadow: var(--shadow-soft); display: block; transform: rotate(-3deg); }
.cta h2 { font-family: var(--font-hand); color: var(--navy); font-size: clamp(30px, 4vw, 46px); margin: 0 0 10px; line-height: 1; }
.cta p { margin: 0 0 20px; font-size: 17px; color: var(--ink); max-width: 460px; }
.cta-btns { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 640px) { .cta-btns { justify-content: center; } }
.btn-ghost {
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none;
  font-family: var(--font-hand); font-size: 21px; color: var(--teal-deep);
  padding: 12px 24px; border-radius: var(--r-pill); border: 2.5px solid var(--teal);
  transition: background .15s ease;
}
.btn-ghost:hover { background: rgba(46,142,134,.1); }

/* ============================================================
   FOOTER
   ============================================================ */
.foot { background: var(--navy); color: #cdd8e6; }
.foot .row { max-width: var(--wrap); margin: 0 auto; padding: 30px clamp(20px, 4vw, 48px); display: flex; flex-wrap: wrap; gap: 18px; align-items: center; justify-content: space-between; font-size: 14.5px; }
.foot a { color: #eaf1f8; text-decoration: none; }
.foot a:hover { color: #fff; text-decoration: underline; }
.foot .flogo { font-family: var(--font-logo); font-weight: 700; font-size: 22px; color: #fff; }
.foot .flinks { display: flex; gap: 20px; flex-wrap: wrap; }

/* ============================================================
   REVEAL ANIMATION
   ============================================================ */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
  .reveal.in { opacity: 1; transform: none; }
  .reveal.d1 { transition-delay: .08s; }
  .reveal.d2 { transition-delay: .16s; }
  .reveal.d3 { transition-delay: .24s; }
  .reveal.d4 { transition-delay: .32s; }
}
