/* =============================================================================
   VALLEROI NORTH — Cool, quiet publisher for the first big years
   -----------------------------------------------------------------------------
   Design direction: white paper, cool slate ink, soft sage & sky. A pre-K
   publisher that reads clean, calm, and kid-safe — the sensation parents and
   daycare directors reach for. No warm earth-tones, no gold, no red.
   ============================================================================= */

:root {
  /* =========================================================================
     PALETTE — "Cool paper, quiet library"
     Pure white base + cool grey ink + three cool support families
     (slate / sage / sky) with matched saturation. Everything else reads
     off this spine. No warm punctuation — the palette stays cool by design.
     ======================================================================== */

  /* Grounds — near-white, one perceptual step apart */
  --white:       #FFFFFF;
  --paper:       #FAFBFC;   /* main page background */
  --paper-hi:    #FFFFFF;   /* highlight — hero card */
  --cloud:       #F0F3F6;   /* card / paper background */
  --mist:        #E4EAEF;   /* depth layer */

  /* Ink — cool near-black */
  --ink:         #0F1620;
  --ink-2:       #2F3A48;
  --muted:       #5C6774;
  --line:        #DDE3E8;
  --line-2:      #C5CDD5;

  /* SLATE family — the primary voice (editorial ballast) */
  --slate-hi:    #A8B8CB;
  --slate:       #5F7A96;
  --slate-deep:  #2C4258;

  /* SAGE family — calm secondary (kid-safe, institutional-friendly) */
  --sage-hi:     #D4E0D6;
  --sage:        #8AA694;
  --sage-deep:   #4E6C5A;

  /* SKY family — soft playful (rare accent) */
  --sky-hi:      #DBE7EF;
  --sky:         #9AB2C4;
  --sky-deep:    #4E6A80;

  /* Contrast pigment — used ONLY for the rare editorial punctuation */
  --rose:        #C87A8C;   /* dusty rose (scribble only) */
  --mint:        #B7D8C7;   /* pale mint (highlight underline) */

  /* ==========================================================================
     Semantic aliases — old token names map into the cool palette.
     ========================================================================== */
  --ivory:       var(--paper);
  --ivory-hi:    var(--white);
  --parchment:   var(--cloud);
  --card:        var(--paper-hi);
  --linen:       var(--paper);
  --linen-2:     var(--mist);
  --teal:        var(--slate-deep);   /* primary → deep slate */
  --teal-hi:     var(--slate);
  --teal-ink:    var(--ink);
  --ochre:       var(--mint);
  --ochre-deep:  var(--sage-deep);
  --blush:       var(--sky-hi);
  --blush-deep:  var(--sky);
  --forest:      var(--sage-deep);
  --forest-hi:   var(--sage);
  --claret:      var(--rose);
  --berry:       var(--rose);
  --gold:        var(--mint);
  --clay-hi:     var(--sky-hi);
  --clay:        var(--sky);
  --clay-deep:   var(--slate-deep);
  --moss-hi:     var(--sage-hi);
  --moss:        var(--sage);
  --moss-deep:   var(--sage-deep);
  --bronze-hi:   var(--slate-hi);
  --bronze:      var(--slate);
  --bronze-deep: var(--slate-deep);

  /* System */
  --radius-sm:   6px;
  --radius:      10px;
  --radius-lg:   18px;
  --shadow-1:    0 1px 2px rgba(15,22,32,.04), 0 12px 32px -14px rgba(15,22,32,.10);
  --shadow-2:    0 2px 4px rgba(15,22,32,.05), 0 28px 60px -20px rgba(15,22,32,.16);
  --shadow-inset:inset 0 -1px 0 rgba(15,22,32,.05);

  /* Type stacks — Instrument family (Reforma Foundry) for editorial voice */
  --font-display: "Instrument Serif", ui-serif, "Big Caslon", "Palatino", Georgia, serif;
  --font-body:    "Instrument Sans", "Söhne", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-scribble:"Caveat", "Snell Roundhand", "Bradley Hand", cursive;
  --font-mono:    ui-monospace, "SF Mono", "Menlo", "Consolas", monospace;

  --container: 1200px;
  --gutter: clamp(20px, 4vw, 44px);

  --ease: cubic-bezier(.2,.8,.2,1);
}

/* Dark theme — cool night. Deep slate, soft moonlight. Not inverted. */
@media (prefers-color-scheme: dark) {
  :root {
    --white:      #0C1218;
    --paper:      #0F1620;
    --paper-hi:   #16202C;
    --cloud:      #1A2532;
    --mist:       #24303F;
    --ink:        #E8ECF0;
    --ink-2:      #B3BDCA;
    --muted:      #7D8895;
    --line:       #2C3846;
    --line-2:     #3D4A5A;
    --slate-hi:   #C0CEDD;
    --slate:      #7E9AB5;
    --slate-deep: #B0C6DC;   /* raised for legibility on dark */
    --sage-hi:    #C0D2C4;
    --sage:       #93B09D;
    --sage-deep:  #7DA089;
    --sky-hi:     #C8D8E5;
    --sky:        #9FBAD0;
    --sky-deep:   #7D9EB9;
    --rose:       #D890A0;
    --mint:       #A4CDB7;
    --shadow-1:   0 1px 2px rgba(0,0,0,.5), 0 12px 32px -14px rgba(0,0,0,.7);
    --shadow-2:   0 2px 4px rgba(0,0,0,.6), 0 28px 60px -20px rgba(0,0,0,.8);
  }
}
:root[data-theme="dark"] {
  --white:#0C1218; --paper:#0F1620; --paper-hi:#16202C; --cloud:#1A2532; --mist:#24303F;
  --ink:#E8ECF0; --ink-2:#B3BDCA; --muted:#7D8895;
  --line:#2C3846; --line-2:#3D4A5A;
  --slate-hi:#C0CEDD; --slate:#7E9AB5; --slate-deep:#B0C6DC;
  --sage-hi:#C0D2C4; --sage:#93B09D; --sage-deep:#7DA089;
  --sky-hi:#C8D8E5; --sky:#9FBAD0; --sky-deep:#7D9EB9;
  --rose:#D890A0; --mint:#A4CDB7;
  --shadow-1:0 1px 2px rgba(0,0,0,.5), 0 12px 32px -14px rgba(0,0,0,.7);
  --shadow-2:0 2px 4px rgba(0,0,0,.6), 0 28px 60px -20px rgba(0,0,0,.8);
}
:root[data-theme="light"] {
  --white:#FFFFFF; --paper:#FAFBFC; --paper-hi:#FFFFFF; --cloud:#F0F3F6; --mist:#E4EAEF;
  --ink:#0F1620; --ink-2:#2F3A48; --muted:#5C6774;
  --line:#DDE3E8; --line-2:#C5CDD5;
  --slate-hi:#A8B8CB; --slate:#5F7A96; --slate-deep:#2C4258;
  --sage-hi:#D4E0D6; --sage:#8AA694; --sage-deep:#4E6C5A;
  --sky-hi:#DBE7EF; --sky:#9AB2C4; --sky-deep:#4E6A80;
  --rose:#C87A8C; --mint:#B7D8C7;
  --shadow-1:0 1px 2px rgba(15,22,32,.04), 0 12px 32px -14px rgba(15,22,32,.10);
  --shadow-2:0 2px 4px rgba(15,22,32,.05), 0 28px 60px -20px rgba(15,22,32,.16);
}

/* Reset + base */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--linen);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.55;
  font-feature-settings: "ss01","cv11","liga";
  font-variant-ligatures: common-ligatures;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--teal); text-decoration: none; }
a:hover { color: var(--teal-hi); text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
::selection { background: var(--teal); color: var(--paper-hi); }

/* Paper texture — very subtle cool grain overlay on the body */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: .18;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='2' stitchTiles='stitch' seed='4'/><feColorMatrix values='0 0 0 0 0.08  0 0 0 0 0.10  0 0 0 0 0.14  0 0 0 .5 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}
@media (prefers-color-scheme: dark) { body::before { opacity: .18; mix-blend-mode: screen; } }

/* =========================
   Type — editorial hierarchy
   ========================= */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.012em;
  color: var(--ink);
  margin: 0 0 .4em;
  text-wrap: balance;
  font-optical-sizing: auto;
}
h1 { font-size: clamp(3rem, 7vw, 6.2rem); line-height: .96; letter-spacing: -0.028em; }
h2 { font-size: clamp(2.2rem, 4.4vw, 3.6rem); line-height: 1.02; letter-spacing: -0.02em; }
h3 { font-size: clamp(1.35rem, 2vw, 1.7rem); line-height: 1.15; letter-spacing: -0.012em; }
h4 { font-size: 1.15rem; line-height: 1.2; }
p  { margin: 0 0 1.05em; color: var(--ink-2); }
p.lede { font-size: clamp(1.08rem, 1.4vw, 1.24rem); color: var(--ink-2); line-height: 1.5; max-width: 56ch; }

em { font-style: italic; }
strong { font-weight: 600; color: var(--ink); }

/* Small caps + tabular nums helpers */
.tnum { font-variant-numeric: tabular-nums; }
.smallcaps { font-variant: all-small-caps; letter-spacing: .12em; }

/* Editorial marks — eyebrow, kicker, drop cap, section number */
.kicker {
  font-family: var(--font-body);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: .18em;
  font-weight: 600;
  color: var(--teal);
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.kicker::before {
  content: "";
  width: 28px; height: 1px;
  background: currentColor;
}
.kicker--on-dark { color: var(--paper-hi); opacity: .85; }

/* Section numbers — big serif ordinals used like a magazine spread */
.sec-mark {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--ochre-deep);
  font-size: clamp(2.6rem, 4vw, 3.4rem);
  line-height: 1;
  letter-spacing: -0.02em;
}

/* Rules */
hr, .rule {
  border: 0;
  height: 1px;
  background: var(--line-2);
  margin: 32px 0;
}
.rule--short {
  width: 42px; height: 2px; background: var(--ochre);
  border-radius: 2px;
  display: block;
  margin: 20px 0;
}

/* =========================
   Layout primitives
   ========================= */
.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(72px, 10vw, 128px) 0; position: relative; }
.section--tight { padding: clamp(52px, 7vw, 88px) 0; }
.section--paper { background: var(--paper); }
.section--teal { background: var(--teal); color: var(--paper-hi); }
.section--forest { background: var(--forest); color: var(--paper-hi); }
.section--ochre { background: var(--ochre); color: var(--teal-ink); }
.section--teal h1, .section--teal h2, .section--teal h3,
.section--forest h1, .section--forest h2, .section--forest h3 { color: var(--paper-hi); }
.section--teal p, .section--forest p { color: rgba(232,236,240,.92); }
.section--ochre h1, .section--ochre h2, .section--ochre h3 { color: var(--teal-ink); }

/* Section head — magazine-style two-column (number + intro) */
.sechead {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: clamp(28px, 5vw, 68px);
  align-items: start;
  margin-bottom: clamp(40px, 6vw, 68px);
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}
.sechead__num {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--ochre-deep);
  font-size: clamp(3rem, 5vw, 4.4rem);
  line-height: 1;
  letter-spacing: -0.02em;
}
.sechead__num small {
  display: block;
  font-family: var(--font-body);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: .2em;
  color: var(--muted);
  font-style: normal;
  margin-top: 10px;
  font-weight: 600;
}
.sechead__body h2 { margin-top: 6px; }
.section--teal .sechead__num,
.section--forest .sechead__num { color: var(--ochre); }
.section--teal .sechead__num small,
.section--forest .sechead__num small { color: rgba(232,236,240,.78); }
.section--teal .sechead,
.section--forest .sechead { border-bottom-color: rgba(255,255,255,.14); }
.section--teal .kicker,
.section--forest .kicker { color: var(--ochre); }

@media (max-width: 780px) {
  .sechead { grid-template-columns: 1fr; gap: 16px; }
}

/* =========================
   Buttons
   ========================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 26px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.94rem;
  letter-spacing: .01em;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .25s var(--ease), background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), box-shadow .25s var(--ease);
  text-decoration: none !important;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn__arrow { transition: transform .25s var(--ease); display: inline-block; }
.btn:hover .btn__arrow { transform: translateX(3px); }

.btn--primary { background: var(--teal); color: var(--paper-hi); box-shadow: 0 10px 22px -12px rgba(44,66,88,.35); }
.btn--primary:hover { background: var(--teal-hi); box-shadow: 0 14px 30px -14px rgba(44,66,88,.45); }

.btn--outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--outline:hover { background: var(--ink); color: var(--paper-hi); }

.btn--paper { background: var(--paper-hi); color: var(--ink); }
.btn--paper:hover { background: white; }

.btn--ochre { background: var(--ochre); color: var(--teal-ink); }
.btn--ochre:hover { background: var(--ochre-deep); color: var(--paper-hi); }

.btn--ghost { background: transparent; color: var(--paper-hi); border-color: rgba(255,255,255,.35); }
.btn--ghost:hover { background: rgba(255,255,255,.08); border-color: var(--paper-hi); }

/* =========================
   NAV — thin editorial masthead
   ========================= */
.nav {
  position: sticky; top: 0; z-index: 30;
  background: color-mix(in oklab, var(--linen) 82%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav__row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 0;
  gap: 24px;
}
.brand {
  display: inline-flex; align-items: baseline; gap: 12px;
  font-family: var(--font-display);
  color: var(--ink);
  text-decoration: none !important;
}
.brand__wordmark {
  font-size: 1.5rem;
  letter-spacing: -0.018em;
  line-height: 1;
}
.brand__tag {
  font-family: var(--font-body);
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: .24em;
  color: var(--muted);
  font-weight: 500;
  border-left: 1px solid var(--line-2);
  padding-left: 12px;
  display: inline-block;
}
.nav__links {
  display: flex; gap: 34px; align-items: center;
  list-style: none; margin: 0; padding: 0;
}
.nav__links a {
  color: var(--ink);
  font-size: .92rem;
  font-weight: 500;
  position: relative;
}
.nav__links a:hover { color: var(--teal); text-decoration: none; }
.nav__links a.is-active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px;
  height: 2px; background: var(--ochre);
}
.nav__cta { padding: 10px 20px; font-size: .88rem; }
.nav__toggle {
  display: none;
  background: transparent; border: 0; cursor: pointer;
  width: 40px; height: 40px;
  align-items: center; justify-content: center;
}
.nav__toggle span, .nav__toggle span::before, .nav__toggle span::after {
  content: ""; display: block;
  width: 24px; height: 1.5px; background: var(--ink);
  position: relative; transition: transform .25s var(--ease), opacity .25s var(--ease);
}
.nav__toggle span::before { position: absolute; top: -8px; }
.nav__toggle span::after  { position: absolute; top:  8px; }

@media (max-width: 900px) {
  .brand__tag { display: none; }
}
@media (max-width: 820px) {
  .nav__toggle { display: inline-flex; }
  .nav__links {
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--linen);
    flex-direction: column;
    padding: 20px var(--gutter) 28px;
    gap: 18px;
    border-bottom: 1px solid var(--line);
    transform: translateY(-8px);
    opacity: 0; pointer-events: none;
    transition: transform .25s var(--ease), opacity .25s var(--ease);
  }
  .nav.is-open .nav__links {
    transform: translateY(0); opacity: 1; pointer-events: auto;
  }
  .nav.is-open .nav__toggle span { background: transparent; }
  .nav.is-open .nav__toggle span::before { transform: translateY(8px) rotate(45deg); }
  .nav.is-open .nav__toggle span::after  { transform: translateY(-8px) rotate(-45deg); }
}

/* =========================
   HERO — editorial spread
   ========================= */
.hero {
  padding: clamp(56px, 10vw, 130px) 0 clamp(70px, 10vw, 140px);
  position: relative;
  overflow: hidden;
}

/* Top press-line — like a masthead date+edition rule */
.hero__pressline {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 22px;
  margin-bottom: 42px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-body);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: .2em;
  color: var(--muted);
  font-weight: 500;
  flex-wrap: wrap;
}
.hero__pressline span { display: inline-flex; align-items: center; gap: 8px; }
.hero__pressline strong { color: var(--ink); font-weight: 600; letter-spacing: .16em; }

.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(30px, 5vw, 88px);
  align-items: center;
  position: relative;
}

.hero__title {
  margin: 0 0 24px;
}
.hero__title .hl {
  font-style: italic;
  color: var(--ochre-deep);
  position: relative;
  white-space: nowrap;
}
.hero__title .hl::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0.02em;
  height: 6px;
  background: var(--ochre);
  opacity: .35;
  border-radius: 3px;
  z-index: -1;
}

.hero__ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 34px; }

.hero__specs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 44px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
  max-width: 560px;
}
.hero__spec small {
  font-family: var(--font-body);
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .18em;
  color: var(--muted);
  font-weight: 600;
  display: block;
  margin-bottom: 4px;
}
.hero__spec strong {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

/* Hero stage — magazine-cover style photo with overlaid book.
   Aspect matches the 3/2 photo so nothing gets cropped. */
.hero__stage {
  position: relative;
  aspect-ratio: 3 / 4;
  width: 100%;
  max-width: 520px;
  margin-left: auto;
  justify-self: end;
}
.hero__photo {
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-2);
  background: var(--linen-2);
}
.hero__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 55% 40%;
  display: block;
}
/* Warm tone gradient over image for cohesion */
.hero__photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(200deg, transparent 55%, rgba(44,66,88,.12) 100%),
    linear-gradient(20deg, transparent 60%, rgba(154,178,196,.12) 100%);
  pointer-events: none;
}
/* Book cover mock overlaid on the photo, bottom-left */
.hero__overlaybook {
  position: absolute;
  bottom: -30px;
  left: -34px;
  width: 42%;
  aspect-ratio: 3/4;
  border-radius: 4px 8px 8px 4px;
  overflow: hidden;
  box-shadow: var(--shadow-2), inset 0 0 0 1px rgba(0,0,0,.06);
  transform: rotate(-6deg);
  transition: transform .5s var(--ease);
  z-index: 3;
}
.hero__overlaybook:hover { transform: rotate(-3deg) translateY(-4px) scale(1.02); }

/* Photo issue label — like a magazine cover marker */
.hero__issue {
  position: absolute;
  top: 20px; right: 20px;
  z-index: 4;
  background: rgba(44,66,88,.88);
  color: var(--paper-hi);
  padding: 10px 14px;
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: .68rem;
  text-transform: uppercase;
  letter-spacing: .18em;
  font-weight: 600;
  line-height: 1.35;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.hero__issue strong {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  color: var(--ochre);
  font-size: 1.4rem;
  display: block;
  letter-spacing: -0.01em;
  text-transform: none;
  line-height: 1;
  margin-bottom: 2px;
}
@media (max-width: 780px) {
  .hero__overlaybook { width: 46%; left: -18px; bottom: -18px; }
}

/* Photo credit inline caption — used near hero-scale photos */
.photo-credit {
  font-family: var(--font-body);
  font-size: .68rem;
  color: var(--muted);
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-top: 12px;
  opacity: .8;
}
.photo-credit a { color: inherit; border-bottom: 1px solid currentColor; }

/* Scribble annotation over stack */
.hero__scribble {
  position: absolute;
  z-index: 4;
  font-family: var(--font-scribble);
  color: var(--claret);
  font-size: 1.6rem;
  line-height: 1;
  transform: rotate(-4deg);
  pointer-events: none;
}
.hero__scribble--1 { top: -6px; right: 10%; }
.hero__scribble--1::after {
  content: "";
  display: block;
  width: 66px; height: 26px;
  border-bottom: 2px solid var(--claret);
  border-radius: 50%;
  transform: rotate(-14deg) translate(-6px, -6px);
  margin-top: 6px;
  opacity: .8;
}

/* =========================
   BOOK COVER SYSTEM
   -----------------------------------------------------------------------------
   Reusable "book" component. Each cover is a composed layout — a color band,
   an illustrated SVG scene, a hand-set title in Instrument Serif, a colophon.
   ========================= */
.book {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: inherit;
  overflow: hidden;
  background: var(--paper-hi);
  color: var(--ink);
  display: block;
}
.book__spine {
  position: absolute;
  top: 0; bottom: 0; left: 0;
  width: 6px;
  background: linear-gradient(90deg, rgba(0,0,0,.18), rgba(0,0,0,.02));
}
.book__frame {
  position: absolute;
  inset: 14px;
  border: 1px solid currentColor;
  border-radius: 2px;
  opacity: .35;
  pointer-events: none;
}
.book__no {
  position: absolute;
  top: 24px; left: 26px;
  font-family: var(--font-body);
  font-size: .68rem;
  letter-spacing: .24em;
  text-transform: uppercase;
  font-weight: 700;
  opacity: 1;
}
.book__pillar {
  position: absolute;
  top: 24px; right: 26px;
  font-family: var(--font-body);
  font-size: .68rem;
  letter-spacing: .24em;
  text-transform: uppercase;
  font-weight: 700;
  opacity: 1;
}
.book__title {
  position: absolute;
  bottom: 22px; left: 26px; right: 26px;
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.4vw, 1.9rem);
  line-height: 1;
  letter-spacing: -0.015em;
}
.book__title small {
  display: block;
  font-family: var(--font-body);
  font-size: .66rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .22em;
  margin-top: 10px;
  opacity: .85;
}
.book__scene {
  position: absolute;
  inset: 0;
  z-index: 1;
}
.book__scene svg { width: 100%; height: 100%; }

/* Cover color tokens — cool palette (slate / sage / sky), tuned for
   WCAG AA contrast on all title + body text (≥ 4.5:1). */
.book--parade   { background: var(--sage-hi);    color: var(--slate-deep); }  /* soft sage · 10:1 */
.book--feelings { background: var(--sky-hi);     color: var(--slate-deep); }  /* pale sky · 10:1 */
.book--slow     { background: var(--cloud);      color: var(--slate-deep); }  /* cloud grey · 11:1 */
.book--table    { background: var(--slate-deep); color: var(--sky-hi);     }  /* deep slate · 9:1 */
.book--wait     { background: var(--white);      color: var(--slate-deep); }  /* pure white · 12:1 */
.book--share    { background: var(--sage-deep);  color: var(--white);      }  /* deep sage · 7:1 (bumped from mid) */
.book--rhymes   { background: var(--sky-deep);   color: var(--white);      }  /* deep sky · 7:1 (bumped from mid) */
.book--sounds   { background: var(--ink);        color: var(--sage-hi);    }  /* ink · 13:1 (bumped from mid slate) */

/* Small — used inside cards etc */
.book--sm .book__title { font-size: 1.1rem; }
.book--sm .book__frame { inset: 10px; }
.book--sm .book__no, .book--sm .book__pillar { top: 16px; font-size: .58rem; }
.book--sm .book__no { left: 18px; } .book--sm .book__pillar { right: 18px; }
.book--sm .book__title { bottom: 16px; left: 18px; right: 18px; }

/* =========================
   TWO PILLARS
   ========================= */
.pillars {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px;
}
.pillar {
  background: var(--paper-hi);
  border-radius: var(--radius-lg);
  padding: clamp(30px, 4vw, 46px);
  box-shadow: var(--shadow-1);
  border: 1px solid var(--line);
  position: relative;
  overflow: hidden;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.pillar:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); }
.pillar__num {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 3.2rem;
  line-height: 1;
  color: var(--ochre-deep);
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.pillar__num small {
  display: block;
  font-family: var(--font-body);
  font-style: normal;
  font-size: .68rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  margin-top: 6px;
}
.pillar h3 { font-size: clamp(1.5rem, 2.2vw, 1.9rem); }
.pillar ul {
  list-style: none;
  padding: 0;
  margin: 22px 0 0;
}
.pillar li {
  padding: 12px 0;
  border-top: 1px solid var(--line);
  color: var(--ink-2);
  font-size: .95rem;
  display: flex;
  align-items: baseline;
  gap: 14px;
}
.pillar li::before {
  content: "—";
  color: var(--ochre-deep);
  font-family: var(--font-body);
  font-weight: 700;
  flex-shrink: 0;
}
.pillar--sel li::before { color: var(--forest-hi); }
.pillar__foot {
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid var(--line-2);
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
  font-size: .82rem;
  color: var(--muted);
}
.pillar__badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--linen);
  color: var(--ink-2);
  font-family: var(--font-body);
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .06em;
  border: 1px solid var(--line);
}

@media (max-width: 780px) { .pillars { grid-template-columns: 1fr; } }

/* =========================
   EBOOK CATALOG GRID
   ========================= */
.ebooks {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: clamp(20px, 2.4vw, 32px);
}
.ebook {
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform .3s var(--ease);
}
.ebook:hover { transform: translateY(-6px); }
.ebook__cover {
  border-radius: var(--radius);
  box-shadow: var(--shadow-2);
  overflow: hidden;
}
.ebook__meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-family: var(--font-body);
  font-size: .68rem;
  text-transform: uppercase;
  letter-spacing: .2em;
  font-weight: 600;
  color: var(--muted);
  margin-top: 4px;
}
.ebook__title {
  font-family: var(--font-display);
  font-size: 1.32rem;
  line-height: 1.15;
  letter-spacing: -0.012em;
  color: var(--ink);
  margin: 0;
}
.ebook__blurb {
  font-size: .92rem;
  color: var(--ink-2);
  line-height: 1.5;
  margin: 4px 0 0;
}
.ebook__foot {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: 4px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}
.ebook__price {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.ebook__age {
  font-family: var(--font-body);
  font-size: .74rem;
  text-transform: uppercase;
  letter-spacing: .18em;
  color: var(--muted);
  font-weight: 600;
}

/* =========================
   PEEK-INSIDE — photo of a real book, with editorial notes
   ========================= */
.peek {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: clamp(28px, 4vw, 60px);
  align-items: center;
}
.peek__photo {
  position: relative;
  aspect-ratio: 3 / 2;
  border-radius: var(--radius);
  box-shadow: var(--shadow-2);
  overflow: hidden;
  background: var(--paper-hi);
}
.peek__photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 50% 55%;
  display: block;
}
.peek__photo__tag {
  position: absolute;
  bottom: 16px; left: 16px;
  padding: 8px 12px;
  background: rgba(44,66,88,.9);
  color: var(--paper-hi);
  font-family: var(--font-body);
  font-size: .66rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  font-weight: 600;
  border-radius: 4px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.peek__photo__tag em {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--ochre);
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  font-size: .82rem;
  margin-left: 6px;
}
.peek__spread {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--paper-hi);
  border-radius: var(--radius);
  box-shadow: var(--shadow-2);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.peek__page {
  padding: clamp(20px, 3vw, 34px);
  position: relative;
  display: flex;
  flex-direction: column;
}
.peek__page + .peek__page {
  border-left: 1px solid var(--line);
  box-shadow: inset 4px 0 6px -4px rgba(0,0,0,.14);
}
.peek__pageno {
  font-family: var(--font-body);
  font-size: .68rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 12px;
}
.peek__pageno.right { text-align: right; }
.peek__illus {
  aspect-ratio: 4 / 3;
  border-radius: 4px;
  background: var(--blush);
  margin-bottom: 14px;
  position: relative;
  overflow: hidden;
}
.peek__illus svg { width: 100%; height: 100%; display: block; }
.peek__text {
  font-family: var(--font-display);
  font-size: clamp(1rem, 1.4vw, 1.24rem);
  line-height: 1.35;
  color: var(--ink);
}
.peek__text .large {
  font-size: clamp(1.4rem, 2.2vw, 2rem);
  line-height: 1.05;
  font-style: italic;
  color: var(--teal);
  display: block;
  margin-bottom: 10px;
}
.peek__caregiver {
  margin-top: auto;
  padding: 14px 16px;
  background: var(--linen-2);
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: .78rem;
  line-height: 1.45;
  color: var(--ink-2);
  border-left: 3px solid var(--ochre);
}
.peek__caregiver strong {
  display: block;
  font-size: .66rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
  font-weight: 700;
}

/* Right side — annotation legend */
.peek__notes { display: flex; flex-direction: column; gap: 20px; }
.peek__note {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.peek__note__num {
  flex-shrink: 0;
  font-family: var(--font-display);
  font-style: italic;
  color: var(--ochre-deep);
  font-size: 1.9rem;
  line-height: 1;
  min-width: 40px;
}
.peek__note h4 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin: 0 0 4px;
}
.peek__note p {
  margin: 0;
  font-size: .93rem;
  color: var(--ink-2);
  line-height: 1.5;
}
@media (max-width: 900px) {
  .peek { grid-template-columns: 1fr; }
}

/* =========================
   EDITORIAL CIRCLE — one lead editor with photo + 3 credential cards
   ========================= */
.circle {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  gap: 24px;
  align-items: stretch;
}
.person {
  background: var(--paper-hi);
  border-radius: var(--radius);
  padding: 22px;
  border: 1px solid var(--line);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
  display: flex;
  flex-direction: column;
}
.person:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); }
.person__frame {
  aspect-ratio: 4 / 5;
  border-radius: 6px;
  background: var(--linen-2);
  margin-bottom: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  position: relative;
}
.person__frame img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 30% 25%;   /* keep face in the frame, avoid cropping head */
  display: block;
}
.person__frame svg { width: 100%; height: 100%; display: block; }
/* Text-only person cards for reviewers with no photo yet */
.person--text {
  background: transparent;
  border: 1px dashed var(--line-2);
  padding: 26px 24px;
}
.person--text .person__mark {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--ochre-deep);
  font-size: 2.4rem;
  line-height: 1;
  margin-bottom: 14px;
}
@media (max-width: 900px) {
  .circle { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .circle { grid-template-columns: 1fr; }
}
/* Old grid rule override so it doesn't reapply */
.person__name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin: 0 0 4px;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.person__role {
  font-family: var(--font-body);
  font-size: .72rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 12px;
}
.person__quote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: .96rem;
  color: var(--ink-2);
  line-height: 1.4;
  margin: 0;
}

/* =========================
   DAYCARE SPLIT BAND
   ========================= */
.split {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(32px, 5vw, 76px);
  align-items: center;
}
.split__art {
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
  background: var(--paper-hi);
  box-shadow: var(--shadow-2);
  padding: 34px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
/* Photo variant — respects the natural 3/2 aspect so ABC wall stays visible */
.split__art--photo {
  padding: 0;
  aspect-ratio: 3 / 2;
}
.split__art--photo > picture,
.split__art--photo > img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  display: block;
}
.split__art--photo > picture img,
.split__art--photo > img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 35% center;   /* protect the alphabet wall on the LEFT of the photo */
}
.split__art--photo::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(200deg, rgba(78,108,90,.04) 0%, rgba(44,66,88,.35) 45%, rgba(15,22,32,.92) 100%);
  pointer-events: none;
}
.split__art--photo .split__art__mark,
.split__art--photo .split__art__quote,
.split__art--photo .split__art__badge {
  position: relative;
  z-index: 2;
  color: var(--paper-hi);
  padding-left: 32px;
  padding-right: 32px;
}
.split__art--photo .split__art__mark { padding-top: 32px; color: var(--ochre); }
.split__art--photo .split__art__mark small { color: rgba(232,236,240,.86); }
.split__art--photo .split__art__quote { padding-bottom: 32px; }
.split__art--photo .split__art__quote small { color: rgba(232,236,240,.88); }
.split__art--photo .split__art__badge { margin: 32px 32px 0; align-self: flex-start; background: var(--ochre); color: var(--teal-ink); }
.split__art__mark {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--forest);
  font-size: 4.2rem;
  line-height: 1;
}
.split__art__mark small {
  display: block;
  font-family: var(--font-body);
  font-style: normal;
  font-size: .68rem;
  letter-spacing: .24em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--muted);
  margin-top: 12px;
}
.split__art__quote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.15rem, 1.9vw, 1.5rem);
  line-height: 1.28;
  color: var(--ink);
  max-width: 40ch;
}
.split__art__quote small {
  display: block;
  font-family: var(--font-body);
  font-style: normal;
  font-size: .78rem;
  letter-spacing: .12em;
  color: var(--muted);
  margin-top: 14px;
  text-transform: uppercase;
  font-weight: 600;
}
.split__art__badge {
  align-self: flex-start;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--forest);
  color: var(--paper-hi);
  font-family: var(--font-body);
  font-size: .68rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  font-weight: 600;
}
@media (max-width: 780px) { .split { grid-template-columns: 1fr; } }

/* =========================
   FIGURES BAND — stats but editorial
   ========================= */
.figures {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.figure__num {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4vw, 3.2rem);
  color: var(--teal);
  letter-spacing: -0.02em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  display: block;
  margin-bottom: 8px;
}
.figure__label {
  font-family: var(--font-body);
  font-size: .74rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--muted);
}
.section--teal .figures { border-top-color: rgba(255,255,255,.15); }
.section--teal .figure__num { color: var(--ochre); }
.section--teal .figure__label { color: rgba(232,236,240,.82); }
@media (max-width: 720px) { .figures { grid-template-columns: repeat(2, 1fr); } }

/* =========================
   FAQ — editorial
   ========================= */
.faq { max-width: 780px; margin: 0 auto; }
.faq__item {
  border-top: 1px solid var(--line-2);
  padding: 22px 0;
}
.faq__item:last-child { border-bottom: 1px solid var(--line-2); }
.faq__item summary {
  list-style: none;
  cursor: pointer;
  display: flex; align-items: flex-start; justify-content: space-between; gap: 24px;
  font-family: var(--font-display);
  font-size: 1.24rem;
  line-height: 1.2;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "+";
  font-family: var(--font-display);
  color: var(--ochre-deep);
  font-size: 1.6rem;
  line-height: 1;
  transition: transform .25s var(--ease);
  flex-shrink: 0;
}
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__item p { margin: 14px 0 0; color: var(--ink-2); font-size: .98rem; }

/* =========================
   CTA end-of-page
   ========================= */
.finalcta {
  background: var(--teal);
  color: var(--paper-hi);
  border-radius: var(--radius-lg);
  padding: clamp(44px, 6vw, 76px);
  display: grid;
  grid-template-columns: 1.4fr auto;
  gap: 32px;
  align-items: end;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-2);
}
.finalcta h2 { color: var(--paper-hi); margin: 12px 0 16px; max-width: 18ch; }
.finalcta p { color: rgba(232,236,240,.9); max-width: 48ch; }
.finalcta__mark {
  position: absolute;
  right: -60px; bottom: -60px;
  width: 260px; height: 260px;
  border-radius: 50%;
  background: rgba(154,178,196,.12);
  z-index: 0;
}
.finalcta > * { position: relative; z-index: 1; }
@media (max-width: 780px) { .finalcta { grid-template-columns: 1fr; } }

/* =========================
   FOOTER — dense editorial colophon
   ========================= */
.footer {
  background: var(--teal-ink);
  color: rgba(232,236,240,.86);
  padding: clamp(52px, 7vw, 84px) 0 30px;
  margin-top: 60px;
  position: relative;
}
.footer__masthead {
  display: flex; justify-content: space-between; align-items: baseline;
  padding-bottom: 30px;
  border-bottom: 1px solid rgba(232,236,240,.16);
  margin-bottom: 40px;
  gap: 24px; flex-wrap: wrap;
}
.footer__wordmark {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  line-height: 1;
  color: var(--paper-hi);
  letter-spacing: -0.02em;
}
.footer__wordmark em { font-style: italic; color: var(--ochre); }
.footer__mott {
  font-family: var(--font-display);
  font-style: italic;
  color: rgba(232,236,240,.88);
  font-size: 1.05rem;
  max-width: 34ch;
  text-align: right;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 42px;
}
.footer h4 {
  color: var(--paper-hi);
  font-family: var(--font-body);
  font-size: .72rem;
  letter-spacing: .24em;
  text-transform: uppercase;
  margin-bottom: 18px;
  font-weight: 600;
}
.footer a {
  color: rgba(232,236,240,.86);
  font-size: .92rem;
}
.footer a:hover { color: var(--ochre); text-decoration: none; }
.footer__col p { color: rgba(232,236,240,.78); font-size: .9rem; line-height: 1.6; margin: 0; }
.footer__col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex; flex-direction: column; gap: 12px;
}

.footer__colophon {
  margin-top: 46px;
  padding-top: 24px;
  border-top: 1px solid rgba(232,236,240,.16);
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  font-family: var(--font-body);
  font-size: .78rem;
  color: rgba(232,236,240,.72);
  letter-spacing: .04em;
}
.footer__colophon ul { list-style: none; display: flex; gap: 26px; padding: 0; margin: 0; flex-wrap: wrap; }
.footer__colophon strong { color: var(--paper-hi); font-weight: 500; }
@media (max-width: 820px) { .footer__grid { grid-template-columns: 1fr 1fr; } .footer__mott { text-align: left; } }
@media (max-width: 520px) { .footer__grid { grid-template-columns: 1fr; } }

/* =========================
   Page hero (interior pages)
   ========================= */
.pagehero {
  padding: clamp(56px, 8vw, 110px) 0 clamp(30px, 5vw, 60px);
  border-bottom: 1px solid var(--line);
}
.pagehero__crumb {
  font-family: var(--font-body);
  font-size: .74rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 20px;
}
.pagehero__crumb a { color: var(--muted); }
.pagehero h1 { max-width: 20ch; margin-bottom: 24px; }
.pagehero p { max-width: 60ch; font-size: 1.1rem; color: var(--ink-2); }

/* Prose — legal & about */
.prose { max-width: 68ch; margin: 0 auto; font-size: 1.02rem; }
.prose h2 { font-size: 1.75rem; margin-top: 2em; letter-spacing: -0.014em; }
.prose h3 { font-size: 1.24rem; margin-top: 1.6em; }
.prose ul { padding-left: 1.4em; }
.prose li { margin: .5em 0; color: var(--ink-2); }
.prose a { color: var(--teal); border-bottom: 1px solid currentColor; }
.prose a:hover { color: var(--teal-hi); text-decoration: none; }

/* =========================
   Reveal on scroll
   ========================= */
[data-reveal] { opacity: 0; transform: translateY(18px); }
[data-reveal].is-in { opacity: 1; transform: none; transition: opacity .9s var(--ease), transform .9s var(--ease); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  [data-reveal] { opacity: 1; transform: none; }
}

/* Utility */
.center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }
.spread-max { max-width: 700px; }
