:root {
  /* Nadia's brand colours */
  --paper: #ffffff;
  --pink: #f7c6d3;
  --yellow: #f6df8e;
  --green: #bfe2b0;
  --blue: #beddf1;
  --lilac: #ddd0e9;
  --ink: #33292b;

  /* The book colours at 30%: page backgrounds and full-width bands */
  --pink-wash: #fdeef2;
  --yellow-wash: #fcf6dd;
  --green-wash: #ecf6e7;
  --blue-wash: #ecf5fb;
  --lilac-wash: #f5f1f8;

  /* The book colours at 60%: boxes that sit on those backgrounds */
  --pink-mid: #fadde5;
  --yellow-mid: #faecbb;
  --green-mid: #d9eed0;
  --blue-mid: #d8ebf7;
  --lilac-mid: #ebe3f2;

  --muted: #5e5254;
  --line: #e3dcea;
  --wood: #bb8554;
  --wood-dark: #8f5f39;
  --danger: #9c2b3f;

  /* Century Gothic where installed. Questrial is the close web lookalike. */
  --heading: "Century Gothic", CenturyGothic, "Questrial", sans-serif;
  --body: "Century Gothic", CenturyGothic, "Questrial", sans-serif;
  --radius: 28px;
  --gutter: clamp(16px, 4vw, 40px);
}

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

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

/* Each page has its own book colour. Change the colour names here to try others. */
body[data-page="index"]   { --page: var(--blue-wash); }
body[data-page="books"]   { --page: var(--lilac-wash); }
body[data-page="story"]   { --page: var(--pink-wash); }
body[data-page="shop"]    { --page: var(--yellow-wash); }
body[data-page="schools"] { --page: var(--green-wash); }
body[data-page="faq"]     { --page: var(--lilac-wash); }
body[data-page="contact"] { --page: var(--blue-wash); }
body[data-page="success"] { --page: var(--green-wash); }

body {
  margin: 0;
  background: var(--page, var(--paper));
  color: var(--ink);
  font: 400 1rem/1.7 var(--body);
  overflow-x: clip;
}

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

h1, h2, h3 {
  font-family: var(--heading);
  font-weight: 400;
  line-height: 1.16;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: clamp(2.3rem, 5.4vw, 4rem); letter-spacing: -0.015em; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.75rem); letter-spacing: -0.01em; }
h3 { font-size: 1.4rem; }
p { margin: 0; }
a { color: inherit; text-underline-offset: 3px; }

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

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 60;
  background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 10px;
}
.skip-link:focus { top: 12px; }

.wrap { width: min(1160px, 100%); margin-inline: auto; padding-inline: var(--gutter); }
.narrow { width: min(740px, 100%); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(56px, 8vw, 104px); }
.stack > * + * { margin-top: 1.1em; }
.lead { font-size: clamp(1.15rem, 1.8vw, 1.32rem); line-height: 1.6; }
.muted { color: var(--muted); }
.center { text-align: center; }

.eyebrow {
  font-weight: 700; font-size: 0.95rem; color: var(--muted); margin-bottom: 14px;
}

.section-head { max-width: 680px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head.center { margin-inline: auto; }
.section-head p:not(.eyebrow) { margin-top: 16px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 10px 24px; border-radius: 999px;
  border: 2px solid var(--ink); background: var(--ink); color: var(--paper);
  font: 700 1rem/1.2 var(--body); text-decoration: none; cursor: pointer;
  transition: transform .15s ease, background-color .15s ease, color .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-soft { background: transparent; color: var(--ink); }
.btn-soft:hover { background: var(--ink); color: var(--paper); }
.btn[disabled] { opacity: .6; cursor: wait; transform: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.text-link { font-weight: 700; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 30;
  background: rgba(255, 255, 255, .94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
}
.header-inner { display: flex; align-items: center; gap: 16px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; min-width: 0; }
.brand img { width: 66px; height: auto; flex: none; }
.brand span { font: 400 1.06rem/1.15 var(--heading); }
@media (min-width: 1181px) { .brand span { white-space: nowrap; } }
.nav-list { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav-list a {
  display: block; padding: 8px 9px; border-radius: 999px;
  text-decoration: none; font-weight: 600; font-size: .92rem; white-space: nowrap;
}
.nav-list a:hover { background: var(--lilac-wash); }
.nav-list a[aria-current="page"] { background: var(--yellow); }
.cart-btn, .menu-btn {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 14px;
  background: var(--lilac); color: var(--ink); border: 0; border-radius: 999px;
  font: 700 .96rem var(--body); cursor: pointer; flex: none;
}
.cart-btn:hover, .menu-btn:hover { background: var(--pink); }
.cart-count {
  display: inline-grid; place-items: center; min-width: 24px; height: 24px; padding-inline: 6px;
  border-radius: 999px; background: var(--ink); color: var(--paper); font-size: .82rem;
}
.menu-btn { display: none; background: var(--yellow); }

@media (max-width: 1180px) {
  .menu-btn { display: inline-flex; }
  .site-nav {
    display: none; position: absolute; inset: 100% 0 auto;
    background: var(--paper); border-bottom: 1px solid var(--line); padding: 10px var(--gutter) 18px;
  }
  .site-nav.open { display: block; }
  .nav-list { flex-direction: column; align-items: stretch; }
  .nav-list a { padding: 12px 14px; font-size: 1.05rem; }
}
@media (max-width: 480px) {
  .brand img { width: 50px; }
  .brand span { font-size: .98rem; }
  .header-inner { gap: 8px; }
  .cart-btn, .menu-btn { padding: 8px 11px; }
  .cart-label { display: none; }
}

/* Hero */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(40vw 34vw at 8% 12%, var(--pink-mid), transparent 70%),
    radial-gradient(42vw 34vw at 96% 6%, var(--lilac-mid), transparent 70%),
    radial-gradient(44vw 18vw at 72% 72%, var(--green-mid), transparent 70%);
}
.hero-grid {
  display: grid; grid-template-columns: 1.02fr 1fr; align-items: center;
  gap: clamp(24px, 4vw, 56px); padding-block: clamp(44px, 7vw, 92px);
}
.hero .tagline { font: 400 clamp(1.05rem, 1.7vw, 1.25rem)/1.4 var(--heading); margin-bottom: 18px; }
.hero .lead { margin-top: 22px; max-width: 34em; }
.hero .btn-row { margin-top: 30px; }
.hero-art img { width: 100%; height: auto; }
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { order: -1; max-width: 500px; margin-inline: auto; }
}

/* Brand dots */
.dots { display: flex; gap: 8px; margin-top: 34px; }
.dots i { width: 18px; height: 18px; border-radius: 50%; }
.c-pink { background: var(--pink); }
.c-yellow { background: var(--yellow); }
.c-green { background: var(--green); }
.c-blue { background: var(--blue); }
.c-lilac { background: var(--lilac); }

/* Nadia's book cover colours, one per book. The darker ones take white text. */
.c-autism { background: #607d54; color: #fff; }
.c-adhd { background: #2396b0; color: #fff; }
.c-ocd { background: #e2a9f1; }
.c-pda { background: #e87ba4; }
.c-mutism { background: #e44d6a; color: #fff; }
.c-dyslexia { background: #ffbd59; }
.c-anxiety { background: #ffdf5d; }

/* The collection's topics, drawn as the brand-board circles */
.ways {
  display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(12px, 2vw, 22px);
  list-style: none; margin: 0; padding: 0;
}
.way {
  width: clamp(126px, 17vw, 178px); aspect-ratio: 1; border-radius: 50%;
  display: grid; place-content: center; text-align: center; padding: 10px;
  font: 400 clamp(1.05rem, 1.9vw, 1.4rem)/1.2 var(--heading);
}
.topic-pills { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 22px 0 0; padding: 0; }
.topic-pills li { padding: 5px 16px; border-radius: 999px; font-weight: 700; font-size: .95rem; }

/* Tinted panels */
.panel { border-radius: var(--radius); padding: clamp(22px, 3.5vw, 40px); }
.cta-strip {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 24px;
  width: fit-content; max-width: 100%; margin-inline: auto; padding: 14px 28px; text-align: center;
}
.cta-strip h2, .cta-strip .pull { font-size: clamp(1.15rem, 2vw, 1.4rem); }
.bg-pink { background: var(--pink-mid); }
.bg-yellow { background: var(--yellow-mid); }
.bg-green { background: var(--green-mid); }
.bg-blue { background: var(--blue-mid); }
.bg-lilac { background: var(--lilac-mid); }
.section.bg-pink { background: var(--pink-wash); }
.section.bg-yellow { background: var(--yellow-wash); }
.section.bg-green { background: var(--green-wash); }
.section.bg-blue { background: var(--blue-wash); }
.section.bg-lilac { background: var(--lilac-wash); }
.two-col { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(16px, 2.5vw, 28px); }
.two-col .panel { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 20px 24px; border-radius: 20px; }
.two-col .panel h2 { font-size: 1.25rem; font-weight: 700; }
.two-col .panel .btn { min-height: 40px; padding: 6px 18px; font-size: .92rem; margin-top: auto; }
.two-col .panel p { margin-bottom: 6px; }
.two-col .panel .btn, .two-col .panel .text-link { margin-top: auto; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
@media (max-width: 800px) { .two-col, .split { grid-template-columns: 1fr; } }

.pull {
  font: 400 clamp(1.6rem, 3.2vw, 2.4rem)/1.25 var(--heading); text-wrap: balance;
}

/* Page intro */
.page-intro { padding-block: clamp(44px, 6vw, 80px) clamp(24px, 3vw, 40px); }
.page-intro .lead { margin-top: 18px; max-width: 40em; }

/* The window */
.win { perspective: 1500px; padding-inline: 17%; }
.win-frame {
  position: relative; aspect-ratio: 5 / 4; background: var(--wood);
  border: 9px solid var(--wood); border-radius: 3px;
  box-shadow: inset 0 0 0 2px var(--wood-dark), 0 0 0 1px var(--wood-dark);
  transform-style: preserve-3d;
}
.win-frame::after { /* sill */
  content: ""; position: absolute; left: -22px; right: -22px; bottom: -19px; height: 13px;
  background: var(--wood); border: 1px solid var(--wood-dark); border-radius: 2px;
}
.win { cursor: pointer; }
.win-scene { width: 100%; height: 100%; }
.win-actors { position: absolute; inset: 0; overflow: hidden; will-change: transform; }
.shutter {
  position: absolute; top: 0; bottom: 0; width: 50%;
  background: linear-gradient(135deg, #e6f2fa 0 42%, #f8fcff 42% 50%, #d6e9f5 50%);
  border: 7px solid var(--wood);
  box-shadow: 0 0 0 1px var(--wood-dark), inset 0 0 0 1px var(--wood-dark);
  transition: transform 1.2s cubic-bezier(.3, .8, .3, 1);
}
.shutter::after { /* glazing bar */
  content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 7px; margin-top: -3.5px;
  background: var(--wood);
}
.shutter.l { left: 0; transform-origin: left center; }
.shutter.r { right: 0; transform-origin: right center; }
.win.open .shutter.l { transform: rotateY(-108deg); }
.win.open .shutter.r { transform: rotateY(108deg); }

/* Window pictures. Each part is drawn at its resting place in main.js, and these
   animations carry it there. They run once when .play is added: --start holds them
   back while the shutters open, and --i staggers parts of the same picture. */
.a-fall, .a-shoot { opacity: 0; } /* only seen while falling or shooting */

.play .a-walk    { animation: walk 9s linear var(--start, 0s) both; }
.play .a-bob     { animation: bob .25s ease-in-out var(--start, 0s) 36 alternate both; }
.play .a-leg     { animation: step .5s linear var(--start, 0s) 18 both; }
.play .a-leg.alt { animation-name: step-alt; }
.play .a-nod     { animation: nod 1s ease-in-out var(--start, 0s) 9 both; }
.play .a-blink   { animation: blink .3s ease-in-out calc(var(--start, 0s) + 9.2s) 2 both; }
.play .a-float   { animation: float 4.5s ease-in-out var(--start, 0s) 2 both; }

.play .a-twinkle { animation: twinkle 1.1s ease-in-out calc(var(--start, 0s) + var(--i) * .35s) 3 both; }
.play .a-rise    { animation: rise 3s ease-out var(--start, 0s) both; }
.play .a-shoot   { animation: shoot 1.2s ease-in calc(var(--start, 0s) + 2.4s) both; }

.play .a-draw        { animation: draw 1.3s ease-out calc(var(--start, 0s) + var(--i) * .45s) both; stroke-dasharray: 1; }
.play .a-from-left   { animation: from-left 2.2s ease-out var(--start, 0s) both; }
.play .a-from-right  { animation: from-right 2.2s ease-out var(--start, 0s) both; }
.play .a-from-left.slow, .play .a-from-right.slow { animation-duration: 7s; }

.play .a-spin { animation: spin 9s linear var(--start, 0s) both; }
.play .a-pop  { animation: pop .9s cubic-bezier(.3, 1.6, .5, 1) calc(var(--start, 0s) + var(--i) * .15s) both; }

.play .a-flutter { animation: flutter 7s ease-in-out var(--start, 0s) both; }
.play .a-flap    { animation: flap .2s ease-in-out var(--start, 0s) 36 alternate both; }

.play .a-grow { animation: grow 1.4s cubic-bezier(.3, 1.3, .5, 1) var(--start, 0s) both; }
.play .a-fall { animation: fall 2.6s ease-in calc(var(--start, 0s) + var(--i) * .15s) both; }

.play .a-sail  { animation: sail 7s ease-out var(--start, 0s) both; }
.play .a-rock  { animation: rock 1.75s ease-in-out var(--start, 0s) 4 both; }
.play .a-swell { animation: swell 2s linear var(--start, 0s) 4 both; }
.play .a-glide { animation: glide 6s ease-out var(--start, 0s) both; }

/* Milo crosses the whole window, walks off, then comes back in to stop in the middle */
@keyframes walk {
  0% { transform: translateX(-245px); }
  67.3% { transform: translateX(260px); }
  67.31% { transform: translateX(-245px); }
  100% { transform: none; }
}
@keyframes bob { from { transform: translateY(0); } to { transform: translateY(-2px); } }
@keyframes step {
  0%, 100% { transform: none; }
  25% { transform: rotate(-22deg); }
  75% { transform: rotate(22deg); }
}
@keyframes step-alt {
  0%, 100% { transform: none; }
  25% { transform: rotate(22deg); }
  75% { transform: rotate(-22deg); }
}
@keyframes nod {
  0%, 100% { transform: none; }
  50% { transform: rotate(4deg); }
}
@keyframes blink {
  0%, 100% { transform: none; }
  50% { transform: scaleY(.1); }
}
@keyframes float {
  0%, 100% { transform: none; }
  50% { transform: translateY(8px); }
}
@keyframes twinkle {
  0%, 100% { opacity: 1; }
  50% { opacity: .15; }
}
@keyframes rise { from { transform: translateY(46px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes shoot {
  0% { transform: translate(30px, 16px); opacity: 0; }
  15% { opacity: 1; }
  100% { transform: translate(250px, 88px); opacity: 0; }
}
@keyframes draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes from-left { from { transform: translateX(-70px); } to { transform: none; } }
@keyframes from-right { from { transform: translateX(70px); } to { transform: none; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pop { from { transform: scale(0); } to { transform: none; } }
@keyframes flutter {
  0% { transform: translate(-220px, 30px) rotate(10deg); }
  25% { transform: translate(-90px, -70px) rotate(-8deg); }
  50% { transform: translate(60px, 15px) rotate(12deg); }
  72% { transform: translate(100px, -55px) rotate(-14deg); }
  88% { transform: translate(25px, -28px) rotate(-6deg); }
  100% { transform: none; }
}
@keyframes flap { from { transform: none; } to { transform: scaleX(.35); } }
@keyframes grow { from { transform: scale(.1, 0); } to { transform: none; } }
@keyframes fall {
  0% { transform: translate(0, 0) rotate(0); opacity: 0; }
  10% { opacity: 1; }
  50% { transform: translate(14px, 40px) rotate(120deg); }
  85% { opacity: 1; }
  100% { transform: translate(-8px, 84px) rotate(260deg); opacity: 0; }
}
@keyframes sail { from { transform: translateX(-270px); } to { transform: none; } }
@keyframes rock {
  0%, 100% { transform: none; }
  25% { transform: rotate(-5deg) translateY(2px); }
  75% { transform: rotate(5deg) translateY(-2px); }
}
@keyframes swell { from { transform: none; } 50% { transform: translateX(38px); } to { transform: none; } }
@keyframes glide { from { transform: translate(-170px, 26px); } to { transform: none; } }

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

/* A book's own artwork */
.book-art {
  position: relative; display: block; width: fit-content; max-width: 100%; margin-inline: auto; padding: 0;
  border: 0; border-radius: 20px; overflow: hidden; background: none; color: var(--ink); cursor: pointer;
  transition: transform .15s ease;
}
.book-art:hover { transform: translateY(-3px); }
.book-art img { width: auto; height: min(500px, 110vw); object-fit: contain; }
.watch-badge {
  position: absolute; left: 12px; top: 12px; display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 13px; border-radius: 999px; background: var(--ink); color: var(--paper);
  font: 700 .84rem/1.2 var(--body);
}
.watch-badge svg { width: 11px; height: 11px; }
.win-art { object-fit: cover; object-position: 62% 42%; }

/* Book cards */
.book-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(36px, 5vw, 64px) clamp(20px, 3vw, 36px); }
@media (max-width: 980px) { .book-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .book-grid { grid-template-columns: 1fr; } }

.book-card { display: flex; flex-direction: column; min-width: 0; }
.book-body { margin-top: 42px; display: flex; flex-direction: column; flex: 1; align-items: flex-start; }

/* The featured book runs the full width, window beside the words */
.book-card.feature { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 4vw, 56px); align-items: center; }
.book-card.feature .book-body { margin-top: 0; }
.book-card.feature h3 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
.book-eyebrow { font: 400 1.15rem var(--heading); margin-top: 8px; }
.book-topic { font-weight: 700; margin-top: 6px; }
@media (max-width: 760px) {
  .book-card.feature { display: flex; }
  .book-card.feature .book-body { margin-top: 24px; }
}
.book-label { font-weight: 700; color: var(--muted); font-size: .95rem; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.book-card h3 { margin-top: 6px; }
.book-blurb { margin-top: 10px; }
.tag {
  display: inline-block; padding: 2px 11px; border-radius: 999px; font-size: .82rem; font-weight: 700;
  background: var(--green); color: var(--ink); white-space: nowrap;
}
.tag.pre { background: var(--yellow); }
.tag.soon { background: var(--lilac); }
.price { font: 400 1.5rem/1.2 var(--heading); margin-top: 16px; }
.ship-note { font-size: .95rem; color: var(--muted); margin-top: 4px; }
.book-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; padding-top: 2px; }
.book-actions .btn { padding-inline: 20px; }
.book-card .spacer { margin-top: auto; }
.view-link {
  background: none; border: 0; padding: 8px 0; margin-top: 6px; color: inherit; cursor: pointer;
  font: 700 1rem var(--body); text-decoration: underline; text-underline-offset: 3px;
}

/* Series panel */
.series { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(24px, 4vw, 56px); align-items: center; }
.series-dots { display: flex; flex-wrap: wrap; justify-content: center; gap: 24px 0; padding-bottom: 12px; }
.series-dots .win { width: 33.33%; padding-inline: 5.5%; }
.series-dots .win-frame { border-width: 5px; }
.series-dots .win-frame::after { left: -9px; right: -9px; bottom: -11px; height: 7px; }
.series-dots .shutter { border-width: 3px; }
.series-dots .shutter::after { height: 3px; margin-top: -1.5px; }
.series ul { margin: 14px 0 0; padding-left: 1.2em; }
@media (max-width: 800px) { .series { grid-template-columns: 1fr; } .series-art { order: -1; } }

/* Shop info */
.notice {
  display: flex; gap: 10px; align-items: flex-start; border-radius: 12px; padding: 8px 14px;
  font-size: .84rem; line-height: 1.45;
}
.notice svg { flex: none; width: 18px; height: 18px; margin-top: 1px; }
.sample-note {
  background: var(--yellow-mid); border-radius: 14px; padding: 12px 18px; font-size: .96rem; margin-bottom: 36px;
}
.info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.info-grid > div { border-radius: 20px; padding: 20px 24px; }
.info-grid h3 { font-size: 1.2rem; margin-bottom: 8px; font-weight: 700; }
@media (max-width: 800px) { .info-grid { grid-template-columns: 1fr; } }

/* Dialogs */
dialog { color: var(--ink); border: 0; padding: 0; }
dialog::backdrop { background: rgba(51, 41, 43, .45); }
.drawer {
  margin: 0 0 0 auto; height: 100dvh; max-height: 100dvh; width: min(470px, 100%); max-width: 100%;
  background: var(--paper);
}
.drawer form { display: flex; flex-direction: column; height: 100%; }
.dialog-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 18px 22px; border-bottom: 1px solid var(--line);
}
.dialog-head h2 { font-size: 1.5rem; }
.close-btn {
  width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--lilac-wash); color: var(--ink);
  font-size: 1.5rem; line-height: 1; cursor: pointer; flex: none;
}
.close-btn:hover { background: var(--lilac); }
.drawer-body { flex: 1; overflow-y: auto; padding: 8px 22px 18px; }
.line { padding-block: 16px; border-bottom: 1px solid var(--line); }
.line-top { display: flex; justify-content: space-between; gap: 14px; font-weight: 700; }
.line .ship-note { margin-top: 2px; }
.line-controls { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; }
.stepper { display: inline-flex; align-items: center; border: 1.5px solid var(--ink); border-radius: 999px; }
.stepper button {
  width: 40px; height: 38px; background: none; border: 0; font-size: 1.2rem; color: var(--ink); cursor: pointer; border-radius: 999px;
}
.stepper button:hover { background: var(--lilac-wash); }
.stepper output { min-width: 26px; text-align: center; font-weight: 700; }
.remove-btn { background: none; border: 0; padding: 8px 0; font: 600 .95rem var(--body); color: var(--muted); text-decoration: underline; cursor: pointer; }
.empty-cart { padding-block: 40px; text-align: center; }
.empty-cart .btn { margin-top: 16px; }
.cart-warn { background: var(--yellow-wash); border-radius: 12px; padding: 10px 14px; margin-top: 14px; font-size: .95rem; }
.check {
  display: flex; gap: 12px; align-items: flex-start; margin-top: 14px; padding: 14px; border-radius: 14px;
  font-size: .96rem; line-height: 1.5; cursor: pointer;
}
.check input { width: 22px; height: 22px; margin: 1px 0 0; flex: none; accent-color: var(--ink); }
.preorder-box { background: var(--yellow-wash); }
.preorder-box strong { display: block; }
.mail-box { background: var(--lilac-wash); }
.drawer-foot { padding: 16px 22px 20px; border-top: 1px solid var(--line); background: var(--paper); }
.totals { display: flex; justify-content: space-between; font-weight: 700; font-size: 1.1rem; }
.totals + .ship-note { margin-bottom: 12px; }
.drawer-foot .btn { width: 100%; }
.form-error { color: var(--danger); font-weight: 700; margin-top: 10px; font-size: .96rem; }
.secure { text-align: center; font-size: .88rem; color: var(--muted); margin-top: 10px; }

.book-dialog {
  width: min(820px, calc(100% - 24px)); max-height: calc(100dvh - 24px); border-radius: 24px; background: var(--paper);
}
.book-dialog-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 28px; padding: 26px; }
.book-dialog-art { padding-bottom: 28px; }
.book-video {
  aspect-ratio: 496 / 864; width: auto; height: min(62dvh, 520px); max-width: 100%;
  margin-inline: auto; border-radius: 16px; background: var(--lilac-mid); object-fit: contain;
}
.video-note { margin-top: 8px; font-size: .85rem; color: var(--muted); text-align: center; }
.detail-list { margin: 18px 0 0; display: grid; grid-template-columns: auto 1fr; gap: 4px 16px; font-size: .97rem; }
.detail-list dt { font-weight: 700; }
.detail-list dd { margin: 0; }
.look-inside { padding: 0 26px 28px; }
.look-inside h3 { font-size: 1.2rem; margin-bottom: 12px; }
.pages { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(6px, 2vw, 12px); }
.pages > * { aspect-ratio: 4 / 3; border-radius: 10px; object-fit: cover; width: 100%; }
.pages .page-empty { display: grid; place-items: center; font-size: clamp(.68rem, 2.2vw, .9rem); line-height: 1.25; text-align: center; padding: 4px; color: var(--muted); }
@media (max-width: 680px) {
  .book-dialog-grid { grid-template-columns: 1fr; }
  .book-video { height: min(52dvh, 460px); }
  .book-dialog-art { padding-bottom: 4px; }
}

.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 50;
  background: var(--ink); color: var(--paper); padding: 12px 22px; border-radius: 999px; font-weight: 600;
  max-width: calc(100% - 32px); text-align: center;
}

/* Lists on content pages */
.feature-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.feature-grid > div { padding: 20px 24px; border-radius: 20px; }
.feature-grid h3 { margin-bottom: 6px; font-size: 1.25rem; font-weight: 700; }
@media (max-width: 720px) { .feature-grid { grid-template-columns: 1fr; } }
.tick-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.tick-list li { position: relative; padding-left: 32px; }
.tick-list li::before {
  content: ""; position: absolute; left: 0; top: .32em; width: 18px; height: 18px; border-radius: 50%; background: var(--green);
}
.tick-list li:nth-child(4n+2)::before { background: var(--pink); }
.tick-list li:nth-child(4n+3)::before { background: var(--blue); }
.tick-list li:nth-child(4n)::before { background: var(--yellow); }

/* FAQ */
.faq h2 { font-size: clamp(1.4rem, 2.6vw, 1.8rem); margin: 40px 0 14px; }
.faq h2:first-child { margin-top: 0; }
.faq details { border-radius: 16px; margin-bottom: 10px; }
.faq details:nth-of-type(5n+1) { background: var(--pink-mid); }
.faq details:nth-of-type(5n+2) { background: var(--yellow-mid); }
.faq details:nth-of-type(5n+3) { background: var(--green-mid); }
.faq details:nth-of-type(5n+4) { background: var(--blue-mid); }
.faq details:nth-of-type(5n) { background: var(--lilac-mid); }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  min-height: 56px; padding: 12px 20px; font-weight: 700; cursor: pointer; list-style: none; border-radius: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; font-size: 1.5rem; line-height: 1; font-weight: 400; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { padding: 0 20px 18px; }

/* Contact form */
.contact-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-card.panel { padding: 16px 20px; border-radius: 20px; font-size: .95rem; line-height: 1.5; }
.contact-card.stack > * + * { margin-top: .5em; }
.contact-card h2 { font-size: 1.2rem; font-weight: 700; }
.contact-card a { text-decoration: none; }

/* Our Story: Nadia's photo beside her introduction */
.story-intro { display: grid; grid-template-columns: 1fr 290px; gap: clamp(20px, 4vw, 40px); align-items: center; }
.story-intro .lead { font-style: italic; }
.story-photo { aspect-ratio: 4 / 5; border-radius: 20px; overflow: hidden; }
.story-photo img { width: 100%; height: 100%; object-fit: cover; }
.story-photo.empty {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 14px;
  background: var(--paper); border: 2px dashed var(--pink); text-align: center; font-size: .9rem; line-height: 1.35; color: var(--muted);
}
.story-photo.empty svg { width: 44px; height: 44px; }
@media (max-width: 620px) {
  .story-intro { grid-template-columns: 1fr; }
  .story-photo { width: 240px; order: -1; }
}
/* Home page: Nadia's photo beside "Hi, I'm Nadia!" */
.home-nadia-intro { display: flex; align-items: center; gap: clamp(16px, 3vw, 28px); }
.home-nadia-intro .story-photo { flex: none; width: clamp(160px, 22vw, 250px); }

/* The email address stays on one line: its size follows the space available */
.email-line { container-type: inline-size; white-space: nowrap; }
.email-line a { font-size: min(1rem, 4.7cqw); }
.field { display: block; margin-bottom: 18px; }
.field span { display: block; font-weight: 700; margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 11px 14px; font: 400 1.0625rem var(--body); color: var(--ink);
  background: #fff; border: 1.5px solid #8d8080; border-radius: 12px;
}
.field textarea { min-height: 160px; resize: vertical; }
.hidden-field { position: absolute; left: -9999px; }
.form-status { margin-top: 14px; font-weight: 700; }

/* Footer */
.site-footer { background: var(--lilac-mid); margin-top: clamp(24px, 4vw, 48px); padding-block: 26px 16px; font-size: .9rem; line-height: 1.5; }
.footer-grid { display: grid; grid-template-columns: 1.3fr .8fr 1.2fr; gap: 20px 32px; }
.site-footer .email-line a { font-size: min(.9rem, 4.7cqw); }
.footer-brand img { width: 72px; height: auto; margin-bottom: 6px; }
.footer-brand strong { font: 400 1.05rem var(--heading); display: block; }
.site-footer h2 { font: 700 .9rem var(--body); margin-bottom: 6px; }
/* The links sit in two short columns so the footer stays low */
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: auto auto; justify-content: start; gap: 2px 18px; }
.footer-note { font-size: .78rem; font-weight: 700; color: var(--muted); margin-top: 6px; }
.site-footer .email-line a, .site-footer a[href^="tel:"] { text-decoration: none; }
.contact-label { font-weight: 700; font-size: .85rem; margin-bottom: -.3em; }
.legal-links { display: inline-flex; gap: 16px; }
.legal-links a { color: inherit; }

/* Privacy and Terms pages */
.legal-date { margin-top: 10px; font-size: .9rem; color: var(--muted); }
.legal h2 { font-size: 1.3rem; font-weight: 700; margin-top: 1.8em; }
.legal ul { padding-left: 1.2em; margin-bottom: 0; }
.legal li + li { margin-top: .4em; }

.footer-legal {
  margin-top: 16px; padding-top: 10px; border-top: 1px solid var(--line); font-size: .82rem; color: var(--muted);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px;
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr; } }
