/* ==========================================================================
   John Parker — Little Bird Saves Christmas
   One stylesheet for every page. Sections:
   1 Fonts · 2 Tokens · 3 Base · 4 Layout helpers · 5 Buttons & type
   6 Header & nav · 7 Footer · 8 Shared pieces (cover, retailers, drifts)
   9 Home · 10 The Book · 11 Read a Sample · 12 About · 13 Families & Schools
   14 Buy · 15 Contact · 16 404 · 17 Motion · 18 Print
   ========================================================================== */

/* 1 ── Fonts (self-hosted, SIL Open Font Licence) ───────────────────────── */
@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-latin-full-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("../fonts/source-sans-3-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("../fonts/source-sans-3-latin-wght-italic.woff2") format("woff2");
  font-weight: 200 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Delius";
  src: url("../fonts/delius-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* 2 ── Tokens ───────────────────────────────────────────────────────────── */
:root {
  /* Brief palette */
  --navy: #202b46;
  --red: #a52822;
  --gold: #e8b958;
  --green: #345437;
  --cream: #fff5e1;

  /* Tuned against the cover */
  --navy-deep: #151d33;
  --navy-soft: #33436b;
  --dusk: #6f7b96;          /* cover sky */
  --red-deep: #82201b;
  --gold-soft: #f4d894;
  --gold-deep: #8a6212;     /* gold that stays readable on cream */
  --green-deep: #27402a;
  --paper: #fffaf0;
  --snow: #ffffff;
  --ink: #1d2540;
  --ink-soft: #46506b;
  --line: rgba(32, 43, 70, 0.16);

  --font-display: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --font-body: "Source Sans 3", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-verse: "Delius", "Comic Neue", "Trebuchet MS", var(--font-body);

  --step--1: clamp(0.9rem, 0.87rem + 0.15vw, 0.98rem);
  --step-0: clamp(1.06rem, 1.02rem + 0.2vw, 1.19rem);
  --step-1: clamp(1.25rem, 1.17rem + 0.4vw, 1.5rem);
  --step-2: clamp(1.55rem, 1.36rem + 0.95vw, 2.15rem);
  --step-3: clamp(1.95rem, 1.6rem + 1.75vw, 3rem);
  --step-4: clamp(2.35rem, 1.7rem + 3.2vw, 4.4rem);

  --radius-s: 0.5rem;
  --radius-m: 1rem;
  --radius-l: 1.75rem;
  --shadow-soft: 0 0.6rem 1.8rem rgba(21, 29, 51, 0.16);
  --shadow-lift: 0 1.4rem 3rem rgba(21, 29, 51, 0.32);
  --focus: var(--navy);
  --gutter: clamp(1.15rem, 4vw, 2.5rem);
}

/* 3 ── Base ─────────────────────────────────────────────────────────────── */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

main { flex: 1; display: block; }
main:focus { outline: none; }

img, picture, svg, canvas { display: block; max-width: 100%; }
img { height: auto; }

h1, h2, h3, h4 {
  margin: 0 0 0.5em;
  font-family: var(--font-display);
  font-weight: 700;
  font-variation-settings: "SOFT" 100, "WONK" 1;
  font-optical-sizing: auto;
  line-height: 1.1;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); line-height: 1.2; }

p { margin: 0 0 1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

a { color: inherit; text-underline-offset: 0.18em; text-decoration-thickness: 0.08em; }
a:hover { text-decoration-thickness: 0.14em; }

cite { font-style: italic; }
ul[role="list"], ol[role="list"] { list-style: none; margin: 0; padding: 0; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}

[hidden] { display: none !important; }

::selection { background: var(--gold); color: var(--navy-deep); }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 1rem; top: -4rem;
  z-index: 100;
  padding: 0.7rem 1.1rem;
  background: var(--gold);
  color: var(--navy-deep);
  font-weight: 700;
  border-radius: 0 0 var(--radius-s) var(--radius-s);
  text-decoration: none;
}
.skip-link:focus { top: 0; }

/* 4 ── Layout helpers ───────────────────────────────────────────────────── */
.container {
  width: min(100% - (var(--gutter) * 2), 72rem);
  margin-inline: auto;
}
.container--narrow { width: min(100% - (var(--gutter) * 2), 46rem); }

.section { position: relative; padding-block: clamp(3.25rem, 8vw, 6.5rem); }
.section--tight { padding-block: clamp(2.5rem, 6vw, 4.5rem); }

.on-cream { background: var(--cream); color: var(--ink); --focus: var(--navy); }
.on-paper { background: var(--paper); color: var(--ink); --focus: var(--navy); }
.on-navy  { background: var(--navy); color: var(--cream); --focus: var(--gold); }
.on-green { background: var(--green); color: var(--cream); --focus: var(--gold); }
.on-red   { background: var(--red); color: var(--cream); --focus: var(--cream); }

.stack > * + * { margin-top: 1em; }
.center { text-align: center; }
.measure { max-width: 38rem; }
.center .measure, .measure.center { margin-inline: auto; }

/* Snow-drift edge between sections: the SVG takes the colour of the section below */
.drift {
  position: absolute;
  left: 0; bottom: -1px;
  width: 100%;
  height: clamp(2.25rem, 6vw, 5rem);
  pointer-events: none;
  z-index: 2;
}
.drift--cream { color: var(--cream); }
.drift--paper { color: var(--paper); }
.drift--navy { color: var(--navy); }
.drift--green { color: var(--green); }
.has-drift { padding-bottom: calc(clamp(3.25rem, 8vw, 6.5rem) + clamp(2.25rem, 6vw, 5rem)); }

/* 5 ── Buttons & type pieces ────────────────────────────────────────────── */
.eyebrow {
  margin: 0 0 0.9rem;
  font-size: var(--step--1);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
}
.on-navy .eyebrow, .on-green .eyebrow, .on-red .eyebrow,
.reader-intro .eyebrow, .notfound .eyebrow { color: var(--gold); }

.lede { font-size: var(--step-1); line-height: 1.5; }

/* Gold-edged display lettering — large text only */
.display {
  font-weight: 800;
  letter-spacing: -0.015em;
  color: var(--red);
  text-shadow:
    0.022em 0 0 var(--gold), -0.022em 0 0 var(--gold),
    0 0.022em 0 var(--gold), 0 -0.022em 0 var(--gold),
    0.016em 0.016em 0 var(--gold), -0.016em 0.016em 0 var(--gold),
    0.016em -0.016em 0 var(--gold), -0.016em -0.016em 0 var(--gold),
    0 0.07em 0.02em rgba(130, 32, 27, 0.28),
    0 0.14em 0.3em rgba(21, 29, 51, 0.22);
}
.on-navy .display, .on-green .display, .display--light {
  color: var(--cream);
  text-shadow:
    0.022em 0 0 var(--gold), -0.022em 0 0 var(--gold),
    0 0.022em 0 var(--gold), 0 -0.022em 0 var(--gold),
    0.016em 0.016em 0 var(--gold), -0.016em 0.016em 0 var(--gold),
    0.016em -0.016em 0 var(--gold), -0.016em -0.016em 0 var(--gold),
    0 0.075em 0 rgba(138, 98, 18, 0.9),
    0 0.16em 0.32em rgba(8, 12, 26, 0.55);
}
.display .gold { color: var(--gold-soft); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55em;
  min-height: 3.1rem;
  padding: 0.7rem 1.6rem;
  border: 2px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-weight: 700;
  font-size: var(--step-0);
  line-height: 1.2;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
.btn svg { flex: none; width: 1.05em; height: 1.05em; }
.btn--primary {
  background: var(--red);
  color: var(--cream);
  border-color: var(--gold);
  box-shadow: 0 0.3rem 0 var(--red-deep), 0 0.7rem 1.2rem rgba(21, 29, 51, 0.25);
}
.btn--primary:hover { background: var(--red-deep); }
.btn--ghost {
  background: transparent;
  color: inherit;
  border-color: currentColor;
}
.btn--ghost:hover { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.on-navy .btn--ghost:hover, .on-green .btn--ghost:hover { background: var(--cream); color: var(--navy-deep); border-color: var(--cream); }
.btn--gold {
  background: var(--gold);
  color: var(--navy-deep);
  border-color: var(--gold);
}
.btn--gold:hover { background: var(--gold-soft); border-color: var(--gold-soft); }
.btn--small { min-height: 2.6rem; padding: 0.45rem 1.15rem; font-size: var(--step--1); box-shadow: none; }

.btn-row { display: flex; flex-wrap: wrap; gap: 0.9rem 1rem; margin-top: 1.75rem; }
.center .btn-row { justify-content: center; }

.text-link {
  font-weight: 700;
  color: var(--red);
  text-decoration: underline;
}
.on-navy .text-link, .on-green .text-link { color: var(--gold); }
.text-link::after { content: " \2192"; white-space: nowrap; }

.chips { display: flex; flex-wrap: wrap; gap: 0.5rem 0.6rem; margin: 1.5rem 0 0; padding: 0; list-style: none; }
.chips li {
  padding: 0.3rem 0.9rem;
  border: 1.5px solid var(--green);
  border-radius: 999px;
  color: var(--green-deep);
  font-size: var(--step--1);
  font-weight: 600;
  background: rgba(52, 84, 55, 0.07);
}

/* 6 ── Header & navigation ──────────────────────────────────────────────── */
.site-header {
  position: relative;
  z-index: 20;
  background: var(--navy-deep);
  color: var(--cream);
  border-bottom: 3px solid var(--gold);
  --focus: var(--gold);
}
.site-header__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  padding-block: 0.7rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--cream);
  text-decoration: none;
}
.brand__mark { width: 2.6rem; height: 2.6rem; flex: none; }
.brand__text { display: grid; line-height: 1.1; }
.brand__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-variation-settings: "SOFT" 100, "WONK" 1;
  font-size: 1.5rem;
  letter-spacing: -0.01em;
}
.brand__tag {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}
.brand:hover .brand__name { color: var(--gold-soft); }

.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.6rem;
  min-height: 2.75rem;
  padding: 0.4rem 0.95rem;
  background: transparent;
  color: var(--cream);
  border: 2px solid var(--gold);
  border-radius: 999px;
  font: inherit;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
}
.nav-toggle__bars { position: relative; width: 1.15rem; height: 0.85rem; }
.nav-toggle__bars span {
  position: absolute; left: 0; width: 100%; height: 2px;
  background: currentColor; border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle__bars span:nth-child(1) { top: 0; }
.nav-toggle__bars span:nth-child(2) { top: calc(50% - 1px); }
.nav-toggle__bars span:nth-child(3) { bottom: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(1) { transform: translateY(0.36rem) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(3) { transform: translateY(-0.36rem) rotate(-45deg); }

.site-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem 1.4rem; }
.site-nav__list { display: flex; flex-wrap: wrap; gap: 0.1rem 0.3rem; margin: 0; padding: 0; list-style: none; }
.site-nav__list a {
  display: block;
  padding: 0.55rem 0.7rem;
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--cream);
  text-decoration: none;
  border-radius: var(--radius-s);
  background-image: linear-gradient(var(--gold), var(--gold));
  background-repeat: no-repeat;
  background-size: 0 2px;
  background-position: 0.7rem calc(100% - 0.3rem);
  transition: background-size 0.2s ease, color 0.2s ease;
}
.site-nav__list a:hover { color: var(--gold-soft); background-size: calc(100% - 1.4rem) 2px; }
.site-nav__list a[aria-current="page"], .site-nav__list a.is-section { color: var(--gold); background-size: calc(100% - 1.4rem) 2px; }

@media (max-width: 67.99rem) {
  .js .nav-toggle { display: inline-flex; }
  .js .site-nav { display: none; }
  .js .site-nav.is-open { display: flex; }
  .site-nav {
    flex-basis: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
    padding: 0.5rem 0 0.9rem;
    border-top: 1px solid rgba(232, 185, 88, 0.35);
  }
  .site-nav__list { flex-direction: column; gap: 0; }
  .site-nav__list a {
    padding: 0.85rem 0.25rem;
    font-size: 1.15rem;
    border-bottom: 1px solid rgba(255, 245, 225, 0.12);
    border-radius: 0;
    background-image: none;
  }
  .site-nav__list a[aria-current="page"], .site-nav__list a.is-section { padding-left: 0.85rem; border-left: 4px solid var(--gold); }
  .site-nav .btn { align-self: flex-start; }
}

/* 7 ── Footer ───────────────────────────────────────────────────────────── */
.site-footer {
  background: var(--navy-deep);
  color: var(--cream);
  border-top: 3px solid var(--gold);
  --focus: var(--gold);
  font-size: var(--step--1);
}
.site-footer__grid {
  display: grid;
  gap: 2rem;
  padding-block: clamp(2.5rem, 6vw, 4rem) 2rem;
}
.site-footer h2 {
  margin-bottom: 0.8rem;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 700;
  font-variation-settings: normal;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}
.site-footer__motto {
  margin-top: 1rem;
  max-width: 19rem;
  font-family: var(--font-display);
  font-variation-settings: "SOFT" 100, "WONK" 1;
  font-size: 1.2rem;
  line-height: 1.3;
  color: var(--gold-soft);
}
.site-footer ul { margin: 0; padding: 0; list-style: none; }
.site-footer li { padding: 0.3rem 0; }
.site-footer li a { display: inline-block; text-decoration: none; }
.site-footer li a:hover { color: var(--gold-soft); text-decoration: underline; }
.site-footer__legal {
  padding-block: 1.25rem 1.75rem;
  border-top: 1px solid rgba(255, 245, 225, 0.16);
  color: rgba(255, 245, 225, 0.82);
}
@media (min-width: 48rem) {
  .site-footer__grid { grid-template-columns: 1.4fr 1fr 1.2fr; gap: 3rem; }
}

/* 8 ── Shared pieces ────────────────────────────────────────────────────── */
/* The cover: always square, never cropped */
.cover-frame {
  position: relative;
  width: 100%;
  max-width: 32rem;
  margin-inline: auto;
  aspect-ratio: 1 / 1;
}
.cover-frame picture, .cover-frame img {
  width: 100%;
  height: 100%;
}
.cover-frame img {
  object-fit: contain;
  border-radius: 0.3rem 0.7rem 0.7rem 0.3rem;
  box-shadow:
    inset 0.35rem 0 0.5rem -0.3rem rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(21, 29, 51, 0.25),
    var(--shadow-lift);
}
.cover-frame::after { /* book spine highlight */
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3.5%;
  border-radius: 0.3rem 0 0 0.3rem;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.28), rgba(255, 255, 255, 0.22) 55%, rgba(0, 0, 0, 0.08));
  pointer-events: none;
}
.cover-frame--small { max-width: 17rem; }

.sparkles { position: absolute; inset: -9%; pointer-events: none; z-index: 3; }
.sparkle {
  position: absolute;
  width: var(--size, 1rem);
  height: var(--size, 1rem);
  margin: calc(var(--size, 1rem) / -2) 0 0 calc(var(--size, 1rem) / -2);
  background: radial-gradient(circle, #fffdf2 0 18%, var(--gold-soft) 38%, var(--gold) 70%);
  clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%);
  filter: drop-shadow(0 0 0.35rem rgba(244, 216, 148, 0.9));
  opacity: 0;
  transform: scale(0) rotate(0deg);
}

/* Illustrations shown as storybook pages */
.plate {
  margin: 0;
  background: var(--snow);
  padding: clamp(0.4rem, 1vw, 0.65rem);
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-soft), 0 0 0 1px var(--line);
}
.plate img { width: 100%; border-radius: calc(var(--radius-m) - 0.35rem); }
.plate figcaption { padding: 0.6rem 0.4rem 0.2rem; font-size: var(--step--1); color: var(--ink-soft); text-align: center; }

/* Retailer cards — identical treatment for both shops */
.retailers {
  display: grid;
  gap: 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 40rem) { .retailers { grid-template-columns: 1fr 1fr; gap: 1.75rem; } }
.retailer {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  padding: clamp(1.4rem, 3vw, 2rem);
  background: var(--snow);
  color: var(--ink);
  border: 2px solid var(--gold);
  border-radius: var(--radius-l);
  box-shadow: var(--shadow-soft);
  --focus: var(--navy);
}
.retailer__region {
  margin: 0;
  font-size: var(--step--1);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green);
}
.retailer__name { margin: 0; font-size: var(--step-2); color: var(--navy); }
.retailer__text { margin: 0 0 0.9rem; color: var(--ink-soft); }
.retailer .btn { margin-top: auto; width: 100%; }
.retailer__meta { margin: 0.9rem 0 0; font-size: var(--step--1); color: var(--ink-soft); }
.retailers__note { margin-top: 1.5rem; font-size: var(--step--1); color: var(--ink-soft); text-align: center; }
.on-navy .retailers__note, .on-green .retailers__note { color: rgba(255, 245, 225, 0.85); }

/* Compact page heading band used by a few inner pages */
.page-band { position: relative; overflow: hidden; padding-block: clamp(2.75rem, 7vw, 5rem); }
.page-band h1 { margin-bottom: 0.35em; }
.stars {
  position: absolute; inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(1.5px 1.5px at 12% 22%, rgba(255, 255, 255, 0.9) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 31% 68%, rgba(255, 255, 255, 0.7) 50%, transparent 51%),
    radial-gradient(2px 2px at 47% 15%, rgba(244, 216, 148, 0.9) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 63% 52%, rgba(255, 255, 255, 0.75) 50%, transparent 51%),
    radial-gradient(2px 2px at 78% 28%, rgba(255, 255, 255, 0.85) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 88% 71%, rgba(244, 216, 148, 0.8) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 6% 81%, rgba(255, 255, 255, 0.6) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 55% 86%, rgba(255, 255, 255, 0.6) 50%, transparent 51%),
    radial-gradient(2px 2px at 95% 12%, rgba(255, 255, 255, 0.8) 50%, transparent 51%);
}
.page-band > .container, .hero > .container { position: relative; z-index: 3; }

/* Section menu shared by the pages that live under "Books" */
.booknav {
  background: var(--green);
  color: var(--cream);
  border-bottom: 2px solid var(--gold);
  --focus: var(--gold);
}
.booknav__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 0.1rem 1.5rem; padding-block: 0.3rem; }
.booknav__title {
  margin: 0;
  font-family: var(--font-display);
  font-variation-settings: "SOFT" 100, "WONK" 1;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--gold-soft);
}
.booknav__list { display: flex; flex-wrap: wrap; gap: 0 0.25rem; margin: 0 0 0 -0.7rem; padding: 0; list-style: none; }
.booknav__list a {
  display: block;
  padding: 0.6rem 0.7rem;
  font-size: var(--step--1);
  font-weight: 600;
  color: var(--cream);
  text-decoration: none;
  border-radius: var(--radius-s);
}
.booknav__list a:hover { text-decoration: underline; }
.booknav__list a[aria-current="page"] { color: var(--gold); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.35em; }
@media (min-width: 48rem) { .booknav__list { margin-left: auto; } }

/* Link cards on the Books page */
.hub { display: grid; gap: 1.25rem; margin: clamp(1.5rem, 4vw, 2.5rem) 0 0; padding: 0; list-style: none; }
@media (min-width: 48rem) { .hub { grid-template-columns: repeat(3, 1fr); } }
.hub__card {
  position: relative;
  padding: clamp(1.3rem, 3vw, 1.8rem);
  background: var(--cream);
  color: var(--ink);
  border: 2px solid var(--gold);
  border-radius: var(--radius-l);
  box-shadow: var(--shadow-soft);
  --focus: var(--navy);
}
.hub__card h3 { margin-bottom: 0.4rem; font-size: var(--step-1); }
.hub__card h3 a { color: var(--red); text-decoration: none; }
.hub__card h3 a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.hub__card h3 a::before { content: "\2192"; float: right; margin-left: 0.5rem; }
.hub__card:hover { background: var(--snow); }
.hub__card:hover h3 a { text-decoration: underline; }
.hub__card p { color: var(--ink-soft); font-size: var(--step--1); }

/* News, events and blog posts */
.news-grid { display: grid; gap: clamp(2.5rem, 6vw, 4.5rem); align-items: start; }
@media (min-width: 56rem) { .news-grid { grid-template-columns: 1fr 1fr; } }
.entries { display: grid; gap: 1.25rem; margin: 1.5rem 0 0; padding: 0; list-style: none; }
.entry {
  padding: clamp(1.3rem, 3vw, 1.8rem);
  background: var(--snow);
  border: 1.5px solid var(--line);
  border-left: 6px solid var(--red);
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-soft);
}
.entry h3 { color: var(--navy); margin-bottom: 0.4rem; }
.entry__label {
  display: inline-block;
  margin: 0 0 0.6rem;
  padding: 0.15rem 0.75rem;
  border-radius: 999px;
  background: var(--green);
  color: var(--cream);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.entry__date, .entry__meta { margin: 0 0 0.5rem; font-size: var(--step--1); font-weight: 600; color: var(--green-deep); }
.empty-note {
  margin-top: 1.5rem;
  padding: clamp(1.3rem, 3vw, 1.8rem);
  border: 2px dashed var(--green);
  border-radius: var(--radius-m);
  background: rgba(52, 84, 55, 0.06);
  color: var(--ink-soft);
}
.empty-note strong { color: var(--green-deep); font-size: var(--step-1); font-family: var(--font-display); font-variation-settings: "SOFT" 100, "WONK" 1; }
.empty-note--large { margin-top: 2.25rem; padding-block: clamp(2rem, 5vw, 3rem); text-align: center; }
.post { margin-top: 2.5rem; padding-top: 2.25rem; border-top: 2px solid var(--gold); }
.post h2 { font-size: var(--step-2); color: var(--navy); margin-bottom: 0.4rem; }
/* 9 ── Home ─────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  overflow: hidden;
  color: var(--cream);
  --focus: var(--gold);
  background:
    radial-gradient(58rem 30rem at 82% 62%, rgba(232, 185, 88, 0.26), transparent 62%),
    radial-gradient(40rem 22rem at 8% 108%, rgba(209, 173, 165, 0.3), transparent 62%),
    linear-gradient(180deg, var(--navy-deep) 0%, var(--navy) 42%, var(--navy-soft) 100%);
  padding-block: clamp(2rem, 5vw, 4.5rem) calc(clamp(3rem, 7vw, 5.5rem) + clamp(2.25rem, 6vw, 5rem));
}
.snow { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; }
.hero__inner { display: grid; gap: clamp(1.75rem, 5vw, 4rem); align-items: center; }
.hero__cover { order: -1; padding-inline: clamp(0.5rem, 8vw, 4rem); }
.hero__title { font-size: clamp(2.3rem, 1.45rem + 4.1vw, 4.6rem); margin-bottom: 0.4em; }
.hero__lede { max-width: 33rem; font-size: var(--step-1); line-height: 1.5; color: #fff9ec; }
.hero .eyebrow { color: var(--gold); }
@media (min-width: 56rem) {
  .hero__inner { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); }
  .hero__cover { order: 0; padding-inline: 0; }
}

.motion-toggle {
  position: absolute;
  right: var(--gutter);
  bottom: calc(clamp(2.25rem, 6vw, 5rem) + 0.6rem);
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.5rem;
  padding: 0.35rem 0.95rem;
  background: rgba(21, 29, 51, 0.78);
  color: var(--cream);
  border: 1.5px solid rgba(232, 185, 88, 0.8);
  border-radius: 999px;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
}
.motion-toggle:hover { background: var(--navy-deep); border-color: var(--gold); }
.motion-toggle[hidden] { display: none; }
.motion-toggle svg { width: 0.9rem; height: 0.9rem; }
@media (max-width: 55.99rem) {
  .motion-toggle { position: relative; right: auto; bottom: auto; margin: 1.5rem 0 0 var(--gutter); }
}

.story__grid { display: grid; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.story__art { position: relative; max-width: 30rem; margin-inline: auto; padding: 0 6% 12% 0; }
.story__art .plate:first-child { transform: rotate(-2.2deg); }
.story__art .plate + .plate {
  position: absolute;
  right: 0; bottom: 0;
  width: 46%;
  transform: rotate(3.5deg);
}
@media (min-width: 56rem) {
  .story__grid { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); }
}

.author-feature__grid { display: grid; gap: clamp(1.75rem, 5vw, 4rem); align-items: center; }
.portrait-round {
  width: min(100%, 19rem);
  margin-inline: auto;
  aspect-ratio: 1;
  border-radius: 50%;
  padding: 0.5rem;
  background: conic-gradient(from 210deg, var(--gold), var(--gold-soft), var(--gold-deep), var(--gold));
  box-shadow: var(--shadow-lift);
}
.portrait-round img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; border-radius: 50%; border: 4px solid var(--green-deep); }
@media (min-width: 48rem) {
  .author-feature__grid { grid-template-columns: 19rem minmax(0, 1fr); }
}

.buy-section__head { margin-bottom: clamp(1.75rem, 4vw, 2.75rem); }

/* Look inside: four plates from the book */
.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(0.9rem, 2.5vw, 1.5rem);
  margin: clamp(1.75rem, 4vw, 2.75rem) 0 0;
  padding: 0;
  list-style: none;
}
.gallery .plate { color: var(--ink); }
.gallery .plate figcaption { font-weight: 600; color: var(--ink); }
.gallery li:nth-child(odd) .plate { transform: rotate(-1.4deg); }
.gallery li:nth-child(even) .plate { transform: rotate(1.4deg); }
@media (min-width: 56rem) {
  .gallery { grid-template-columns: repeat(4, 1fr); }
  .gallery li:nth-child(even) { margin-top: 1.5rem; }
}

/* Theme cards on a light background */
.themes--light .theme { background: var(--snow); border: 2px solid var(--gold); box-shadow: var(--shadow-soft); }
.themes--light .theme__icon { color: var(--red); }
.themes--light .theme h3 { color: var(--navy); }
.themes--light .theme p { color: var(--ink-soft); }

.on-red .eyebrow { color: var(--gold-soft); }

/* Families & schools teaser with a miniature of the activity sheet */
.activity-teaser { display: grid; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
@media (min-width: 56rem) { .activity-teaser { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); } }
.worksheet--mini { max-width: 27rem; width: 100%; margin-inline: auto; padding: clamp(1.25rem, 3vw, 2rem); transform: rotate(1.6deg); }
.worksheet__mini-title {
  margin: 0;
  padding-bottom: 0.6rem;
  border-bottom: 2px solid var(--gold);
  font-family: var(--font-display);
  font-variation-settings: "SOFT" 100, "WONK" 1;
  font-weight: 700;
  font-size: var(--step-2);
  line-height: 1.15;
  color: var(--red);
}
.worksheet__mini-sub { margin: 0.9rem 0 0; font-weight: 700; color: var(--green-deep); }
.worksheet--mini .fill { margin-top: 0.4rem; }
.worksheet--mini .fill li { font-size: var(--step-0); }
.worksheet--mini .fill li:last-child { border-bottom: 0; }

/* Latest news strip */
.latest__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 0.75rem 2rem; }
.latest__head h2 { margin-bottom: 0; }
.latest__links { display: flex; flex-wrap: wrap; gap: 0.5rem 1.75rem; margin: 0; }
.latest__grid { display: grid; gap: 1.25rem; margin-top: clamp(1.5rem, 4vw, 2.25rem); align-items: stretch; }
.latest__grid .empty-note { margin-top: 0; }
@media (min-width: 48rem) { .latest__grid { grid-template-columns: repeat(2, 1fr); } }

/* 10 ── The Book ────────────────────────────────────────────────────────── */
.book-hero { overflow: hidden; }
.book-hero__grid { display: grid; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.book-hero__cover { padding-inline: clamp(0rem, 8vw, 4rem); }
.book-hero__isbn { margin-top: 1.4rem; text-align: center; font-size: var(--step--1); color: var(--ink-soft); }
.book-hero__isbn strong { letter-spacing: 0.04em; color: var(--ink); }
.byline { font-size: var(--step-1); color: var(--ink-soft); margin-top: -0.2em; }
.byline a { color: var(--red); font-weight: 700; }
@media (min-width: 56rem) {
  .book-hero__grid { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); }
  .book-hero__cover { position: sticky; top: 2rem; padding-inline: 0; }
}

.themes { display: grid; gap: 1.25rem; margin: clamp(1.75rem, 4vw, 2.75rem) 0 0; padding: 0; list-style: none; }
@media (min-width: 48rem) { .themes { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; } }
.theme {
  padding: clamp(1.4rem, 3vw, 2rem);
  border: 1.5px solid rgba(232, 185, 88, 0.55);
  border-radius: var(--radius-l);
  background: rgba(255, 245, 225, 0.06);
}
.theme__icon { width: 3rem; height: 3rem; margin-bottom: 1rem; color: var(--gold); }
.theme h3 { color: var(--gold-soft); font-size: var(--step-2); }

.details-grid { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (min-width: 56rem) { .details-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.details { margin: 0; border-top: 2px solid var(--gold); }
.details > div { display: grid; grid-template-columns: 9rem 1fr; gap: 1rem; padding: 0.8rem 0; border-bottom: 1px solid var(--line); }
.details dt { font-weight: 700; color: var(--green-deep); }
.details dd { margin: 0; }
.sample-teaser { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.sample-teaser .plate:nth-child(1) { transform: rotate(-1.5deg); }
.sample-teaser .plate:nth-child(2) { transform: rotate(1.8deg) translateY(1rem); }

/* 11 ── Read a Sample ───────────────────────────────────────────────────── */
.reader-page {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--navy-deep), var(--navy) 55%, var(--navy-soft));
  color: var(--cream);
  --focus: var(--gold);
  padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(3.5rem, 8vw, 6rem);
}
.reader-intro { max-width: 40rem; margin: 0 auto clamp(1.75rem, 4vw, 2.75rem); text-align: center; }
.reader { max-width: 64rem; margin-inline: auto; }
.reader__stage { display: grid; perspective: 2200px; }
.reader__view {
  grid-area: 1 / 1;
  display: grid;
  background: var(--paper);
  color: var(--ink);
  border-radius: var(--radius-m);
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(232, 185, 88, 0.6), 0 0 0 0.45rem rgba(138, 98, 18, 0.55), var(--shadow-lift);
  transform-origin: 0 50%;
  backface-visibility: hidden;
  --focus: var(--navy);
}
.no-js .reader__view, .reader:not(.is-enhanced) .reader__view { grid-area: auto; margin-bottom: 2rem; }
.reader__view[hidden] { display: none; }
.reader__art { margin: 0; position: relative; }
.reader__art img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.reader__text {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.9rem;
  padding: clamp(1.5rem, 4.5vw, 3.25rem);
  padding-bottom: clamp(2.75rem, 5vw, 3.5rem);
  background:
    linear-gradient(90deg, rgba(32, 43, 70, 0.14), transparent 7%),
    var(--paper);
}
.reader__scene {
  margin: 0;
  font-size: var(--step--1);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
}
.reader__heading { margin: 0; font-size: var(--step-2); color: var(--navy); }
.verse, .reader__caption {
  margin: 0;
  font-family: var(--font-verse);
  font-size: clamp(1.3rem, 1.05rem + 1.1vw, 1.85rem);
  line-height: 1.55;
  color: var(--ink);
}
.verse__line { display: block; }
.reader__folio {
  position: absolute;
  right: clamp(1.25rem, 3vw, 2rem);
  bottom: 0.9rem;
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--ink-soft);
}
@media (min-width: 48rem) {
  .reader__view { grid-template-columns: 1fr 1fr; }
}

.reader__controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.75rem;
}
.reader:not(.is-enhanced) .reader__controls { display: none; }
.reader__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 3rem;
  padding: 0.5rem 1.2rem;
  background: var(--gold);
  color: var(--navy-deep);
  border: 2px solid var(--gold);
  border-radius: 999px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.reader__btn:hover:not([aria-disabled="true"]) { background: var(--gold-soft); border-color: var(--gold-soft); }
.reader__btn[aria-disabled="true"] { background: transparent; color: rgba(255, 245, 225, 0.6); border-color: rgba(255, 245, 225, 0.4); cursor: not-allowed; }
.reader__btn svg { width: 1.1rem; height: 1.1rem; }
.reader__dots { display: flex; gap: 0.15rem; margin: 0; padding: 0; list-style: none; }
.reader__dot {
  display: grid;
  place-items: center;
  width: 2.75rem; height: 2.75rem;
  padding: 0;
  background: none;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
}
.reader__dot::before {
  content: "";
  width: 0.85rem; height: 0.85rem;
  border-radius: 50%;
  border: 2px solid var(--gold);
  background: transparent;
  transition: background-color 0.2s ease, transform 0.2s ease;
}
.reader__dot[aria-current="true"]::before { background: var(--gold); transform: scale(1.25); }
.reader__status { margin-top: 0.9rem; text-align: center; font-size: var(--step--1); color: rgba(255, 245, 225, 0.9); }
.reader__hint { margin-top: 0.3rem; text-align: center; font-size: var(--step--1); color: rgba(255, 245, 225, 0.75); }
@media (max-width: 39.99rem) {
  .reader__btn span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .reader__btn { padding: 0.5rem 0.95rem; }
}
.reader-after { margin-top: clamp(2.5rem, 6vw, 4rem); text-align: center; }

@keyframes turn-out-next { to { transform: rotateY(-78deg); opacity: 0; } }
@keyframes turn-in-next { from { transform: rotateY(24deg); opacity: 0; } }
@keyframes turn-out-prev { to { transform: rotateY(24deg); opacity: 0; } }
@keyframes turn-in-prev { from { transform: rotateY(-78deg); opacity: 0; } }
.reader__view.is-out-next { animation: turn-out-next 0.46s ease-in both; z-index: 2; }
.reader__view.is-in-next { animation: turn-in-next 0.46s ease-out both; }
.reader__view.is-out-prev { animation: turn-out-prev 0.46s ease-in both; }
.reader__view.is-in-prev { animation: turn-in-prev 0.46s ease-out both; z-index: 2; }

/* 12 ── About ───────────────────────────────────────────────────────────── */
.about-hero { overflow: hidden; }
.about-hero__grid { display: grid; gap: clamp(2.25rem, 6vw, 5rem); align-items: center; }
.portrait-frame {
  position: relative;
  width: min(100%, 24rem);
  margin: 0 auto;
  padding: 0 1.1rem 1.1rem 0;
}
.portrait-frame::before {
  content: "";
  position: absolute;
  inset: 1.1rem 0 0 1.1rem;
  border: 3px solid var(--gold);
  border-radius: var(--radius-l);
  background: var(--green);
}
.portrait-frame img {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius-l);
  box-shadow: var(--shadow-soft);
}
.portrait-frame figcaption { position: relative; padding: 1.5rem 0 0 1.1rem; font-size: var(--step--1); color: var(--ink-soft); }
@media (min-width: 52rem) {
  .about-hero__grid { grid-template-columns: minmax(0, 24rem) minmax(0, 1fr); }
}
.motto {
  margin: 0;
  font-family: var(--font-display);
  font-variation-settings: "SOFT" 100, "WONK" 1;
  font-weight: 700;
  font-size: var(--step-3);
  line-height: 1.15;
  text-wrap: balance;
}
.motto-band__grid { display: grid; gap: clamp(1.75rem, 5vw, 4rem); align-items: center; }
@media (min-width: 48rem) { .motto-band__grid { grid-template-columns: minmax(0, 1fr) 15rem; } }

/* 13 ── Families & Schools ──────────────────────────────────────────────── */
.questions { counter-reset: q; display: grid; gap: 1.5rem; margin: clamp(1.75rem, 4vw, 2.75rem) 0 0; padding: 0; list-style: none; }
.question {
  counter-increment: q;
  position: relative;
  padding: clamp(1.4rem, 3vw, 2rem);
  padding-left: clamp(4.6rem, 9vw, 6.5rem);
  background: var(--snow);
  border-radius: var(--radius-l);
  border: 1.5px solid var(--line);
  box-shadow: var(--shadow-soft);
}
.question::before {
  content: counter(q);
  position: absolute;
  left: clamp(1.1rem, 2.5vw, 1.75rem);
  top: clamp(1.2rem, 2.6vw, 1.75rem);
  display: grid;
  place-items: center;
  width: clamp(2.6rem, 5vw, 3.4rem);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--red);
  color: var(--cream);
  border: 2px solid var(--gold);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--step-1);
}
.question__tag {
  margin: 0 0 0.35rem;
  font-size: var(--step--1);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green);
}
.question h3 { font-size: var(--step-1); color: var(--navy); margin-bottom: 0.5rem; }
.question p { color: var(--ink-soft); }

.worksheet {
  background: var(--snow);
  color: var(--ink);
  border: 2px dashed var(--green);
  border-radius: var(--radius-l);
  padding: clamp(1.4rem, 4vw, 3rem);
  box-shadow: var(--shadow-soft);
}
.worksheet__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.5rem 2rem; border-bottom: 2px solid var(--gold); padding-bottom: 1rem; margin-bottom: 1.5rem; }
.worksheet__head h2 { margin: 0; color: var(--red); font-size: var(--step-3); }
.worksheet__name { margin: 0; font-weight: 600; white-space: nowrap; }
.worksheet__name span { display: inline-block; width: 11rem; border-bottom: 2px solid var(--ink); }
.worksheet h3 { margin-top: 2rem; color: var(--green-deep); font-size: var(--step-2); }
.worksheet h3 small { display: block; margin-top: 0.3rem; font-family: var(--font-body); font-size: var(--step-0); font-weight: 400; font-variation-settings: normal; letter-spacing: 0; color: var(--ink-soft); }
.match { display: grid; grid-template-columns: 1fr 1fr; gap: 0 clamp(3rem, 16vw, 10rem); max-width: 30rem; margin: 1.25rem auto 0; }
.match ul { margin: 0; padding: 0; list-style: none; }
.match li {
  display: flex; align-items: center; justify-content: space-between; gap: 0.75rem;
  padding: 0.5rem 0;
  font-family: var(--font-verse);
  font-size: var(--step-1);
}
.match ul:last-child li { flex-direction: row-reverse; }
.match li::after {
  content: "";
  width: 0.8rem; height: 0.8rem; flex: none;
  border-radius: 50%;
  border: 2px solid var(--red);
}
.fill { margin: 1.25rem 0 0; padding: 0; list-style: none; counter-reset: fill; }
.fill li {
  counter-increment: fill;
  position: relative;
  padding: 0.7rem 0 0.7rem 2.4rem;
  font-family: var(--font-verse);
  font-size: var(--step-1);
  line-height: 1.6;
  border-bottom: 1px dotted var(--line);
}
.fill li::before { content: counter(fill) "."; position: absolute; left: 0; font-family: var(--font-display); font-weight: 700; color: var(--red); }
.fill .gap { display: inline-block; min-width: 6.5rem; border-bottom: 2px solid var(--ink); }
.fill .line { display: block; }
.wordbank { margin: 1.1rem 0 0; padding: 0.85rem 1.1rem; border-radius: var(--radius-m); background: rgba(52, 84, 55, 0.08); border: 1.5px solid rgba(52, 84, 55, 0.35); }
.wordbank strong { color: var(--green-deep); }
.wordbank span { font-family: var(--font-verse); font-size: var(--step-1); margin-left: 0.6rem; }
.write-lines { margin-top: 1.25rem; display: grid; gap: 2.4rem; padding-top: 1.6rem; }
.write-lines span { display: block; border-bottom: 2px solid var(--ink); }
.draw-box { margin-top: 1.75rem; height: 12rem; border: 2px solid var(--ink); border-radius: var(--radius-m); display: grid; place-items: start; padding: 0.7rem 1rem; color: var(--ink-soft); font-size: var(--step--1); }
.worksheet__foot { margin-top: 1.5rem; font-size: var(--step--1); color: var(--ink-soft); }
.answers { margin-top: 1.5rem; }
.answers summary { cursor: pointer; font-weight: 700; color: var(--green-deep); padding: 0.4rem 0; }
.answers p { margin-top: 0.5rem; color: var(--ink-soft); }
.print-only { display: none; }

/* 14 ── Buy ─────────────────────────────────────────────────────────────── */
.buy-hero__grid { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.buy-hero__cover { padding-inline: clamp(1.5rem, 14vw, 7rem); }
@media (min-width: 60rem) {
  .buy-hero__grid { grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr); }
  .buy-hero__cover { padding-inline: 0; }
}
.buy-facts { display: flex; flex-wrap: wrap; gap: 0.4rem 1.75rem; margin: 1.25rem 0 1.75rem; padding: 0; list-style: none; font-size: var(--step--1); color: var(--ink-soft); }
.buy-facts strong { color: var(--ink); }
.ribbon { position: relative; overflow: hidden; }

/* 15 ── Contact ─────────────────────────────────────────────────────────── */
.contact-card {
  background: var(--snow);
  border: 2px solid var(--gold);
  border-radius: var(--radius-l);
  padding: clamp(1.5rem, 4vw, 3rem);
  box-shadow: var(--shadow-soft);
}
.enquiry-types { display: grid; gap: 1rem; margin: 1.5rem 0 0; padding: 0; list-style: none; }
@media (min-width: 44rem) { .enquiry-types { grid-template-columns: repeat(3, 1fr); } }
.enquiry-types li { padding: 1.1rem 1.2rem; border-radius: var(--radius-m); background: rgba(52, 84, 55, 0.07); border: 1.5px solid rgba(52, 84, 55, 0.3); }
.enquiry-types h3 { font-size: var(--step-1); color: var(--green-deep); margin-bottom: 0.3rem; }
.enquiry-types p { font-size: var(--step--1); color: var(--ink-soft); }
.enquiry-types .btn { margin-top: 0.9rem; }
.form { display: grid; gap: 1.1rem; margin-top: 1.5rem; }
.form label { display: block; font-weight: 700; margin-bottom: 0.3rem; }
.form input, .form select, .form textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  font: inherit;
  color: var(--ink);
  background: var(--paper);
  border: 2px solid var(--ink-soft);
  border-radius: var(--radius-s);
}
.form textarea { min-height: 9rem; resize: vertical; }
.form__hp { position: absolute; left: -999rem; }
.form__status { font-weight: 700; }
.form__status[data-state="ok"] { color: var(--green-deep); }
.form__status[data-state="error"] { color: var(--red); }

/* 16 ── 404 ─────────────────────────────────────────────────────────────── */
.notfound {
  position: relative;
  overflow: hidden;
  display: grid;
  align-items: center;
  min-height: 70vh;
  text-align: center;
  background:
    radial-gradient(40rem 22rem at 50% 110%, rgba(232, 185, 88, 0.22), transparent 65%),
    linear-gradient(180deg, var(--navy-deep), var(--navy) 55%, var(--navy-soft));
  color: var(--cream);
  --focus: var(--gold);
  padding-block: clamp(3.5rem, 9vw, 7rem);
}
.notfound__code { margin: 0; font-family: var(--font-display); font-size: clamp(5rem, 22vw, 11rem); line-height: 0.95; }
.notfound .container { position: relative; z-index: 2; }

/* 17 ── Motion ──────────────────────────────────────────────────────────── */
@keyframes sparkle-pop {
  0% { opacity: 0; transform: scale(0) rotate(0deg); }
  35% { opacity: 1; transform: scale(1.15) rotate(40deg); }
  100% { opacity: 0; transform: scale(0.2) rotate(110deg); }
}
.sparkles.is-playing .sparkle { animation: sparkle-pop 0.95s ease-out var(--delay, 0s) both; }

/* Gentle section entrances — only when JavaScript is running and motion is welcome */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(1.1rem); transition: opacity 0.7s ease, transform 0.7s ease; }
  .js .reveal.is-visible { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .sparkles { display: none; }
}

/* 18 ── Print (the Families & Schools sheet) ────────────────────────────── */
@media print {
  @page { margin: 16mm; }
  html, body { background: #fff !important; color: #000 !important; font-size: 12pt; }
  .site-header, .site-footer, .booknav, .skip-link, .no-print, .drift, .stars, .snow, .motion-toggle, .btn { display: none !important; }
  .section, .page-band { padding: 0 !important; background: #fff !important; color: #000 !important; }
  .container { width: 100% !important; }
  .js .reveal { opacity: 1 !important; transform: none !important; }
  .print-only { display: block; }
  .display { text-shadow: none !important; color: #000 !important; }
  .questions { gap: 0.6rem; margin-top: 0.8rem; }
  .question, .worksheet { box-shadow: none !important; border-color: #777 !important; break-inside: avoid; }
  .question { padding-top: 0.9rem; padding-bottom: 0.9rem; }
  .question::before { background: #fff; color: #000; border-color: #000; }
  .worksheet { border: 0 !important; padding: 0 !important; break-before: page; }
  .worksheet__head h2, .worksheet h3, .question h3, .question__tag, .eyebrow { color: #000 !important; }
  .answers { display: none; }
  a { text-decoration: none; }
}
