/* ==========================================================================
   Michèle Rowe: site styles
   Night (book-cover black) hero, quote, contact panel and footer;
   Parchment bands between. Cinzel titles, Berkshire Swash script accents,
   EB Garamond text, Josefin Sans small labels. Gold is ornament; purple is
   the call to action.

   Order: fonts > tokens > base > typography > components > ornaments >
          header > sections (top to bottom of the page) > responsive
   ========================================================================== */

/* ---------- Fonts (self-hosted, SIL OFL) ---------- */
@font-face { font-family: "Cinzel"; src: url("../fonts/Cinzel-Variable.woff2") format("woff2"); font-weight: 400 900; font-display: swap; }
@font-face { font-family: "Berkshire Swash"; src: url("../fonts/BerkshireSwash-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Josefin Sans"; src: url("../fonts/JosefinSans-Variable.woff2") format("woff2"); font-weight: 100 700; font-display: swap; }
@font-face { font-family: "EB Garamond"; src: url("../fonts/EBGaramond-Variable.woff2") format("woff2"); font-weight: 400 800; font-style: normal; font-display: swap; }
@font-face { font-family: "EB Garamond"; src: url("../fonts/EBGaramond-Italic-Variable.woff2") format("woff2"); font-weight: 400 800; font-style: italic; font-display: swap; }

/* ==========================================================================
   Tokens
   ========================================================================== */
:root {
  /* Night palette (fixed values, also used by the always-dark header) */
  --night: #0c0a0f;
  --night-deep: #070509;
  --night-raised: #1d1724;
  --night-ink: #f3eef5;
  --night-ink-soft: #c9bfd2;
  --night-ink-dim: #a99eb4;
  --night-border: #3a2f45;
  --night-cyan: #4cc0ef;
  --night-gold: #f0a24a;
  --night-gold-bright: #ffc84a;

  /* Book paper (fixed values: used for paper drawn on the night hero, e.g. the 404 page) */
  --paper: #f7f1e6;
  --paper-edge: #e8dcc6;
  --paper-ink: #3a3040;
  --paper-purple: #68247c;
  --paper-gold: #a8661a;

  /* Parchment theme (default) */
  --surface: #fbf9f7;
  --surface-lavender: #f4eff4;
  --surface-parchment: #f9f6f1;
  --surface-raised: #ffffff;
  --ink: #2f2a35;
  --ink-muted: #5f566a;
  --purple: #68247c;
  --purple-action: #702081;
  --purple-hover: #5c1a6b;
  --on-purple: #ffffff;
  --purple-vivid: #8b1fd6;
  --purple-tint: #f6edf5;
  --purple-tint-line: #e8d6ea;
  --cyan: #087589;
  --cyan-gem: #1797d6;
  --cyan-gem-light: #a8e6ff;
  --gold: #8f5310;
  --gold-rule: #b0711c;
  --gold-bright: #f5b544;
  --line: #e4dbe7;
  --line-strong: #cfc3d4;
  --focus: #087589;
  --glow: none;

  --font-display: "Cinzel", "Trajan Pro", Georgia, serif;
  --font-script: "Berkshire Swash", "Playball", Georgia, cursive;
  --font-serif: "EB Garamond", Garamond, Georgia, serif;
  --font-sans: "Josefin Sans", "Futura", "Century Gothic", system-ui, sans-serif;

  --space-2: 8px; --space-3: 12px; --space-4: 16px;
  --space-5: 24px; --space-6: 32px; --space-7: 48px;
  --section-y: clamp(56px, 9vw, 104px);
  --gutter: clamp(16px, 4vw, 40px);

  --radius-sm: 6px; --radius-md: 12px; --radius-lg: 20px; --radius-pill: 999px;

  --shadow-card: 0 1px 2px rgba(47,42,53,.04), 0 6px 22px rgba(47,42,53,.06);
  --shadow-card-hover: 0 2px 4px rgba(47,42,53,.05), 0 18px 40px rgba(104,36,124,.14);
  --shadow-portrait: 0 14px 40px rgba(0,0,0,.16);
  --shadow-purple-glow: 0 8px 24px rgba(112,32,129,.28);

  --ease-out: cubic-bezier(.22,.61,.36,1);
  --ease-in-out: cubic-bezier(.65,0,.35,1);

  --header-h: 80px;
  --header-h-small: 64px; /* also read by main.js for the scroll offset */
  color-scheme: light;
}

/* Night bands: hero, quote, contact panel, footer */
.theme-night {
  --surface: var(--night);
  --surface-raised: var(--night-raised);
  --ink: var(--night-ink);
  --ink-muted: #b8adc3;
  --purple: #c690f2;
  --purple-action: #c690f2;
  --purple-hover: #d7adf7;
  --on-purple: #1a0f22;
  --purple-vivid: #b067f5;
  --cyan: var(--night-cyan);
  --cyan-gem: #34b4ec;
  --cyan-gem-light: #c4f0ff;
  --gold: #f2a962;
  --gold-rule: var(--night-gold);
  --gold-bright: var(--night-gold-bright);
  --line: #2e2537;
  --line-strong: #463a52;
  --focus: var(--night-cyan);
  --glow: drop-shadow(0 0 6px rgba(240,162,74,.45));
  --shadow-card: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.35);
  --shadow-card-hover: 0 2px 4px rgba(0,0,0,.35), 0 18px 40px rgba(0,0,0,.5);
  --shadow-purple-glow: 0 8px 26px rgba(198,144,242,.28);
  color-scheme: dark;
  background: var(--surface);
  color: var(--ink);
}

/* ==========================================================================
   Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: 19px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; display: block; }
h1, h2, h3, h4, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; }
strong, b { font-weight: 600; }
em { font-style: italic; }
::selection { background: #e7d3ef; color: #2f2a35; }

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

.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 200; padding: 10px 16px; border-radius: var(--radius-sm); background: #702081; color: #fff; font-family: var(--font-display); font-weight: 700; font-size: .85rem; letter-spacing: .06em; text-decoration: none; transition: top .2s var(--ease-out); }
.skip-link:focus { top: 12px; }
.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.container {
  width: 100%;
  max-width: 1440px;
  margin-inline: auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}

section[id] { scroll-margin-top: var(--header-h-small); }

/* ==========================================================================
   Typography
   ========================================================================== */
.h2, .hero__sub {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--purple);
  text-wrap: balance;
}
.h2 { font-size: clamp(2rem, 4vw, 2.75rem); line-height: 1.15; }

.script { font-family: var(--font-script); font-weight: 400; line-height: 1.1; color: var(--purple); }

.lead { font-size: clamp(1.35rem, 2.2vw, 1.7rem); line-height: 1.4; color: var(--cyan); text-wrap: pretty; }
.prose p { margin: 0 0 1.05em; text-wrap: pretty; }
.prose p:last-child { margin-bottom: 0; }

/* Small uppercase labels share one sans style */
.eyebrow, .hero__badge-k, .fact__k, .details dt, .email-card__k, .quote__cite, .event__date span {
  font-family: var(--font-sans); font-weight: 600; letter-spacing: .2em; text-transform: uppercase;
}

.eyebrow { display: inline-flex; align-items: center; gap: 12px; font-size: .8rem; line-height: 1.3; color: var(--cyan); }
.eyebrow--center { justify-content: center; }

.section-head { display: grid; gap: var(--space-3); margin-bottom: clamp(28px, 4vw, 44px); }
.section-head--center { justify-items: center; text-align: center; }
.section-head .h2 { margin-bottom: var(--space-2); }

/* ==========================================================================
   Components
   ========================================================================== */
/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 28px; border: 1.5px solid transparent; border-radius: var(--radius-pill);
  font-family: var(--font-display); font-size: .85rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; line-height: 1.2;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: transform .2s var(--ease-out), box-shadow .2s var(--ease-out), background-color .2s, border-color .2s, color .2s;
}
/* Arrow: the "›" in the markup is hidden and a chevron is drawn, centred on the label's cap height */
.btn__arrow { display: inline-block; flex: none; width: 7px; height: 7px; margin: -1px 2px 0 -2px; overflow: hidden; font-size: 0; line-height: 0; border-top: 1.6px solid currentColor; border-right: 1.6px solid currentColor; transform: rotate(45deg); transition: transform .25s var(--ease-out); }
.btn:hover .btn__arrow { transform: translateX(4px) rotate(45deg); }
.btn--sm .btn__arrow { width: 6px; height: 6px; margin-top: -3px; }
/* Raised serif numeral inside uppercase labels ("Preview Chapter 1") */
.num { position: relative; top: -.1em; margin-left: -.15em; font-family: var(--font-serif); font-variant-numeric: lining-nums; font-weight: 700; font-size: 1.12em; line-height: 0; letter-spacing: 0; }
.btn--primary { background: var(--purple-action); color: var(--on-purple); box-shadow: var(--shadow-purple-glow); }
.btn--primary:hover { background: var(--purple-hover); transform: translateY(-2px); box-shadow: 0 14px 32px rgba(112,32,129,.36); }
.theme-night .btn--primary:hover { box-shadow: 0 14px 34px rgba(198,144,242,.4); }
.btn--primary:active { transform: translateY(0); box-shadow: var(--shadow-purple-glow); }
.btn--secondary { background: transparent; color: var(--purple); border-color: var(--line-strong); }
.btn--secondary:hover { border-color: var(--gold-rule); color: var(--purple); background: color-mix(in srgb, var(--gold-rule) 8%, transparent); transform: translateY(-2px); }
.btn--secondary:active { transform: translateY(0); }
.btn--sm { min-height: 42px; padding: 0 20px; font-size: .78rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--space-3); }

/* ---------- Card lift on hover (shared) ---------- */
.card-hover { transition: transform .25s var(--ease-out), box-shadow .25s var(--ease-out), border-color .25s; }
@media (hover: hover) {
  .card-hover:hover { transform: translateY(-4px); box-shadow: var(--shadow-card-hover); }
}

/* ---------- Ornamental divider (gold rule, star caps, gem or diamond) ---------- */
.divider { position: relative; display: flex; align-items: center; width: 100%; max-width: 560px; color: var(--gold-rule); filter: var(--glow); }
.divider::before { content: ""; position: absolute; left: 7px; right: 7px; top: 50%; height: 1.5px; margin-top: -.75px; background: var(--gold-rule); transform-origin: center; transition: transform .6s var(--ease-out); }
.divider > * { position: relative; }
.divider__space { flex: 1; }
.divider__cap { width: 14px; height: 14px; flex: none; fill: var(--gold-rule); }
.divider__gem { width: 140px; height: 56px; flex: none; transition: transform .4s var(--ease-out); }
.divider__diamond { width: 22px; height: 22px; flex: none; transition: transform .4s var(--ease-out); }
/* Shapes live once in the SVG sprite at the top of index.html and are drawn
   with <use>. The colours resolve where each copy is used, so they follow
   the parchment and night themes automatically. */
.orn-gold { fill: var(--gold-rule); }
.orn-scroll { fill: none; stroke: var(--gold-rule); stroke-width: 1.6; stroke-linecap: round; }
.orn-stone { fill: var(--cyan-gem); }
.orn-facet { fill: var(--cyan-gem-light); opacity: .75; }
.divider--flip .divider__gem { transform: scaleY(-1); }
.divider--center { margin-inline: auto; }
.divider--sm { max-width: 320px; }
@media (hover: hover) {
  .divider:hover .divider__gem { transform: scale(1.06); }
  .divider--flip:hover .divider__gem { transform: scaleY(-1) scale(1.06); }
  .divider:hover .divider__diamond { transform: rotate(90deg); }
}

/* ==========================================================================
   Header (always dark, sits over the hero)
   ========================================================================== */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 101; background: var(--night); }
.site-header {
  position: fixed; top: env(safe-area-inset-top, 0px); left: 0; right: 0; z-index: 100;
  color: var(--night-ink);
  transition: background-color .35s var(--ease-out), box-shadow .35s var(--ease-out), backdrop-filter .35s;
}
.header__inner { display: flex; align-items: center; gap: var(--space-5); height: var(--header-h); transition: height .35s var(--ease-out); }
.site-header.is-scrolled { background: rgba(12,10,15,.9); -webkit-backdrop-filter: saturate(140%) blur(12px); backdrop-filter: saturate(140%) blur(12px); box-shadow: 0 1px 0 rgba(240,162,74,.18), 0 10px 30px rgba(0,0,0,.3); }
.site-header.is-scrolled .header__inner { height: var(--header-h-small); }

.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--night-cyan); flex: none; }
.brand__gem { width: 14px; height: 22px; flex: none; transition: transform .4s var(--ease-out); filter: drop-shadow(0 0 5px rgba(240,162,74,.4)); }
.brand__gem .bezel { fill: var(--night-gold); }
.brand__gem .stone { fill: #34b4ec; }
.brand__gem .facet { fill: #c4f0ff; opacity: .75; }
.brand:hover .brand__gem { transform: rotate(18deg) scale(1.08); }
.brand__word { font-family: var(--font-display); font-size: 1.35rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; white-space: nowrap; transition: font-size .35s var(--ease-out), letter-spacing .35s var(--ease-out), color .2s; }
.brand:hover .brand__word { color: #7fd3f5; letter-spacing: .19em; }
.site-header.is-scrolled .brand__word { font-size: 1.18rem; }

.nav { margin-left: auto; display: flex; align-items: center; gap: var(--space-5); }
.nav__list { display: flex; gap: 6px; }
.nav__link {
  position: relative; display: block; padding: 8px 12px; border-radius: var(--radius-sm);
  font-family: var(--font-display); font-size: .82rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  color: var(--night-ink-soft); text-decoration: none; white-space: nowrap;
  transition: color .2s;
}
.nav__link::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 1.5px; background: var(--night-gold); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease-out); }
.nav__link:hover, .nav__link.is-active { color: #fff; }
.nav__link:hover::after, .nav__link.is-active::after { transform: scaleX(1); }

.menu-toggle { display: none; margin-left: auto; width: 44px; height: 44px; border: 1px solid var(--night-border); border-radius: 12px; background: rgba(255,255,255,.03); cursor: pointer; place-items: center; transition: background-color .2s, border-color .2s; }
.menu-toggle:hover { background: rgba(255,255,255,.08); border-color: var(--night-gold); }
.menu-toggle__bars { position: relative; width: 18px; height: 12px; display: block; }
.menu-toggle__bars span { position: absolute; left: 0; width: 100%; height: 1.5px; background: #fff; border-radius: 2px; transition: transform .3s var(--ease-out), opacity .2s, top .3s var(--ease-out); }
.menu-toggle__bars span:nth-child(1) { top: 0; }
.menu-toggle__bars span:nth-child(2) { top: 5.25px; }
.menu-toggle__bars span:nth-child(3) { top: 10.5px; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars span:nth-child(1) { top: 5.25px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars span:nth-child(3) { top: 5.25px; transform: rotate(-45deg); }

/* Mobile / tablet menu (same breakpoint as compactNav in main.js) */
@media (max-width: 1099px) {
  .menu-toggle { display: grid; }
  .nav {
    position: fixed; left: 0; right: 0; top: calc(env(safe-area-inset-top, 0px) + var(--header-h-small));
    flex-direction: column; align-items: stretch; gap: var(--space-5);
    padding: var(--space-4) max(var(--gutter), env(safe-area-inset-right, 0px)) calc(var(--space-6) + env(safe-area-inset-bottom, 0px)) max(var(--gutter), env(safe-area-inset-left, 0px));
    background: var(--night); border-top: 1px solid #2e2537; box-shadow: 0 30px 60px rgba(0,0,0,.45);
    max-height: calc(100dvh - var(--header-h-small)); overflow-y: auto;
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .25s var(--ease-out), transform .3s var(--ease-out), visibility 0s linear .3s;
  }
  .site-header:not(.is-scrolled) .nav { top: calc(env(safe-area-inset-top, 0px) + var(--header-h)); }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; transition: opacity .25s var(--ease-out), transform .3s var(--ease-out), visibility 0s; }
  .nav__list { flex-direction: column; gap: 0; }
  .nav__link { padding: 16px 4px; font-size: 1rem; border-bottom: 1px solid #221b29; border-radius: 0; }
  .nav__link::after { left: 4px; right: auto; width: 28px; bottom: 10px; }
  .site-header.menu-open { background: var(--night); }
  body.menu-locked { overflow: hidden; }
}

/* ==========================================================================
   Sections
   ========================================================================== */
.section { padding-block: var(--section-y); background: var(--surface); }
.section--lavender { background: var(--surface-lavender); }
.section--parchment { background: var(--surface-parchment); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(55% 65% at 82% 40%, rgba(139,31,214,.16), transparent 70%),
    radial-gradient(40% 50% at 20% 85%, rgba(240,162,74,.07), transparent 70%),
    var(--night);
  padding-top: calc(var(--header-h) + env(safe-area-inset-top, 0px));
  padding-bottom: 58px;
}
.hero__stars { position: absolute; inset: 0; pointer-events: none; opacity: .55;
  background-image:
    radial-gradient(1.2px 1.2px at 12% 22%, #ffc84a 50%, transparent 51%),
    radial-gradient(1px 1px at 34% 70%, #4cc0ef 50%, transparent 51%),
    radial-gradient(1.4px 1.4px at 46% 14%, #f3eef5 50%, transparent 51%),
    radial-gradient(1px 1px at 63% 82%, #ffc84a 50%, transparent 51%),
    radial-gradient(1.2px 1.2px at 88% 12%, #4cc0ef 50%, transparent 51%),
    radial-gradient(1px 1px at 92% 64%, #f3eef5 50%, transparent 51%),
    radial-gradient(1px 1px at 5% 58%, #f3eef5 50%, transparent 51%);
  animation: twinkle 6s ease-in-out infinite alternate;
}
@keyframes twinkle { to { opacity: .25; } }

/* ---------- 404 page: "Page 404 has been torn out" ---------- */
.hero--page { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; justify-content: center; }
.notfound { position: relative; display: grid; justify-items: center; gap: var(--space-6); padding-block: clamp(32px, 6vw, 72px); text-align: center; }
.notfound__page { position: relative; width: min(100%, 420px); filter: drop-shadow(0 22px 30px rgba(0,0,0,.5)); }
/* The page itself: slightly tilted, bottom edge torn (clip-path), paper shading toward the spine */
.notfound__paper {
  display: grid; justify-items: center; gap: 2px;
  padding: 34px 28px 64px;
  background: linear-gradient(90deg, var(--paper-edge), var(--paper) 14%, var(--paper) 86%, var(--paper-edge));
  color: var(--paper-ink); font-weight: 400;
  transform: rotate(-1.5deg);
  clip-path: polygon(0 0, 100% 0, 100% 84%, 96% 88%, 92% 83%, 87% 90%, 82% 85%, 77% 92%, 71% 86%, 66% 93%, 60% 87%, 54% 94%, 49% 88%, 43% 95%, 38% 89%, 32% 94%, 27% 87%, 21% 93%, 16% 86%, 10% 92%, 5% 87%, 0 91%);
}
.notfound__num { font-family: var(--font-display); font-weight: 700; font-size: clamp(4.5rem, 16vw, 7rem); line-height: 1; letter-spacing: .06em; color: var(--paper-purple); padding-left: .06em; }
.notfound__torn { font-family: var(--font-script); font-size: clamp(1.6rem, 4.6vw, 2.2rem); line-height: 1.1; color: var(--paper-gold); }
/* Three scraps under the tear, fluttering down once on load */
.notfound__scraps { position: absolute; left: 0; right: 0; bottom: -18px; display: flex; justify-content: center; gap: 18px; }
.notfound__scraps span { width: 30px; height: 18px; background: var(--paper); clip-path: polygon(0 20%, 40% 0, 100% 30%, 85% 100%, 20% 85%); opacity: .9; animation: scrap-fall 1.4s var(--ease-out) both; }
.notfound__scraps span:nth-child(1) { --r: -16deg; animation-delay: .15s; }
.notfound__scraps span:nth-child(2) { --r: 11deg; width: 22px; height: 14px; animation-delay: .3s; }
.notfound__scraps span:nth-child(3) { --r: -5deg; animation-delay: .05s; }
.notfound__scraps span { transform: translateY(0) rotate(var(--r)); }
@keyframes scrap-fall { from { opacity: 0; transform: translateY(-46px) rotate(calc(var(--r) + 40deg)); } }
.notfound__text { max-width: 40ch; font-size: clamp(1.15rem, 2vw, 1.3rem); line-height: 1.5; color: var(--ink-muted); text-wrap: pretty; }
.notfound .btn-row { justify-content: center; }
.hero__inner { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; padding-block: clamp(40px, 7vw, 96px); }

/* Everything under the title spans the title's rendered width.
   main.js measures the title and sets --title-w; 96cqi is the fallback. */
.hero__copy { --title-w: 96cqi; container-type: inline-size; display: grid; gap: var(--space-5); justify-items: start; }
.hero__copy > :not(.hero__title) { width: 100%; max-width: var(--title-w); }
.hero__title { font-family: var(--font-script); font-weight: 400; font-size: clamp(2.6rem, 15cqi, 6.1rem); line-height: 1.02; color: var(--gold-bright); text-shadow: 0 0 22px rgba(240,162,74,.35); text-wrap: balance; }
.hero__title .hell { color: var(--purple-vivid); text-shadow: 0 0 24px rgba(176,103,245,.45); }
/* main.js scales the font-size so the longest line matches the title width */
.hero__sub { font-size: clamp(.9rem, 1.4vw, 1.05rem); font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--ink); line-height: 1.5; text-wrap: wrap; }
.hero__sub-line { display: inline-block; white-space: nowrap; }
.hero__copy .lead { color: var(--ink-muted); font-size: clamp(1.2rem, 1.8vw, 1.4rem); }
.hero__copy .btn-row { margin-top: var(--space-2); }
.hero__copy .divider { margin-inline: 0; }

.hero__art { position: relative; justify-self: end; width: 100%; max-width: 620px; }
.hero__frame { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: 0 30px 70px rgba(0,0,0,.55), 0 0 0 1px rgba(240,162,74,.28); aspect-ratio: 880 / 928; }
.hero__frame img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.hero__frame::after { content: ""; position: absolute; inset: 10px; border: 1px solid rgba(255,200,74,.35); border-radius: calc(var(--radius-lg) - 8px); pointer-events: none; transition: inset .5s var(--ease-out), border-color .5s; }
@media (hover: hover) {
  .hero__art:hover .hero__frame img { transform: scale(1.04); }
  .hero__art:hover .hero__frame::after { inset: 14px; border-color: rgba(255,200,74,.6); }
}
.hero__badge { position: absolute; left: -18px; bottom: 28px; display: grid; gap: 2px; padding: 14px 20px; border-radius: var(--radius-md); background: rgba(12,10,15,.86); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border: 1px solid var(--night-border); box-shadow: 0 16px 36px rgba(0,0,0,.45); transition: transform .3s var(--ease-out); }
.hero__badge:hover { transform: translateY(-3px); }
.hero__badge-k { font-size: .72rem; color: var(--cyan); }
.hero__badge-v { font-family: var(--font-display); font-size: 1rem; font-weight: 600; letter-spacing: .06em; color: var(--night-ink); }


/* ---------- About the book ---------- */
.about { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(36px, 6vw, 96px); align-items: start; }
.about__copy .lead { margin-bottom: var(--space-6); max-width: 38ch; }
.about__copy .prose { max-width: 74ch; }
.publisher { margin-top: var(--space-6); display: inline-flex; align-items: center; gap: 12px; font-family: var(--font-display); font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--purple); }
.publisher::before { content: ""; width: 28px; height: 1.5px; background: var(--gold-rule); }

/* Book (used in About with the flipbook, and in Buy as a static cover) */
.book { position: sticky; top: calc(var(--header-h-small) + 32px); display: grid; gap: var(--space-5); justify-items: center; perspective: 1400px; }
.book__cover { width: min(100%, 380px); height: auto; border-radius: 4px 10px 10px 4px; box-shadow: -1px 0 0 rgba(255,255,255,.12) inset, 18px 24px 50px rgba(30,15,40,.32), 4px 6px 12px rgba(30,15,40,.18); transform: rotateY(-8deg) rotateX(2deg); transition: transform .6s var(--ease-out), box-shadow .6s var(--ease-out); }
@media (hover: hover) {
  .book:hover .book__cover { transform: rotateY(0) rotateX(0) translateY(-6px); box-shadow: 0 30px 60px rgba(30,15,40,.36), 0 8px 16px rgba(30,15,40,.18); }
}

/* Front / back cover flip.
   Every state uses the same transform list (only the variables change), so the browser rotates
   number by number instead of blending two different transforms, which made the flip wobble.
   Rest: angled toward the reader (-8° front / 188° back), leaning back 2°.
   Hover (the image only, not the Front/Back buttons): faces the reader, lifted 6px. */
.flipbook { width: min(100%, 480px); aspect-ratio: 2 / 3; perspective: 1600px; }
.flipbook__inner { --ry: -8deg; --rx: 2deg; --lift: 0px; position: relative; width: 100%; height: 100%; transform-style: preserve-3d; transform: rotateY(var(--ry)) rotateX(var(--rx)) translateY(var(--lift)); transition: transform .9s var(--ease-in-out); }
.flipbook[data-side="back"] .flipbook__inner { --ry: 188deg; }
.flipbook__face { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; -webkit-backface-visibility: hidden; backface-visibility: hidden; border-radius: 4px 10px 10px 4px; box-shadow: 18px 24px 50px rgba(30,15,40,.32), 4px 6px 12px rgba(30,15,40,.18); transition: box-shadow .6s var(--ease-out); }
.flipbook__face--back { transform: rotateY(180deg); border-radius: 10px 4px 4px 10px; }
/* .is-flipping (set by main.js while the cover turns) stops hover from re-aiming a flip mid-turn,
   which restarted the animation from a standstill: the pause-then-lurch */
@media (hover: hover) {
  .flipbook:not(.is-flipping):hover .flipbook__inner { --ry: 0deg; --rx: 0deg; --lift: -6px; }
  .flipbook[data-side="back"]:not(.is-flipping):hover .flipbook__inner { --ry: 180deg; }
  .flipbook:not(.is-flipping):hover .flipbook__face { box-shadow: 0 30px 60px rgba(30,15,40,.36), 0 8px 16px rgba(30,15,40,.18); }
}

/* Front / Back segmented control */
.seg { position: relative; display: inline-grid; grid-template-columns: 1fr 1fr; padding: 4px; border-radius: var(--radius-pill); background: var(--surface-raised); border: 1px solid var(--line); box-shadow: var(--shadow-card); }
.seg__thumb { position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); border-radius: var(--radius-pill); background: var(--purple-action); box-shadow: var(--shadow-purple-glow); transition: transform .45s var(--ease-in-out); }
.book[data-side="back"] .seg__thumb { transform: translateX(100%); }
.seg__btn { position: relative; z-index: 1; min-width: 104px; min-height: 40px; padding: 0 20px; border: 0; border-radius: var(--radius-pill); background: none; cursor: pointer; font-family: var(--font-sans); font-size: .76rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-muted); transition: color .3s; }
.seg__btn:hover { color: var(--purple); }
.seg__btn[aria-pressed="true"] { color: var(--on-purple); }

/* ---------- Quote band ---------- */
.quote-band { padding-block: clamp(56px, 8vw, 88px); text-align: center; background: radial-gradient(50% 120% at 50% 50%, rgba(139,31,214,.14), transparent 70%), var(--night); }
.quote { display: grid; gap: var(--space-5); justify-items: center; }
.quote__text { font-family: var(--font-script); font-size: clamp(2rem, 4.6vw, 3.4rem); line-height: 1.2; color: var(--gold-bright); text-shadow: 0 0 20px rgba(240,162,74,.3); text-wrap: balance; max-width: 22ch; }
.quote__cite { font-style: normal; font-size: .8rem; color: var(--cyan); }

/* ---------- Meet Michèle ---------- */
.meet { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.portrait { position: sticky; top: calc(var(--header-h-small) + 32px); display: grid; gap: var(--space-4); justify-items: center; }
.portrait__frame { position: relative; width: 100%; border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-portrait); background: #000; }
.portrait__frame img { width: 100%; height: auto; transition: transform .8s var(--ease-out); }
.portrait__frame::after { content: ""; position: absolute; inset: 8px; border: 1px solid rgba(255,200,74,.45); border-radius: calc(var(--radius-md) - 5px); pointer-events: none; transition: inset .45s var(--ease-out); }
@media (hover: hover) {
  .portrait:hover .portrait__frame img { transform: scale(1.04); }
  .portrait:hover .portrait__frame::after { inset: 12px; }
}

/* Body copy keeps off the right edge; the fact tiles stay full width */
.meet__copy .lead, .meet__copy .prose { padding-right: clamp(0px, 9vw, 140px); }
.meet__copy .lead { margin-bottom: var(--space-6); }

.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-4); margin-block: var(--space-6) var(--space-7); }
.fact { padding: 20px 22px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface-raised); box-shadow: var(--shadow-card); }
.fact dd { margin: 0; }
.fact__k { font-size: .72rem; color: var(--cyan); }
.fact__v { font-family: var(--font-display); font-size: 1.15rem; font-weight: 700; line-height: 1.3; color: var(--purple); margin-top: 6px; }
.fact__d { font-size: 1rem; line-height: 1.45; color: var(--ink-muted); margin-top: 4px; }
@media (hover: hover) { .fact:hover { border-color: color-mix(in srgb, var(--gold-rule) 55%, var(--line)); } }

/* "Read Michèle's full story" (animated grid rows) */
.more__body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .55s var(--ease-in-out); }
.more__inner { min-height: 0; overflow: hidden; }
.more.is-open .more__body { grid-template-rows: 1fr; }
.more:not(.is-open) .more__inner { visibility: hidden; transition: visibility 0s linear .55s; }
.more__inner .prose { padding-top: 1.05em; }
.more__btn { margin-top: var(--space-5); display: inline-flex; align-items: center; gap: 12px; padding: 10px 0; background: none; border: 0; cursor: pointer; font-family: var(--font-display); font-weight: 700; font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; color: var(--purple); }
.more__chev { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line-strong); transition: transform .35s var(--ease-out), border-color .2s, background-color .2s; }
.more__chev::before { content: ""; width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); }
.more__btn:hover .more__chev { border-color: var(--gold-rule); background: color-mix(in srgb, var(--gold-rule) 10%, transparent); }
.more.is-open .more__chev { transform: rotate(180deg); }

/* ---------- Buy now ---------- */
.buy { position: relative; display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 88px); align-items: start; padding: clamp(28px, 5vw, 64px); border-radius: var(--radius-lg); background: var(--surface-raised); border: 1px solid var(--line); box-shadow: var(--shadow-card); }
.buy .book { position: static; }
/* The Buy copy and Chapter 1 share the right-hand column; data-view on .buy picks which shows */
.buy__copy, .chapter { grid-column: 2; grid-row: 1; }
.buy__copy { align-self: center; display: grid; gap: var(--space-5); justify-items: start; transition: opacity .3s var(--ease-out), transform .35s var(--ease-out); }
.buy__copy .eyebrow + .h2 { margin-top: -18px; }
.buy__copy .prose { max-width: 52ch; }
.details { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 var(--space-6); width: 100%; border-top: 1px solid var(--line); }
.details div { padding: 14px 0; border-bottom: 1px solid var(--line); }
.details dt { font-size: .72rem; color: var(--cyan); }
.details dd { margin: 4px 0 0; font-size: 1.05rem; }

/* ---------- Buy: "Preview Chapter 1" ---------- */
/* Page curl in the card's top-right corner (desktop/tablet; phones get .read-pill) */
.peel { position: absolute; top: -1px; right: -1px; z-index: 3; display: flex; align-items: flex-start; gap: 14px; padding: 0; border: 0; background: none; cursor: pointer; color: var(--purple); border-top-right-radius: var(--radius-lg); }
.peel__art { width: 96px; height: 96px; flex: none; overflow: visible; transition: width .45s var(--ease-out), height .45s var(--ease-out); }
.peel__under { fill: var(--surface-parchment); }
.peel__flap { filter: drop-shadow(-2px 4px 6px rgba(104,36,124,.10)); }
.peel__label { margin-top: 30px; font-family: var(--font-sans); font-size: .74rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; white-space: nowrap; transition: color .2s, transform .45s var(--ease-out); }
.peel__label::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 10px; vertical-align: 2px; border-top: 1.5px solid currentColor; border-right: 1.5px solid currentColor; transform: rotate(45deg); transition: transform .25s var(--ease-out); }
.peel:hover .peel__art { width: 116px; height: 116px; }
.peel:hover .peel__label { color: var(--purple-hover); transform: translateX(-6px); }
.peel:hover .peel__label::after { transform: translateX(3px) rotate(45deg); }
.peel:focus-visible { outline-offset: -6px; }

/* "Preview Chapter 1" pill under the cover: phones only (see responsive) */
.read-pill { display: none; }

/* Chapter view: the Buy copy fades out and the chapter takes its place */
.buy[data-view="chapter"] .peel { opacity: 0; visibility: hidden; transition: opacity .2s, visibility 0s linear .2s; }
.buy[data-view="chapter"] .buy__copy { opacity: 0; transform: translateY(8px); visibility: hidden; pointer-events: none; }
.buy[data-view="chapter"] .book { position: sticky; top: calc(var(--header-h-small) + 32px); }

.chapter { position: relative; container-type: inline-size; padding-top: var(--space-2); animation: chapter-in .45s var(--ease-out) both; }
.chapter[hidden] { display: none; }
@keyframes chapter-in { from { opacity: 0; transform: translateY(10px); } }
.chapter__close { position: sticky; top: calc(var(--header-h-small) + 16px); float: right; z-index: 2; display: grid; place-items: center; width: 44px; height: 44px; margin: -8px -8px 0 16px; border-radius: 50%; border: 1px solid var(--line-strong); background: var(--surface-raised); cursor: pointer; box-shadow: var(--shadow-card); transition: border-color .2s, background-color .2s, transform .25s var(--ease-out); }
.chapter__close span, .chapter__close span::before { position: absolute; width: 16px; height: 1.6px; border-radius: 2px; background: var(--purple); }
.chapter__close span { transform: rotate(45deg); }
.chapter__close span::before { content: ""; left: 0; top: 0; transform: rotate(90deg); }
.chapter__close:hover { border-color: var(--gold-rule); background: #fbf6fb; transform: rotate(90deg); }
.chapter__head { display: grid; gap: var(--space-2); margin-bottom: var(--space-6); }
.chapter__num { margin-top: var(--space-3); font-family: var(--font-sans); font-weight: 600; font-size: .9rem; letter-spacing: .26em; text-transform: uppercase; color: var(--cyan); }
.chapter__title { clear: right; font-family: var(--font-script); font-weight: 400; font-size: clamp(2rem, 3.4vw, 2.9rem); line-height: 1.15; color: var(--purple); margin-bottom: var(--space-3); }
.chapter__body { max-width: 64ch; }
.chapter__body p:first-child::first-letter { float: left; font-family: var(--font-script); font-size: 4.4em; line-height: .78; padding: .08em .12em 0 0; color: var(--purple); }
.chapter__end { display: grid; justify-items: center; gap: var(--space-5); margin-top: var(--space-7); text-align: center; max-width: 64ch; }
.chapter__end .divider { max-width: 420px; }
.chapter__end .btn-row { justify-content: center; }
.chapter__more { font-size: 1.15rem; color: var(--ink-muted); }

/* "Keep reading" inside the chapter: no second drop cap */
.more--chapter .more__body .chapter__body { padding-top: 1.05em; }
.more--chapter .more__inner .chapter__body p:first-child::first-letter { float: none; font: inherit; padding: 0; color: inherit; }
/* Collapse without animation (main.js keeps the button under the reader's eye) */
.more.is-instant .more__body, .more.is-instant .more__inner { transition: none !important; }

/* ---------- Events ---------- */
.events { display: grid; gap: var(--space-5); }
.event { display: grid; grid-template-columns: 112px minmax(0, 1fr) auto; gap: var(--space-6); align-items: center; padding: 26px 30px; border-radius: var(--radius-md); background: var(--surface-raised); border: 1px solid var(--line); box-shadow: var(--shadow-card); }
@media (hover: hover) {
  .event:hover { border-color: color-mix(in srgb, var(--gold-rule) 50%, var(--line)); }
  .event:hover .event__date { background: var(--purple-action); color: #fff; }
  .event:hover .event__date span { color: var(--gold-bright); }
}
.event__date { display: grid; place-items: center; align-content: center; aspect-ratio: 1; border-radius: var(--radius-md); background: var(--purple-tint); border: 1px solid var(--purple-tint-line); color: var(--purple); text-align: center; transition: background-color .3s, color .3s; }
.event__date span { display: block; font-size: .78rem; color: var(--cyan); transition: color .3s; }
.event__date strong { display: block; font-family: var(--font-display); font-size: 2.4rem; font-weight: 600; line-height: 1; }
.event__date--tba strong { font-size: 1.3rem; letter-spacing: .1em; }
.event__body { display: grid; gap: 6px; }
.event__title { font-family: var(--font-display); font-size: clamp(1.2rem, 2vw, 1.45rem); font-weight: 700; line-height: 1.25; letter-spacing: .02em; color: var(--purple); }
.event__when { font-weight: 600; font-size: 1.05rem; }
.event__where { font-size: 1.05rem; color: var(--ink-muted); }
.event__desc { font-size: 1.05rem; }

/* ---------- Connect ---------- */
.connect { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 72px); padding: clamp(32px, 5vw, 64px); border-radius: var(--radius-lg); background: radial-gradient(60% 80% at 100% 0%, rgba(139,31,214,.18), transparent 70%), var(--night); box-shadow: 0 30px 70px rgba(30,15,40,.28); }
.connect__copy { display: grid; gap: var(--space-5); align-content: start; }
.connect__copy .h2 { color: var(--ink); }
.connect__copy .script { color: var(--gold-bright); font-size: clamp(1.8rem, 3vw, 2.4rem); text-shadow: 0 0 18px rgba(240,162,74,.3); }
.connect__copy .prose { color: var(--ink-muted); }
.email-card { display: grid; gap: 4px; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius-md); background: rgba(255,255,255,.02); transition: border-color .25s, background-color .25s, transform .25s var(--ease-out); text-decoration: none; }
.email-card:hover { border-color: var(--night-gold); background: rgba(240,162,74,.05); transform: translateY(-2px); }
.email-card__k { font-size: .72rem; color: var(--ink-muted); }
.email-card__v { font-size: 1.15rem; color: var(--cyan); overflow-wrap: anywhere; }

/* Contact form */
.form { display: grid; gap: var(--space-4); }
.form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); }
.field { display: grid; gap: 8px; align-content: start; }
.field--full { grid-column: 1 / -1; }
.field label { font-family: var(--font-display); font-size: .74rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ink); }
.field__opt { color: var(--ink-muted); font-weight: 400; text-transform: none; letter-spacing: 0; font-family: var(--font-serif); font-size: .95rem; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 12px 14px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  background: var(--night-deep); color: var(--ink); font: inherit; font-size: 17px;
  transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: #5d4e6b; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--night-gold); box-shadow: 0 0 0 3px rgba(240,162,74,.22); }
.field [aria-invalid="true"] { border-color: #ef8f8f; }
.field__error { font-size: .95rem; color: #f4a9a9; }
.select { position: relative; }
.select select { appearance: none; -webkit-appearance: none; padding-right: 40px; cursor: pointer; }
.select::after { content: ""; position: absolute; right: 16px; top: 50%; width: 7px; height: 7px; border-right: 1.5px solid var(--night-ink-soft); border-bottom: 1.5px solid var(--night-ink-soft); transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.form .btn { justify-self: start; }
.form__note { font-size: .95rem; color: var(--ink-muted); }
.form__status { font-size: 1rem; color: var(--gold); }
.form__status:empty { display: none; }
.form__status.is-sent { color: var(--ink); }
/* Honeypot: kept off-screen and out of the tab order (not display:none, which some bots skip) */
.form__trap { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.form .btn[disabled] { opacity: .65; cursor: progress; transform: none; }
/* Cloudflare Turnstile: out of the layout while invisible (no extra gap above the button);
   main.js adds .is-visible only while Cloudflare shows a checkbox. */
.form { position: relative; }
/* Cloudflare Turnstile widget: always shown; its 65 px height is reserved so the form doesn't jump when it loads */
.form__human { min-height: 65px; }
/* Webmail fallback links (Gmail / Outlook) added by main.js after sending */
.form__status a { color: var(--cyan); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; overflow-wrap: anywhere; transition: color .2s; }
.form__status a:hover { color: var(--gold-bright); }

/* ---------- Footer ---------- */
.site-footer { background: var(--night-deep); color: var(--night-ink-dim); }
.footer__top { display: grid; justify-items: center; gap: var(--space-4); padding-block: clamp(40px, 6vw, 64px) var(--space-6); text-align: center; }
.footer__name { font-family: var(--font-display); font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--night-cyan); padding-left: .2em; }
.footer__nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 8px; margin-top: var(--space-3); }
.footer__nav a { padding: 6px 10px; font-family: var(--font-display); font-weight: 600; font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: #d9d0e0; text-decoration: none; transition: color .2s; }
.footer__nav a:hover { color: var(--night-gold-bright); }
.footer__bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 32px; padding-block: 22px calc(22px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid #1f1826; font-size: 1.05rem; }
.footer__bottom a { color: #e7dfee; text-decoration: none; transition: color .2s; }
.footer__bottom a:hover { color: var(--night-gold-bright); }

/* ==========================================================================
   Responsive (the header menu breakpoint lives with the header above)
   ========================================================================== */
/* Tablet: single-column layouts, centred hero copy */
@media (max-width: 1023px) {
  .hero__inner { grid-template-columns: 1fr; justify-items: center; }
  .hero__copy { width: 100%; max-width: 760px; justify-items: center; text-align: center; }
  .hero__copy .divider { margin-inline: auto; }
  .hero__copy .btn-row { justify-content: center; }
  .hero__art { justify-self: center; max-width: 560px; }
  .about { grid-template-columns: 1fr; }
  .about .book { position: static; }
  .flipbook { width: min(100%, 300px); }
  .book__cover { width: min(100%, 300px); }
  .meet { grid-template-columns: 240px minmax(0, 1fr); }
  .facts { grid-template-columns: 1fr; gap: 10px; }
  .buy { grid-template-columns: minmax(0, 1fr); } /* minmax(0,…) stops long content widening the card */
  .buy__copy, .chapter { grid-column: 1; grid-row: 2; }
  .buy__copy { margin-top: 28px; }
  /* Chapter view takes the whole card: no cover above it */
  .buy[data-view="chapter"] .book, .buy[data-view="chapter"] .buy__copy { display: none; }
  .buy[data-view="chapter"] .chapter { grid-row: 1; }
  .connect { grid-template-columns: 1fr; }
}

/* Desktop: chapter title on one line, sized to its column */
@media (min-width: 1024px) {
  .chapter__title { white-space: nowrap; font-size: min(2.9rem, 7.2cqi); }
}

/* Small laptops / large tablets: hero buttons stay side by side */
@media (min-width: 1024px) and (max-width: 1199px) {
  .hero__copy .btn-row { max-width: none; flex-wrap: nowrap; }
  .hero__copy .btn { padding: 0 20px; }
}

/* Phone */
@media (max-width: 719px) {
  :root { --section-y: 60px; }
  body { font-size: 18px; }
  .brand__word { font-size: 1.1rem; letter-spacing: .12em; }
  .site-header.is-scrolled .brand__word { font-size: 1.02rem; }
  .hero { padding-bottom: 48px; }
  .hero__inner { padding-block: 28px 44px; gap: 36px; }
  .hero__copy > :not(.hero__title) { max-width: none; }
  .hero__copy .lead { margin-inline: auto; }
  .btn { white-space: normal; text-align: center; padding-block: 10px; } /* long labels wrap instead of overflowing */
  .btn-row { width: 100%; }
  .btn-row .btn { flex: 1 1 100%; }
  .hero__badge { left: 12px; bottom: 12px; padding: 10px 14px; }
  .meet { grid-template-columns: 1fr; }
  .meet__copy .lead, .meet__copy .prose { padding-right: 0; }
  .portrait { position: static; max-width: 240px; margin-inline: auto; }
  .details { grid-template-columns: 1fr; }
  .event { grid-template-columns: 72px minmax(0, 1fr); gap: 16px 18px; padding: 20px; align-items: start; }
  .event__date strong { font-size: 1.7rem; }
  .event__date span { font-size: .66rem; }
  .event__date--tba strong { font-size: 1rem; }
  .event__action { grid-column: 1 / -1; }
  .event__action .btn { width: 100%; }
  .buy { padding: 24px 18px; }
  .buy .book__cover { width: min(100%, 260px); }
  .peel { display: none; }
  .read-pill { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 20px 0 16px; border: 1px solid var(--line); border-radius: var(--radius-pill); background: var(--surface-raised); box-shadow: var(--shadow-card); cursor: pointer; font-family: var(--font-sans); font-size: .76rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--purple); transition: border-color .2s, transform .2s var(--ease-out), box-shadow .2s; }
  .read-pill:hover { border-color: var(--gold-rule); }
  .read-pill:active { transform: translateY(1px); }
  .read-pill__icon { width: 20px; height: 16px; color: var(--gold-rule); }
  .read-pill__num { letter-spacing: 0; }
  .chapter__close { top: calc(var(--header-h-small) + 10px); margin: -4px -4px 0 12px; }
  .connect { padding: 28px 18px; border-radius: 18px; }
  .form__grid { grid-template-columns: 1fr; }
  .form .btn { justify-self: stretch; }
  .footer__bottom { flex-direction: column; align-items: center; text-align: center; }
}

/* Small phone */
@media (max-width: 479px) {
  .divider__gem { width: 112px; height: 45px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}
