/* ============================================================
   Nina Luma Coloring — style.css
   Warm paper palette · three voices · everything rounded
   ============================================================ */

/* ---------- Font faces ---------- */

/* WOFF2 first so modern browsers pull the ~40-60% smaller file; the
   OTF/TTF stays as a fallback for older clients. */

@font-face {
  font-family: "Magnatec";
  src: url("../fonts/Magnatec.woff2") format("woff2"),
       url("../fonts/Magnatec.otf")  format("opentype");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Cute Dino";
  src: url("../fonts/CuteDino.woff2") format("woff2"),
       url("../fonts/CuteDino.otf")  format("opentype");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Glacial Indifference";
  src: url("../fonts/GlacialIndifference-Regular.woff2") format("woff2"),
       url("../fonts/GlacialIndifference-Regular.otf")  format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Glacial Indifference";
  src: url("../fonts/GlacialIndifference-Bold.woff2") format("woff2"),
       url("../fonts/GlacialIndifference-Bold.otf")  format("opentype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Glacial Indifference";
  src: url("../fonts/GlacialIndifference-Italic.woff2") format("woff2"),
       url("../fonts/GlacialIndifference-Italic.otf")  format("opentype");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

/* Nunito fills in weights Glacial Indifference does not ship (300/500/600/800/900). */
@font-face {
  font-family: "Nunito";
  src: url("../fonts/Nunito-VariableFont_wght.woff2") format("woff2-variations"),
       url("../fonts/Nunito-VariableFont_wght.ttf")  format("truetype-variations");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Nunito";
  src: url("../fonts/Nunito-Italic-VariableFont_wght.woff2") format("woff2-variations"),
       url("../fonts/Nunito-Italic-VariableFont_wght.ttf")  format("truetype-variations");
  font-weight: 200 900;
  font-style: italic;
  font-display: swap;
}

/* Fraunces — serif used in modal titles + review quotes. Locally
   hosted (no Google Fonts CDN). Three unicode-range subsets mirror
   Google's slicing so the browser only fetches what it actually
   renders. The variable font handles weights 400-500 in one file. */
@font-face {
  font-family: "Fraunces";
  src: url("../fonts/Fraunces-latin.woff2") format("woff2-variations");
  font-weight: 400 500;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Fraunces";
  src: url("../fonts/Fraunces-latin-ext.woff2") format("woff2-variations");
  font-weight: 400 500;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Fraunces";
  src: url("../fonts/Fraunces-vietnamese.woff2") format("woff2-variations");
  font-weight: 400 500;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}

/* ---------- Design tokens ---------- */

:root {
  /* Brand palette */
  --nl-peach:        #f0b090;
  --nl-peach-soft:   #fde6d8;
  --nl-cream:        #fbf6ed;
  --nl-cream-deep:   #f3e8d6;
  --nl-sage:         #7c9d96;
  --nl-warm-brown:   #8c5f2c;
  --nl-ink:          #1a1a1a;

  --nl-peach-deep:   #d99270;
  /* Darker peach for caps/eyebrows on cream — peach-deep itself only
     hits ~1.7:1 contrast on cream, so caps disappear. This value
     keeps the warm peach character but clears WCAG AA on cream for
     small bold text (~4.6:1). #b06430 measured 4.14 in Lighthouse —
     two ticks darker gets us above the 4.5 threshold. */
  --nl-peach-eyebrow: #9e5828;
  --nl-peach-ghost:  #fff1e6;
  --nl-cream-warm:   #fbe8d0;
  --nl-gold:         #f4d76e;
  --nl-lavender:     #c9b8d4;
  --nl-rose:         #e8a8a0;
  --nl-sage-deep:    #5f7e74;
  --nl-sage-soft:    #d4dfd9;
  --nl-ink-soft:     #4a3f37;
  --nl-line:         #e7d9c2;
  --nl-line-soft:    #efe3cd;

  /* Type families */
  --font-script:    "Magnatec", "Caveat Brush", "Pacifico", cursive;
  --font-playful:   "Cute Dino", "Fredoka", "Baloo 2", system-ui, sans-serif;
  --font-serif:     "Fraunces", "Cormorant Garamond", "Georgia", ui-serif, serif;
  --font-body:      "Glacial Indifference", "Nunito", ui-sans-serif, system-ui, -apple-system, sans-serif;

  /* Type scale (fluid for marketing surfaces).
     Floor (min) protects mobile, ceiling (max) raises with viewport
     so large desktops feel more present without affecting phone sizes. */
  --t-hero:         clamp(34px, 6.0vw, 84px);
  --t-display:      clamp(32px, 5.2vw, 80px);
  --t-title:        clamp(24px, 4.0vw, 64px);
  --t-kicker:       clamp(18px, 1.6vw, 26px);
  --t-eyebrow:      14px;
  --t-body-lg:      22px;
  --t-body:         19px;
  --t-body-sm:      16px;
  --t-meta:         14px;

  --leading-tight:  1.15;
  --leading-snug:   1.3;
  --leading-body:   1.6;
  --leading-loose:  1.75;

  /* Spacing */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;

  /* Radii */
  --r-sm:        10px;
  --r-md:        16px;
  --r-lg:        24px;
  --r-xl:        32px;
  --r-capsule:   999px;

  /* Shadows */
  --shadow-soft:    0 6px 24px -12px rgba(122, 80, 40, 0.18),
                    0 2px 6px -2px rgba(122, 80, 40, 0.06);
  --shadow-card:    0 18px 40px -22px rgba(122, 80, 40, 0.28),
                    0 4px 10px -4px rgba(122, 80, 40, 0.08);
  --shadow-polaroid: 0 22px 38px -22px rgba(60, 35, 10, 0.32),
                     0 4px 10px -4px rgba(60, 35, 10, 0.12);
  --shadow-inset:   inset 0 0 0 1px var(--nl-line);

  /* Motion */
  --ease-cozy:     cubic-bezier(.2, .7, .2, 1);
  --ease-soft-out: cubic-bezier(.16, .84, .44, 1);
  --dur-quick:     160ms;
  --dur-default:   260ms;
  --dur-relaxed:   420ms;

  /* Layout */
  --content-max: 1600px;
  --gutter:      clamp(24px, 4vw, 80px);
}

/* ---------- Reset & defaults ---------- */

*, *::before, *::after { box-sizing: border-box; }

html, body {
  background: var(--nl-cream);
  color: var(--nl-ink);
  font-family: var(--font-body);
  font-size: var(--t-body);
  line-height: var(--leading-body);
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ------------------------------------------------------------------
   Layout reservations for JS-mounted sections
   ------------------------------------------------------------------
   The page renders most sections via main.js after content.json
   loads. Without a placeholder height the body collapses to ~0px
   on first paint and then explodes once JS fills the mount divs
   — Lighthouse measures CLS 1.0+ from that single moment.
   The :empty selector means as soon as JS injects content the
   reservation is dropped automatically. Heights are rough but
   stop the page from jumping. */
#nav-mount:empty           { min-height: 80px; }
#features-mount:empty      { min-height: 280px; }
#magic-mount:empty         { min-height: 900px; }
#watch-mount:empty         { min-height: 700px; }
#featured-mount:empty      { min-height: 1400px; }
#smallgift-mount:empty     { min-height: 520px; }
#calendar-mount:empty      { min-height: 640px; }
#library-mount:empty       { min-height: 1200px; }
#community-mount:empty     { min-height: 600px; }
#reviews-alt-mount:empty   { min-height: 1100px; }
#mood-mount:empty          { min-height: 540px; }
#music-mount:empty         { min-height: 720px; }
#faq-mount:empty           { min-height: 700px; }
#arc-mount:empty           { min-height: 360px; }
#footer-mount:empty        { min-height: 420px; }

html {
  scroll-behavior: smooth;
  /* Reserve scrollbar space always so the page doesn't shift left/right
     when:
       • a modal/lightbox sets body { overflow: hidden } (scrollbar
         vanishes → centred containers jump by half its width)
       • content height crosses the viewport threshold during a resize
         or lazy-image load (Safari with "always show" scrollbars).
     Supported in Safari 16+, Chrome 94+, Firefox 97+. */
  scrollbar-gutter: stable;
}
/* Fallback for browsers without scrollbar-gutter — force the scrollbar
   to always exist, same effect, slightly less elegant on short pages. */
@supports not (scrollbar-gutter: stable) {
  html { overflow-y: scroll; }
}

::selection { background: var(--nl-peach-soft); color: var(--nl-ink); }

img { max-width: 100%; display: block; }

a {
  color: var(--nl-peach-deep);
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
  text-decoration-color: var(--nl-peach);
  transition: color var(--dur-quick) var(--ease-cozy);
}
a:hover { color: var(--nl-ink); text-decoration-color: var(--nl-ink); }

h1 {
  font-family: var(--font-script);
  font-weight: 400;
  color: var(--nl-ink);
  line-height: var(--leading-tight);
  letter-spacing: -.005em;
  margin: 0;
  text-wrap: balance;
  font-size: var(--t-hero);
}
h2, h3 {
  font-family: var(--font-playful);
  font-weight: 400;
  color: var(--nl-ink);
  line-height: var(--leading-tight);
  margin: 0;
  text-wrap: balance;
}
h2 { font-size: var(--t-display); }
h3 { font-size: var(--t-title); }

p {
  font-family: var(--font-body);
  font-size: var(--t-body);
  line-height: var(--leading-body);
  color: var(--nl-ink-soft);
  margin: 0;
  text-wrap: pretty;
  max-width: 60ch;
}

/* ---------- Reusable primitives ---------- */

.nl-container {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.nl-eyebrow {
  font-family: var(--font-body);
  font-size: var(--t-eyebrow);
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--nl-warm-brown);
}

.nl-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: var(--r-capsule);
  background: var(--nl-peach-soft);
  color: var(--nl-peach-deep);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: var(--t-body-sm);
  line-height: 1.2;
  white-space: nowrap;
}
.nl-pill--sage { background: var(--nl-sage-soft); color: var(--nl-sage-deep); }
.nl-pill--ink  { background: var(--nl-ink); color: var(--nl-cream); }

.nl-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: var(--r-capsule);
  border: none;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
  text-decoration: none;
  transition: background var(--dur-quick) var(--ease-cozy),
              transform var(--dur-quick) var(--ease-cozy),
              box-shadow var(--dur-quick) var(--ease-cozy);
}
.nl-btn:active { transform: scale(.98); }
.nl-btn--primary {
  background: var(--nl-peach);
  color: var(--nl-ink);
}
.nl-btn--primary:hover {
  background: var(--nl-peach-deep);
  color: var(--nl-ink);
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 10px 22px -8px rgba(140, 95, 44, 0.30);
}
/* Sage-deep variant — matches the Library modal's "See where to buy"
   button so the Featured "More info" CTA reads as a sibling that
   takes you into the same buying flow, not a standalone action. */
.nl-btn--sage {
  background: var(--nl-sage-deep);
  color: #ffffff;
}
.nl-btn--sage:hover {
  background: #4a655c;
  color: #ffffff;
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 10px 22px -8px rgba(74, 101, 92, 0.45);
}
.nl-btn--outline {
  background: transparent;
  color: var(--nl-ink);
  box-shadow: inset 0 0 0 1.5px var(--nl-ink);
}
.nl-btn--outline:hover {
  background: var(--nl-ink);
  color: var(--nl-cream);
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: inset 0 0 0 1.5px var(--nl-ink),
              0 10px 22px -8px rgba(40, 25, 10, 0.30);
}

/* Small hand-drawn accent base */
.nl-accent {
  position: absolute;
  display: inline-flex;
  pointer-events: none;
}

/* ============================================================
   NavBar — capsule, wordmark on the left
   ============================================================ */

.nl-navbar {
  padding-top: 24px;
}
.nl-navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 12px 14px 12px 26px;
  background: var(--nl-cream);
  border-radius: var(--r-capsule);
  box-shadow: var(--shadow-soft);
}
.nl-navbar__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.nl-navbar__brand img { height: 49px; display: block; }
.nl-navbar__links {
  display: flex;
  gap: 26px;
  align-items: center;
}
.nl-navbar__links a {
  position: relative;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  color: var(--nl-ink);
  text-decoration: none;
  transition: color var(--dur-quick) var(--ease-cozy);
  padding-bottom: 2px;
}
.nl-navbar__links a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0; right: 0;
  height: 2px;
  background: var(--nl-peach);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform var(--dur-default) var(--ease-cozy);
}
.nl-navbar__links a:hover { color: var(--nl-peach-deep); }
.nl-navbar__links a:hover::after { transform: scaleX(1); }
.nl-navbar__cta {
  background: var(--nl-peach);
  color: var(--nl-ink);
  padding: 11px 20px;
  border-radius: var(--r-capsule);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 13px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background var(--dur-quick) var(--ease-cozy);
}
.nl-navbar__cta:hover { background: var(--nl-peach-deep); color: var(--nl-ink); text-decoration: none; }

/* ============================================================
   Hero — inviting opening
   ============================================================ */

.nl-hero {
  margin-top: 32px;
}
.nl-hero__panel {
  position: relative;
  background: linear-gradient(180deg, var(--nl-cream) 0%, var(--nl-cream-warm) 100%);
  border-radius: var(--r-xl);
  padding: 56px 56px 48px;
  overflow: hidden;
  box-shadow: var(--shadow-inset);
}
/* Warm radial light behind the character group — like a soft lamp glow */
.nl-hero__glow {
  position: absolute;
  top: 50%;
  right: 12%;
  transform: translate(40%, -50%);
  width: 620px;
  height: 620px;
  background: radial-gradient(circle, rgba(255, 200, 150, 0.30) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}
.nl-hero__grid { position: relative; z-index: 1; }
.nl-hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}
.nl-hero__copy { max-width: 520px; }
.nl-hero__pill { margin-bottom: 22px; }
/* When the pill carries the wordmark image instead of text, give it
   a tighter padding and let the image set the height. */
.nl-hero__pill--logo {
  padding: 7px 18px;
  background: var(--nl-peach-soft);
}
.nl-hero__pill--logo img {
  height: 18px;
  width: auto;
  display: block;
}
.nl-hero__body {
  font-size: var(--t-body-lg);
  line-height: var(--leading-body);
  color: var(--nl-ink-soft);
  margin-top: 22px;
  max-width: 460px;
}
.nl-hero__actions {
  display: flex;
  gap: 14px;
  margin-top: 30px;
  flex-wrap: wrap;
}
.nl-hero__taglines {
  margin-top: 26px;
  display: flex;
  gap: 18px;
  align-items: center;
  color: var(--nl-warm-brown);
  flex-wrap: wrap;
}
.nl-hero__tagline {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-body);
  font-size: 15px;
}
.nl-hero__tagline svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}
.nl-hero__dot {
  width: 4px;
  height: 4px;
  background: var(--nl-warm-brown);
  border-radius: 99px;
  opacity: .5;
}

.nl-hero__visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 420px;
}
/* Parallax wrapper — JS sets transform on this; never on the img itself
   so the CSS breathing animation can keep running uncontested. */
.nl-hero__char-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  transition: transform 320ms var(--ease-cozy);
  will-change: transform;
}
.nl-hero__char-img {
  width: 100%;
  max-width: 480px;
  height: auto;
  filter: drop-shadow(0 20px 26px rgba(60, 35, 10, .16));
  animation: nl-breathe 5.5s var(--ease-cozy) infinite;
  will-change: transform;
}


.nl-hero__caption-pill,
.nl-hero__release-flag {
  position: absolute;
  background: var(--nl-cream-deep);
  border-radius: var(--r-capsule);
  box-shadow: var(--shadow-soft);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.nl-hero__caption-pill {
  top: 2%;
  left: 0;
  padding: 8px 16px;
  transform: rotate(-3deg);
}
.nl-hero__caption-pill span:last-child {
  font-family: var(--font-playful);
  font-size: 15px;
  color: var(--nl-ink);
}
.nl-hero__caption-pill .nl-icon { color: var(--nl-peach-deep); }

.nl-hero__release-flag {
  bottom: 2%;
  right: -2%;
  padding: 10px 18px 10px 12px;
  box-shadow: var(--shadow-card);
  transform: rotate(3deg);
  gap: 10px;
}
.nl-hero__release-mark {
  width: 30px;
  height: 30px;
  border-radius: var(--r-capsule);
  background: var(--nl-peach);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--nl-ink);
}
.nl-hero__release-flag .nl-hero__release-label {
  font-family: var(--font-body);
  font-size: 11px;
  color: var(--nl-warm-brown);
  text-transform: uppercase;
  letter-spacing: .1em;
  font-weight: 700;
}
.nl-hero__release-flag .nl-hero__release-title {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--nl-ink);
  font-weight: 700;
}

/* Hand-drawn accents inside the hero panel.
   Each accent twinkles on its own offset and reacts to mouse parallax (JS). */
.nl-hero__accent {
  position: absolute;
  pointer-events: none;
  transition: transform 380ms var(--ease-cozy);
  will-change: transform, opacity;
  animation: nl-twinkle 8s var(--ease-cozy) infinite;
}
.nl-hero__accent--flower  { top: 32px;    left: 48px;  color: var(--nl-peach-deep);  --twinkle-base: .7;  animation-delay: 0s;   }
.nl-hero__accent--star    { top: 96px;    right: 64px; color: var(--nl-warm-brown);  --twinkle-base: .5;  animation-delay: 1.6s; }
.nl-hero__accent--heart   { bottom: 56px; left: 64px;  color: var(--nl-peach-deep);  --twinkle-base: .7;  animation-delay: 3.2s; }
.nl-hero__accent--sparkle { bottom: 120px; right: 44px; color: var(--nl-peach-deep); --twinkle-base: .65; animation-delay: 4.8s; }
.nl-hero__accent--paws    { top: 46%;     left: 22px;  color: var(--nl-warm-brown);  --twinkle-base: .42; animation-delay: 6.4s; }

/* Two real paw prints near the headline as a recurring brand motif */
.nl-hero__accent--paw1 {
  top: 18%; left: 42%; color: var(--nl-warm-brown);
  --twinkle-base: .35; animation: none; opacity: .35;
  transform: rotate(8deg);
}
.nl-hero__accent--paw2 {
  bottom: 22%; left: 32%; color: var(--nl-peach-deep);
  --twinkle-base: .32; animation: none; opacity: .32;
  transform: rotate(-12deg);
}
.nl-hero__accent--paw1,
.nl-hero__accent--paw2 {
  transition: transform 600ms var(--ease-cozy), opacity 600ms var(--ease-cozy);
  pointer-events: auto;
}
.nl-hero__accent--paw1:hover { transform: rotate(0deg) scale(1.12); opacity: .55; }
.nl-hero__accent--paw2:hover { transform: rotate(-4deg) scale(1.12); opacity: .55; }

/* ============================================================
   Sparkle system — four-point stars, gold/peach/lavender,
   three sizes, pulses softly. Sprinkled across all sections.
   ============================================================ */
.nl-sparkle {
  position: absolute;
  pointer-events: none;
  opacity: 0;
  animation: nl-sparkle-pulse 4s ease-in-out infinite;
  will-change: transform, opacity;
}
.nl-sparkle--gold     { fill: var(--nl-gold); }
.nl-sparkle--peach    { fill: var(--nl-peach-deep); }
.nl-sparkle--lavender { fill: var(--nl-lavender); }

.nl-sparkle--sm { width: 12px; height: 12px; }
.nl-sparkle--md { width: 18px; height: 18px; }
.nl-sparkle--lg { width: 26px; height: 26px; }

/* Inline variant — sits next to text in eyebrows/headlines */
.nl-sparkle--inline {
  position: static;
  display: inline-block;
  vertical-align: middle;
  margin: 0 6px;
  flex-shrink: 0;
}

@keyframes nl-sparkle-pulse {
  0%, 100% { opacity: 0;   transform: scale(0.6); }
  50%      { opacity: 0.9; transform: scale(1.1); }
}

.nl-sparkle:nth-of-type(2n) { animation-delay: -1.5s; animation-duration: 5s; }
.nl-sparkle:nth-of-type(3n) { animation-delay: -2.8s; animation-duration: 6s; }
.nl-sparkle:nth-of-type(4n) { animation-delay: -0.6s; animation-duration: 3.5s; }
.nl-sparkle:nth-of-type(5n) { animation-delay: -3.2s; animation-duration: 4.5s; }

@media (prefers-reduced-motion: reduce) {
  .nl-sparkle { animation: none; opacity: 0.7; }
}

/* Pause sparkle animations when the tab is hidden — saves CPU on
   visitors who have the page open in a background tab. The class is
   toggled by main.js on the document's visibilitychange event. */
.nl-sparkles-paused .nl-sparkle { animation-play-state: paused; }

/* Sparkle positions per section — absolute relative to section panel */
.nl-hero__sparkle--1 { top: 26%;  left: 6%; }
.nl-hero__sparkle--2 { top: 18%;  left: 38%; }
.nl-hero__sparkle--3 { top: 14%;  right: 38%; }
.nl-hero__sparkle--4 { top: 58%;  right: 32%; }
.nl-hero__sparkle--5 { bottom: 22%; right: 6%; }

.nl-magic__sparkle--1 { top: 14%;  left: 8%; }
.nl-magic__sparkle--2 { top: 22%;  right: 12%; }
.nl-magic__sparkle--3 { top: 8%;   left: 36%; }
.nl-magic__sparkle--4 { top: 8%;   right: 36%; }

.nl-penguin__sparkle--1 { top: 12%; left: 8%; }
.nl-penguin__sparkle--2 { top: 14%; right: 10%; }

.nl-featured__sparkle--1 { top: 20%;   left: 6%; }
.nl-featured__sparkle--2 { bottom: 28%; right: 8%; }

.nl-gift__sparkle--1 { top: 22%;    left: 6%; }
.nl-gift__sparkle--2 { bottom: 28%; right: 8%; }

.nl-calendar__sparkle--1 { top: 18%; left: 10%; }
.nl-calendar__sparkle--2 { top: 28%; right: 12%; }

.nl-library__sparkle--1 { top: 14%; left: 8%; }
.nl-library__sparkle--2 { top: 20%; right: 10%; }

.nl-music-sect__sparkle--1 { top: 18%; left: 10%; }
.nl-music-sect__sparkle--2 { top: 28%; right: 12%; }

.nl-community__sparkle--1 { top: 16%; left: 6%; }
.nl-community__sparkle--2 { bottom: 14%; right: 8%; }

.nl-faq__sparkle--1 { top: 14%; right: 10%; }

/* ---------- Keyframes for the four hero motion layers ---------- */

@keyframes nl-breathe {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-4px); }
}

@keyframes nl-twinkle {
  0%, 86%, 100% { opacity: var(--twinkle-base, .7); }
  91%           { opacity: 1; }
  96%           { opacity: var(--twinkle-base, .7); }
}


/* ============================================================
   Footer — cream-deep band with wordmark, links, socials
   ============================================================ */

.nl-footer {
  background: var(--nl-cream-deep);
  color: var(--nl-ink);
  padding: 80px 0 36px;
  margin-top: 0;
}
.nl-footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px 40px;
}
.nl-footer__brand-col { max-width: 340px; }
.nl-footer__wordmark {
  height: 32px;
  width: auto;
  display: block;
}
.nl-footer__tagline {
  margin: 20px 0 0;
  font-family: var(--font-body);
  font-size: 14px;
  line-height: var(--leading-body);
  color: var(--nl-ink-soft);
  text-wrap: pretty;
  max-width: none;
}
.nl-footer__socials {
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
  display: flex;
  gap: 10px;
}
.nl-footer__social {
  display: inline-flex;
  width: 36px;
  height: 36px;
  border-radius: var(--r-capsule);
  background: var(--nl-cream);
  color: var(--nl-ink);
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: background var(--dur-quick) var(--ease-cozy),
              color var(--dur-quick) var(--ease-cozy),
              transform var(--dur-quick) var(--ease-cozy);
}
.nl-footer__social:hover {
  background: var(--nl-peach);
  color: var(--nl-ink);
  transform: translateY(-2px);
  text-decoration: none;
}
.nl-footer__col-title {
  font-family: var(--font-playful);
  font-size: 18px;
  font-weight: 400;
  color: var(--nl-ink);
  margin: 0 0 14px;
  line-height: 1;
}
.nl-footer__links {
  list-style: none;
  margin: 0;
  padding: 0;
}
.nl-footer__links li { margin-top: 8px; }
.nl-footer__links a {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--nl-ink-soft);
  text-decoration: none;
  transition: color var(--dur-quick) var(--ease-cozy);
}
.nl-footer__links a:hover {
  color: var(--nl-peach-deep);
  text-decoration: none;
}
.nl-footer__bottom {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--nl-line);
}
.nl-footer__copyright {
  text-align: center;
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: 0.04em;
  /* opacity:0.75 removed — it dragged the effective contrast under
     WCAG AA. The warm-brown at full opacity on cream-deep hits ~5:1. */
  color: var(--nl-warm-brown);
  margin: 0;
  max-width: none;
}

@media (max-width: 900px) {
  .nl-footer__grid { grid-template-columns: 1fr 1fr; gap: 36px 32px; }
}
@media (max-width: 560px) {
  .nl-footer { padding: 56px 0 28px; }
  .nl-footer__grid { grid-template-columns: 1fr; gap: 32px; }
  .nl-footer__brand-col { max-width: none; }
}

/* ============================================================
   Lightbox — full-viewport image viewer with prev/next
   ============================================================ */

.nl-lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
}
.nl-lightbox[aria-hidden="false"] {
  display: flex;
  animation: nl-lightbox-fade 220ms var(--ease-soft-out);
}
.nl-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(26, 26, 26, 0.85);
  cursor: zoom-out;
}
.nl-lightbox__figure {
  position: relative;
  margin: 0;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 1;
}
.nl-lightbox__image {
  display: block;
  max-width: 90vw;
  max-height: calc(90vh - 36px);
  object-fit: contain;
  border-radius: var(--r-md);
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.6);
  background: var(--nl-cream);
}
.nl-lightbox__video {
  display: block;
  max-width: 90vw;
  max-height: calc(90vh - 36px);
  border-radius: var(--r-md);
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.6);
  background: var(--nl-cream);
}
.nl-lightbox__video[hidden] { display: none; }
.nl-lightbox__caption {
  margin-top: 14px;
  font-family: var(--font-body);
  font-size: 13px;
  color: rgba(251, 246, 237, 0.7);
  letter-spacing: 0.06em;
  font-variant-numeric: tabular-nums;
}
.nl-lightbox__btn {
  position: absolute;
  z-index: 2;
  width: 48px;
  height: 48px;
  border: none;
  border-radius: var(--r-capsule);
  background: var(--nl-cream);
  color: var(--nl-ink);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 16px -4px rgba(0, 0, 0, 0.4);
  transition: background var(--dur-quick) var(--ease-cozy),
              transform var(--dur-quick) var(--ease-cozy);
}
.nl-lightbox__btn:hover {
  background: var(--nl-peach-soft);
  transform: scale(1.05);
}
.nl-lightbox__close { top: 24px;  right: 24px; }
.nl-lightbox__prev  { left: 24px;  top: 50%; transform: translateY(-50%); }
.nl-lightbox__next  { right: 24px; top: 50%; transform: translateY(-50%); }
/* Hide prev/next on single-item galleries — set by JS when the
   gallery only has one entry (e.g. the featured-video lightbox). */
.nl-lightbox.is-single .nl-lightbox__prev,
.nl-lightbox.is-single .nl-lightbox__next { display: none; }
.nl-lightbox__prev:hover { transform: translateY(-50%) scale(1.05); }
.nl-lightbox__next:hover { transform: translateY(-50%) scale(1.05); }

body.has-lightbox-open { overflow: hidden; }

@keyframes nl-lightbox-fade {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@media (max-width: 640px) {
  .nl-lightbox__close { top: 14px; right: 14px; width: 40px; height: 40px; }
  .nl-lightbox__prev,
  .nl-lightbox__next  { width: 40px; height: 40px; bottom: 24px; top: auto; transform: none; }
  .nl-lightbox__prev:hover,
  .nl-lightbox__next:hover { transform: scale(1.05); }
  .nl-lightbox__prev  { left: calc(50% - 56px); }
  .nl-lightbox__next  { right: calc(50% - 56px); }
}

@media (prefers-reduced-motion: reduce) {
  .nl-lightbox[aria-hidden="false"] { animation: none; }
}

/* ============================================================
   Library Modal — book detail panel with A+ image carousel
   Opens when a polaroid in the library is clicked. The backdrop
   blurs the page behind so the panel feels lifted, ESC closes
   it, arrow keys page through A+ modules.
   ============================================================ */
.nl-modal {
  position: fixed;
  inset: 0;
  z-index: 9500;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.nl-modal[aria-hidden="false"] {
  display: flex;
  animation: nl-modal-fade 260ms var(--ease-soft-out);
}
.nl-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(26, 26, 26, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  cursor: pointer;
}
.nl-modal__panel {
  position: relative;
  z-index: 1;
  background: var(--nl-cream);
  border-radius: var(--r-lg);
  width: 100%;
  max-width: 1040px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.4),
              0 12px 24px -12px rgba(0, 0, 0, 0.2);
  animation: nl-modal-rise 320ms var(--ease-soft-out);
}
.nl-modal__close {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 5;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: var(--r-capsule);
  background: #ffffff;
  color: var(--nl-ink);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: transform var(--dur-quick) var(--ease-cozy),
              background var(--dur-quick) var(--ease-cozy);
}
.nl-modal__close:hover {
  background: var(--nl-peach-soft);
  transform: rotate(90deg);
}
.nl-modal__content {
  padding: 48px;
}
.nl-modal__header {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 40px;
  margin-bottom: 40px;
  align-items: start;
}
/* <picture> is inline by default, which both collapses width:100%
   inner images into a narrow strip AND breaks height:100% inner
   images because the picture wrapper has no height of its own
   (so e.g. the Community polaroids would render their <img>'s at
   intrinsic image height instead of filling the polaroid frame).
   display: contents removes the <picture> box from the layout
   entirely — the <img> behaves as if it were a direct child of
   the polaroid / card / cover-wrap, so all existing image CSS
   keeps working untouched. The <source> element inside <picture>
   stays invisible regardless (browser default). */
picture { display: contents; }

/* The wrap owns the geometry — fixed 1:1 aspect, rounded, shadowed.
   The <img> inside (via display:contents on <picture>) fills it
   completely with object-fit:cover, mirroring .nl-library__cover-wrap. */
.nl-modal__cover-wrap {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--nl-cream-deep);
  box-shadow: var(--shadow-polaroid);
}
.nl-modal__cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.nl-modal__eyebrow {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--nl-peach-deep, #b96a3a);
  margin-bottom: 10px;
}
.nl-modal__title {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(28px, 3.2vw, 40px);
  line-height: var(--leading-tight);
  letter-spacing: -0.01em;
  color: var(--nl-ink);
  margin: 0 0 18px;
  text-wrap: balance;
}
.nl-modal__desc {
  color: var(--nl-ink-soft);
  font-size: var(--t-body);
  line-height: var(--leading-body);
  margin: 0 0 22px;
}
.nl-modal__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--nl-ink-soft);
  margin-bottom: 26px;
}
.nl-modal__meta-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.nl-modal__meta-item + .nl-modal__meta-item::before {
  content: "·";
  color: var(--nl-peach);
  font-weight: 700;
  margin-right: 4px;
}
.nl-modal__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 4px;
}
.nl-modal__cta {
  /* Sage-deep brand accent — Nina Luma's existing teal-green carries
     the primary "See where to buy" call, white text for WCAG-friendly
     contrast (~4.3:1). Hover deepens for a clear interactive cue. */
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--nl-sage-deep);
  color: #ffffff;
  padding: 14px 26px;
  border-radius: var(--r-capsule);
  text-decoration: none;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.02em;
  transition: background var(--dur-quick) var(--ease-cozy),
              transform var(--dur-quick) var(--ease-cozy);
}
.nl-modal__cta:hover {
  background: #4a655c;
  transform: translateY(-2px);
  text-decoration: none;
  color: #ffffff;
}
/* Secondary "outline" CTA — alternate buy options like the
   ring-bound edition at The Great British Bookshop. Transparent fill,
   sage-deep outline; hover fills with sage so it visually matches the
   primary CTA without competing for attention at rest. */
.nl-modal__cta--alt {
  background: transparent;
  color: var(--nl-sage-deep);
  border: 1.5px solid var(--nl-sage-deep);
  padding: 12.5px 24px;
}
.nl-modal__cta--alt:hover {
  background: var(--nl-sage-deep);
  color: #ffffff;
}
.nl-modal__release {
  margin-top: 14px;
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--nl-ink-soft);
}
/* "From £7.99" line right below the buy buttons — quiet, ink-soft */
.nl-modal__price {
  margin-top: 10px;
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--nl-ink-soft);
}

/* Edition chips — let the reader switch between English, Larousse,
   L&PM, Booksmile etc. without leaving the modal. When only one
   edition exists the chip shows the publisher instead of being
   clickable. */
.nl-modal__editions {
  margin: 4px 0 22px;
}
.nl-modal__editions-label {
  margin-bottom: 10px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--nl-ink-soft);
}
.nl-modal__editions-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.nl-modal__edition-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px 8px 12px;
  border: 1.5px solid transparent;
  border-radius: var(--r-capsule);
  background: #ffffff;
  color: var(--nl-ink);
  font-family: var(--font-body);
  font-size: 13px;
  cursor: pointer;
  transition: border-color var(--dur-quick) var(--ease-cozy),
              transform var(--dur-quick) var(--ease-cozy),
              background var(--dur-quick) var(--ease-cozy),
              color var(--dur-quick) var(--ease-cozy);
}
.nl-modal__edition-chip:hover {
  border-color: var(--nl-peach);
  transform: translateY(-1px);
}
.nl-modal__edition-chip.is-active {
  background: var(--nl-ink);
  color: var(--nl-cream);
  border-color: var(--nl-ink);
}
.nl-modal__edition-chip[disabled] {
  cursor: default;
}
.nl-modal__edition-chip[disabled]:hover {
  border-color: transparent;
  transform: none;
}
.nl-modal__edition-flag {
  font-size: 16px;
  line-height: 1;
}
.nl-modal__edition-name {
  font-weight: 600;
}
.nl-modal__edition-publisher {
  color: var(--nl-ink-soft);
  font-size: 12px;
}
.nl-modal__edition-chip.is-active .nl-modal__edition-publisher {
  color: rgba(251, 246, 237, 0.7);
}

/* === A+ Module carousel === */
.nl-aplus {
  border-top: 1px solid rgba(26, 26, 26, 0.08);
  padding-top: 36px;
}
.nl-aplus__header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 22px;
  gap: 16px;
}
.nl-aplus__label {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--nl-peach-deep, #b96a3a);
}
.nl-aplus__counter {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--nl-ink-soft);
  font-variant-numeric: tabular-nums;
}
.nl-aplus__viewer {
  position: relative;
  background: #ffffff;
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: 0 8px 24px -12px rgba(140, 95, 44, 0.25);
}
.nl-aplus__image {
  display: block;
  width: 100%;
  height: auto;
}
.nl-aplus__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 48px;
  height: 48px;
  border: none;
  border-radius: var(--r-capsule);
  background: #ffffff;
  color: var(--nl-ink);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
  transition: background var(--dur-quick) var(--ease-cozy),
              transform var(--dur-quick) var(--ease-cozy);
}
.nl-aplus__nav:hover {
  background: var(--nl-peach);
  color: #ffffff;
  transform: translateY(-50%) scale(1.08);
}
.nl-aplus__nav--prev { left: 16px; }
.nl-aplus__nav--next { right: 16px; }
.nl-aplus__dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 18px;
}
.nl-aplus__dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border: none;
  border-radius: var(--r-capsule);
  background: rgba(26, 26, 26, 0.2);
  cursor: pointer;
  transition: background var(--dur-quick) var(--ease-cozy),
              width var(--dur-quick) var(--ease-cozy);
}
.nl-aplus__dot:hover { background: rgba(26, 26, 26, 0.4); }
.nl-aplus__dot.is-active {
  background: var(--nl-peach);
  width: 28px;
}
.nl-aplus__empty {
  background: #ffffff;
  border-radius: var(--r-md);
  padding: 48px 24px;
  text-align: center;
  color: var(--nl-ink-soft);
  font-family: var(--font-body);
  font-size: 14px;
  box-shadow: 0 8px 24px -12px rgba(140, 95, 44, 0.18);
}
.nl-aplus__empty-title {
  display: block;
  margin-bottom: 8px;
  color: var(--nl-ink);
  font-size: 16px;
  font-weight: 700;
}

body.has-modal-open { overflow: hidden; }

@keyframes nl-modal-fade {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes nl-modal-rise {
  from { opacity: 0; transform: translateY(20px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0)    scale(1);    }
}

/* Stacked layout on smaller viewports — cover above text, content
   padding tightens, A+ nav buttons move into the corners. */
@media (max-width: 760px) {
  .nl-modal { padding: 12px; }
  .nl-modal__content { padding: 28px 20px; }
  .nl-modal__header {
    grid-template-columns: 1fr;
    gap: 24px;
    margin-bottom: 32px;
  }
  .nl-modal__cover-wrap {
    max-width: 240px;
    margin: 0 auto;
  }
  .nl-modal__nav-zone { text-align: center; }
  .nl-modal__title { text-align: center; }
  .nl-modal__eyebrow { text-align: center; }
  .nl-modal__desc { text-align: left; }
  .nl-aplus__nav { width: 40px; height: 40px; font-size: 18px; }
  .nl-aplus__nav--prev { left: 8px; }
  .nl-aplus__nav--next { right: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  .nl-modal[aria-hidden="false"] { animation: none; }
  .nl-modal__panel { animation: none; }
  .nl-aplus__dot.is-active { width: 9px; }
}

/* ============================================================
   Coloring Community — polaroid wall + Facebook banner
   ============================================================ */

.nl-community {
  margin-top: 0;
  position: relative;
  overflow: hidden;
}
.nl-community__inner {
  padding: 88px 0 80px;
  text-align: center;
}
.nl-community__eyebrow { margin: 0; color: var(--nl-warm-brown); }
.nl-community__headline {
  font-family: var(--font-playful);
  font-size: clamp(28px, 5.0vw, 64px);
  line-height: var(--leading-tight);
  color: var(--nl-ink);
  margin: 14px auto 0;
  max-width: 720px;
  text-wrap: balance;
}
.nl-community__body {
  margin: 16px auto 0;
  font-size: var(--t-body-lg);
  color: var(--nl-ink-soft);
  max-width: 520px;
  text-wrap: pretty;
}

/* Polaroid wall — asymmetric rotations + slight aspect variation */
.nl-community__wall {
  margin: 48px auto 0;
  max-width: 1080px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px 24px;
}
.nl-community__polaroid {
  margin: 0;
  background: #ffffff;
  padding: 8px 8px 26px;
  border-radius: 4px;
  box-shadow: var(--shadow-polaroid);
  transition: transform var(--dur-default) var(--ease-cozy);
  aspect-ratio: 1 / 1.18;
  overflow: hidden;
  cursor: zoom-in;
}
.nl-community__polaroid:focus {
  outline: 2px solid var(--nl-peach-deep);
  outline-offset: 4px;
}
.nl-community__polaroid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 2px;
}
.nl-community__polaroid:nth-child(11n+1)  { transform: rotate(-3deg); }
.nl-community__polaroid:nth-child(11n+2)  { transform: rotate( 2deg); margin-top: 12px; }
.nl-community__polaroid:nth-child(11n+3)  { transform: rotate(-2deg); }
.nl-community__polaroid:nth-child(11n+4)  { transform: rotate( 3deg); margin-top: 8px; }
.nl-community__polaroid:nth-child(11n+5)  { transform: rotate( 2deg); margin-top: -4px; }
.nl-community__polaroid:nth-child(11n+6)  { transform: rotate(-1deg); }
.nl-community__polaroid:nth-child(11n+7)  { transform: rotate( 3deg); }
.nl-community__polaroid:nth-child(11n+8)  { transform: rotate(-2deg); margin-top: 16px; }
.nl-community__polaroid:nth-child(11n+9)  { transform: rotate(-3deg); margin-top: -6px; }
.nl-community__polaroid:nth-child(11n+10) { transform: rotate( 1deg); }
.nl-community__polaroid:nth-child(11n+11) { transform: rotate( 2deg); margin-top: 8px; }
.nl-community__polaroid:hover {
  transform: rotate(0deg) scale(1.04);
  z-index: 1;
  box-shadow: 0 28px 50px -22px rgba(60, 35, 10, 0.45),
              0 6px 14px -6px rgba(60, 35, 10, 0.20);
}

/* Facebook group banner with Autumn art + CTA */
.nl-community__banner {
  margin: 56px auto 0;
  max-width: 720px;
  background: var(--nl-cream-deep);
  border-radius: var(--r-lg);
  padding: 20px 28px 24px;
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
  justify-content: center;
  box-shadow: var(--shadow-soft);
}
.nl-community__banner-img {
  width: 140px;
  height: auto;
  border-radius: var(--r-md);
  box-shadow: var(--shadow-soft);
  display: block;
}
.nl-community__cta { flex-shrink: 0; }

@media (max-width: 960px) {
  .nl-community__wall { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 700px) {
  .nl-community__wall { grid-template-columns: repeat(2, 1fr); gap: 24px 16px; }
  .nl-community__inner { padding: 64px 0 56px; }
  .nl-community__banner { padding: 16px 20px 20px; gap: 16px; }
  .nl-community__banner-img { width: 100px; }
}

/* ============================================================
   ARC Team — compact callout above the footer
   ============================================================ */

.nl-arc { margin-top: 0; }
.nl-arc__inner {
  position: relative;
  text-align: center;
  padding: 56px 0 64px;
  max-width: 580px;
}
.nl-arc__sparkle-wrap {
  display: block;
  margin-bottom: 6px;
}
.nl-arc__sparkle-wrap .nl-sparkle {
  position: static;
  display: inline-block;
}
.nl-arc__eyebrow {
  margin: 0;
  color: var(--nl-peach-deep);
}
.nl-arc__headline {
  font-family: var(--font-playful);
  font-size: clamp(24px, 2.8vw, 34px);
  line-height: var(--leading-tight);
  color: var(--nl-ink);
  margin: 10px auto 0;
  max-width: 520px;
  text-wrap: balance;
}
.nl-arc__body {
  margin: 12px auto 0;
  font-size: var(--t-body);
  color: var(--nl-ink-soft);
  max-width: 480px;
  text-wrap: pretty;
}
.nl-arc__cta { margin-top: 22px; }

@media (max-width: 900px) {
  .nl-arc__inner { padding: 48px 0 56px; }
}

@media (prefers-reduced-motion: reduce) {
  .nl-arc__spark { animation: none; }
}

/* ============================================================
   FAQ — accordion of small questions
   Lavender-soft accent backgrounds, native details/summary toggling
   ============================================================ */

.nl-faq { margin-top: 0; }
.nl-faq__band {
  position: relative;
  background: var(--nl-cream);
  padding: 96px 0;
  overflow: hidden;
}
.nl-faq__inner { text-align: center; }
.nl-faq__eyebrow { margin: 0; color: var(--nl-warm-brown); }
.nl-faq__headline {
  font-family: var(--font-playful);
  font-size: clamp(30px, 4.4vw, 68px);
  line-height: var(--leading-tight);
  color: var(--nl-ink);
  margin: 14px auto 0;
  max-width: 720px;
  text-wrap: balance;
}
.nl-faq__body {
  margin: 16px auto 0;
  font-size: var(--t-body-lg);
  color: var(--nl-ink-soft);
  max-width: 520px;
  text-wrap: pretty;
}
.nl-faq__list {
  margin: 48px auto 0;
  max-width: 720px;
  text-align: left;
}
.nl-faq__item {
  background: rgba(201, 184, 212, 0.18);
  border-radius: var(--r-md);
  margin-top: 10px;
  overflow: hidden;
  transition: background var(--dur-quick) var(--ease-cozy);
}
.nl-faq__item:first-child { margin-top: 0; }
.nl-faq__item:hover { background: rgba(201, 184, 212, 0.28); }
.nl-faq__item[open] { background: rgba(201, 184, 212, 0.32); }
.nl-faq__q {
  list-style: none;
  cursor: pointer;
  padding: 18px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 700;
  color: var(--nl-ink);
}
.nl-faq__q::-webkit-details-marker { display: none; }
.nl-faq__q::marker { content: ""; }
.nl-faq__q-text { flex: 1; }
.nl-faq__icon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: var(--r-capsule);
  color: var(--nl-warm-brown);
  background: rgba(255, 255, 255, 0.55);
  transition: background var(--dur-quick) var(--ease-cozy),
              color var(--dur-quick) var(--ease-cozy);
}
.nl-faq__icon--minus { display: none; }
.nl-faq__item[open] .nl-faq__icon--plus { display: none; }
.nl-faq__item[open] .nl-faq__icon--minus { display: inline-flex; }
.nl-faq__item[open] .nl-faq__icon { background: var(--nl-lavender); color: var(--nl-ink); }
.nl-faq__a {
  padding: 0 22px 20px;
  animation: nl-faq-reveal 240ms var(--ease-soft-out);
}
.nl-faq__a p {
  margin: 0 0 12px;
  font-size: var(--t-body);
  color: var(--nl-ink-soft);
  line-height: var(--leading-body);
  max-width: 60ch;
}
.nl-faq__a p:last-child { margin-bottom: 0; }

/* Process-stages mini gallery — sits inside "Are these books
   hand-drawn?" to show Sketch → Refined → Line art → In the book.
   Four cards on desktop, 2×2 on mobile. Each card renders a real
   picture once available, or a soft pastel placeholder labelled
   with the stage name until the artwork lands. */
.nl-faq__stages {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin: 18px 0 4px;
  max-width: 720px;
}
.nl-faq__stage { margin: 0; }
.nl-faq__stage-frame {
  aspect-ratio: 1 / 1;
  background: var(--nl-cream-warm);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 2px rgba(26, 26, 26, 0.06), 0 6px 14px rgba(26, 26, 26, 0.06);
  transition: transform var(--dur-quick) var(--ease-cozy), box-shadow var(--dur-quick) var(--ease-cozy);
}
/* Clickable stage cards open a larger view in the shared lightbox.
   Subtle lift + shadow tells the cursor user "this is interactive"
   without competing with the FAQ text above. */
.nl-faq__stage--clickable {
  cursor: zoom-in;
}
.nl-faq__stage--clickable:hover .nl-faq__stage-frame,
.nl-faq__stage--clickable:focus-visible .nl-faq__stage-frame {
  transform: translateY(-2px);
  box-shadow: 0 2px 4px rgba(26, 26, 26, 0.08), 0 10px 22px rgba(26, 26, 26, 0.12);
}
.nl-faq__stage--clickable:focus-visible {
  outline: none;
}
.nl-faq__stage--clickable:focus-visible .nl-faq__stage-frame {
  outline: 2px solid var(--nl-peach-deep);
  outline-offset: 3px;
}
.nl-faq__stage-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.nl-faq__stage-placeholder {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--nl-warm-brown);
  text-align: center;
  padding: 0 8px;
}
.nl-faq__stage-label {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--nl-peach-deep);
  text-align: center;
  margin-top: 8px;
}

@keyframes nl-faq-reveal {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (max-width: 900px) {
  .nl-faq__band { padding: 64px 0; }
  .nl-faq__q { padding: 16px 18px; font-size: 16px; }
  .nl-faq__a { padding: 0 18px 18px; }
  .nl-faq__stages { grid-template-columns: repeat(2, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  .nl-faq__a { animation: none; }
}

/* ============================================================
   Music — narrative section with a sage wave
   ============================================================ */

.nl-music-sect { margin-top: 0; }
.nl-music-sect__band {
  position: relative;
  /* cream-warm picks up the same rhythm as Reviews above — Mood (cream)
     sits between them, FAQ (cream) follows, Footer (cream-deep) closes. */
  background: var(--nl-cream-warm);
  padding: 96px 0 88px;
  overflow: hidden;
}
.nl-music-sect__inner { text-align: center; }
.nl-music-sect__eyebrow {
  color: var(--nl-sage-deep);
  margin: 0;
}
.nl-music-sect__headline {
  font-family: var(--font-playful);
  font-size: clamp(30px, 4.4vw, 68px);
  line-height: var(--leading-tight);
  color: var(--nl-ink);
  margin: 14px auto 0;
  max-width: 720px;
  text-wrap: balance;
}
.nl-music-sect__body {
  margin: 18px auto 0;
  font-size: var(--t-body-lg);
  color: var(--nl-ink-soft);
  max-width: 580px;
  text-wrap: pretty;
}
.nl-music-sect__wave {
  width: 100%;
  max-width: 580px;
  height: 56px;
  margin: 32px auto 12px;
  display: block;
  color: var(--nl-sage);
  opacity: 0.55;
}
.nl-music-sect__outro {
  margin: 12px auto 0;
  font-size: var(--t-body-sm);
  color: var(--nl-warm-brown);
  max-width: 520px;
}
.nl-music-sect__actions {
  margin: 32px auto 0;
  display: inline-flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
}

/* Headphone graphic with a transparent click-zone over the central
   play button. The graphic carries the visual weight, the trigger is
   invisible until focused. */
.nl-music-sect__graphic-wrap {
  position: relative;
  display: block;
  max-width: 720px;
  margin: 36px auto 0;
}
.nl-music-sect__graphic {
  width: 100%;
  height: auto;
  display: block;
}
.nl-music-sect__play-trigger {
  position: absolute;
  /* top / left / width / height come from inline style (set per content) */
  transform: translate(-50%, -50%);
  background: transparent;
  border: none;
  cursor: pointer;
  border-radius: 50%;
  padding: 0;
  /* Subtle hover lift — a quiet confirmation that the headphones are
     interactive, without competing with the graphic itself. */
  transition: background var(--dur-quick) var(--ease-cozy);
}
.nl-music-sect__play-trigger:hover {
  background: rgba(255, 255, 255, 0.18);
}
.nl-music-sect__play-trigger:focus-visible {
  outline: 3px solid rgba(217, 133, 85, 0.55);
  outline-offset: 4px;
}

/* Orbiting attention ring — a quiet quarter-arc travels clockwise
   around the play button so people understand the central area is
   clickable, not just decorative artwork. The conic gradient draws
   the bright sweep; the radial mask cuts the centre out so the
   sweep reads as a ring rather than a disc, leaving the headphone
   illustration fully visible underneath. */
.nl-music-sect__play-trigger::before {
  content: "";
  position: absolute;
  /* Sit close to the play button rather than orbit far outside it,
     so the ring reads as belonging to the button. */
  inset: -3%;
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    rgba(255, 255, 255, 0)   0deg,
    rgba(255, 255, 255, 1)   70deg,
    rgba(255, 255, 255, 0.4) 130deg,
    rgba(255, 255, 255, 0)   160deg,
    rgba(255, 255, 255, 0)   360deg
  );
  /* Thicker ring band (50→60% radius) for clearer visibility. */
  -webkit-mask: radial-gradient(circle, transparent 50%, #000 60%);
          mask: radial-gradient(circle, transparent 50%, #000 60%);
  animation: nl-play-orbit 3.6s linear infinite;
  pointer-events: none;
}
.nl-music-sect__play-trigger:hover::before {
  /* Hover: brighter, slightly faster — confirms the click-target. */
  background: conic-gradient(
    from 0deg,
    rgba(255, 255, 255, 0)    0deg,
    rgba(255, 255, 255, 1)    60deg,
    rgba(255, 255, 255, 0.6)  120deg,
    rgba(255, 255, 255, 0)    180deg,
    rgba(255, 255, 255, 0)    360deg
  );
  animation-duration: 2.2s;
}
@keyframes nl-play-orbit {
  to { transform: rotate(360deg); }
}
@media (prefers-reduced-motion: reduce) {
  .nl-music-sect__play-trigger::before {
    animation: none;
    /* Static soft halo when motion is reduced — keeps the affordance
       cue without the rotation. */
    background: radial-gradient(
      circle,
      rgba(255, 255, 255, 0)   58%,
      rgba(255, 255, 255, 0.5) 64%,
      rgba(255, 255, 255, 0)   72%
    );
    -webkit-mask: none;
            mask: none;
  }
}
.nl-music-sect .nl-music-sect__body {
  margin-top: 24px;
}

@media (max-width: 900px) {
  .nl-music-sect__band { padding: 64px 0; }
  .nl-music-sect__wave { height: 44px; }
  .nl-music-sect__graphic-wrap { margin-top: 28px; }
}

/* ============================================================
   Cozy Music Player — floating FAB + modal overlay
   ============================================================ */

/* Floating action button — bottom-right, peach pill */
.nl-music-fab {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 200;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 12px 20px;
  border: none;
  border-radius: var(--r-capsule);
  background: var(--nl-peach);
  color: var(--nl-ink);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 12px 30px -10px rgba(122, 80, 40, 0.35),
              0 2px 6px -2px rgba(122, 80, 40, 0.20);
  transition: background var(--dur-quick) var(--ease-cozy),
              transform var(--dur-quick) var(--ease-cozy),
              box-shadow var(--dur-quick) var(--ease-cozy);
}
.nl-music-fab:hover {
  background: var(--nl-peach-deep);
  transform: translateY(-2px);
  box-shadow: 0 16px 36px -10px rgba(122, 80, 40, 0.45),
              0 4px 10px -2px rgba(122, 80, 40, 0.25);
}
.nl-music-fab:active { transform: translateY(0); }
.nl-music-fab__icon { font-size: 16px; line-height: 1; }
.nl-music-fab__text { letter-spacing: 0.005em; }

/* Floating dock — pinned to the bottom of the viewport, NOT a modal.
   Lives outside #app so position:fixed is always anchored to the
   viewport. Stays visible while the user scrolls and clicks.
   The translate3d + backface-visibility combo forces a dedicated
   GPU compositor layer in Safari, which fixes the fixed-positioning
   jitter we'd otherwise see during scroll. */
.nl-music-modal {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  max-width: 460px;
  margin: 0 auto;
  z-index: 9000;
  background: var(--nl-cream);
  border-radius: var(--r-lg);
  box-shadow: 0 -2px 8px -2px rgba(40, 25, 10, 0.10),
              0 18px 40px -16px rgba(40, 25, 10, 0.30),
              0 6px 12px -4px rgba(40, 25, 10, 0.18);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate3d(0, 16px, 0);
  transition: opacity 280ms var(--ease-cozy),
              transform 280ms var(--ease-cozy),
              visibility 0s linear 280ms;
  overflow: hidden;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  will-change: transform, opacity;
}
.nl-music-modal[aria-hidden="false"] {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate3d(0, 0, 0);
  transition: opacity 280ms var(--ease-cozy),
              transform 280ms var(--ease-cozy),
              visibility 0s linear 0s;
}
/* Backdrop is unused in dock mode */
.nl-music-modal__backdrop { display: none; }
.nl-music-modal__dialog {
  position: relative;
  width: 100%;
  background: transparent;
  border-radius: 0;
  padding: 12px 14px 14px;
  box-shadow: none;
  display: flex;
  flex-direction: column;
}
.nl-music-modal__close {
  position: absolute;
  top: 6px;
  right: 8px;
  width: 30px;
  height: 30px;
  border: none;
  border-radius: var(--r-capsule);
  background: transparent;
  color: var(--nl-warm-brown);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background var(--dur-quick) var(--ease-cozy),
              color var(--dur-quick) var(--ease-cozy);
}
.nl-music-modal__close:hover {
  background: var(--nl-peach-soft);
  color: var(--nl-ink);
}
.nl-music-modal__header {
  padding-right: 40px;
  margin-bottom: 8px;
}
.nl-music-modal__title {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--nl-ink);
  margin: 0;
}
.nl-music-modal__caption {
  margin: 2px 0 0;
  font-size: 11px;
  color: var(--nl-warm-brown);
}
.nl-music-modal__frame {
  position: relative;
  width: 100%;
  height: 220px;
  background: var(--nl-cream-deep);
  border-radius: var(--r-sm);
  overflow: hidden;
}

/* Custom HTML5 audio player inside the dock */
.nl-music-player {
  padding: 12px 14px 16px;
  background: var(--nl-cream-deep);
  border-radius: var(--r-sm);
}
.nl-music-player__audio { display: none; }
.nl-music-player__main {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.nl-music-player__cover {
  width: 46px;
  height: 46px;
  border-radius: var(--r-sm);
  object-fit: cover;
  background: var(--nl-cream);
  box-shadow: 0 4px 8px -2px rgba(60, 35, 10, 0.25);
  flex-shrink: 0;
  display: block;
}
.nl-music-player__info {
  flex: 1;
  min-width: 0;
}
.nl-music-player__track-title {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  color: var(--nl-ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.nl-music-player__times {
  font-family: var(--font-body);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  color: var(--nl-warm-brown);
  margin-top: 2px;
}
.nl-music-player__sep { margin: 0 2px; opacity: 0.6; }
.nl-music-player__controls {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}
.nl-music-player__btn {
  width: 30px;
  height: 30px;
  border: none;
  border-radius: 50%;
  background: var(--nl-cream);
  color: var(--nl-ink);
  cursor: pointer;
  font-size: 15px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background var(--dur-quick) var(--ease-cozy),
              transform var(--dur-quick) var(--ease-cozy);
}
.nl-music-player__btn:hover {
  background: var(--nl-peach-soft);
}
.nl-music-player__btn:active { transform: scale(0.94); }
.nl-music-player__btn--play {
  width: 40px;
  height: 40px;
  background: var(--nl-peach);
  font-size: 13px;
}
.nl-music-player__btn--play:hover {
  background: var(--nl-peach-deep);
  color: var(--nl-ink);
}
.nl-music-player__play-icon {
  display: inline-block;
  line-height: 1;
}
.nl-music-player__seek {
  width: 100%;
  height: 4px;
  appearance: none;
  -webkit-appearance: none;
  background: var(--nl-cream);
  border-radius: 99px;
  outline: none;
  cursor: pointer;
  margin: 0;
}
.nl-music-player__seek::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--nl-peach-deep);
  cursor: pointer;
  border: 2px solid var(--nl-cream);
  box-shadow: 0 1px 3px rgba(40, 25, 10, 0.25);
}
.nl-music-player__seek::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--nl-peach-deep);
  cursor: pointer;
  border: 2px solid var(--nl-cream);
  box-shadow: 0 1px 3px rgba(40, 25, 10, 0.25);
}
.nl-music-modal__iframe {
  border: 0;
  width: 100%;
  height: 100%;
  display: block;
}

/* FAB fades out when dock is open, fades back in when dock closes */
.nl-music-fab.is-hidden {
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
}

/* ============================================================
   Mini-bar — the in-between state. Appears when the full dock
   is closed *while audio is still playing* so the listener
   keeps Prev / Play-Pause / Next + track title within reach.
   Pause (or explicit × ) collapses it back to the FAB.
   ============================================================ */
.nl-music-mini {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 200;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px 8px 8px;
  /* Plain max-width (no 100vw calc) so Safari can't briefly cause a
     sub-pixel horizontal overflow when the mini toggles in/out — the
     resulting horizontal scrollbar flash was shifting the page's
     centred containers. */
  max-width: 420px;
  border-radius: var(--r-capsule);
  background: var(--nl-peach);
  color: var(--nl-ink);
  font-family: var(--font-body);
  cursor: pointer;
  box-shadow: 0 14px 32px -10px rgba(122, 80, 40, 0.40),
              0 2px 6px -2px rgba(122, 80, 40, 0.22);
  /* Compositing hints — keep this element on its own GPU layer so
     visibility / transform changes don't trigger a layout reflow of
     the page underneath. */
  transform: translate3d(0, 0, 0);
  will-change: opacity, transform;
  contain: layout paint;
  transition: opacity var(--dur-quick) var(--ease-cozy),
              transform var(--dur-quick) var(--ease-cozy);
}
.nl-music-mini[aria-hidden="true"] {
  opacity: 0;
  transform: translate3d(0, 20px, 0);
  pointer-events: none;
}
.nl-music-mini__btn {
  appearance: none;
  border: none;
  background: transparent;
  color: var(--nl-ink);
  font-family: inherit;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background var(--dur-quick) var(--ease-cozy);
}
.nl-music-mini__btn:hover { background: rgba(255, 255, 255, 0.35); }
.nl-music-mini__btn--play {
  background: var(--nl-ink);
  color: var(--nl-cream);
  font-size: 13px;
}
.nl-music-mini__btn--play:hover {
  background: #000;
  color: var(--nl-cream);
}
.nl-music-mini__play-icon { line-height: 1; }
.nl-music-mini__title {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--nl-ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 0 6px;
}
.nl-music-mini__close {
  appearance: none;
  border: none;
  background: transparent;
  color: var(--nl-ink);
  opacity: 0.55;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  flex-shrink: 0;
  transition: opacity var(--dur-quick) var(--ease-cozy),
              background var(--dur-quick) var(--ease-cozy);
}
.nl-music-mini__close:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.35);
}
.nl-music-mini:focus-visible {
  outline: 3px solid var(--nl-peach-deep);
  outline-offset: 3px;
}

@media (max-width: 540px) {
  .nl-music-mini {
    /* On phones, the mini-bar sits centred along the bottom edge so
       it doesn't crowd thumb-zones on the right. */
    left: 12px;
    right: 12px;
    max-width: none;
  }
}

@media (max-width: 600px) {
  .nl-music-fab { bottom: 16px; right: 16px; padding: 10px 16px; font-size: 13px; }
  .nl-music-modal { left: 12px; right: 12px; bottom: 12px; max-width: none; }
}

@media (prefers-reduced-motion: reduce) {
  .nl-music-modal { transition: none; }
  .nl-music-fab { transition: none; }
}

/* ============================================================
   The Library — cover-first gallery of all books
   Cream-warm band, 5-column grid, peach badge pills
   ============================================================ */

.nl-library { margin-top: 0; }
.nl-library__band {
  position: relative;
  background: var(--nl-cream-warm);
  padding: 96px 0;
  overflow: hidden;
}
.nl-library__inner { text-align: center; }
.nl-library__headline {
  font-family: var(--font-playful);
  font-size: clamp(30px, 4.4vw, 68px);
  line-height: var(--leading-tight);
  color: var(--nl-ink);
  margin: 14px auto 0;
  max-width: 720px;
  text-wrap: balance;
}
.nl-library__body {
  margin: 16px auto 0;
  font-size: var(--t-body-lg);
  color: var(--nl-ink-soft);
  max-width: 520px;
  text-wrap: pretty;
}

/* Language filter bar — pill chips, one per language. Auto-selected
   from navigator.language on first load; the user can switch with a
   click. The active chip flips to dark ink, the count badge counts how
   many books exist in that language. */
.nl-library__filter {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin: 36px auto 12px;
  max-width: 720px;
}
.nl-library__filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px 10px 14px;
  border: 2px solid transparent;
  border-radius: var(--r-capsule);
  background: #ffffff;
  color: var(--nl-ink);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color var(--dur-quick) var(--ease-cozy),
              transform var(--dur-quick) var(--ease-cozy),
              background var(--dur-quick) var(--ease-cozy),
              color var(--dur-quick) var(--ease-cozy);
}
.nl-library__filter-chip:hover {
  border-color: var(--nl-peach);
  transform: translateY(-1px);
}
.nl-library__filter-chip.is-active {
  background: var(--nl-ink);
  color: var(--nl-cream);
  border-color: var(--nl-ink);
}
.nl-library__filter-flag {
  font-size: 18px;
  line-height: 1;
}
.nl-library__filter-count {
  margin-left: 4px;
  padding: 2px 8px;
  border-radius: var(--r-capsule);
  background: rgba(0, 0, 0, 0.08);
  font-size: 11px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.nl-library__filter-chip.is-active .nl-library__filter-count {
  background: rgba(251, 246, 237, 0.2);
}
.nl-library__filter-hint {
  margin: 0 auto 28px;
  font-family: var(--font-body);
  font-style: italic;
  font-size: 14px;
  color: var(--nl-ink-soft);
  min-height: 22px;
  max-width: 640px;
  text-wrap: balance;
}

.nl-library__empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 64px 24px;
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.6);
  color: var(--nl-ink-soft);
  font-family: var(--font-body);
}
.nl-library__empty-title {
  display: block;
  margin-bottom: 8px;
  color: var(--nl-ink);
  font-size: 17px;
  font-weight: 700;
}

.nl-library__grid {
  margin-top: 8px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
  text-align: left;
}
/* With exactly 10 cards in a 3-column grid we get 3+3+3+1.
   Center the lonely last card so the row looks intentional. */
.nl-library__card:last-child:nth-child(10) { grid-column: 2; }

/* Each card is its own little polaroid. Cards alternate a subtle
   rotation; on hover they straighten and lift. */
.nl-library__card {
  display: block;
  position: relative;
  background: #ffffff;
  padding: 14px 14px 18px;
  border-radius: 4px;
  box-shadow: 0 8px 20px rgba(140, 95, 44, 0.15);
  text-decoration: none;
  color: inherit;
  transition: transform var(--dur-default) var(--ease-cozy),
              box-shadow var(--dur-default) var(--ease-cozy);
}
.nl-library__card:nth-child(odd)  { transform: rotate(-0.4deg); }
.nl-library__card:nth-child(even) { transform: rotate( 0.5deg); }
.nl-library__card:hover {
  transform: translateY(-6px) rotate(0deg);
  box-shadow: 0 25px 50px rgba(140, 95, 44, 0.30);
  text-decoration: none;
  z-index: 1;
}
.nl-library__cover-wrap {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 2px;
  background: var(--nl-cream-deep);
}
.nl-library__cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--dur-default) var(--ease-cozy);
}
.nl-library__card:hover .nl-library__cover {
  transform: scale(1.03);
}
/* Pills sit on the card itself, above the cover, so they keep an
   even inset from the polaroid frame on both axes. */
.nl-library__pill {
  position: absolute;
  top: 22px;
  left: 22px;
  z-index: 2;
  padding: 5px 10px;
  border-radius: var(--r-capsule);
  background: var(--nl-ink);
  color: var(--nl-cream);
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  box-shadow: var(--shadow-soft);
  white-space: nowrap;
}
.nl-library__pill--new {
  left: auto;
  right: 22px;
  background: var(--nl-peach);
  color: var(--nl-ink);
}
.nl-library__meta {
  margin-top: 12px;
  text-align: center;
  padding: 0 2px;
}
.nl-library__series {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--nl-peach-deep);
  margin-bottom: 4px;
}
.nl-library__title {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  color: var(--nl-ink);
  line-height: 1.3;
  text-wrap: balance;
}

/* On smaller screens go straight to 2 columns — 5+5 stays perfectly
   balanced for 10 books and avoids "lonely last row" problems.
   The centered-last-row override is reset here. */
@media (max-width: 900px) {
  .nl-library__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
  .nl-library__card:last-child:nth-child(10) { grid-column: auto; }
  .nl-library__band { padding: 64px 0; }
}

@media (prefers-reduced-motion: reduce) {
  .nl-library__card,
  .nl-library__card:nth-child(odd),
  .nl-library__card:nth-child(even) { transform: none; }
}

/* ============================================================
   Coloring Calendar — monthly free PDF
   Light cream section with sage accents, image left, text right
   ============================================================ */

.nl-calendar { margin-top: 0; }
.nl-calendar__band {
  position: relative;
  background: var(--nl-cream);
  padding: 96px 0;
  overflow: hidden;
}
/* (sparkles already covered by position:relative above) */
.nl-calendar__inner {
  text-align: center;
}
.nl-calendar__pill { margin: 0; }
a.nl-calendar__pill {
  /* The eyebrow is now a real download link — bump padding for a 44px
     touch target and add hover affordance so it reads as clickable. */
  padding: 12px 22px;
  text-decoration: none;
  cursor: pointer;
  transition: background var(--dur-quick) var(--ease-cozy), transform var(--dur-quick) var(--ease-cozy);
}
a.nl-calendar__pill:hover {
  background: var(--nl-sage);
  color: var(--nl-cream);
  transform: translateY(-1px);
}
a.nl-calendar__pill svg { width: 14px; height: 14px; }
.nl-calendar__headline {
  font-family: var(--font-playful);
  font-size: clamp(30px, 4.4vw, 68px);
  line-height: var(--leading-tight);
  color: var(--nl-ink);
  margin: 20px auto 0;
  max-width: 720px;
  text-wrap: balance;
}
.nl-calendar__body {
  margin: 18px auto 0;
  font-size: var(--t-body-lg);
  color: var(--nl-ink-soft);
  max-width: 520px;
  text-wrap: pretty;
}
.nl-calendar__theme {
  display: block;
  margin-top: 4px;
  color: var(--nl-sage-deep);
  font-style: italic;
  font-weight: 600;
}
.nl-calendar__visual {
  margin: 44px auto 0;
  display: flex;
  justify-content: center;
}
.nl-calendar__image {
  width: 100%;
  max-width: 680px;
  height: auto;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-card);
  transform: rotate(-1.5deg);
  transition: transform 380ms var(--ease-cozy);
  display: block;
}
.nl-calendar__image:hover { transform: rotate(0deg) translateY(-4px); }
/* Anchor wrapping the calendar image — invisible link box, the image
   itself keeps its tilt + hover transform via .nl-calendar__image. */
.nl-calendar__image-link {
  display: inline-block;
  text-decoration: none;
  border-radius: var(--r-lg);
  cursor: pointer;
}
.nl-calendar__image-link:hover { text-decoration: none; }
.nl-calendar__image-link:focus-visible {
  outline: 3px solid var(--nl-peach);
  outline-offset: 6px;
}
.nl-calendar__cta { margin-top: 32px; }
.nl-calendar__microcopy {
  margin: 14px 0 0;
  font-size: 12px;
  color: var(--nl-peach-deep);
  letter-spacing: 0.01em;
}

@media (max-width: 900px) {
  .nl-calendar__band { padding: 64px 0; }
  .nl-calendar__image { max-width: 380px; }
}

/* ============================================================
   A Small Gift — 10 free pages
   Full-bleed sage-green band with the brand's only loud CTA
   ============================================================ */

.nl-gift { margin-top: 0; }
.nl-gift__band {
  position: relative;
  background: var(--nl-sage);
  padding: 96px 0;
  overflow: hidden;
  color: var(--nl-cream);
}
.nl-gift__grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 56px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.nl-gift__copy { max-width: 520px; }
.nl-gift__eyebrow {
  margin: 0;
  color: var(--nl-sage-soft);
}
.nl-gift__headline {
  font-family: var(--font-playful);
  font-size: clamp(28px, 3.6vw, 48px);
  line-height: var(--leading-tight);
  color: var(--nl-cream);
  margin: 14px 0 0;
  text-wrap: balance;
}
.nl-gift__body {
  margin: 18px 0 0;
  font-size: var(--t-body-lg);
  color: rgba(251, 246, 237, 0.88);
  max-width: 500px;
  text-wrap: pretty;
}
.nl-gift__cta {
  margin-top: 28px;
}

/* ------------------------------------------------------------------
   Lava-lamp shimmer on the two "small gift" CTAs (Get the pages /
   Download). A soft cream-gold blob drifts diagonally across each
   button, making it feel inviting without competing with the copy.
   Hover pauses the drift so it doesn't fight the hover-state.
   ------------------------------------------------------------------ */
.nl-gift__cta,
.nl-calendar__cta {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.nl-gift__cta::before,
.nl-calendar__cta::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 60%;
  height: 200%;
  background: radial-gradient(
    ellipse at center,
    rgba(255, 244, 214, 0.6) 0%,
    rgba(255, 244, 214, 0)   70%
  );
  /* soft-light reads warmer on peach than screen does (tested both;
     screen washes the button toward white, soft-light keeps the
     warmth and just lifts the highlight). */
  mix-blend-mode: soft-light;
  pointer-events: none;
  animation: nl-shimmer-drift 6s linear infinite;
  transition: opacity 200ms var(--ease-cozy);
}
/* Offset the Calendar button by -3s so the two shimmers never run
   in lockstep, even if both are on screen together. */
.nl-calendar__cta::before { animation-delay: -3s; }

@keyframes nl-shimmer-drift {
  0%   { transform: translate(-60%, 50%); }
  100% { transform: translate(220%, -50%); }
}

/* Hover: hide the shimmer and stop the animation, so the existing
   hover-state (background deepen + lift + shadow) reads cleanly. */
.nl-gift__cta:hover::before,
.nl-calendar__cta:hover::before {
  animation-play-state: paused;
  opacity: 0;
}

@media (prefers-reduced-motion: reduce) {
  .nl-gift__cta::before,
  .nl-calendar__cta::before { display: none; }
}
.nl-gift__microcopy {
  margin: 14px 0 0;
  font-size: 12px;
  color: rgba(251, 246, 237, 0.7);
  letter-spacing: 0.01em;
}
.nl-gift__visual {
  display: flex;
  justify-content: center;
  align-items: center;
}
.nl-gift__image {
  width: 100%;
  max-width: 600px;
  height: auto;
  filter: drop-shadow(0 22px 32px rgba(40, 60, 50, 0.30));
  transform: rotate(2deg);
  transition: transform 380ms var(--ease-cozy);
}
.nl-gift__image:hover { transform: rotate(0deg) translateY(-4px); }
/* Anchor wrapping the gift image — invisible link box, image keeps
   its tilt + hover transform via .nl-gift__image. */
.nl-gift__image-link {
  display: inline-block;
  text-decoration: none;
  cursor: pointer;
}
.nl-gift__image-link:hover { text-decoration: none; }
.nl-gift__image-link:focus-visible {
  outline: 3px solid var(--nl-cream);
  outline-offset: 6px;
  border-radius: var(--r-md);
}


@media (max-width: 900px) {
  .nl-gift__grid { grid-template-columns: 1fr; gap: 36px; text-align: center; }
  .nl-gift__band { padding: 64px 0; }
  .nl-gift__copy { max-width: none; margin: 0 auto; }
  .nl-gift__body { margin-left: auto; margin-right: auto; }
  .nl-gift__image { max-width: 340px; transform: rotate(2deg); }
}

/* ============================================================
   Featured book — Snuggly Hearts · We Love
   Soft rose-tinted band with a polaroid cover and theme pills
   ============================================================ */

.nl-featured { margin-top: 0; }
.nl-featured__band {
  position: relative;
  background: linear-gradient(180deg, var(--nl-cream) 0%, #faeae3 100%);
  padding: 96px 0;
  overflow: hidden;
}
.nl-featured__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.nl-featured__cover-wrap {
  display: flex;
  justify-content: center;
}
.nl-featured__cover {
  display: inline-block;
  padding: 14px 14px 50px;
  background: #ffffff;
  border-radius: 6px;
  box-shadow: var(--shadow-polaroid);
  transform: rotate(-2deg);
  transition: transform 380ms var(--ease-cozy);
  max-width: 420px;
  cursor: default;
}
.nl-featured__cover:hover { transform: rotate(0deg) translateY(-4px); }
.nl-featured__cover img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 3px;
}

.nl-featured__copy { max-width: 500px; }
.nl-featured__eyebrow {
  margin: 0;
  color: var(--nl-rose);
}
.nl-featured__headline {
  font-family: var(--font-playful);
  font-size: clamp(28px, 5.0vw, 64px);
  line-height: var(--leading-tight);
  color: var(--nl-ink);
  margin: 14px 0 0;
  text-wrap: balance;
}
.nl-featured__body {
  margin: 18px 0 0;
  font-size: var(--t-body-lg);
  color: var(--nl-ink-soft);
  max-width: 500px;
  text-wrap: pretty;
}
.nl-featured__topics {
  margin: 26px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.nl-featured__topic {
  display: inline-flex;
  align-items: center;
  padding: 7px 14px;
  border-radius: var(--r-capsule);
  background: rgba(232, 168, 160, 0.20);
  color: var(--nl-ink-soft);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
}
.nl-featured__cta { margin-top: 28px; }

/* Featured video — sits centred underneath the cover+copy grid in a
   classic polaroid frame (white border, slightly larger gap at the
   bottom for the caption). Source file is roughly square but a touch
   taller than wide; CSS crops to 1:1 with object-position bottom so
   the occasional black bar at the top is sliced off. */
.nl-featured__polaroid {
  margin: 72px auto;
  max-width: 380px;
  padding: 16px 16px 20px;
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(26, 26, 26, 0.06),
              0 18px 40px rgba(26, 26, 26, 0.14);
  /* Slight counter-tilt to the page rhythm — no hover lift per brief. */
  transform: rotate(1.5deg);
  position: relative;
  z-index: 1;
}
.nl-featured__video-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 6px;
  background: var(--nl-cream-deep);
  /* Click opens the video in the lightbox at viewport size. The inner
     <video> has pointer-events:none so native pause/fullscreen don't
     fire — clicks bubble straight to this wrap. */
  cursor: zoom-in;
}
.nl-featured__video-wrap:focus-visible {
  outline: 3px solid var(--nl-peach-eyebrow);
  outline-offset: 4px;
}
.nl-featured__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Cut the small black bar from the top; if a future re-crop changes
     the framing, switch to "center center". */
  object-position: center bottom;
  display: block;
  /* No native pause / fullscreen on click — the video is decorative. */
  pointer-events: none;
}
.nl-featured__video-caption {
  margin: 14px 4px 0;
  font-family: var(--font-serif);
  font-size: 14px;
  line-height: 1.45;
  color: #5a4a3f;
  text-align: center;
  text-wrap: balance;
}
.nl-featured__video-caption a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  opacity: 0.75;
  transition: opacity var(--dur-quick) var(--ease-cozy);
}
.nl-featured__video-caption a:hover { opacity: 1; }

@media (max-width: 760px) {
  .nl-featured__polaroid {
    max-width: 90%;
    margin: 56px auto;
    transform: none;
  }
}


/* Paw trail across the bottom of the section */
.nl-featured__paw {
  position: absolute;
  color: var(--nl-rose);
  opacity: .28;
  transition: opacity 600ms var(--ease-cozy), transform 600ms var(--ease-cozy);
  z-index: 0;
}
.nl-featured__paw svg { width: 100%; height: 100%; display: block; }
.nl-featured__paw--1 { bottom: 32px; left: 6%;  width: 26px; height: 26px; transform: rotate( 12deg); }
.nl-featured__paw--2 { bottom: 14px; left: 14%; width: 22px; height: 22px; transform: rotate( -6deg); }
.nl-featured__paw--3 { bottom: 32px; left: 22%; width: 20px; height: 20px; transform: rotate( 18deg); }
.nl-featured__paw:hover { opacity: .55; }

@media (max-width: 900px) {
  /* Mobile reflow: the CTA sits after the video, so readers feel the
     soundtrack first and only then meet the button. display: contents
     flattens the grid + copy nesting so all siblings live on one
     flex track inside .nl-container, where `order` does the work. */
  .nl-featured .nl-container {
    display: flex;
    flex-direction: column;
    gap: 32px;
  }
  .nl-featured__grid,
  .nl-featured__copy {
    display: contents;
  }
  .nl-featured__cover-wrap { order: 1; }
  .nl-featured__eyebrow    { order: 2; }
  .nl-featured__headline   { order: 3; }
  .nl-featured__body       { order: 4; }
  .nl-featured__topics     { order: 5; }
  .nl-featured__polaroid   { order: 6; margin: 0 auto; transform: none; }
  .nl-featured__cta        { order: 7; align-self: center; margin-top: 0; }

  .nl-featured__band { padding: 64px 0 72px; }
  .nl-featured__cover { max-width: 320px; }
}

/* ============================================================
   Magic Brush — interactive coloring demo
   Full-bleed warm-cream band with reveal canvas
   ============================================================ */

.nl-magic { margin-top: 0; }
.nl-magic__band {
  position: relative;
  background: linear-gradient(180deg, var(--nl-cream-warm) 0%, #f7dfc1 100%);
  padding: 96px 0 88px;
  overflow: hidden;
}
.nl-magic__inner { position: relative; z-index: 1; }
.nl-magic__inner { text-align: center; }
.nl-magic__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: var(--nl-warm-brown);
}
.nl-magic__eyebrow svg { color: var(--nl-gold); }
.nl-magic__headline {
  font-family: var(--font-playful);
  font-size: clamp(28px, 5.0vw, 64px);
  line-height: var(--leading-tight);
  color: var(--nl-ink);
  margin: 12px auto 0;
  max-width: 720px;
  text-wrap: balance;
}
.nl-magic__subhead {
  margin: 14px auto 0;
  max-width: 540px;
  font-size: var(--t-body-lg);
  color: var(--nl-ink-soft);
  text-wrap: balance;
}

.nl-magic__canvas-wrap {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.nl-magic__canvas {
  position: relative;
  width: min(560px, 92vw);
  aspect-ratio: 1 / 1;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 25px 60px -22px rgba(60, 35, 10, 0.32),
              0 8px 20px -8px rgba(140, 95, 44, 0.18);
  /* No tilt: a -0.5deg rotation here used to cause a 4–5px offset
     between the brush-cursor glow (real mouse position) and the
     painted pixel (canvas.getBoundingClientRect() returns the rotated
     axis-aligned bounding box, not the canvas's logical coordinate
     space). A perfectly axis-aligned canvas keeps painting 1:1. */
  user-select: none;
  -webkit-user-select: none;
}
/* BW image and Canvas share the same box exactly — no object-fit on BW
   so that the browser's image rendering matches the canvas drawImage
   pipeline pixel-for-pixel. Both source images are exact squares; the
   canvas container is also an exact square (aspect-ratio: 1/1), so a
   simple fill is the most reliable overlay. */
.nl-magic__bw,
.nl-magic__color {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
.nl-magic__bw {
  pointer-events: none;
  z-index: 1;
}
.nl-magic__color {
  z-index: 2;
  touch-action: none;
}
.nl-magic__hint {
  font-family: var(--font-playful);
  font-size: 15px;
  /* Was warm-brown @ 0.75 opacity — that compounded the dimness on
     cream. Switched to a warm dark brown at full opacity so the
     "Slide over the picture" cue is actually readable. */
  color: #5a4a3f;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.nl-magic__controls {
  margin: 32px auto 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px;
  background: var(--nl-cream);
  border-radius: var(--r-capsule);
  box-shadow: var(--shadow-inset);
  flex-wrap: wrap;
  justify-content: center;
}
.nl-magic__sizes { display: inline-flex; gap: 2px; }
.nl-magic__size,
.nl-magic__btn {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  padding: 9px 16px;
  border-radius: var(--r-capsule);
  border: none;
  background: transparent;
  color: var(--nl-ink-soft);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background var(--dur-quick) var(--ease-cozy),
              color var(--dur-quick) var(--ease-cozy);
}
.nl-magic__size:hover,
.nl-magic__btn:hover {
  background: var(--nl-peach-soft);
  color: var(--nl-ink);
}
.nl-magic__size.is-active {
  background: var(--nl-peach);
  color: var(--nl-ink);
}
.nl-magic__size.is-active:hover { background: var(--nl-peach-deep); }
.nl-magic__sep {
  width: 1px;
  height: 22px;
  background: var(--nl-line);
  margin: 0 4px;
}

.nl-magic__footnote {
  margin: 36px auto 0;
  max-width: 540px;
  font-size: var(--t-body-sm);
  /* Warm dark brown for functional information ("This is page 25
     from…") — needs to read clearly, not as decorative pastel. */
  color: #5a4a3f;
  text-wrap: balance;
}
.nl-magic__cta { margin-top: 24px; }

/* Quiet smooth-scroll link to the library, sits under the footnote */
.nl-magic__library-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  padding: 6px 10px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  /* Was peach-deep — almost invisible on cream. Peach-eyebrow has the
     same warm character but enough contrast to read as a real link. */
  color: var(--nl-peach-eyebrow);
  text-decoration: none;
  border-radius: var(--r-capsule);
  position: relative;
  transition: color var(--dur-quick) var(--ease-cozy);
}
.nl-magic__library-link::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 4px;
  height: 1.5px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform var(--dur-default) var(--ease-cozy);
}
.nl-magic__library-link:hover {
  color: var(--nl-ink);
  text-decoration: none;
}
.nl-magic__library-link:hover::after { transform: scaleX(1); }
.nl-magic__library-link-arrow {
  display: inline-flex;
  align-items: center;
  font-size: 16px;
  transition: transform var(--dur-default) var(--ease-cozy);
}
.nl-magic__library-link:hover .nl-magic__library-link-arrow {
  transform: translateY(2px);
}

/* Library card highlight — applied briefly when the visitor clicks
   "See it in the library" from the Magic Brush footnote. Two seconds
   of warm gold glow, then fades back to normal. */
.nl-library__card.is-highlighted {
  animation: nl-card-highlight 2s var(--ease-cozy);
  z-index: 2;
}
@keyframes nl-card-highlight {
  0%   { box-shadow: 0 8px 20px rgba(140, 95, 44, 0.15); transform: translateY(0) rotate(0); }
  15%  { box-shadow: 0 0 0 6px rgba(244, 215, 110, 0.45),
                     0 16px 40px rgba(140, 95, 44, 0.30); transform: translateY(-4px) rotate(0); }
  85%  { box-shadow: 0 0 0 6px rgba(244, 215, 110, 0.45),
                     0 16px 40px rgba(140, 95, 44, 0.30); transform: translateY(-4px) rotate(0); }
  100% { box-shadow: 0 8px 20px rgba(140, 95, 44, 0.15); transform: translateY(0) rotate(0); }
}
@media (prefers-reduced-motion: reduce) {
  .nl-library__card.is-highlighted {
    animation: none;
    box-shadow: 0 0 0 6px rgba(244, 215, 110, 0.45),
                0 16px 40px rgba(140, 95, 44, 0.30);
  }
}

/* Page-wide brush cursor — radial gold/peach glow follows the mouse */
.nl-brush-cursor {
  position: fixed;
  width: var(--brush-size, 80px);
  height: var(--brush-size, 80px);
  left: -200px;
  top: -200px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle,
    rgba(244, 215, 110, 0.40) 0%,
    rgba(240, 176, 144, 0.20) 40%,
    transparent 70%);
  border: 2px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 0 30px rgba(244, 215, 110, 0.55),
              inset 0 0 20px rgba(255, 255, 255, 0.4);
  opacity: 0;
  transition: width 220ms var(--ease-cozy),
              height 220ms var(--ease-cozy),
              opacity 220ms var(--ease-cozy);
}
/* Hide the native cursor only inside the magic-brush section.
   Inputs (if any land inside the section later) keep a text cursor
   so the user can still type. */
.nl-magic,
.nl-magic * { cursor: none !important; }
.nl-magic input,
.nl-magic textarea,
.nl-magic select { cursor: text !important; }

@media (max-width: 600px) {
  .nl-brush-cursor { display: none; }
  .nl-magic,
  .nl-magic * { cursor: auto !important; }
  .nl-magic__band { padding: 64px 0 56px; }
}

/* ============================================================
   Penguin paperback series — coming-soon trust signal
   Full-bleed cream-deep band with three book cards
   ============================================================ */

.nl-penguin {
  margin-top: 56px;
}
.nl-penguin__band {
  position: relative;
  background: #f7ead4;
  padding: 96px 0;
  overflow: hidden;
}
.nl-penguin__eyebrow {
  color: var(--nl-warm-brown);
  margin: 0;
}
.nl-penguin__headline {
  font-family: var(--font-playful);
  font-size: clamp(24px, 3.1vw, 40px);
  line-height: var(--leading-tight);
  color: var(--nl-ink);
  margin: 12px 0 0;
  white-space: nowrap;
}
@media (max-width: 760px) {
  .nl-penguin__headline {
    white-space: normal;
    text-wrap: balance;
  }
}
.nl-penguin__subheadline {
  margin: 12px 0 0;
  font-size: var(--t-body-lg);
  color: var(--nl-ink-soft);
}
.nl-penguin__cards {
  margin-top: 48px;
  display: grid;
  /* minmax(0, 1fr) prevents the columns from being widened by their
     min-content (which would otherwise let the cover images push the
     grid past the viewport and produce horizontal scroll on narrow
     screens). */
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}
.nl-penguin__card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--nl-cream);
  border-radius: var(--r-lg);
  padding: 20px 20px 24px;
  box-shadow: var(--shadow-card);
  transition: transform var(--dur-default) var(--ease-cozy),
              box-shadow var(--dur-default) var(--ease-cozy);
}

/* Detail-bubble on the first Penguin card — zooms in on the PRH logo
   that's already on the cover. Hand-drawn pin look, not a glass-loupe. */
.nl-penguin__loupe {
  position: absolute;
  top: 8px;
  left: 8px;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background-size: 1300%;
  background-position: 1.2% 2.3%;
  background-repeat: no-repeat;
  background-color: var(--nl-cream);
  border: 2px solid var(--nl-ink);
  box-shadow: 0 6px 16px -4px rgba(40, 25, 10, 0.45),
              0 1px 3px rgba(40, 25, 10, 0.25);
  transform: rotate(-6deg);
  z-index: 3;
  pointer-events: none;
  transition: transform var(--dur-default) var(--ease-cozy);
}
.nl-penguin__card:hover .nl-penguin__loupe {
  transform: rotate(-2deg) scale(1.05);
}

@media (prefers-reduced-motion: reduce) {
  .nl-penguin__loupe { transition: none; }
}
.nl-penguin__card:hover {
  transform: translateY(-6px) rotate(-0.5deg);
  box-shadow: 0 28px 50px -22px rgba(122, 80, 40, 0.38),
              0 6px 14px -6px rgba(122, 80, 40, 0.12);
}
.nl-penguin__cover-frame {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: var(--r-md);
  background: var(--nl-cream-deep);
}
.nl-penguin__cover-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--dur-default) var(--ease-cozy);
}
.nl-penguin__card:hover .nl-penguin__cover-frame img {
  transform: scale(1.02);
}
.nl-penguin__card-title {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 18px;
  line-height: 1.3;
  color: var(--nl-ink);
  margin-top: 18px;
  text-wrap: balance;
}
.nl-penguin__releases {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  font-family: var(--font-body);
  font-size: var(--t-body-sm);
  color: var(--nl-warm-brown);
}
.nl-penguin__releases li { line-height: 1.5; }
.nl-penguin__releases li + li { margin-top: 2px; }
.nl-penguin__releases strong { color: var(--nl-ink); font-weight: 700; }
.nl-penguin__cta {
  margin-top: 22px;
  align-self: flex-start;
  padding: 12px 22px;
  font-size: 14px;
}

.nl-penguin__publishers {
  margin: 36px 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--nl-warm-brown);
  opacity: .85;
  text-wrap: balance;
  max-width: 100%;
}
.nl-penguin__publishers svg {
  width: 15px;
  height: 15px;
}
.nl-penguin__publishers-icon {
  display: inline-flex;
  align-items: center;
  color: var(--nl-warm-brown);
  opacity: .8;
}
.nl-penguin__publisher strong {
  color: var(--nl-ink);
  font-weight: 700;
}
.nl-penguin__publisher-sep {
  display: inline-block;
  margin: 0 8px;
  opacity: .5;
}

/* Tablet & mobile: stack the three cards. Breakpoint at 1024 so that
   iPad Pro 12.9" in portrait (1024 px) also stacks rather than being
   stuck in the 3-column desktop layout. Cards get a max-width so the
   cover image doesn't blow up to full viewport width on roomy tablets. */
@media (max-width: 1024px) {
  .nl-penguin__band { padding: 64px 0; }
  .nl-penguin__cards {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    max-width: 460px;
    margin-left: auto;
    margin-right: auto;
  }
  .nl-penguin__cta {
    align-self: stretch;
    justify-content: center;
  }
  .nl-penguin__publishers {
    flex-wrap: wrap;
    gap: 6px 10px;
    text-align: center;
  }
}

/* ============================================================
   Scroll-reveal — sections lift gently into view as they cross
   the viewport. Cards and list items inside a section follow with
   a small stagger so the eye has something to track. CSS only
   animates transform + opacity (cheap on the GPU).
   ============================================================ */

.nl-reveal {
  opacity: 0;
  transform: translate3d(0, 28px, 0);
  transition: opacity 700ms var(--ease-soft-out),
              transform 700ms var(--ease-soft-out);
  will-change: opacity, transform;
}
.nl-reveal.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

/* Children inside a freshly-revealed section stagger in. CSS only
   needs to know about position-in-list via :nth-child(); main.js
   doesn't have to touch each child. The delays are tiny (60ms apart)
   so it stays calm — readers feel rhythm without noticing it. */
.nl-reveal .nl-library__card,
.nl-reveal .nl-penguin__card,
.nl-reveal .nl-features__item,
.nl-reveal .nl-reviews__item,
.nl-reveal .nl-faq__item,
.nl-reveal .nl-community__polaroid {
  opacity: 0;
  transform: translate3d(0, 18px, 0);
  transition: opacity 600ms var(--ease-soft-out),
              transform 600ms var(--ease-soft-out);
}
.nl-reveal.is-visible .nl-library__card,
.nl-reveal.is-visible .nl-penguin__card,
.nl-reveal.is-visible .nl-features__item,
.nl-reveal.is-visible .nl-reviews__item,
.nl-reveal.is-visible .nl-faq__item,
.nl-reveal.is-visible .nl-community__polaroid {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}
.nl-reveal.is-visible .nl-library__card:nth-child(1),
.nl-reveal.is-visible .nl-penguin__card:nth-child(1),
.nl-reveal.is-visible .nl-features__item:nth-child(1),
.nl-reveal.is-visible .nl-reviews__item:nth-child(1),
.nl-reveal.is-visible .nl-faq__item:nth-child(1),
.nl-reveal.is-visible .nl-community__polaroid:nth-child(1) { transition-delay: 80ms; }
.nl-reveal.is-visible .nl-library__card:nth-child(2),
.nl-reveal.is-visible .nl-penguin__card:nth-child(2),
.nl-reveal.is-visible .nl-features__item:nth-child(2),
.nl-reveal.is-visible .nl-reviews__item:nth-child(2),
.nl-reveal.is-visible .nl-faq__item:nth-child(2),
.nl-reveal.is-visible .nl-community__polaroid:nth-child(2) { transition-delay: 140ms; }
.nl-reveal.is-visible .nl-library__card:nth-child(3),
.nl-reveal.is-visible .nl-penguin__card:nth-child(3),
.nl-reveal.is-visible .nl-features__item:nth-child(3),
.nl-reveal.is-visible .nl-reviews__item:nth-child(3),
.nl-reveal.is-visible .nl-faq__item:nth-child(3),
.nl-reveal.is-visible .nl-community__polaroid:nth-child(3) { transition-delay: 200ms; }
.nl-reveal.is-visible .nl-library__card:nth-child(4),
.nl-reveal.is-visible .nl-faq__item:nth-child(4),
.nl-reveal.is-visible .nl-community__polaroid:nth-child(4) { transition-delay: 260ms; }
.nl-reveal.is-visible .nl-library__card:nth-child(5),
.nl-reveal.is-visible .nl-faq__item:nth-child(5),
.nl-reveal.is-visible .nl-community__polaroid:nth-child(5) { transition-delay: 320ms; }
.nl-reveal.is-visible .nl-library__card:nth-child(6),
.nl-reveal.is-visible .nl-faq__item:nth-child(6),
.nl-reveal.is-visible .nl-community__polaroid:nth-child(6) { transition-delay: 380ms; }
.nl-reveal.is-visible .nl-library__card:nth-child(n+7),
.nl-reveal.is-visible .nl-faq__item:nth-child(n+7),
.nl-reveal.is-visible .nl-community__polaroid:nth-child(n+7) { transition-delay: 440ms; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .nl-reveal,
  .nl-reveal .nl-library__card,
  .nl-reveal .nl-penguin__card,
  .nl-reveal .nl-features__item,
  .nl-reveal .nl-reviews__item,
  .nl-reveal .nl-faq__item,
  .nl-reveal .nl-community__polaroid {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .nl-hero__char-img,
  .nl-hero__accent,
  .nl-hero__char-wrap { transition: none; }
  .nl-penguin__card,
  .nl-penguin__cover-frame img { transition: none; }
}

/* ============================================================
   Responsive collapses
   ============================================================ */

@media (max-width: 980px) {
  .nl-hero__panel { padding: 40px 28px 32px; }
  .nl-hero__grid { grid-template-columns: 1fr; gap: 28px; }
  .nl-hero__visual { min-height: 320px; }
  .nl-navbar__links { display: none; }
}

@media (max-width: 640px) {
  .nl-hero__panel { padding: 32px 20px 28px; border-radius: var(--r-lg); }
  .nl-banner__inner { padding: 16px 18px; }
}

/* ============================================================
   Watch Slowly — short looping video between Magic Brush and
   Features. Container holds a fixed 16:9 box so layout is stable
   while the video lazy-loads.
   ============================================================ */
.nl-watch {
  position: relative;
  padding: 88px 0;
  overflow: hidden;
}
.nl-watch__inner { text-align: center; }
.nl-watch__eyebrow {
  margin: 0 auto 14px;
  color: var(--nl-peach-eyebrow);
}
.nl-watch__headline {
  font-family: var(--font-playful);
  font-size: clamp(30px, 4.4vw, 68px);
  line-height: var(--leading-tight);
  color: var(--nl-ink);
  margin: 0 auto 36px;
  text-wrap: balance;
  max-width: 720px;
}
.nl-watch__frame {
  position: relative;
  margin: 0 auto;
  max-width: 720px;
  aspect-ratio: 1 / 1;
  border-radius: 16px;
  overflow: hidden;
  background: var(--nl-cream-deep);
  box-shadow: 0 8px 24px rgba(140, 95, 44, 0.15);
}
.nl-watch__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.nl-watch__play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.92);
  color: var(--nl-ink);
  font-size: 26px;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--dur-quick) var(--ease-cozy),
              background var(--dur-quick) var(--ease-cozy);
  z-index: 2;
}
.nl-watch__play:hover {
  background: var(--nl-peach);
  color: #ffffff;
  transform: translate(-50%, -50%) scale(1.05);
}
/* Honour the [hidden] attribute even though .nl-watch__play sets
   its own display: inline-flex above. Without this override the
   play button stays visible while autoplay is running. */
.nl-watch__play[hidden] { display: none; }
.nl-watch__play-icon {
  line-height: 1;
  margin-left: 4px; /* optical centering for the triangle glyph */
}
.nl-watch__caption {
  margin: 18px auto 0;
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--nl-peach-deep);
  letter-spacing: 0.01em;
}
.nl-watch__sparkle--1 { top: 18%; left: 8%; }
.nl-watch__sparkle--2 { bottom: 22%; right: 10%; }

@media (max-width: 760px) {
  .nl-watch { padding: 56px 0; }
  .nl-watch__headline { margin-bottom: 24px; }
  .nl-watch__frame { border-radius: 12px; }
  .nl-watch__play { width: 56px; height: 56px; font-size: 20px; }
}

/* ============================================================
   Features section — "Every Snuggly Friends book comes with..."
   Quiet three-promise band between Magic Brush and the Penguin
   banner. No box, no background, just whitespace + icon + label.
   ============================================================ */
.nl-features {
  position: relative;
  padding: 80px 0;
  overflow: hidden;
}
.nl-features__inner { text-align: center; }
.nl-features__eyebrow {
  margin: 0 auto 40px;
  color: var(--nl-peach-eyebrow);
}
.nl-features__list {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
  max-width: 960px;
}
.nl-features__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 0 12px;
}
.nl-features__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--nl-peach-deep);
  line-height: 1;
}
.nl-features__icon svg {
  width: 32px;
  height: 32px;
}
/* Hand-drawn icon variant — the SVG file is tinted via CSS mask, so
   the original black artwork shows up in peach-deep without us having
   to inline 32 KB of path data into main.js. */
.nl-features__icon--note,
.nl-features__icon--butterfly,
.nl-features__icon--star {
  width: 56px;
  height: 56px;
  background-color: var(--nl-peach-deep);
  -webkit-mask-position: center;
          mask-position: center;
  -webkit-mask-size: contain;
          mask-size: contain;
  -webkit-mask-repeat: no-repeat;
          mask-repeat: no-repeat;
}
.nl-features__icon--note      { -webkit-mask-image: url("../images/icons/note.svg");       mask-image: url("../images/icons/note.svg"); }
.nl-features__icon--butterfly { -webkit-mask-image: url("../images/icons/butterfly2.svg"); mask-image: url("../images/icons/butterfly2.svg"); }
.nl-features__icon--star      { -webkit-mask-image: url("../images/icons/star.svg");      mask-image: url("../images/icons/star.svg"); }
.nl-features__label {
  font-family: var(--font-body);
  font-size: var(--t-body-lg);
  font-weight: 600;
  color: var(--nl-ink);
  line-height: 1.4;
  text-wrap: balance;
}
.nl-features__sparkle--1 { top: 18%; left: 8%; }
.nl-features__sparkle--2 { top: 30%; right: 10%; }

/* Clickable note-item — wraps icon + label in a button that toggles
   the music player. Reuses the same lava-lamp shimmer language as
   the "Get the pages" / "Download" CTAs so it reads as a sibling
   interactive surface, not a one-off effect. */
.nl-features__item--clickable {
  /* Override the default item flex — the inner <button> now owns the
     stacking, the <li> just centres it. */
  padding: 0;
  display: flex;
  justify-content: center;
}
.nl-features__btn {
  appearance: none;
  background: transparent;
  border: none;
  cursor: pointer;
  font: inherit;
  color: inherit;
  /* Mirror the original item layout so the visual rhythm with the
     two static items (butterfly, star) stays the same. */
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  border-radius: 16px;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition: transform var(--dur-quick) var(--ease-cozy);
}
.nl-features__btn:hover { transform: scale(1.05); }
.nl-features__btn:focus-visible {
  outline: 3px solid var(--nl-peach-deep);
  outline-offset: 4px;
}
.nl-features__btn::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 60%;
  height: 200%;
  /* Gold instead of cream — the section background is cream, so the
     original cream-on-cream soft-light shimmer (used on the peach
     gift CTAs) was practically invisible here. A warm gold gradient
     reads clearly on cream and ties to the music-note theme. */
  background: radial-gradient(
    ellipse at center,
    rgba(244, 215, 110, 0.55) 0%,
    rgba(244, 215, 110, 0)    65%
  );
  mix-blend-mode: normal;
  pointer-events: none;
  /* Offset by 3s so the soundtrack-note doesn't shimmer in lockstep
     with the gift CTAs further down the page. */
  animation: nl-shimmer-drift 6s linear infinite;
  animation-delay: -3s;
  transition: opacity 200ms var(--ease-cozy);
}
.nl-features__btn:hover::before {
  animation-play-state: paused;
  opacity: 0;
}
/* Playing-state — gold glow gets noticeably brighter and adds a
   gentle 3.5s pulse on top of the drift. Tells the eye "this is
   what's making sound right now" without text or equalizer
   animations. */
.nl-features__item--clickable.is-playing .nl-features__btn::before {
  background: radial-gradient(
    ellipse at center,
    rgba(244, 215, 110, 0.85) 0%,
    rgba(244, 215, 110, 0)    70%
  );
  animation: nl-shimmer-drift 6s linear infinite,
             nl-shimmer-pulse 3.5s ease-in-out infinite;
  animation-delay: -3s, 0s;
}
@keyframes nl-shimmer-pulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.55; }
}
@media (prefers-reduced-motion: reduce) {
  .nl-features__btn { transition: none; }
  .nl-features__btn:hover { transform: none; }
  .nl-features__btn::before { display: none; }
}

@media (max-width: 760px) {
  .nl-features { padding: 56px 0; }
  .nl-features__list {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
    max-width: 360px;
  }
  .nl-features__icon svg { width: 28px; height: 28px; }
  .nl-features__icon--note,
  .nl-features__icon--butterfly,
  .nl-features__icon--star { width: 44px; height: 44px; }
}

/* ============================================================
   Reviews section — three quotes between Community and Music.
   Fraunces serif for the quotes, small caps source line.
   ============================================================ */
.nl-reviews {
  position: relative;
  padding: 96px 0;
  overflow: hidden;
  /* Alternates with Community (cream above) and Mood (cream below)
     to keep the back half of the page breathing in cream / cream-warm. */
  background: var(--nl-cream-warm);
}
.nl-reviews__inner { text-align: center; }
.nl-reviews__eyebrow {
  margin: 0 auto 14px;
  color: var(--nl-peach-eyebrow);
}
.nl-reviews__headline {
  font-family: var(--font-playful);
  font-size: clamp(28px, 5.0vw, 64px);
  line-height: var(--leading-tight);
  color: var(--nl-ink);
  margin: 0 auto 14px;
  text-wrap: balance;
}
.nl-reviews__subhead {
  margin: 0 auto 56px;
  font-family: var(--font-body);
  font-size: var(--t-body-lg);
  color: var(--nl-ink-soft);
  max-width: 540px;
  text-wrap: balance;
}
.nl-reviews__list {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}
/* Each quote sits on its own card — cream tile on the cream-warm
   section background, gentle shadow, generous padding. The lighter
   background lifts the serif quote off the section and gives each
   review its own breathing room. */
.nl-reviews__item {
  margin: 0;
  max-width: 640px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  background: var(--nl-cream);
  padding: 40px 44px 32px;
  border-radius: 14px;
  box-shadow:
    0 1px 2px rgba(26, 26, 26, 0.05),
    0 14px 32px rgba(26, 26, 26, 0.08);
  box-sizing: border-box;
}
.nl-reviews__quote {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 400;
  font-style: italic;
  font-size: clamp(18px, 2.1vw, 26px);
  line-height: 1.45;
  color: var(--nl-ink);
  text-wrap: balance;
  letter-spacing: -0.005em;
}
.nl-reviews__source {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--nl-peach-deep);
}
.nl-reviews__source-link {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur-quick) var(--ease-cozy), color var(--dur-quick) var(--ease-cozy);
}
.nl-reviews__source-link:hover {
  color: var(--nl-warm-brown);
  border-bottom-color: currentColor;
}
.nl-reviews__sparkle--1 { top: 18%; left: 8%; }
.nl-reviews__sparkle--2 { bottom: 22%; right: 10%; }

@media (max-width: 760px) {
  .nl-reviews { padding: 64px 0; }
  .nl-reviews__list { gap: 22px; }
  .nl-reviews__item { padding: 30px 26px 26px; }
  .nl-reviews__subhead { margin-bottom: 40px; }
}

/* ============================================================
   Pull-quote band (index-alt.html only) — full-width sage stripe
   between Magic Brush and Watch Slowly. Uses the same sage tone
   as the "A Small Gift" section so the page reads as alternating
   cream / sage / cream rhythm. Cream quote sits centred, with a
   quieter cream attribution line beneath. No flanking rules —
   the colour band itself does the framing.
   ============================================================ */
.nl-pullquote {
  margin: 0;
  padding: 88px 24px;
  /* Brand sage — visually matches the "A Small Gift" band so the
     page reads as one rhythm. WCAG contrast on cream is ~2.5:1
     which doesn't clear AA for body-sized text; the large italic
     quote is fine, the smaller attribution is a known trade-off
     David made consciously in favour of the visual continuity. */
  background: var(--nl-sage);
  text-align: center;
  color: var(--nl-cream);
}
.nl-pullquote__inner {
  max-width: 780px;
  margin: 0 auto;
}
.nl-pullquote__text {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(22px, 2.6vw, 30px);
  line-height: 1.4;
  color: var(--nl-cream);
  /* Kill <blockquote> browser default margin (1em 40px) so the quote
     spans the full inner container width and centres cleanly. */
  margin: 0;
  padding: 0;
  text-align: center;
  text-wrap: balance;
  letter-spacing: -0.005em;
}
.nl-pullquote__attribution {
  font-family: var(--font-serif);
  font-style: normal;
  font-weight: 400;
  font-size: clamp(15px, 1.4vw, 17px);
  letter-spacing: 0.02em;
  /* opacity 0.82 removed — it dropped the effective cream colour
     enough to fail WCAG AA on sage. Full cream + the slightly
     deeper sage band above keep the text quietly recessive
     without hurting contrast. */
  color: var(--nl-cream);
  /* Explicit centering + full inner-container width — defends against
     any inherited block-level alignment from <aside>/<p> defaults. */
  margin: 16px auto 0;
  text-align: center;
  width: 100%;
}
.nl-pullquote__attribution-link {
  color: inherit;
  text-decoration: none;
  /* Always-visible subtle underline — without the opacity-0.82 above,
     a transparent default underline read as a plain link with no
     visual cue. A low-alpha line keeps it dezent. */
  border-bottom: 1px solid rgba(251, 246, 237, 0.5);
  transition: color var(--dur-quick) var(--ease-cozy),
              border-bottom-color var(--dur-quick) var(--ease-cozy);
}
.nl-pullquote__attribution-link:hover {
  color: #fff;
  border-bottom-color: #fff;
}
@media (max-width: 760px) {
  .nl-pullquote { padding: 64px 20px; }
}

/* ============================================================
   Reviews (alt-page variant) — hero card on top, 2×2 grid of
   smaller cards underneath. Cream-warm section background like
   the live Reviews block; cream tiles lift the quotes off the
   page. No hover effects: these are read, not clicked.
   ============================================================ */
.nl-reviews-alt {
  position: relative;
  padding: 96px 0;
  overflow: hidden;
  background: var(--nl-cream-warm);
}
.nl-reviews-alt__inner { text-align: center; }
.nl-reviews-alt__eyebrow {
  margin: 0 auto 14px;
  color: var(--nl-peach-eyebrow);
}
.nl-reviews-alt__headline {
  font-family: var(--font-playful);
  font-size: clamp(28px, 5.0vw, 64px);
  line-height: var(--leading-tight);
  color: var(--nl-ink);
  margin: 0 auto 56px;
  text-wrap: balance;
}
.nl-reviews-alt__hero {
  margin: 0 auto 36px;
  max-width: 820px;
  background: var(--nl-cream);
  padding: 56px 60px 44px;
  border-radius: 16px;
  box-shadow:
    0 2px 4px rgba(26, 26, 26, 0.05),
    0 22px 48px rgba(26, 26, 26, 0.10);
  box-sizing: border-box;
}
.nl-reviews-alt__hero-quote {
  margin: 0 0 22px;
  font-family: var(--font-serif);
  font-weight: 400;
  font-style: italic;
  font-size: clamp(22px, 2.6vw, 32px);
  line-height: 1.4;
  color: var(--nl-ink);
  text-wrap: balance;
  letter-spacing: -0.005em;
}
.nl-reviews-alt__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 12px;
}
.nl-reviews-alt__item {
  margin: 0;
  background: var(--nl-cream);
  padding: 32px 32px 26px;
  border-radius: 14px;
  box-shadow:
    0 1px 2px rgba(26, 26, 26, 0.05),
    0 14px 32px rgba(26, 26, 26, 0.08);
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-sizing: border-box;
  text-align: left;
}
.nl-reviews-alt__quote {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 400;
  font-style: italic;
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.5;
  color: var(--nl-ink);
  text-wrap: pretty;
}
/* English translation under a non-English quote — Roman (not italic)
   to signal "this is a gloss, not the original", slightly smaller
   and muted so the original retains primary voice. No prefix,
   no quotes — visual placement does the work. */
.nl-reviews-alt__translation {
  margin: -4px 0 0;
  font-family: var(--font-serif);
  font-weight: 400;
  font-style: normal;
  font-size: clamp(14px, 1.3vw, 16px);
  line-height: 1.5;
  color: var(--nl-ink-soft);
  opacity: 0.78;
  text-wrap: pretty;
}
.nl-reviews-alt__source {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--nl-peach-deep);
}
.nl-reviews-alt__source--hero {
  font-size: 13px;
  letter-spacing: 0.16em;
  text-align: center;
}
.nl-reviews-alt__source-link {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur-quick) var(--ease-cozy), color var(--dur-quick) var(--ease-cozy);
}
.nl-reviews-alt__source-link:hover {
  color: var(--nl-warm-brown);
  border-bottom-color: currentColor;
}
@media (max-width: 760px) {
  .nl-reviews-alt { padding: 64px 0; }
  .nl-reviews-alt__headline { margin-bottom: 36px; }
  .nl-reviews-alt__hero { padding: 36px 28px 30px; }
  .nl-reviews-alt__grid { grid-template-columns: 1fr; gap: 16px; }
  .nl-reviews-alt__item { padding: 26px 22px 22px; }
}

/* ============================================================
   Wordmark strip — publishers + press mentions in small caps,
   text only (no logos). Two centred lines sit quietly above
   the footer in index-alt.html.
   ============================================================ */
.nl-wordmarks {
  margin: 0;
  padding: 48px 20px;
  text-align: center;
  background: var(--nl-cream);
}
.nl-wordmarks__line {
  margin: 0 auto;
  max-width: 880px;
  font-family: var(--font-serif);
  font-variant-caps: all-small-caps;
  /* Fallback for browsers that don't render the OpenType small-caps
     feature — same visual rhythm via uppercase + tracking. */
  text-transform: uppercase;
  /* Slightly tighter tracking so words stay readable as units. */
  letter-spacing: 0.03em;
  /* Bumped to 16px and the colour pushed to a darker warm-brown so
     both lines read clearly in daylight on a normal monitor.
     Equal contrast on both lines — no hierarchy implied. */
  font-size: 16px;
  color: #4a3a2f;
  line-height: 1.6;
}
.nl-wordmarks__line + .nl-wordmarks__line { margin-top: 10px; }
@media (max-width: 760px) {
  .nl-wordmarks { padding: 36px 16px; }
  .nl-wordmarks__line { font-size: 14px; letter-spacing: 0.02em; }
}

/* ============================================================
   Mood Shots — a quiet photographic breather between Reviews
   (text-heavy) and Music (audio). Polaroid-style tiles with a
   touch of rotation, larger than the Community polaroids and
   given more breathing room. Aspect-ratio is locked per tile to
   keep layout stable while WebP/JPG lazy-loads in.
   ============================================================ */
.nl-mood {
  padding: 96px 0;
  background: var(--nl-cream);
  position: relative;
}
.nl-mood__inner { text-align: center; }
.nl-mood__eyebrow {
  margin: 0 auto 14px;
  color: var(--nl-peach-eyebrow);
}
.nl-mood__headline {
  font-family: var(--font-playful);
  font-size: clamp(28px, 5.0vw, 64px);
  line-height: var(--leading-tight);
  color: var(--nl-ink);
  margin: 0 auto 56px;
  text-wrap: balance;
  max-width: 880px;
}
.nl-mood__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px;
  justify-items: center;
}
.nl-mood__tile {
  margin: 0;
  background: var(--nl-cream-warm);
  padding: 12px 12px 16px;
  border-radius: 10px;
  box-shadow:
    0 1px 2px rgba(26, 26, 26, 0.06),
    0 12px 28px rgba(26, 26, 26, 0.10);
  transform: rotate(var(--mood-tilt, 0deg));
  transition: transform var(--dur-default) var(--ease-cozy), box-shadow var(--dur-default) var(--ease-cozy);
  max-width: 360px;
  width: 100%;
  overflow: hidden;
}
.nl-mood__tile--clickable { cursor: zoom-in; }
.nl-mood__tile--clickable:focus-visible {
  outline: 2px solid var(--nl-peach-deep);
  outline-offset: 3px;
}
.nl-mood__tile:hover {
  transform: rotate(0deg) translateY(-3px);
  box-shadow:
    0 2px 4px rgba(26, 26, 26, 0.08),
    0 18px 36px rgba(26, 26, 26, 0.14);
}
/* Square image-wrap — aspect-ratio locks the tile to 1:1 regardless
   of the source image's native ratio, object-fit:cover crops to the
   middle so portrait, landscape and square shots all read as one
   consistent grid. */
.nl-mood__image-wrap {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 6px;
}
.nl-mood__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

@media (prefers-reduced-motion: reduce) {
  .nl-mood__tile {
    transform: none;
    transition: none;
  }
  .nl-mood__tile:hover { transform: none; }
}

@media (max-width: 960px) {
  .nl-mood__grid {
    grid-template-columns: repeat(2, 1fr);
    max-width: 760px;
  }
}

@media (max-width: 560px) {
  .nl-mood { padding: 64px 0; }
  .nl-mood__headline { margin-bottom: 36px; }
  .nl-mood__grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    gap: 24px;
  }
  .nl-mood__tile { transform: none; }
}

/* ============================================================
   Sub-pages — shared layout for /impressum/, /privacy/, /about/.
   720 px reading column, generous vertical breathing room,
   Fraunces section heads in peach-deep so they stay quiet but
   present. Body type is Nunito at 17 px with a comfortable line
   height for longer reading.
   ============================================================ */
.nl-subpage {
  background: var(--nl-cream);
  padding: 96px 0 120px;
}
.nl-subpage__inner {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}
/* Small "back to home" link sitting above the eyebrow on every
   sub-page. Brand-logo navigation is the standard cue, but a visible
   secondary link makes the way out unmistakable. */
.nl-subpage__back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 28px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  color: var(--nl-peach-deep);
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: color var(--dur-quick) var(--ease-cozy),
              transform var(--dur-quick) var(--ease-cozy);
}
.nl-subpage__back:hover {
  color: var(--nl-ink);
  transform: translateX(-2px);
}
.nl-subpage__back-arrow {
  display: inline-flex;
  align-items: center;
  font-size: 16px;
  line-height: 1;
}

.nl-subpage__eyebrow {
  margin: 0 0 14px;
  color: var(--nl-peach-deep);
}
.nl-subpage__headline {
  font-family: var(--font-playful);
  font-size: clamp(36px, 5vw, 64px);
  line-height: var(--leading-tight);
  color: var(--nl-ink);
  margin: 0 0 16px;
  text-wrap: balance;
}
.nl-subpage__subtitle {
  font-family: var(--font-body);
  font-size: 17px;
  color: var(--nl-ink-soft);
  margin: 0 0 56px;
  max-width: 560px;
}
.nl-subpage__section {
  margin: 56px 0 0;
}
.nl-subpage__section-title {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 22px;
  color: var(--nl-peach-deep);
  margin: 0 0 14px;
  letter-spacing: -0.005em;
}
.nl-subpage__body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--nl-ink);
}
.nl-subpage__body p { margin: 0 0 16px; }
.nl-subpage__body p:last-child { margin-bottom: 0; }
.nl-subpage__body strong { font-weight: 700; color: var(--nl-ink); }
.nl-subpage__body a {
  color: var(--nl-peach-deep);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.nl-subpage__body a:hover { color: var(--nl-ink); }
.nl-subpage__body ul {
  margin: 0 0 16px;
  padding: 0 0 0 22px;
}
.nl-subpage__body li {
  margin-bottom: 6px;
}
.nl-subpage__address {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--nl-ink);
  font-style: normal;
  margin: 0 0 16px;
}
.nl-subpage__address dt,
.nl-subpage__address dd { display: inline; margin: 0; }
.nl-subpage__contact-list {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.9;
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
}
.nl-subpage__contact-list dt {
  display: inline-block;
  min-width: 80px;
  color: var(--nl-ink-soft);
  font-weight: 700;
}
.nl-subpage__contact-list dd {
  display: inline;
  margin: 0;
}
.nl-subpage__contact-list .row {
  display: flex;
  gap: 16px;
  align-items: baseline;
}
.nl-subpage__contact-list .row strong {
  min-width: 80px;
  color: var(--nl-ink-soft);
  font-weight: 700;
}
.nl-subpage__updated {
  margin: 64px 0 0;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--nl-ink-soft);
  font-style: italic;
}
/* Centred "Home" button at the bottom of legal pages — clear way out
   after a long read, without competing with the body content. */
.nl-subpage__home {
  margin: 56px 0 0;
  text-align: center;
}

/* Separator between the English and German halves of the legal pages.
   Just three em-dashes with wide letter-spacing — quiet visual rest
   without a hard rule across the page. */
.nl-subpage__separator {
  text-align: center;
  margin: 80px 0;
  color: var(--nl-peach-deep);
  letter-spacing: 8px;
  font-family: var(--font-body);
  font-size: 18px;
}

/* About-page specific bits */
.nl-subpage__lead {
  font-family: var(--font-body);
  font-size: 19px;
  line-height: 1.7;
  color: var(--nl-ink);
  margin: 0 0 32px;
  max-width: 620px;
}
.nl-subpage__lead + .nl-subpage__lead { margin-top: -16px; }
.nl-subpage__values {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  margin: 12px 0 0;
}
.nl-subpage__value-title {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 18px;
  color: var(--nl-peach-deep);
  margin: 0 0 8px;
}
.nl-subpage__value-body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--nl-ink);
  margin: 0;
}
.nl-subpage__stay-in-touch {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.nl-subpage__stay-in-touch a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--nl-peach-deep);
  font-weight: 600;
  text-decoration: none;
  font-size: 17px;
}
.nl-subpage__stay-in-touch a:hover { color: var(--nl-ink); }

@media (max-width: 760px) {
  .nl-subpage { padding: 64px 0 80px; }
  .nl-subpage__headline { font-size: clamp(30px, 8vw, 44px); }
  .nl-subpage__values { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .nl-subpage__contact-list .row { flex-direction: column; gap: 2px; }
  .nl-subpage__contact-list .row strong { min-width: 0; }
}

/* ============================================================
   Hero carousel — alternative homepage (index-alt.html).
   Each slide is a self-contained <a> wrapping a <picture>; the
   slide images carry their own typography, so the carousel just
   stacks them, crossfades between them, and rotates every 7 s.
   ============================================================ */
.nl-hero-carousel {
  position: relative;
  width: 100%;
  background: var(--nl-cream);
}
.nl-hero-carousel__track {
  position: relative;
  width: 100%;
  /* Same proportions as the source images (2902 × 1042 ≈ 2.785).
     max-height keeps the slide from eating the whole viewport on
     ultra-wide screens. */
  aspect-ratio: 2902 / 1042;
  max-height: 80vh;
  overflow: hidden;
}
.nl-hero-carousel__slide {
  position: absolute;
  inset: 0;
  display: block;
  text-decoration: none;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 700ms var(--ease-soft-out);
  -webkit-tap-highlight-color: transparent;
}
.nl-hero-carousel__slide.is-active {
  opacity: 1;
  pointer-events: auto;
  z-index: 1;
}
.nl-hero-carousel__slide picture {
  display: block;
  width: 100%;
  height: 100%;
}
.nl-hero-carousel__slide img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}
.nl-hero-carousel__slide:focus-visible {
  outline: 3px solid rgba(217, 133, 85, 0.5);
  outline-offset: -3px;
}

/* Dots — overlay across the bottom of the carousel image so the
   indicator strip doesn't introduce a white band between the hero
   and the section underneath. A soft scrim makes the dots readable
   regardless of which slide is showing. */
.nl-hero-carousel__dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 8px;
  z-index: 3;
  display: flex;
  justify-content: center;
  gap: 12px;
  padding: 0;
  pointer-events: none; /* let clicks fall through except on the dots themselves */
}
.nl-hero-carousel__dot {
  pointer-events: auto;
  position: relative;
  width: 28px;
  height: 6px;
  padding: 0;
  border: none;
  border-radius: var(--r-capsule);
  background: rgba(255, 255, 255, 0.55);
  cursor: pointer;
  overflow: hidden;
  transition: background var(--dur-quick) var(--ease-cozy);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
}
.nl-hero-carousel__dot:hover {
  background: rgba(255, 255, 255, 0.8);
}
.nl-hero-carousel__dot:focus-visible {
  outline: 2px solid var(--nl-peach-deep);
  outline-offset: 3px;
}

/* The active dot adds an inner fill that scales from 0→1 over the
   slide's 4 s lifetime — a quiet hourglass cue that the next slide
   is on its way. Animation pauses when the carousel pauses (hover,
   touch, hidden tab) via the .is-paused modifier on the section. */
.nl-hero-carousel__dot::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--nl-peach-deep);
  border-radius: inherit;
  transform: scaleX(0);
  transform-origin: left center;
}
.nl-hero-carousel__dot.is-active::before {
  animation: nl-hero-dot-fill 4000ms linear forwards;
}
.nl-hero-carousel.is-paused .nl-hero-carousel__dot.is-active::before {
  animation-play-state: paused;
}
@keyframes nl-hero-dot-fill {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}

@media (prefers-reduced-motion: reduce) {
  .nl-hero-carousel__slide { transition: none; }
  /* No fill animation if the visitor asks for less motion. We just
     show the active dot fully filled so they still know which slide
     they're on. */
  .nl-hero-carousel__dot.is-active::before {
    animation: none;
    transform: scaleX(1);
  }
}

/* ============================================================
   Co-Branding · Penguin Random House × Nina Luma
   Preview-only section (lives on index-alt.html). Replaces the
   existing Penguin banner with a logo-pair lockup and three
   release cards. Visual rules follow Penguin's brand guidance:
   cream background only, generous clear-space around the PRH
   logo, no decorations behind it.
   ============================================================ */
/* Background and typography mirror the existing Penguin banner
   (.nl-penguin__band) so the section sits comfortably next to the
   rest of the page. Cream-warm #f7ead4 is light enough for PRH's
   logo-on-pale-background rule. */
.nl-cobrand {
  background: #f7ead4;
  padding: 96px 0;
  text-align: center;
  overflow: hidden;
}
.nl-cobrand__inner {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.nl-cobrand__eyebrow {
  margin: 0 auto;
  color: var(--nl-warm-brown);
}
.nl-cobrand__logos {
  display: flex;
  align-items: center;
  justify-content: center;
  /* Tight lockup — the × glyph hugs each logo, like the Coco Wyo ×
     Penguin example. Still respects PRH clear-space (the × sits in
     transparent space, not against logo content). */
  gap: 16px;
  margin: 28px 0 46px;
}
.nl-cobrand__logo {
  display: block;
  width: auto;
  box-sizing: content-box;
}
/* Equivalent visual weight: both logos at the same x-height. Nina's
   script logo and the PRH wordmark+penguin read as paired rather
   than dominant/secondary at this size. */
/* Coco-Wyo-style ratio: the publisher logo carries the visual weight,
   the studio wordmark sits quietly next to it, the × is prominent. */
.nl-cobrand__logo--nina { height: 36px; }
.nl-cobrand__logo--prh  { height: 70px; margin-left: -8px; }
.nl-cobrand__separator {
  /* Holds the hand-drawn × glyph. Sized via the inner <svg>, so the
     font-size only matters for the mobile fallback "in partnership
     with" label that replaces the glyph in stacked layout. */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--nl-ink-soft);
  line-height: 1;
}
.nl-cobrand__separator-svg {
  /* Quiet connector — ~72% of the Nina Luma wordmark height so the ×
     reads as a tie, not a third partner. Centered via the flex
     parent's align-items: center. */
  width: 26px;
  height: 26px;
  display: block;
}
.nl-cobrand__headline {
  font-family: var(--font-playful);
  font-size: clamp(24px, 3.1vw, 40px);
  color: var(--nl-ink);
  margin: 0 auto 14px;
  line-height: var(--leading-tight);
  /* Keep the long "Snuggly Friends comes to Penguin Random House UK"
     on a single line on desktop — same approach as the live Penguin
     banner. Below the tablet breakpoint we let it wrap, balanced. */
  white-space: nowrap;
}
@media (max-width: 1024px) {
  .nl-cobrand__headline {
    white-space: normal;
    text-wrap: balance;
    max-width: 760px;
  }
}
.nl-cobrand__subtitle {
  font-family: var(--font-body);
  font-size: var(--t-body-lg);
  color: var(--nl-ink-soft);
  margin: 0 auto 48px;
}
/* Cover cards reuse the existing .nl-penguin__cards / __card markup
   and styles so the section sits perfectly inside the Penguin banner
   family — same shadow, same padding, same card title typography,
   same left-aligned Pre-order CTA. The only twist for the co-brand
   section: push each card's CTA to the bottom so the three Pre-order
   buttons line up horizontally even when Traveling carries an extra
   release row. */
.nl-cobrand .nl-penguin__releases { margin-bottom: 22px; }
.nl-cobrand .nl-penguin__cta       { margin-top: auto; }
/* The section-level text-align:center is for header/headline/subtitle.
   Inside each card we want a quiet left-aligned read: title, releases
   and CTA all flush-left. */
.nl-cobrand .nl-penguin__card { text-align: left; }

/* Tablet — slightly smaller logos, narrower gap */
@media (min-width: 769px) and (max-width: 1024px) {
  .nl-cobrand__logos     { gap: 14px; }
  .nl-cobrand__separator-svg { width: 22px; height: 22px; }
  .nl-cobrand__logo--nina { height: 30px; }
  .nl-cobrand__logo--prh  { height: 62px; margin-left: -6px; }
}

/* Mobile — stack logos vertically and swap the × glyph for
   "in partnership with" text. Covers stack into a single column. */
@media (max-width: 768px) {
  .nl-cobrand { padding: 64px 0; }
  .nl-cobrand__logos {
    flex-direction: column;
    gap: 14px;
    margin-bottom: 28px;
  }
  .nl-cobrand__logo--nina { height: 28px; }
  /* On mobile the logos stack vertically, so we don't need the
     horizontal margin compensation. */
  .nl-cobrand__logo--prh  { height: 53px; margin-left: 0; }
  /* Replace the × with explicit "in partnership with"
     text when the logos stack vertically. */
  .nl-cobrand__separator-svg { display: none; }
  .nl-cobrand__separator::before {
    content: "in partnership with";
    font-family: var(--font-body);
    font-size: 13px;
    color: var(--nl-warm-brown);
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
  }
  .nl-cobrand__subtitle { margin-bottom: 32px; }
}

/* ============================================================
   "See alternative version" toggle in the footer — visible on
   both index.html and index-alt.html so David can A/B-compare.
   ============================================================ */
.nl-version-toggle {
  display: block;
  text-align: center;
  margin: 20px 0 0;
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--nl-peach-deep);
  text-decoration: none;
  letter-spacing: 0.02em;
}
.nl-version-toggle:hover {
  color: var(--nl-ink);
  text-decoration: underline;
}
