/* Sparkleberry Forest - design tokens and fonts.
   Fonts: Fraunces and Lora, SIL Open Font License 1.1 (see /fonts/OFL-*.txt), latin subsets from Google Fonts, self-hosted. */
@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-normal-latin.woff2") format("woff2");
  font-weight: 500 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Lora";
  src: url("../fonts/lora-normal-latin.woff2") format("woff2");
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Lora";
  src: url("../fonts/lora-italic-latin.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
/* Metric-adjusted fallbacks reduce layout shift while web fonts load. */
@font-face {
  font-family: "Fraunces Fallback";
  src: local("Georgia");
  size-adjust: 104%;
  ascent-override: 92%;
  descent-override: 24%;
}
@font-face {
  font-family: "Lora Fallback";
  src: local("Georgia");
  size-adjust: 98%;
  ascent-override: 102%;
  descent-override: 28%;
}

:root {
  --midnight: #061b40;
  --midnight-2: #0b2a5c;
  --forest: #123d76;
  --cream: #fff7e8;
  --cream-2: #fbeed4;
  --ice: #eaf4fc;
  --ink: #111d4a;
  --berry: #b90c49;
  --berry-hi: #d01a5c;
  --berry-lo: #960a3b;
  --gold: #d3a64e;
  --gold-light: #f1d58e;
  --red-dark: #901e2c;

  --font-display: "Fraunces", "Fraunces Fallback", Georgia, "Times New Roman", serif;
  --font-body: "Lora", "Lora Fallback", Georgia, "Times New Roman", serif;

  --header-h: 60px;
  --container: 1200px;
  --pad: clamp(20px, 4vw, 48px);
  --section-y: clamp(44px, 7vw, 96px);
  --radius: 18px;
  --focus: var(--ink);
  --ease: 160ms ease;
}
@media (min-width: 1024px) {
  :root { --header-h: 72px; }
}

/* Base, typography, shared components */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  line-height: 1.6;
  overflow-x: clip;
}
img, svg, picture { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.12; margin: 0 0 0.4em; text-wrap: balance; }
p { margin: 0 0 1em; }
a { color: inherit; text-underline-offset: 0.18em; }
code { font-size: 0.9em; }
[id] { scroll-margin-top: calc(var(--header-h) + 16px); }
main:focus { outline: none; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
.surface-midnight, .site-header, .hero { --focus: var(--gold-light); }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 12px; top: -100px; z-index: 100;
  background: var(--cream); color: var(--ink); padding: 12px 18px; border-radius: 10px;
  font-weight: 600; box-shadow: 0 4px 16px rgb(0 0 0 / 0.3);
}
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: calc(var(--container) + 2 * var(--pad)); margin-inline: auto; padding-inline: var(--pad); }

.surface-cream { background: var(--cream); color: var(--ink); }
.surface-ice { background: var(--ice); color: var(--ink); }
.surface-midnight {
  background-color: var(--midnight);
  color: var(--cream);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='320' height='260'%3E%3Cg fill='%23FFF7E8'%3E%3Ccircle cx='22' cy='30' r='1.2' opacity='.8'/%3E%3Ccircle cx='96' cy='12' r='.9' opacity='.6'/%3E%3Ccircle cx='170' cy='58' r='1.4' opacity='.9'/%3E%3Ccircle cx='250' cy='24' r='1' opacity='.5'/%3E%3Ccircle cx='300' cy='96' r='1.3' opacity='.8'/%3E%3Ccircle cx='60' cy='130' r='1' opacity='.6'/%3E%3Ccircle cx='140' cy='170' r='1.2' opacity='.7'/%3E%3Ccircle cx='220' cy='140' r='.8' opacity='.5'/%3E%3Ccircle cx='280' cy='210' r='1.1' opacity='.8'/%3E%3Ccircle cx='30' cy='230' r='1.3' opacity='.7'/%3E%3C/g%3E%3Cg fill='%23F1D58E'%3E%3Cpath d='M200 92l1.6 4.4 4.4 1.6-4.4 1.6-1.6 4.4-1.6-4.4-4.4-1.6 4.4-1.6z'/%3E%3Cpath d='M48 76l1.2 3.3 3.3 1.2-3.3 1.2-1.2 3.3-1.2-3.3-3.3-1.2 3.3-1.2z'/%3E%3C/g%3E%3C/svg%3E"),
    radial-gradient(ellipse 80% 60% at 50% 40%, var(--midnight-2), transparent 70%);
}

/* Section headings */
.section-title { font-size: clamp(1.9rem, 1.3rem + 2.6vw, 3.25rem); text-align: center; letter-spacing: 0.005em; }
.section-title--md { font-size: clamp(1.6rem, 1.2rem + 1.8vw, 2.5rem); }
.section-title--ink { color: var(--ink); }
.section-title--gold { color: var(--gold-light); text-shadow: 0 2px 12px rgb(0 0 0 / 0.35); }
.section-intro { text-align: center; max-width: 40rem; margin-inline: auto; font-size: 1.1em; }

.flourish { display: flex; align-items: center; justify-content: center; gap: 10px; color: var(--gold); margin: -0.1em auto 0.9em; }
.flourish__line { width: clamp(48px, 10vw, 110px); height: 2px; background: linear-gradient(90deg, transparent, currentColor 40%, currentColor 60%, transparent); }
.flourish__flake { flex: none; }

/* Buttons */
.actions { display: flex; flex-wrap: wrap; gap: 12px 14px; align-items: center; }
.actions--center { justify-content: center; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  min-height: 48px; padding: 0.6em 1.4em;
  border: 2px solid var(--gold); border-radius: 999px;
  font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; line-height: 1.15;
  text-decoration: none; text-align: center; cursor: pointer;
  transition: background-color var(--ease), box-shadow var(--ease), transform var(--ease);
}
.btn--berry {
  color: #fff7e8;
  background: linear-gradient(180deg, var(--berry-hi), var(--berry) 55%, var(--berry-lo));
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.35), 0 3px 10px rgb(6 27 64 / 0.28);
}
.btn--berry:hover { background: linear-gradient(180deg, #dd2668, var(--berry-hi) 55%, var(--berry)); box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.4), 0 0 0 4px rgb(241 213 142 / 0.35), 0 4px 14px rgb(6 27 64 / 0.3); }
.btn--cream { color: var(--ink); background: var(--cream); box-shadow: 0 3px 10px rgb(6 27 64 / 0.18); }
.btn--cream:hover { background: #fff; box-shadow: 0 0 0 4px rgb(211 166 78 / 0.35), 0 3px 10px rgb(6 27 64 / 0.2); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; box-shadow: none; }
.btn--small { min-height: 44px; padding: 0.45em 1.05em; font-size: 0.98rem; }
.btn__meta { font-family: var(--font-body); font-weight: 400; font-size: 0.85em; }
.icon { flex: none; }

/* Decorative snow edges between bands */
.edge { position: absolute; left: 0; right: 0; height: clamp(28px, 5vw, 72px); pointer-events: none; z-index: 2; line-height: 0; }
.edge svg { width: 100%; height: 100%; }
.edge path { fill: currentColor; }
.edge--bottom { bottom: -1px; }
.edge--top { top: -1px; }
.edge--cream { color: var(--cream); }
.edge--ice { color: var(--ice); }
.edge--illustrated { height: clamp(76px, 10vw, 160px); }
.edge--illustrated picture { position: absolute; bottom: 0; width: clamp(125px, 28vw, 400px); height: 100%; }
.edge--illustrated picture:has(.edge__art--left) { left: 0; }
.edge--illustrated picture:has(.edge__art--right) { right: 0; }
.edge__art { width: 100%; height: 100%; object-fit: cover; }
.edge__art--left { object-position: left bottom; mask-image: linear-gradient(to right, #000 0 55%, transparent 100%); }
.edge__art--right { object-position: right bottom; mask-image: linear-gradient(to left, #000 0 55%, transparent 100%); }
.edge__drift { position: absolute; bottom: 0; width: 100%; height: 65%; }
.edge__blend { position: absolute; inset: auto 0 0; height: 18px; background: linear-gradient(transparent, currentColor); }

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

/* Storybook ornaments: resolution independent, subordinate to live headings. */
.section-title { font-weight: 600; letter-spacing: -0.035em; line-height: 1.08; }
.section-title--gold { color: var(--gold-light); text-shadow: 0 2px 1px #6b471c, 0 5px 20px rgb(0 0 0 / .3); }
.flourish { gap: 12px; margin: 0 auto 1.2em; }
.flourish__scroll { width: clamp(66px, 12vw, 150px); height: auto; }
.flourish__mirror { transform: scaleX(-1); }
.surface-midnight .flourish { color: var(--gold-light); }
.woodland { position: absolute; inset: auto 0 0; height: clamp(110px, 15vw, 240px); pointer-events: none; }
.woodland__corner { position: absolute; bottom: 0; width: clamp(110px, 19vw, 280px); }
.woodland__corner--left { left: 0; }
.woodland__corner--right { right: 0; transform: scaleX(-1); }
.woodland__corner picture, .woodland__corner img { width: 100%; }

/* SiteHeader: sticky midnight bar, inline nav on wide screens, expandable in-flow menu on narrow screens. */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--midnight);
  color: var(--cream);
  box-shadow: 0 2px 14px rgb(0 0 0 / 0.3);
}
.site-header::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; pointer-events: none;
  background: linear-gradient(90deg, transparent, var(--gold) 15%, var(--gold-light) 50%, var(--gold) 85%, transparent);
}
.site-header__bar { display: flex; flex-wrap: wrap; align-items: center; gap: 0 12px; min-height: var(--header-h); }

.brand { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; color: var(--gold-light); }
.brand__text { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.15rem, 1rem + 0.8vw, 1.5rem); letter-spacing: 0.01em; white-space: nowrap; text-shadow: 0 1px 8px rgb(211 166 78 / 0.35); }
.brand picture { width: 220px; }
.brand__mobile { display: none; }
.brand__img { width: 100%; height: auto; max-height: 54px; object-fit: contain; }

.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 6px; }
.site-nav a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 8px;
  color: var(--cream); text-decoration: none; font-size: 1rem;
  background-image: linear-gradient(var(--gold-light), var(--gold-light));
  background-size: 0 2px; background-repeat: no-repeat; background-position: 50% 82%;
  transition: background-size var(--ease), color var(--ease);
}
.site-nav a:hover { color: var(--gold-light); background-size: calc(100% - 24px) 2px; }

.header-buy { margin-left: auto; }
.menu-toggle {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; min-width: 44px; padding: 0 12px;
  border: 2px solid rgb(241 213 142 / 0.6); border-radius: 10px; background: transparent; color: var(--cream);
  font: 600 1rem/1 var(--font-display); cursor: pointer;
}
.menu-toggle[hidden] { display: none; }
.menu-toggle__icon, .menu-toggle__icon::before, .menu-toggle__icon::after { display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; transition: transform var(--ease), opacity var(--ease); }
.menu-toggle__icon { position: relative; }
.menu-toggle__icon::before, .menu-toggle__icon::after { content: ""; position: absolute; left: 0; }
.menu-toggle__icon::before { top: -6px; }
.menu-toggle__icon::after { top: 6px; }
.menu-toggle[aria-expanded="true"] .menu-toggle__icon { background: transparent; }
.menu-toggle[aria-expanded="true"] .menu-toggle__icon::before { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__icon::after { transform: translateY(-6px) rotate(-45deg); }

/* Narrow layout */
@media (max-width: 1023.98px) {
  .site-nav { order: 5; flex-basis: 100%; }
  .site-nav ul { padding-bottom: 10px; }
  /* Without JavaScript: links stay visible, header scrolls away so it never hides anchored headings. */
  html:not(.js) .site-header { position: relative; }
  /* With JavaScript: links live in an in-flow panel opened by the Menu button. */
  .js .site-nav { display: none; }
  .js .site-header.is-open .site-nav { display: block; border-top: 1px solid rgb(241 213 142 / 0.25); }
  .js .site-header.is-open .site-nav ul { flex-direction: column; padding: 8px 0 14px; }
  .js .site-header.is-open .site-nav a { width: 100%; font-size: 1.08rem; }
}
@media (max-width: 559.98px) {
  .site-header__bar { gap: 0 6px; padding-inline: 12px; }
  .site-header__bar > .brand .brand__text { white-space: normal; max-width: 6.5em; line-height: 1; font-size: 1.05rem; }
  .header-buy .icon { display: none; }
  .header-buy { padding-inline: 0.75em; }
  .menu-toggle { padding: 0 10px; }
  .site-header .brand { flex: 0 1 108px; min-width: 0; }
  .site-header .brand picture { width: 108px; }
  .site-header .brand picture { display: none; }
  .site-header .brand__mobile { display: block; }
}
@media (min-width: 560px) and (max-width: 767.98px) {
  .site-header .brand picture { width: 170px; }
}
/* Reserve room for classic scrollbars as well as overlay-scrollbar browsers.
   The icon-only toggle retains its accessible Menu label. */
@media (max-width: 419.98px) {
  .menu-toggle__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
}
@media (max-width: 379.98px) {
  .site-header__bar > .brand .brand__text { font-size: 0.98rem; }
  .header-buy { padding-inline: 0.6em; font-size: 0.9rem; }
}

/* Wide layout */
@media (min-width: 1024px) {
  .site-header__bar { flex-wrap: nowrap; gap: 20px; }
  .site-nav { margin-left: auto; }
  .header-buy { margin-left: 4px; }
  .menu-toggle, .menu-toggle:not([hidden]) { display: none; }
}

/* HeroSection */
.hero { position: relative; isolation: isolate; overflow: hidden; background: var(--forest); color: var(--cream); }
.hero__scene { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero__scene picture, .hero__scene img { width: 100%; height: 100%; }
.hero__scene img { object-fit: cover; object-position: 50% 100%; }

.hero__inner {
  position: relative; display: flex; flex-direction: column; align-items: center; text-align: center;
  padding-top: clamp(26px, 3vw, 44px); padding-bottom: clamp(82px, 8vw, 116px);
  min-height: 740px;
}
.hero__content { position: relative; z-index: 3; max-width: 36rem; }
.hero__content::before {
  content: ""; position: absolute; inset: -12% -18%; z-index: -1; pointer-events: none;
  background: radial-gradient(ellipse at 50% 62%, rgb(6 27 64 / 0.76), rgb(6 27 64 / 0.42) 56%, transparent 77%);
  mask-image: linear-gradient(to bottom, transparent, #000 16% 75%, transparent);
}
.hero__eyebrow {
  margin: 0; font-family: var(--font-display); font-weight: 600; font-size: clamp(1.5rem, 1.1rem + 2vw, 2.5rem);
  color: var(--cream); text-shadow: 0 2px 0 var(--red-dark), 0 3px 16px rgb(0 0 0 / 0.5);
}
.hero__title {
  margin: 0.02em 0 0.12em; font-size: clamp(2.9rem, 1.5rem + 6.4vw, 5.7rem); line-height: 0.98; letter-spacing: 0.01em;
  color: #e0204f;
  -webkit-text-stroke: 0.09em var(--cream); paint-order: stroke fill;
  text-shadow: 0 0.07em 0 var(--gold), 0 0.1em 0.35em rgb(0 0 0 / 0.55);
}
.hero__title img { margin-inline: auto; max-width: min(100%, 640px); }
.hero__title--art { width: min(100%, 560px); margin: 4px auto 10px; line-height: 1; -webkit-text-stroke: 0; text-shadow: none; }
.hero__title--art img { width: 100%; height: auto; }
.hero__tagline { margin: 0 0 1rem; }
.hero__tagline span {
  display: inline-block; padding: 0.42em 1.7em;
  font-family: var(--font-display); font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em;
  font-size: clamp(0.85rem, 0.7rem + 0.7vw, 1.15rem); color: var(--red-dark);
  background: linear-gradient(180deg, #fffaf0, #f1dcb0);
  clip-path: polygon(0 0, 100% 0, calc(100% - 0.9em) 50%, 100% 100%, 0 100%, 0.9em 50%);
  box-shadow: inset 0 -2px 0 var(--gold);
}
.hero__lede {
  max-width: 27rem; margin: 0 auto 1.2rem; padding: 0.25em 0.6em;
  background: transparent;
  font-size: clamp(1.08rem, 1rem + 0.5vw, 1.3rem); line-height: 1.45;
  text-shadow: 0 1px 2px rgb(6 27 64 / 0.9), 0 2px 14px rgb(6 27 64 / 0.7);
}

/* Fairy group: below the message on narrow screens, flanking it on wide screens. */
.hero__fairies {
  position: relative; z-index: 1; list-style: none; margin: 22px 0 0; padding: 0;
  display: flex; justify-content: center; align-items: flex-end; width: 100%; pointer-events: none;
}
.hero-fairy { width: min(25%, 170px); margin-inline: 0; filter: drop-shadow(0 8px 10px rgb(6 27 64 / 0.2)); }
.hero-fairy--red, .hero-fairy--gold { margin-bottom: 14px; }
/* The red/gold cutouts have wider canvases: balance their visible height
   with the blue/green fairies while keeping the shared responsive row. */
.hero-fairy--red { --hero-fairy-scale: 1.18; }
.hero-fairy--gold { --hero-fairy-scale: 1.12; }
.hero-fairy img {
  width: 100%; height: auto;
  transform: scale(var(--hero-fairy-scale, 1)); transform-origin: 50% 100%;
}

.hero__scroll {
  position: relative; z-index: 3; margin-top: 18px;
  display: inline-flex; flex-direction: column; align-items: center; gap: 0;
  min-height: 44px; padding: 6px 16px 2px; border-radius: 999px;
  color: var(--ink); text-decoration: none; font-size: 0.95rem;
  background: rgb(255 247 232 / 0.86); --focus: var(--ink);
}
.hero__scroll:hover { background: var(--cream); }

.hero .review-note { position: relative; z-index: 4; max-width: 40rem; margin-inline: auto; }

/* Keep fairies below the message through tablet/small-laptop widths; at 1024px
   four flanking sprites compete with the title and buttons for the same space. */
@media (min-width: 1280px) {
  .hero__inner { min-height: clamp(780px, calc(94vh - var(--header-h)), 900px); justify-content: flex-start; }
  .hero__content { margin-top: 0; }
  .hero__fairies {
    position: absolute; left: 50%; bottom: 116px; margin: 0;
    transform: translateX(-50%); width: min(100vw, 1760px);
    justify-content: space-between; padding-inline: 24px; gap: 8px;
  }
  .hero-fairy { width: clamp(145px, calc((100vw - 680px) / 4), 250px); margin-inline: 0; }
  .hero-fairy--blue { margin-right: auto; }
  .hero-fairy--red, .hero-fairy--gold { margin-bottom: 24px; }
  .hero__scroll { margin-top: auto; }
}

/* BookSection, RetailerLinks, FairiesSection, ForestMapEntry, PreviewGallery, ActivitySection, SiteFooter */
[hidden] { display: none !important; }

/* ---------- Book ---------- */
.book {
  position: relative; padding-block: var(--section-y) calc(var(--section-y) - 8px);
  background:
    radial-gradient(ellipse 40% 60% at 0% 100%, rgb(234 244 252 / 0.9), transparent 70%),
    radial-gradient(ellipse 35% 50% at 100% 0%, rgb(234 244 252 / 0.8), transparent 70%),
    var(--cream);
}
.book__grid { display: grid; gap: 24px; grid-template-areas: "text" "cover" "actions" "buy"; }
.book__text { grid-area: text; text-align: center; max-width: 34rem; margin-inline: auto; }
.book__text .section-title { font-size: clamp(2.2rem, 1.4rem + 3.4vw, 3.9rem); }
.book__sub { font-family: var(--font-display); font-weight: 600; color: var(--red-dark); font-size: clamp(1.3rem, 1.05rem + 1.1vw, 1.85rem); line-height: 1.2; text-wrap: balance; }
.book__desc { max-width: 32rem; margin-inline: auto; }
.book__credit { font-style: italic; margin-bottom: 0.4em; }
.book__actions { grid-area: actions; justify-content: center; }
.book__cover { grid-area: cover; margin: 0; justify-self: center; width: min(100%, 440px); }
.book__cover picture {
  border-radius: 3px 8px 8px 3px; overflow: hidden;
  box-shadow: 5px 5px 0 #f4ead6, 7px 7px 0 #dccfb4, 0 22px 40px -8px rgb(6 27 64 / 0.45);
}
.book__cover img { width: 100%; }

.buy {
  grid-area: buy; justify-self: center; width: min(100%, 760px); text-align: center;
  padding: 20px clamp(16px, 3vw, 28px); border: 2px solid rgb(211 166 78 / 0.7); border-radius: var(--radius);
  background: rgb(255 255 255 / 0.65);
}
.buy__title { font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.55rem); color: var(--ink); }
.buy .review-note { margin-bottom: 0; }
.retailers { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.retailers__group + .retailers__group { margin-top: 14px; }
.retailers__group h4 { font-size: 1rem; margin-bottom: 8px; }

@media (min-width: 800px) {
  .book__grid {
    grid-template-columns: 1.1fr 0.9fr; column-gap: clamp(32px, 5vw, 72px); row-gap: 20px; align-items: center;
    grid-template-areas: "text cover" "actions cover" "buy buy";
  }
  .book__text { align-self: end; }
  .book__actions { align-self: start; }
  .book__cover { justify-self: end; }
}

/* ---------- Fairies ---------- */
.fairies { position: relative; padding-block: calc(var(--section-y) + 36px) calc(var(--section-y) + 48px); }
.fairies .section-intro { color: var(--cream); font-style: italic; font-size: clamp(1.1rem, 1rem + 0.5vw, 1.35rem); }
.fairy-list {
  list-style: none; margin: clamp(24px, 4vw, 44px) auto 8px; padding: 0; max-width: 1080px;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 4vw, 36px) clamp(14px, 3vw, 32px);
}
.fairy { --tint: #e0204f; display: flex; flex-direction: column; align-items: center; text-align: center; }
.fairy--blue { --tint: #3f7cff; }
.fairy--green { --tint: #2fa463; }
.fairy--gold { --tint: #f2a531; }
.fairy__frame {
  width: min(100%, 240px); aspect-ratio: 4 / 5; border-radius: 50%; overflow: hidden;
  border: 4px solid var(--gold);
  box-shadow: 0 0 0 3px var(--midnight), 0 0 0 5px rgb(241 213 142 / 0.6), 0 0 34px -4px var(--tint);
  background: var(--forest);
}
.fairy__frame picture, .fairy__img { width: 100%; height: 100%; }
.fairy__img { object-fit: cover; }
.fairy__badge {
  position: relative; display: grid; place-items: center; width: 42px; height: 42px; margin-top: -22px;
  border-radius: 50%; background: var(--midnight); border: 3px solid var(--gold); color: var(--gold-light);
}
.fairy__name { margin: 8px 0 0; font-family: var(--font-display); font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.55rem); line-height: 1.15; color: var(--gold-light); }
.fairy__epithet { display: block; font-family: var(--font-body); font-style: italic; font-weight: 400; font-size: 0.68em; color: var(--cream); }
.fairies__closing { text-align: center; margin: 24px auto 0; font-style: italic; font-size: 1.1em; }
.fairies__closing::before, .fairies__closing::after { content: "✦"; color: var(--gold); margin-inline: 0.6em; font-style: normal; }
@media (min-width: 768px) {
  .fairy-list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ---------- Explore (forest map entry, inside the fairies band) ---------- */
.explore {
  display: grid; gap: 16px 28px; justify-items: center; text-align: center;
  max-width: 780px; margin: clamp(32px, 5vw, 52px) auto 0; padding: clamp(18px, 3vw, 26px);
  border: 2px solid rgb(241 213 142 / 0.55); border-radius: 22px; background: rgb(11 42 92 / 0.78);
}
.explore__thumb { display: block; align-self: center; width: 180px; border-radius: 14px; overflow: hidden; border: 3px solid var(--gold); box-shadow: 0 8px 22px rgb(0 0 0 / 0.35); }
.explore__thumb img { width: 100%; }
.explore__title { font-size: clamp(1.4rem, 1.2rem + 0.8vw, 1.8rem); color: var(--gold-light); }
.explore .actions { justify-content: center; }
@media (min-width: 640px) {
  .explore { grid-template-columns: auto 1fr; justify-items: start; text-align: left; }
  .explore .actions { justify-content: flex-start; }
}

/* ---------- Preview ---------- */
.preview { position: relative; padding-block: var(--section-y) calc(var(--section-y) + 16px); }
.pages { list-style: none; margin: clamp(24px, 4vw, 40px) auto 0; padding: 0; max-width: 1160px; display: grid; gap: clamp(28px, 4vw, 40px); }
.page { display: flex; flex-direction: column; gap: 12px; }
.page__thumb {
  display: block; border-radius: 14px; overflow: hidden; text-decoration: none; color: var(--cream);
  border: 3px solid var(--gold); background: var(--midnight); box-shadow: 0 14px 30px -10px rgb(6 27 64 / 0.45);
  transition: box-shadow var(--ease), transform var(--ease);
}
.page__thumb:hover { box-shadow: 0 0 0 4px rgb(211 166 78 / 0.4), 0 18px 34px -10px rgb(6 27 64 / 0.5); }
.page__thumb img { width: 100%; aspect-ratio: 1; }
.page__thumb:focus-visible { outline-color: var(--ink); }
.transcript summary { display: inline-flex; align-items: center; min-height: 44px; cursor: pointer; font-weight: 600; color: var(--ink); text-decoration: underline; text-underline-offset: 0.2em; }
.transcript__body { margin-top: 6px; padding: 14px 18px; border-left: 4px solid var(--gold); background: var(--cream-2); border-radius: 0 12px 12px 0; }
.transcript__body p:last-child { margin-bottom: 0; }
@media (min-width: 720px) {
  .pages { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- Activity ---------- */
.activity { position: relative; padding-block: calc(var(--section-y) + 20px) var(--section-y); }
.activity__grid { display: grid; gap: 24px; justify-items: center; text-align: center; max-width: 1000px; }
.activity__text { max-width: 34rem; }
.activity__text .section-title { margin-bottom: 0.3em; }
.activity__img { width: min(260px, 70vw); border-radius: 8px; box-shadow: 0 10px 24px -8px rgb(6 27 64 / 0.4); }
.activity__deco { width: 160px; pointer-events: none; }
.activity__placeholder {
  display: grid; place-items: center; width: 200px; aspect-ratio: 3 / 4; padding: 16px; text-align: center;
  font: 600 0.9rem/1.35 system-ui, -apple-system, "Segoe UI", sans-serif; color: #3a2c00;
  background: repeating-linear-gradient(135deg, #fff9df 0 12px, #fff3c4 12px 24px);
  border: 2px dashed #8a6a00; border-radius: 10px;
}
@media (min-width: 768px) {
  .activity__grid { grid-template-columns: auto 1fr auto; text-align: left; justify-items: start; align-items: center; column-gap: 40px; }
  .activity__text .section-title { text-align: left; }
  .activity__text .actions { justify-content: flex-start; }
}

/* ---------- Footer ---------- */
.site-footer { position: relative; padding-top: calc(var(--section-y) + 24px); overflow: hidden; }
.site-footer::before, .site-footer::after {
  content: ""; position: absolute; bottom: 0; width: clamp(120px, 22vw, 300px); height: clamp(110px, 18vw, 240px);
  pointer-events: none; z-index: 0; opacity: 0.55;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 240'%3E%3Cg fill='%23123D76'%3E%3Cpath d='M60 20l34 70H76l30 60H84l36 70H0l36-70H14l30-60H26z'/%3E%3Cpath d='M170 70l26 54h-14l22 44h-16l28 56H120l28-56h-16l22-44h-14z'/%3E%3Cpath d='M250 110l22 44h-10l18 36h-12l22 44H200l22-44h-12l18-36h-10z'/%3E%3C/g%3E%3Cg fill='%23F1D58E'%3E%3Ccircle cx='140' cy='120' r='3'/%3E%3Ccircle cx='230' cy='70' r='2'/%3E%3C/g%3E%3C/svg%3E") no-repeat bottom / contain;
}
.site-footer::before { left: 0; }
.site-footer::after { right: 0; transform: scaleX(-1); }
.site-footer__inner { position: relative; z-index: 1; text-align: center; }
.footer__brand { margin: 0 0 8px; }
.footer__brand .brand__text { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem); }
.footer__nav { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 2px 8px; }
.footer__nav a, .footer__base a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; color: var(--cream); }
.footer__nav a:hover, .footer__base a:hover { color: var(--gold-light); }
.footer__blocks { display: grid; gap: 20px; max-width: 900px; margin: 28px auto 0; text-align: left; }
.footer__block { padding: 18px 22px; border: 1px solid rgb(241 213 142 / 0.4); border-radius: var(--radius); background: rgb(11 42 92 / 0.7); }
.footer__block h2 { font-size: 1.35rem; color: var(--gold-light); }
.footer__block p { margin-bottom: 0.4em; }
.footer__block a { color: var(--gold-light); }
.footer__base {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 4px 24px;
  margin-top: 28px; padding: 12px 0 calc(16px + env(safe-area-inset-bottom)); border-top: 1px solid rgb(241 213 142 / 0.35);
  font-size: 0.95rem;
}
.footer__base p { margin: 0; }
@media (min-width: 720px) {
  .footer__blocks { grid-template-columns: 1fr 1fr; }
}

/* ---------- Simple pages ---------- */
.prose-page { padding-block: var(--section-y); }
.prose { max-width: 46rem; }
.prose h1 { text-align: left; }
.prose h2 { font-size: 1.4rem; margin-top: 1.6em; }
.prose a { color: var(--berry-lo); }
.prose--dark { text-align: center; }
.prose--dark h1 { text-align: center; }
.not-found { min-height: calc(100vh - var(--header-h)); padding-block: var(--section-y); }

/* Midnight Magic refinements — book, portraits and complete sample pages. */
.book { padding-block: clamp(40px, 5vw, 72px) clamp(125px, 14vw, 190px); }
.book__grid, .preview > .container { position: relative; z-index: 1; }
.book__text .section-title { margin-bottom: .15em; font-size: clamp(2.45rem, 1.35rem + 3.8vw, 4.4rem); }
.book__title-lead { display: block; font-size: .5em; line-height: 1.2; letter-spacing: 0; }
.book__title-main { display: block; }
.book__text .flourish { margin-bottom: 1.35em; }
.book__sub { margin-bottom: .9em; }
.book__cover { position: relative; width: min(90%, 470px); isolation: isolate; padding: 8px 12px 14px 0; }
.book__cover::before {
  content: ""; position: absolute; inset: 15px 0 2px 10px; z-index: -1;
  border: 1px solid #b99a5c; border-radius: 3px 9px 9px 3px;
  background: repeating-linear-gradient(0deg, #e7dcc1 0 1px, #fff7e8 1px 3px);
  box-shadow: 4px 9px 26px rgb(6 27 64 / .2);
}
.book__cover picture { border: 2px solid var(--gold); border-radius: 3px 7px 7px 3px; box-shadow: 0 15px 35px -12px rgb(6 27 64 / .4); }
.buy { margin-top: 10px; }
.fairies .section-title { font-size: clamp(2.35rem, 1.3rem + 3vw, 4.3rem); }
.fairy-list { max-width: 1160px; gap: 28px clamp(10px, 2vw, 28px); margin-top: clamp(40px, 5vw, 64px); }
.fairy__frame:has(.fairy__ornament) { border: 0; background: none; box-shadow: none; border-radius: 0; overflow: visible; width: min(100%, 280px); }
.fairy__frame--cutout { overflow: visible; }
.fairy__frame--cutout::before {
  content: ""; position: absolute; inset: 5% 9% 8%; border-radius: 50%; z-index: 0;
  background: radial-gradient(ellipse at 50% 40%, color-mix(in srgb, var(--tint) 30%, var(--midnight)), var(--midnight) 75%);
  box-shadow: 0 0 40px -12px var(--tint);
}
.fairy__frame { position: relative; }
.fairy__portrait { width: 100%; height: 100%; }
.fairy__frame--cutout .fairy__portrait { position: absolute; inset: -7% -3% 0; width: 106%; height: 107%; z-index: 1; }
.fairy__frame--cutout .fairy__portrait picture, .fairy__frame--cutout .fairy__img { width: 100%; height: 100%; object-fit: contain; object-position: center bottom; }
.fairy__ornament { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.fairy__ornament picture, .fairy__ornament img { width: 100%; height: 100%; object-fit: fill; }
.fairy__badge { z-index: 3; margin-top: -20px; width: 38px; height: 38px; }
.fairy__name { font-size: clamp(1.3rem, 1rem + 1vw, 1.85rem); margin-top: 12px; }
.fairy__epithet { font-size: .62em; margin-top: 5px; }
.fairies__closing { margin-top: 32px; }
.preview { padding-block: clamp(44px, 6vw, 80px) clamp(125px, 14vw, 180px); background: radial-gradient(ellipse at 50% 30%, #fffdf6, transparent 70%), var(--cream); }
.preview .section-title { font-size: clamp(2.1rem, 1.25rem + 2.9vw, 3.75rem); }
.pages { max-width: 1100px; gap: clamp(32px, 4vw, 56px); }
.page { position: relative; }
.page__thumb {
  position: relative; padding: 7px; border: 1px solid #b78b37; border-radius: 5px;
  background: linear-gradient(135deg, #f9eac4, #c8983f 35%, #f6dfa2 60%, #b88832);
  box-shadow: 0 0 0 3px var(--cream), 0 0 0 4px rgb(183 139 55 / .5), 0 15px 30px -14px rgb(6 27 64 / .4);
}
.page__thumb img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; border: 1px solid rgb(117 79 20 / .65); border-radius: 2px; }
.transcript summary { font-size: .95rem; }
.page__thumb:hover { transform: translateY(-2px); }
@media (min-width: 800px) {
  .book__grid { grid-template-columns: 1.05fr 1fr; column-gap: clamp(40px, 6vw, 86px); }
  .book__cover { justify-self: center; width: min(100%, 470px); }
}
@media (max-width: 479px) {
  .fairy-list { column-gap: 8px; }
  .fairy__badge { width: 30px; height: 30px; margin-top: -16px; border-width: 2px; }
  .fairy__badge svg { width: 18px; }
  .fairy__name { font-size: 1.3rem; }
  .page__thumb { padding: 5px; }
}

/* ImageViewer: shared native <dialog> for the forest map and sample pages. */
.viewer {
  --focus: var(--gold-light);
  width: min(1100px, calc(100vw - 24px));
  max-width: none;
  max-height: calc(100dvh - 24px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
  padding: 0; overflow: auto; overscroll-behavior: contain;
  border: 2px solid var(--gold); border-radius: 16px;
  background: var(--midnight); color: var(--cream);
  box-shadow: 0 24px 60px rgb(0 0 0 / 0.5);
}
.viewer::backdrop { background: rgb(3 12 30 / 0.84); }
html:has(.viewer[open]), html.viewer-open { overflow: hidden; }

.viewer__bar {
  position: sticky; top: 0; z-index: 1; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px;
  padding: 10px 14px 10px 20px; background: var(--midnight); border-bottom: 1px solid rgb(241 213 142 / 0.4);
}
.viewer__title { flex: 1 1 0; min-width: 8rem; margin: 0; font-size: clamp(1.1rem, 1rem + 0.5vw, 1.4rem); color: var(--gold-light); }
.viewer__count { margin: 0; font-size: 0.95rem; }
.viewer__close {
  min-height: 44px; min-width: 44px; padding: 0 16px; border-radius: 999px; cursor: pointer;
  border: 2px solid var(--gold-light); background: transparent; color: var(--cream); font: 600 1rem/1 var(--font-display);
}
.viewer__close:hover { background: rgb(241 213 142 / 0.15); }
.viewer__stage { display: grid; place-items: center; padding: 12px; }
.viewer__img {
  width: auto; height: auto; max-width: 100%;
  max-height: calc(100dvh - 210px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
  object-fit: contain; background: var(--forest); border-radius: 6px;
}
.viewer.is-loading .viewer__img { opacity: 0.35; }
.viewer__controls { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px 14px; padding: 0 14px 14px; }
.viewer__extra { max-width: 48rem; margin-inline: auto; padding: 0 20px 22px; }
.viewer__extra h3 { font-size: 1.15rem; color: var(--gold-light); }
.viewer__extra .transcript__body, .viewer__extra > p { color: var(--ink); --focus: var(--ink); }
.viewer__extra ul { margin: 0; padding-left: 1.3em; columns: 2 12rem; column-gap: 2rem; }
.viewer__extra p:last-child { margin-bottom: 0; }
@media (orientation: landscape) and (max-height: 520px) {
  .viewer__img { max-height: calc(100dvh - 120px); }
}

/* Review-build markers. These elements are only emitted by the review build. */
.review-banner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 16px;
  padding: 8px var(--pad); background: #ffe58a; color: #2b2100; border-bottom: 2px dashed #8a6a00;
  font: 0.9rem/1.4 system-ui, -apple-system, "Segoe UI", sans-serif; text-align: center;
}
.review-banner p { margin: 0; }
.review-banner__toggle {
  min-height: 44px; padding: 0 14px; border: 2px solid #5c4600; border-radius: 8px; background: #fff8d6; color: #2b2100;
  font: 600 0.9rem/1 system-ui, -apple-system, "Segoe UI", sans-serif; cursor: pointer; --focus: #2b2100;
}
.review-note {
  max-width: 40rem; margin: 12px auto; padding: 8px 12px; text-align: left;
  font: 0.875rem/1.45 system-ui, -apple-system, "Segoe UI", sans-serif; font-style: normal;
  background: #fff3c4; color: #3a2c00; border: 2px dashed #8a6a00; border-radius: 10px; text-shadow: none;
}
.review-note--block { margin-inline: auto; }
.review-note__tag {
  display: inline-block; margin-right: 6px; padding: 1px 6px; border-radius: 4px;
  background: #6b5200; color: #fff; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
}
.review-inline { padding: 0 4px; border-radius: 3px; background: #fff3c4; color: #3a2c00; font: 0.9em system-ui, -apple-system, "Segoe UI", sans-serif; }
html.hide-review [data-review-note] { display: none; }

/* Integrated illustration layers, never flattened page content. */
.story-section { position: relative; isolation: isolate; }
.section-scene { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.section-scene picture, .section-scene noscript { display: block; width: 100%; height: 100%; }
.section-scene__img { width: 100%; height: 100%; object-fit: cover; object-position: center bottom; }
.section-scene__trigger { position: absolute; top: 120px; width: 1px; height: 1px; }
.section-scene::after { content: ""; position: absolute; inset: 0; pointer-events: none; }
.section-scene--book::after, .section-scene--preview::after {
  background: linear-gradient(to bottom, var(--cream), transparent 14%, transparent 86%, var(--cream));
}
.book.story-section { background: var(--cream); padding-bottom: clamp(90px, 11vw, 160px); }
.book__text { position: relative; }
.book__text::before {
  content: ""; position: absolute; inset: -30px -24px; z-index: -1; pointer-events: none;
  background: radial-gradient(ellipse, rgb(255 247 232 / .98) 40%, rgb(255 247 232 / .8) 65%, transparent 80%);
}
.book__cover { width: min(94%, 490px); }
.book__cover picture { border-color: #c99b42; box-shadow: 0 18px 40px -12px rgb(6 27 64 / .4); }
.buy { border-width: 1px; border-radius: 16px; background: rgb(255 250 239 / .96); box-shadow: 0 6px 24px rgb(6 27 64 / .06); }
.fairies { padding: 0; color: var(--ink); background: var(--cream); }
.fairies__stage { position: relative; padding-block: clamp(92px, 9vw, 130px) clamp(140px, 16vw, 210px); }
.fairies__inner { position: relative; z-index: 1; }
.section-scene--fairies::after {
  background: linear-gradient(to bottom, var(--midnight), transparent 18%, transparent 83%, rgb(6 27 64 / .16));
}
.fairies__stage .section-title, .fairies__stage .section-intro { position: relative; }
.fairies__stage .section-intro { text-shadow: 0 2px 8px var(--midnight); }
.fairies__stage .section-title::before {
  content: ""; position: absolute; inset: -35px -10px -90px; z-index: -1;
  background: radial-gradient(ellipse, rgb(6 27 64 / .86) 25%, transparent 72%); pointer-events: none;
}
.fairy-list { row-gap: 44px; }
.fairy__frame--cutout::before { box-shadow: 0 0 30px -12px var(--tint); background: radial-gradient(ellipse at 50% 40%, rgb(18 61 118 / .3), transparent 76%); }
.fairy__name { color: var(--cream); text-shadow: 0 1px 4px var(--midnight), 0 0 12px var(--midnight); }
.fairy__epithet { color: var(--cream); }
.fairies__after { position: relative; z-index: 3; padding-bottom: clamp(30px, 4vw, 56px); }
.fairies__closing { color: var(--ink); margin: 0 auto 12px; font-size: clamp(1rem, .92rem + .5vw, 1.2rem); }
.fairies__after > .flourish { margin-bottom: 0; }
.explore { margin-top: clamp(22px, 3vw, 36px); color: var(--cream); border-width: 1px; border-radius: 18px; background: var(--midnight); box-shadow: 0 14px 35px -20px rgb(6 27 64 / .5); }
.explore__thumb { border-width: 2px; border-radius: 8px; }
.preview.story-section { background: var(--cream); padding-block: clamp(30px, 5vw, 72px) clamp(100px, 11vw, 160px); }
.preview .section-intro { max-width: 44rem; }
.page__thumb { border-radius: 6px; }
.transcript__body { background: #fff8e9; }
/* A new illustrated village replaces the old vector silhouettes. */
.site-footer--scenic { background-image: none; padding-top: clamp(78px, 7vw, 110px); }
.site-footer--scenic::before, .site-footer--scenic::after { content: none; }
.section-scene--footer { inset: auto 0 0; height: auto; aspect-ratio: 3 / 1; z-index: -1; }
.section-scene--footer .section-scene__trigger { top: 0; }
.section-scene--footer::after { background: linear-gradient(to bottom, var(--midnight), transparent 34%); }
.site-footer--scenic .site-footer__inner { max-width: 900px; padding-bottom: clamp(110px, 13vw, 200px); }
.footer__brand .brand picture { width: clamp(230px, 24vw, 310px); }
.footer__brand .brand__img { max-height: 76px; }
.footer__brand { margin-bottom: 14px; }
.footer__blocks { max-width: 680px; gap: 24px 40px; margin-top: 26px; padding-top: 22px; border-top: 1px solid rgb(241 213 142 / .35); }
.footer__block { padding: 0; border: 0; background: none; border-radius: 0; }
.footer__block h2 { font-size: 1.25rem; }
.footer__block p { font-size: 1rem; }
.footer__base { margin-top: 22px; border-top-color: rgb(241 213 142 / .25); }
.site-footer--scenic .footer__blocks, .site-footer--scenic .footer__base { text-shadow: 0 1px 8px var(--midnight); }
/* Consistent gold edges, berry actions and restrained interaction. */
.btn { border-color: #d3a64e; box-shadow: inset 0 1px 0 rgb(255 255 255 / .4), 0 4px 10px rgb(6 27 64 / .2); }
.btn--cream { background-color: var(--cream); background-image: linear-gradient(#fffdf6, var(--cream)); }
.btn--berry { box-shadow: inset 0 1px 0 rgb(255 255 255 / .4), 0 4px 10px rgb(6 27 64 / .25); }
.menu-toggle { border-color: rgb(241 213 142 / .7); border-radius: 12px; }
.viewer { border-radius: 12px; border-width: 1px; }
.viewer__close { border-width: 1px; }
.footer__nav a { text-decoration: none; }
.footer__nav a:hover { text-decoration: underline; text-underline-offset: .25em; }
@media (max-width: 767px) {
  .section-scene--book .section-scene__img, .section-scene--preview .section-scene__img, .section-scene--fairies .section-scene__img { object-fit: contain; object-position: center bottom; }
  .book.story-section { padding-bottom: 90px; }
  .book__text::before { inset: -15px -10px; }
  .fairies__stage { padding-bottom: 155px; }
  .fairies__stage .section-title { font-size: clamp(2.15rem, 6vw, 3rem); }
  .fairies__stage .section-intro { max-width: 20rem; }
  .fairies__closing { max-width: 23rem; }
  .site-footer--scenic .site-footer__inner { padding-bottom: clamp(90px, 24vw, 160px); }
  .footer__blocks { text-align: center; gap: 20px; }
  .footer__base { column-gap: 12px; font-size: .85rem; }
}

/* Diffuse snow light behind live names; no solid oval or clipped gradient edge. */
.fairy__name {
  position: relative;
  isolation: isolate;
  color: var(--ink);
  text-shadow: 0 0 7px rgb(242 248 253 / .5);
}
.fairy__name::before {
  content: "";
  position: absolute;
  inset: -30px -44px -34px;
  z-index: -1;
  pointer-events: none;
  border-radius: 48% 52% 46% 54% / 56% 44% 56% 44%;
  background: #eff6fc;
  filter: blur(18px);
  opacity: .98;
}
.fairy__epithet { color: var(--ink); }

.transcript summary { background: rgb(255 247 232 / .98); padding-inline: 12px; border-radius: 12px; box-shadow: 0 0 15px 3px rgb(255 247 232 / .4); }
@media (max-width: 767px) {
  .section-scene--book > picture, .section-scene--book > noscript > picture,
  .section-scene--preview > picture, .section-scene--preview > noscript > picture,
  .section-scene--fairies > picture, .section-scene--fairies > noscript > picture {
    position: absolute; inset: auto 0 0; height: auto; aspect-ratio: 2 / 3;
    mask-image: linear-gradient(to bottom, transparent, #000 22%);
  }
  .section-scene--book .section-scene__img, .section-scene--preview .section-scene__img, .section-scene--fairies .section-scene__img { object-fit: cover; }
}

.book__text::before { inset: -40px -45px; background: radial-gradient(ellipse, #fff7e8 56%, rgb(255 247 232 / .98) 72%, transparent 87%); }
.book__credit { position: relative; isolation: isolate; }
.book__credit::before { content: ""; position: absolute; inset: -7px -10px; z-index: -1; background: linear-gradient(90deg, transparent, #fff7e8 16% 84%, transparent); }

.book.story-section { overflow: clip; }

/* The cover sits in real foreground snow; all content remains independent. */
.book__text::before {
  inset: -55px -50px; border-radius: 50%;
  background: var(--cream); filter: blur(34px); opacity: .97;
}
.book__credit { width: fit-content; max-width: 100%; margin-inline: auto; }
.book__credit::before { content: none; }
.section-scene--book {
  mask-image: linear-gradient(to bottom, transparent, #000 12% 82%, transparent);
}
.section-scene--book::after { content: none; }
.book__cover { padding-bottom: clamp(44px, 5vw, 66px); }
.book__cover::before { content: none; }
.book__object { position: relative; isolation: isolate; }
.book__object::before {
  content: ""; position: absolute; inset: 10px -10px -9px 9px; z-index: -1;
  border: 1px solid #b99a5c; border-radius: 3px 8px 8px 3px;
  background: repeating-linear-gradient(0deg, #e7dcc1 0 1px, #fff7e8 1px 3px);
}
.book__object::after { content: ""; position: absolute; bottom: -12px; left: 8%; width: 84%; height: 20px; z-index: -2; border-radius: 50%; background: rgb(6 27 64 / .3); filter: blur(8px); }
.book__object > picture { position: relative; z-index: 1; box-shadow: 0 8px 22px -10px rgb(6 27 64 / .34); }
.book__snow { position: absolute; bottom: 0; left: -22.5%; width: 145%; transform: translateY(12%); z-index: 2; pointer-events: none; }
.book__snow picture { border: 0; border-radius: 0; overflow: visible; box-shadow: none; }
.book__snow img { width: 100%; height: auto; }
.book__cover .review-note { position: relative; z-index: 3; margin-top: 64px; }
@media (max-width: 799px) {
  .book__text::before { inset: -35px -20px; filter: blur(24px); }
  .book__cover { width: min(84%, 430px); }
  .book__actions { position: relative; z-index: 3; margin-top: 10px; }
}

.book__snow .section-scene__trigger { top: 0; }

.book__snow { mask-image: linear-gradient(to right, transparent, #000 10% 90%, transparent); }
.book__snow picture { mask-image: linear-gradient(to bottom, #000 90%, transparent); }
.book__snow .section-scene__trigger { left: 50%; }
.book.story-section { padding-bottom: clamp(64px, 7vw, 104px); }
@media (min-width: 800px) {
  .book__grid { grid-template-areas: "text cover" "actions cover" "buy cover"; row-gap: 16px; }
  .book__cover { align-self: end; }
  .book .buy { margin-top: 4px; padding: 14px 18px; }
  .book .buy__title { font-size: 1.2rem; }
}

@media (min-width: 800px) and (max-width: 1279px) {
  .book__snow { width: 125%; left: -12.5%; }
}

.preview .section-title { width: fit-content; max-width: 100%; margin-inline: auto; }

/* A quiet two-book journey after the first book's sample pages. */
.book-journey {
  position: relative;
  padding-block: clamp(38px, 4vw, 60px) clamp(60px, 6vw, 88px);
  background: linear-gradient(var(--cream), #eef4f5 45%, var(--cream));
}
.book-journey__inner { max-width: 1040px; }
.book-journey__eyebrow {
  color: #586277;
  text-align: center;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.book-journey .section-title { font-size: clamp(1.8rem, 1.3rem + 1.4vw, 2.65rem); }
.book-journey .section-intro { font-size: 1rem; max-width: 33rem; margin-bottom: 30px; }
.book-journey .flourish { margin-bottom: .65em; }
.book-journey__layout { display: grid; gap: 30px; align-items: center; max-width: 780px; margin-inline: auto; }
.book-journey__path { list-style: none; margin: 0; padding: 0; }
.book-journey__stop { position: relative; display: grid; grid-template-columns: 38px minmax(0, 1fr); column-gap: 18px; }
.book-journey__stop:first-child { padding-bottom: 32px; }
.book-journey__stop:first-child::before {
  content: ""; position: absolute; left: 18px; top: 38px; bottom: 0;
  border-left: 2px dotted #ad9056; pointer-events: none;
}
.book-journey__number {
  display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid #9f7b34;
  border-radius: 50%; background: var(--midnight); color: var(--cream);
  font-family: var(--font-display); font-size: 1rem;
}
.book-journey__number--next { background: var(--cream); color: var(--ink); }
.book-journey__status { margin: 0 0 7px; color: #385e61; font-size: .85rem; font-weight: 600; }
.book-journey__status--next { color: #704064; }
.book-journey__book-title { font-size: clamp(1.3rem, 1.15rem + .5vw, 1.65rem); line-height: 1.25; }
.book-journey__book-title a { display: inline-block; min-height: 44px; padding-bottom: 8px; text-decoration-thickness: 1px; text-decoration-color: #9f7b34; }
.book-journey__book-title a:hover { color: var(--berry-lo); }
.book-journey__description { font-size: 1rem; max-width: 30rem; margin-bottom: 0; }
.book-journey__preview { width: min(100%, 220px); margin: 0 auto; text-align: center; }
.book-journey__image-link {
  display: block; overflow: hidden; border: 1px solid #b78b37; border-radius: 4px;
  background: var(--cream); box-shadow: 0 10px 25px -14px rgb(6 27 64 / .4); text-decoration: none;
}
.book-journey__art { width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; }
.book-journey__preview figcaption { font-size: .8rem; color: #586277; margin-top: 10px; }
@media (min-width: 720px) {
  .book-journey__layout { grid-template-columns: minmax(0, 1fr) 240px; gap: clamp(32px, 5vw, 72px); }
  .book-journey__preview { width: 240px; }
}
@media (forced-colors: active) {
  .book-journey__number, .book-journey__image-link { border-color: CanvasText; }
  .book-journey__stop:first-child::before { border-color: CanvasText; }
}

/* Reader-facing reference pages share the Midnight Magic palette and live text. */
.book__details { margin: 8px 0 0; }
.book__details a { display: inline-flex; align-items: center; min-height: 44px; color: var(--berry-lo); font-size: .96rem; }
.reference-nav { margin: 18px auto 0; max-width: 56rem; }
.reference-nav ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 18px; list-style: none; padding: 0; margin: 0; }
.reference-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 5px 0; color: var(--gold-light); font-size: .95rem; }
.reference-nav a[aria-current="page"] { text-decoration-thickness: 2px; }
.reference-hero { padding: 20px 0 clamp(40px, 6vw, 72px); border-bottom: 2px solid var(--gold); }
.reference-breadcrumb { margin: 0 0 22px; font-size: .9rem; color: var(--gold-light); overflow-wrap: anywhere; }
.reference-breadcrumb a { display: inline-flex; align-items: center; min-height: 44px; }
.reference-hero__grid { display: grid; gap: 30px; align-items: center; }
.reference-hero__copy { max-width: 42rem; min-width: 0; }
.reference-hero h1 { color: var(--gold-light); font-size: clamp(2.3rem, 1.6rem + 2.8vw, 4rem); line-height: 1.06; }
.reference-hero__copy > p:not(.reference-eyebrow) { max-width: 39rem; }
.reference-eyebrow { margin-bottom: .7rem; text-transform: uppercase; letter-spacing: .1em; font-size: .82rem; color: var(--gold-light); }
.reference-hero .actions { margin-top: 24px; }
.reference-hero__art { width: min(100%, 260px); margin-inline: auto; text-align: center; min-width: 0; }
.reference-hero__art img { width: 100%; height: auto; border-radius: 10px; box-shadow: 0 12px 32px rgb(0 0 0 / .25); }
.reference-page--author .reference-hero__art { width: min(100%, 340px); }
.reference-page--author .reference-hero__art img { box-shadow: none; }
.reference-image-link { display: block; border-radius: 10px; }
.reference-image-caption { margin: 10px 0 0; font-size: .9rem; }
.reference-content { max-width: 1080px; padding-block: 12px 64px; }
.reference-section { padding-block: clamp(28px, 5vw, 48px); border-bottom: 1px solid #d9c69b; }
.reference-section:last-child { border-bottom: 0; }
.reference-section > h2 { font-size: clamp(1.7rem, 1.4rem + 1.2vw, 2.4rem); margin-bottom: 20px; }
.reference-section > p { max-width: 46rem; }
.reference-section a { color: var(--berry-lo); }
.reference-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; margin: 0; }
.reference-facts > div { padding: 14px 0; border-bottom: 1px solid #dfd3b9; min-width: 0; }
.reference-facts dt { font-size: .85rem; color: #4c4a61; }
.reference-facts dd { margin: 3px 0 0; font-weight: 600; overflow-wrap: anywhere; }
.reference-samples { display: grid; gap: 20px; list-style: none; padding: 0; margin: 24px 0 0; }
.reference-samples img { width: 100%; height: auto; border-radius: 10px; border: 1px solid var(--gold); }
.reference-faq { max-width: 50rem; }
.reference-faq details { padding: 0 18px; margin: 12px 0; background: #fffdf8; border: 1px solid #d9c69b; border-radius: 12px; }
.reference-faq summary { min-height: 54px; padding-block: 14px; cursor: pointer; font-weight: 600; }
.reference-faq details p { margin: 0 0 18px; }
.reference-characters { display: grid; gap: 20px; list-style: none; margin: 28px 0 0; padding: 0; }
.reference-characters > li { min-width: 0; background: #fffdf8; border: 1px solid #d9c69b; border-radius: 18px; padding: 20px; text-align: center; }
.reference-character__art { height: 210px; display: flex; align-items: end; justify-content: center; margin-bottom: 18px; }
.reference-character__art picture, .reference-character__art img { width: auto; height: 100%; object-fit: contain; }
.reference-characters h3 { font-size: 1.5rem; margin-bottom: 4px; }
.reference-character__epithet { font-style: italic; margin-bottom: 14px; }
.reference-characters li > p:last-child { font-size: .95rem; margin: 0; }
.reference-places { display: grid; gap: 22px 32px; list-style: none; margin: 0; padding: 0; }
.reference-places h3 { font-size: 1.25rem; }
.reference-places p { margin-bottom: 0; }
.reference-reading-order { padding-left: 24px; }
.reference-reading-order li { padding: 8px 0 8px 5px; }
.reference-reading-order span { font-size: .95rem; }
.reference-prompts { padding-left: 24px; max-width: 48rem; }
.reference-prompts li { padding: 7px 0 7px 6px; }
.reference-page .site-footer { padding-top: 36px; }
.reference-page .site-footer::before, .reference-page .site-footer::after { display: none; }
.reference-page .site-footer a { overflow-wrap: anywhere; }
@media (min-width: 560px) {
  .reference-characters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .reference-places { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 768px) {
  .reference-hero__grid { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); }
  .reference-hero__art { width: min(100%, 320px); }
  .reference-page--world .reference-hero__art { width: 100%; max-width: 420px; }
  .reference-samples { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .reference-characters { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
  .reference-characters > li { padding-inline: 14px; }
  .reference-character__art { height: 185px; }
}

/* Both covers remain visible as selectors; nothing advances automatically. */
.book-showcase { padding-top: clamp(32px, 4vw, 56px); }
.book-showcase__header { position: relative; z-index: 3; text-align: center; }
.book-showcase__header > .section-title { font-size: clamp(2rem, 1.4rem + 2vw, 3.2rem); }
.book-showcase__header .section-intro { max-width: 38rem; margin: 12px auto 22px; }
.book-showcase__eyebrow { margin-bottom: 8px; font-size: .8rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.book-selector { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; max-width: 680px; margin: 0 auto 34px; }
.book-selector__tab { display: flex; align-items: center; gap: 14px; min-height: 100px; padding: 12px 16px; border: 2px solid #c9a35c; border-radius: 16px; background: #fff9ee; color: var(--ink); text-align: left; text-decoration: none; box-shadow: 0 6px 18px rgb(6 27 64 / .08); }
.book-selector__tab[aria-selected="true"] { border-color: var(--berry); box-shadow: 0 0 0 2px #fff9ee, 0 0 0 4px var(--berry); background: #fff1e7; }
.book-selector__tab > picture { flex: 0 0 58px; width: 58px; }
.book-selector__image { width: 100%; height: auto; border-radius: 3px; }
.book-selector__status { display: block; color: #79402f; font-size: .74rem; font-weight: 600; line-height: 1.4; margin-bottom: 4px; }
.book-selector__title { display: block; font-family: var(--font-display); font-size: 1.1rem; line-height: 1.2; }
.book-panel { position: relative; z-index: 2; scroll-margin-top: 100px; }
.book-panel + .book-panel { margin-top: 40px; }
.js .book-panel + .book-panel { margin-top: 0; }
.book-panel .book__text .section-title { font-size: clamp(2.2rem, 1.4rem + 2.8vw, 3.75rem); line-height: 1.05; }
.book__status { color: #6b3f59; font-weight: 600; margin-bottom: 10px; font-size: .9rem; }
.book__availability { margin: 12px 0 4px; font-weight: 600; color: #67433d; }
.book-panel .book__cover { align-self: center; }
.book-panel .book__cover-img { object-fit: contain; }
.book-showcase__controls { position: relative; z-index: 3; display: flex; justify-content: center; align-items: center; gap: 16px; margin-top: 22px; text-align: center; }
.book-showcase__controls .btn { font-size: .85rem; padding: 10px 16px; }
.book-showcase__position { margin: 0; font-size: .8rem; max-width: 18rem; }
.book-journey__preview img { object-fit: contain; }
.book-journey__status--next { color: #704064; }
.preview__book-label { text-align: center; margin-top: 14px; font-weight: 600; color: #6b3f59; }
@media (max-width: 599px) {
  .book-selector { gap: 10px; margin-bottom: 28px; }
  .book-selector__tab { flex-direction: column; text-align: center; justify-content: flex-start; gap: 9px; padding: 12px 8px; }
  .book-selector__tab > picture { flex-basis: auto; width: 64px; }
  .book-selector__title { font-size: 1rem; }
  .book-selector__status { font-size: .68rem; }
  .book-showcase__controls { flex-wrap: wrap; gap: 10px; }
  .book-showcase__position { flex-basis: 100%; order: 3; }
  .book-panel .book__cover { width: min(82%, 360px); }
}
@media (min-width: 800px) {
  .book-panel .book__grid { min-height: 620px; }
  .book-panel .book__text { align-self: end; }
  .book-panel .buy { align-self: start; }
}

.book-showcase__panels { touch-action: pan-y pinch-zoom; }
.book-journey__stop:not(:last-child) { padding-bottom: 28px; }
.book-journey__stop:not(:last-child)::before { content: ""; position: absolute; left: 18px; top: 38px; bottom: 0; border-left: 2px dotted #ad9056; pointer-events: none; }

.header-buy__short { display: none; }
@media (max-width: 379.98px) { .header-buy__full { display: none; } .header-buy__short { display: inline; } }

/* A taller shelf must retain the woodland sides rather than cropping them. */
.book-showcase > .section-scene .section-scene__img { object-fit: contain; object-position: center bottom; }

@media (min-width: 768px) {
  .book-showcase > .section-scene > picture,
  .book-showcase > .section-scene > noscript > picture {
    position: absolute; inset: auto 0 0; height: auto; aspect-ratio: 3 / 2;
    mask-image: linear-gradient(to bottom, transparent, #000 14%, #000 86%, transparent);
  }
}
