/* ==========================================================================
   Julian Vance — Degrees of Frozen Silence
   Mobile-first. The page moves from midnight blue toward warm ivory as the
   reader goes deeper: isolation → understanding.
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  /* Palette */
  --night-950: #0a121c;
  --night-900: #0c1520;
  --night-800: #101b29;   /* Midnight Navy */
  --night-700: #142231;   /* Deep Winter Blue */
  --night-600: #1c2d40;
  --slate-500: #748899;   /* Slate Blue */
  --slate-400: #8a9cab;
  --frost-300: #a9b9c6;   /* Frost Blue */
  --frost-200: #c9d4dc;
  --ivory-100: #e8e6e0;   /* Warm Ivory */
  --ivory-50:  #f3f1ec;
  --ink-900:   #16202c;
  --ink-700:   #3a4654;
  --ink-500:   #5d6874;

  --line-dark: rgba(169, 185, 198, .16);
  --line-dark-strong: rgba(169, 185, 198, .28);
  --line-light: rgba(22, 32, 44, .14);

  /* Type */
  --font-serif: "Cormorant Garamond", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --font-sans: "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --fs-xs: .75rem;
  --fs-sm: .875rem;
  --fs-base: 1rem;
  --fs-md: clamp(1.0625rem, .98rem + .3vw, 1.1875rem);
  --fs-lede: clamp(1.3rem, 1.1rem + .9vw, 1.75rem);
  --fs-display-md: clamp(2rem, 1.5rem + 2.2vw, 3.25rem);
  --fs-display-lg: clamp(2.35rem, 1.6rem + 3.4vw, 4.25rem);
  --fs-hero: clamp(2.85rem, 1.7rem + 5.6vw, 6.25rem);

  /* Space (4px base) */
  --s-1: .25rem; --s-2: .5rem; --s-3: .75rem; --s-4: 1rem; --s-5: 1.5rem;
  --s-6: 2rem; --s-7: 3rem; --s-8: 4rem; --s-9: 6rem; --s-10: 8rem;
  --section-y: clamp(5rem, 3.5rem + 7vw, 9.5rem);
  --gutter: clamp(1.25rem, .8rem + 2vw, 2.5rem);
  --max: 72rem;
  --max-narrow: 44rem;

  --radius-sm: 6px;
  --radius: 14px;
  --radius-lg: 22px;

  --ease-out: cubic-bezier(.22, .61, .36, 1);
  --ease-soft: cubic-bezier(.4, 0, .2, 1);
  --dur: .9s;

  --safe-b: env(safe-area-inset-bottom, 0px);
  --header-h: 64px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 8px);
  background: var(--night-900);
}
body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  line-height: 1.65;
  color: var(--frost-200);
  background: var(--night-900);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}
@supports (overflow: clip) { body { overflow-x: clip; } }
img, svg, picture { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
h1, h2, h3, p, ol, ul, figure, blockquote { margin: 0; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }
:focus-visible { outline: 2px solid var(--frost-300); outline-offset: 3px; border-radius: 4px; }
::selection { background: rgba(169, 185, 198, .35); color: var(--ivory-50); }

.skip {
  position: absolute; left: var(--s-4); top: -100px; z-index: 100;
  padding: var(--s-3) var(--s-4); background: var(--ivory-100); color: var(--ink-900);
  border-radius: var(--radius-sm); font-weight: 600; text-decoration: none;
}
.skip:focus { top: var(--s-4); }

.wrap { width: 100%; max-width: calc(var(--max) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--narrow { max-width: calc(var(--max-narrow) + var(--gutter) * 2); }
.section { padding-block: var(--section-y); position: relative; }

/* ---------- Type ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: .6em;
  font-family: var(--font-sans); font-size: var(--fs-xs); font-weight: 600;
  letter-spacing: .22em; text-transform: uppercase; color: var(--slate-400);
}
.eyebrow::before { content: ""; width: 1.75rem; height: 1px; background: currentColor; opacity: .7; }
.eyebrow__icon { width: 1.1rem; height: 1.1rem; fill: none; stroke: currentColor; stroke-width: 1.4; margin-right: -.1em; }
.eyebrow:has(.eyebrow__icon)::before { display: none; }

.display-lg, .display-md, .hero__title {
  font-family: var(--font-serif); font-weight: 400; color: var(--ivory-100);
  letter-spacing: -.012em; text-wrap: balance;
}
.display-lg { font-size: var(--fs-display-lg); line-height: 1.04; }
.display-md { font-size: var(--fs-display-md); line-height: 1.08; }
em { font-style: italic; }

.lede {
  font-family: var(--font-serif); font-style: italic; font-size: var(--fs-lede);
  line-height: 1.35; color: var(--frost-300); text-wrap: pretty;
}
.prose { display: grid; gap: var(--s-4); font-size: var(--fs-md); line-height: 1.75; color: var(--frost-200); max-width: 36em; }
.prose p { text-wrap: pretty; }

.text-link {
  font-size: var(--fs-sm); font-weight: 500; letter-spacing: .02em; color: var(--frost-300);
  text-decoration: underline; text-decoration-color: var(--line-dark-strong); text-underline-offset: .35em;
  transition: color .3s, text-decoration-color .3s;
  padding-block: .75rem; /* touch target */
}
.text-link:hover { color: var(--ivory-100); text-decoration-color: currentColor; }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: transparent; --btn-fg: var(--ivory-100); --btn-bd: var(--line-dark-strong);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .85em;
  min-height: 3.25rem; padding: .9rem 1.6rem;
  font: 600 var(--fs-sm)/1.2 var(--font-sans); letter-spacing: .06em;
  color: var(--btn-fg); background: var(--btn-bg); border: 1px solid var(--btn-bd); border-radius: 999px;
  text-decoration: none; cursor: pointer; -webkit-tap-highlight-color: transparent;
  transition: background-color .35s var(--ease-soft), color .35s var(--ease-soft), border-color .35s var(--ease-soft),
              transform .35s var(--ease-out), box-shadow .45s var(--ease-soft);
  isolation: isolate; overflow: hidden; touch-action: manipulation;
}
.btn::after { /* soft sheen on hover */
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.22) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .9s var(--ease-out);
}
.btn:hover::after { transform: translateX(120%); }
.btn:active { transform: translateY(1px) scale(.99); }
.btn__price {
  font-weight: 500; letter-spacing: .02em; padding-left: .85em;
  border-left: 1px solid color-mix(in srgb, currentColor 30%, transparent);
}

.btn--primary {
  --btn-bg: var(--ivory-100); --btn-fg: var(--ink-900); --btn-bd: var(--ivory-100);
  box-shadow: 0 10px 30px -12px rgba(232, 230, 224, .35), inset 0 1px 0 rgba(255,255,255,.6);
}
.btn--primary:hover { --btn-bg: #fff; --btn-bd: #fff; box-shadow: 0 16px 40px -14px rgba(232, 230, 224, .55); transform: translateY(-1px); }
.btn--ghost { --btn-bg: rgba(16, 27, 41, .35); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.btn--ghost:hover { --btn-bg: rgba(169, 185, 198, .12); --btn-bd: var(--frost-300); }
.btn--dark { --btn-bg: var(--night-800); --btn-fg: var(--ivory-100); --btn-bd: var(--night-800); box-shadow: 0 14px 34px -16px rgba(16, 27, 41, .6); }
.btn--dark:hover { --btn-bg: var(--night-700); transform: translateY(-1px); }
.btn--outline-dark { --btn-fg: var(--ink-900); --btn-bd: rgba(22, 32, 44, .35); }
.btn--outline-dark:hover { --btn-bd: var(--ink-900); --btn-bg: rgba(22, 32, 44, .05); }
.btn--sm { min-height: 2.75rem; padding: .6rem 1.15rem; font-size: .8125rem; }
.btn--block { width: 100%; }
.btn[aria-busy="true"] { pointer-events: none; }
.btn[aria-busy="true"] > span { opacity: .35; }
.btn[aria-busy="true"]::before {
  content: ""; position: absolute; width: 1.1rem; height: 1.1rem; border-radius: 50%;
  border: 2px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 40; height: var(--header-h);
  transition: background-color .5s var(--ease-soft), border-color .5s, transform .5s var(--ease-out);
  border-bottom: 1px solid transparent;
}
.site-header.is-solid {
  background: rgba(12, 21, 32, .78); border-bottom-color: var(--line-dark);
  -webkit-backdrop-filter: saturate(140%) blur(14px); backdrop-filter: saturate(140%) blur(14px);
}
.site-header.is-hidden { transform: translateY(-100%); }
.site-header__inner {
  height: 100%; max-width: calc(var(--max) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-4);
}
.brand { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; min-height: 44px; }
.brand img { width: 36px; height: auto; }
.brand__name {
  font-family: var(--font-serif); font-size: 1.15rem; letter-spacing: .2em; text-transform: uppercase; color: var(--ivory-100);
}
.site-nav { display: none; }
.site-header .btn { flex-shrink: 0; }

@media (max-width: 419px) {
  .brand__name { font-size: .95rem; letter-spacing: .16em; }
}
@media (max-width: 359px) {
  .brand__name { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: grid; align-items: end; overflow: hidden; isolation: isolate;
  background: var(--night-950);
}
.hero__media { position: absolute; inset: -4% 0 0 0; z-index: -3; will-change: transform; }
.hero__media picture { height: 100%; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 36% 50%; }
.hero__veil {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(10,18,28,.55) 0%, rgba(10,18,28,0) 22%),
    linear-gradient(0deg, rgba(10,18,28,.96) 6%, rgba(10,18,28,.72) 34%, rgba(10,18,28,.12) 62%, rgba(10,18,28,0) 100%);
}
.hero__content {
  padding-top: calc(var(--header-h) + var(--s-8));
  padding-bottom: calc(var(--s-9) + var(--safe-b));
  display: grid; gap: var(--s-5);
}
.hero__title { font-size: var(--fs-hero); line-height: .98; max-width: 11ch; }

@media (max-width: 699px) {
  .hero { display: flex; flex-direction: column; }
  .hero__veil {
    background:
      linear-gradient(180deg, rgba(10,18,28,.88) 0%, rgba(10,18,28,.62) 30%, rgba(10,18,28,.08) 50%, rgba(10,18,28,0) 62%, rgba(10,18,28,.55) 82%, rgba(10,18,28,.92) 100%);
  }
  .hero__content {
    flex: 1; display: flex; flex-direction: column; gap: var(--s-4);
    padding-top: calc(var(--header-h) + var(--s-5));
    padding-bottom: calc(var(--s-5) + var(--safe-b));
  }
  .hero__title { font-size: min(var(--fs-hero), 7.4svh); }
  .hero__lede { font-size: var(--fs-base); max-width: 21rem; }
  .hero__actions { margin-top: auto; gap: var(--s-2); }
  .hero__actions .btn--ghost {
    min-height: 2.75rem; background: none; border-color: transparent;
    -webkit-backdrop-filter: none; backdrop-filter: none;
    color: var(--frost-200); text-decoration: underline; text-underline-offset: .4em;
    text-decoration-color: var(--line-dark-strong);
  }
  .hero__meta, .scroll-cue { display: none; }
}
.hero__title em { color: var(--frost-300); }
.hero__lede { font-size: var(--fs-md); line-height: 1.6; color: var(--frost-200); max-width: 30rem; }
.hero__actions { display: flex; flex-direction: column; gap: var(--s-3); margin-top: var(--s-2); }
.hero__meta { font-size: var(--fs-xs); letter-spacing: .14em; text-transform: uppercase; color: var(--slate-400); }

/* Falling snow — two CSS layers, transform-only */
.hero__snow { position: absolute; inset: -20% 0 0 0; z-index: -2; pointer-events: none; opacity: .55; }
.hero__snow::before, .hero__snow::after {
  content: ""; position: absolute; inset: 0;
  background-image:
    radial-gradient(1.6px 1.6px at 12% 18%, rgba(255,255,255,.85) 50%, transparent 52%),
    radial-gradient(1.2px 1.2px at 32% 64%, rgba(255,255,255,.7) 50%, transparent 52%),
    radial-gradient(2px 2px at 58% 28%, rgba(255,255,255,.6) 50%, transparent 52%),
    radial-gradient(1.4px 1.4px at 78% 72%, rgba(255,255,255,.75) 50%, transparent 52%),
    radial-gradient(1.1px 1.1px at 90% 12%, rgba(255,255,255,.65) 50%, transparent 52%),
    radial-gradient(1.8px 1.8px at 46% 88%, rgba(255,255,255,.55) 50%, transparent 52%);
  background-size: 340px 340px;
  animation: snow 22s linear infinite;
}
.hero__snow::after { background-size: 520px 520px; opacity: .6; animation-duration: 34s; filter: blur(.6px); }
@keyframes snow { from { transform: translate3d(0, -340px, 0); } to { transform: translate3d(40px, 0, 0); } }

.scroll-cue {
  position: absolute; left: 50%; bottom: calc(var(--s-4) + var(--safe-b)); transform: translateX(-50%);
  width: 44px; height: 56px; display: grid; place-items: center;
}
.scroll-cue__line { width: 1px; height: 40px; background: linear-gradient(var(--frost-300), transparent); position: relative; overflow: hidden; }
.scroll-cue__line::after {
  content: ""; position: absolute; inset: 0; background: var(--ivory-100);
  animation: cue 2.6s var(--ease-soft) infinite; transform-origin: top;
}
@keyframes cue { 0% { transform: scaleY(0); opacity: 1; } 60% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }

/* Phones: headline in the sky, the lone figure centred, actions on the ice */
@media (max-width: 699px) {
  .hero__media { inset: -11% 0 11% 0; }
  .hero__media img {
    -webkit-mask-image: linear-gradient(180deg, #000 72%, transparent 100%);
    mask-image: linear-gradient(180deg, #000 72%, transparent 100%);
  }
  .hero__actions { margin-top: auto; }
  .hero__meta, .scroll-cue { display: none; }
}

/* ---------- Recognition ---------- */
.recognition {
  background:
    radial-gradient(120% 60% at 50% 0%, rgba(116, 136, 153, .12), transparent 70%),
    var(--night-950);
  text-align: left;
}
.recognition__list { margin-top: var(--s-7); display: grid; gap: var(--s-6); counter-reset: r; }
.recognition__list li {
  position: relative; padding-left: var(--s-6);
  font-family: var(--font-serif); font-size: clamp(1.4rem, 1.15rem + 1.1vw, 2rem); line-height: 1.32;
  color: var(--frost-200); text-wrap: pretty;
}
.recognition__list li::before {
  content: ""; position: absolute; left: 0; top: .72em; width: 1rem; height: 1px; background: var(--slate-500);
}
.recognition__close {
  margin-top: var(--s-7); padding-top: var(--s-6); border-top: 1px solid var(--line-dark);
  font-size: var(--fs-md); color: var(--slate-400); max-width: 30em;
}

/* ---------- Book ---------- */
.book { background: linear-gradient(180deg, var(--night-950) 0%, var(--night-800) 40%, var(--night-700) 100%); }
.book__grid { display: grid; gap: var(--s-8); }
.book__cover { position: relative; width: min(72vw, 360px); margin-inline: auto; }
.book__cover::before { /* cool halo */
  content: ""; position: absolute; inset: 8% -12% -4%; z-index: -1; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(169,185,198,.22), transparent);
  filter: blur(20px);
}
.book__cover img { filter: drop-shadow(0 40px 50px rgba(0,0,0,.55)); }
.book__text { display: grid; gap: var(--s-5); align-content: start; }
.for-list { display: grid; gap: var(--s-3); padding-block: var(--s-5); border-block: 1px solid var(--line-dark); }
.for-list li { position: relative; padding-left: 1.75rem; color: var(--frost-200); font-size: var(--fs-base); }
.for-list li::before {
  content: ""; position: absolute; left: 0; top: .62em; width: .55rem; height: .55rem;
  border: 1px solid var(--frost-300); transform: rotate(45deg);
}
.book__cta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3) var(--s-5); padding-top: var(--s-2); }

.author-note {
  margin-top: var(--s-9); text-align: center; display: grid; justify-items: center; gap: var(--s-5);
}
.author-note .eyebrow::after { content: ""; width: 1.75rem; height: 1px; background: currentColor; opacity: .7; }
.author-note__verse {
  font-family: var(--font-serif); font-style: italic; font-size: clamp(1.35rem, 1.1rem + 1.2vw, 2.05rem);
  line-height: 1.5; color: var(--ivory-100);
}
.author-note__gap { display: block; height: .7em; }
.author-note footer { font-size: var(--fs-sm); letter-spacing: .18em; text-transform: uppercase; color: var(--slate-400); }

/* ---------- Themes ---------- */
.themes { background: var(--night-700); }
.section-head { display: grid; gap: var(--s-4); margin-bottom: var(--s-7); max-width: 40rem; }
.section-head--center { text-align: center; justify-items: center; margin-inline: auto; }
.section-head__sub { color: var(--slate-400); font-size: var(--fs-md); }
.section-head__sub a { color: var(--frost-300); text-underline-offset: .25em; }
.themes__grid { display: grid; gap: var(--s-4); }
.theme-card {
  position: relative; padding: var(--s-6) var(--s-5); border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(169,185,198,.07), rgba(169,185,198,.015));
  border: 1px solid var(--line-dark);
  display: grid; gap: var(--s-3);
  transition: border-color .5s var(--ease-soft), transform .6s var(--ease-out), background-color .5s;
}
.theme-card:hover { border-color: var(--line-dark-strong); transform: translateY(-3px); }
.theme-card__icon { width: 2.5rem; height: 2.5rem; fill: none; stroke: var(--frost-300); stroke-width: 1.1; stroke-linecap: round; stroke-linejoin: round; margin-bottom: var(--s-3); }
.theme-card__num { position: absolute; top: var(--s-5); right: var(--s-5); font-family: var(--font-serif); font-size: 1.1rem; color: var(--slate-500); letter-spacing: .1em; }
.theme-card h3 { font-family: var(--font-serif); font-weight: 500; font-size: clamp(1.5rem, 1.3rem + .8vw, 1.9rem); line-height: 1.15; color: var(--ivory-100); }
.theme-card p:last-child { color: var(--frost-300); font-size: var(--fs-base); line-height: 1.7; }

/* ---------- Audiobook ---------- */
.audio {
  background:
    radial-gradient(80% 60% at 85% 40%, rgba(116,136,153,.16), transparent 70%),
    linear-gradient(180deg, var(--night-700), var(--night-600));
  overflow: hidden;
}
.audio__grid { display: grid; gap: var(--s-8); }
.audio__text { display: grid; gap: var(--s-5); align-content: start; }
.audio__visual { width: min(80vw, 380px); margin-inline: auto; order: -1; }
.audio__visual img { filter: drop-shadow(0 34px 44px rgba(0,0,0,.5)); }
.includes { display: grid; gap: 0; border-top: 1px solid var(--line-dark); }
.includes li {
  position: relative; padding: var(--s-4) 0 var(--s-4) 1.75rem;
  border-bottom: 1px solid var(--line-dark); color: var(--frost-300);
}
.includes li::before { content: "—"; position: absolute; left: 0; color: var(--slate-500); }
.includes strong { color: var(--ivory-100); font-weight: 500; }

/* ---------- Editions ---------- */
.editions {
  background: linear-gradient(180deg, var(--night-600) 0%, #2b3b4c 55%, #44556a 100%);
}
.editions .section-head__sub { color: var(--frost-300); }
.editions__grid { display: grid; gap: var(--s-5); max-width: 52rem; margin-inline: auto; }
.edition {
  position: relative; display: grid; gap: var(--s-4); align-content: start;
  padding: var(--s-6) var(--s-5) var(--s-5); border-radius: var(--radius-lg);
  background: rgba(12, 21, 32, .55); border: 1px solid var(--line-dark-strong);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  box-shadow: 0 30px 60px -40px rgba(0,0,0,.7);
  transition: transform .6s var(--ease-out), border-color .4s, box-shadow .6s;
}
.edition:hover { transform: translateY(-4px); border-color: rgba(201, 212, 220, .45); box-shadow: 0 40px 70px -40px rgba(0,0,0,.8); }
.edition--featured { background: linear-gradient(165deg, rgba(232,230,224,.13), rgba(12,21,32,.55) 55%); border-color: rgba(232, 230, 224, .38); }
.edition__flag {
  position: absolute; top: -.8rem; left: var(--s-5);
  padding: .3rem .8rem; border-radius: 999px; background: var(--ivory-100); color: var(--ink-900);
  font-size: .6875rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
}
.edition__head { display: flex; align-items: center; gap: var(--s-3); }
.edition__icon { width: 1.6rem; height: 1.6rem; fill: none; stroke: var(--frost-300); stroke-width: 1.3; stroke-linejoin: round; stroke-linecap: round; flex-shrink: 0; }
.edition__name { font-family: var(--font-serif); font-weight: 500; font-size: clamp(1.45rem, 1.3rem + .6vw, 1.75rem); line-height: 1.15; color: var(--ivory-100); }
.edition__price { font-family: var(--font-serif); font-size: 3.25rem; line-height: 1; color: var(--ivory-100); display: flex; align-items: flex-start; gap: .1em; }
.edition__currency { font-size: .45em; margin-top: .35em; color: var(--frost-300); }
.edition__desc { color: var(--frost-200); }
.edition__list { display: grid; gap: var(--s-2); padding-block: var(--s-4); border-top: 1px solid var(--line-dark); margin-bottom: var(--s-2); }
.edition__list li { position: relative; padding-left: 1.6rem; font-size: var(--fs-sm); color: var(--frost-300); }
.edition__list li::before {
  content: ""; position: absolute; left: 0; top: .45em; width: .8rem; height: .45rem;
  border-left: 1.5px solid var(--frost-300); border-bottom: 1.5px solid var(--frost-300); transform: rotate(-45deg);
}
.checkout-status { min-height: 1.5rem; margin-top: var(--s-4); text-align: center; font-size: var(--fs-sm); color: var(--ivory-100); }
.checkout-status a { color: inherit; }
.assurances { display: grid; gap: var(--s-4); max-width: 52rem; margin: var(--s-6) auto 0; padding-top: var(--s-6); border-top: 1px solid var(--line-dark-strong); }
.assurances li { display: flex; gap: var(--s-4); align-items: flex-start; font-size: var(--fs-sm); line-height: 1.6; color: var(--frost-200); }
.assurances svg { width: 1.35rem; height: 1.35rem; flex-shrink: 0; margin-top: .1em; fill: none; stroke: var(--ivory-100); stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
.assurances strong { color: var(--ivory-100); font-weight: 600; }
.assurances a { color: var(--ivory-100); text-underline-offset: .2em; word-break: break-word; }

/* ---------- Readers (only rendered with verified reviews) ---------- */
.readers { background: linear-gradient(180deg, #44556a, #6d7f90); }
.readers__grid { display: grid; gap: var(--s-4); }
.review { padding: var(--s-6) var(--s-5); border-radius: var(--radius); background: rgba(12,21,32,.35); border: 1px solid var(--line-dark-strong); display: grid; gap: var(--s-4); }
.review blockquote { font-family: var(--font-serif); font-size: 1.35rem; line-height: 1.45; color: var(--ivory-100); }
.review figcaption { font-size: var(--fs-sm); color: var(--frost-200); letter-spacing: .04em; }

/* ---------- FAQ — the page turns warm here ---------- */
.faq {
  background: linear-gradient(180deg, #44556a 0%, #a9b4bd 12%, var(--ivory-100) 32%, var(--ivory-50) 100%);
  color: var(--ink-700);
}
.readers:not([hidden]) + .faq { background: linear-gradient(180deg, #6d7f90 0%, #b3bcc3 12%, var(--ivory-100) 32%, var(--ivory-50) 100%); }
.faq .eyebrow { color: var(--ink-500); }
.faq .display-md { color: var(--ink-900); }
.faq .section-head__sub { color: var(--ink-500); }
.faq .section-head__sub a { color: var(--ink-900); }
.faq__grid { display: grid; gap: var(--s-4); padding-top: var(--s-8); }
.faq__list { border-top: 1px solid var(--line-light); }
.faq__item { border-bottom: 1px solid var(--line-light); }
.faq__item summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: var(--s-4);
  min-height: 3.5rem; padding-block: var(--s-5);
  font-family: var(--font-serif); font-size: clamp(1.2rem, 1.1rem + .45vw, 1.45rem); font-weight: 500; line-height: 1.3; color: var(--ink-900);
  -webkit-tap-highlight-color: transparent;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: ""; flex-shrink: 0; width: 1.6rem; height: 1.6rem; border-radius: 50%;
  border: 1px solid var(--line-light);
  background:
    linear-gradient(var(--ink-700), var(--ink-700)) center / 9px 1.25px no-repeat,
    linear-gradient(var(--ink-700), var(--ink-700)) center / 1.25px 9px no-repeat;
  transition: transform .45s var(--ease-out), background-color .3s;
}
.faq__item[open] summary::after { transform: rotate(135deg); background-color: rgba(22,32,44,.05); }
.faq__item summary:hover::after { background-color: rgba(22,32,44,.06); }
.faq__answer { padding-bottom: var(--s-5); max-width: 38rem; color: var(--ink-700); font-size: var(--fs-base); line-height: 1.75; }
.faq__answer a { color: var(--ink-900); text-underline-offset: .2em; word-break: break-word; }
.faq__answer strong { color: var(--ink-900); font-weight: 600; }
@supports (interpolate-size: allow-keywords) {
  .faq__item { interpolate-size: allow-keywords; }
  .faq__item::details-content { height: 0; overflow: clip; transition: height .45s var(--ease-soft), content-visibility .45s allow-discrete; }
  .faq__item[open]::details-content { height: auto; }
}

/* ---------- Closing ---------- */
.closing { background: var(--ivory-50); color: var(--ink-700); text-align: center; padding-top: var(--s-8); }
.closing__inner { display: grid; justify-items: center; gap: var(--s-5); }
.closing__mark { width: 56px; filter: invert(1) brightness(.35) sepia(.2) hue-rotate(180deg); opacity: .8; }
.closing .display-lg { color: var(--ink-900); }
.closing .lede { color: var(--ink-500); max-width: 28rem; }
.closing__actions { display: grid; gap: var(--s-3); width: 100%; max-width: 24rem; margin-top: var(--s-3); }

/* ---------- Footer ---------- */
.site-footer { background: var(--night-900); color: var(--slate-400); padding-top: var(--s-8); padding-bottom: calc(var(--s-6) + var(--safe-b)); }
.site-footer__inner { display: grid; gap: var(--s-7); padding-bottom: var(--s-7); border-bottom: 1px solid var(--line-dark); }
.site-footer__brand { display: grid; gap: var(--s-4); max-width: 20rem; }
.site-footer__brand img { width: 130px; }
.site-footer__brand p { font-family: var(--font-serif); font-style: italic; font-size: 1.15rem; line-height: 1.45; color: var(--frost-300); }
.site-footer__nav { display: grid; grid-template-columns: 1fr 1fr; gap: 0 var(--s-5); }
.site-footer__nav a { padding-block: .7rem; font-size: var(--fs-sm); text-decoration: none; color: var(--frost-200); transition: color .3s; }
.site-footer__nav a:hover { color: var(--ivory-100); }
.site-footer__contact { display: grid; gap: var(--s-3); }
.site-footer__contact a { color: var(--ivory-100); text-underline-offset: .25em; text-decoration-color: var(--line-dark-strong); word-break: break-word; padding-block: .4rem; }
.site-footer__legal { display: grid; gap: var(--s-2); padding-top: var(--s-5); font-size: var(--fs-xs); letter-spacing: .04em; }

/* ---------- Sticky buy bar (mobile) ---------- */
.buybar {
  position: fixed; z-index: 45; left: var(--s-3); right: var(--s-3); bottom: calc(var(--s-3) + var(--safe-b));
  display: flex; align-items: center; gap: var(--s-3);
  padding: .5rem .5rem .5rem .6rem; border-radius: 18px;
  background: rgba(12, 21, 32, .86); border: 1px solid var(--line-dark-strong);
  -webkit-backdrop-filter: saturate(150%) blur(16px); backdrop-filter: saturate(150%) blur(16px);
  box-shadow: 0 18px 40px -16px rgba(0,0,0,.75);
  transform: translateY(calc(100% + 2rem)); opacity: 0;
  transition: transform .6s var(--ease-out), opacity .4s var(--ease-soft);
}
.buybar[hidden] { display: none; }
.buybar.is-visible { transform: none; opacity: 1; }
.buybar__thumb { width: 34px; height: auto; flex-shrink: 0; filter: drop-shadow(0 4px 8px rgba(0,0,0,.5)); }
.buybar__label { flex: 1; min-width: 0; display: grid; line-height: 1.25; }
.buybar__label > span { font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--slate-400); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.buybar__label strong { font-family: var(--font-serif); font-size: 1.3rem; font-weight: 500; color: var(--ivory-100); }
.buybar .btn { flex-shrink: 0; }
.buybar__close {
  flex-shrink: 0; width: 44px; height: 44px; display: grid; place-items: center; margin-left: -.25rem;
  background: none; border: 0; border-radius: 50%; color: var(--slate-400); cursor: pointer;
}
.buybar__close svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
.buybar__close:hover { color: var(--ivory-100); background: rgba(169,185,198,.1); }

/* ---------- Consent ---------- */
.consent {
  position: fixed; z-index: 50; left: var(--s-3); right: var(--s-3); bottom: calc(var(--s-3) + var(--safe-b));
  max-width: 30rem; margin-inline: auto; padding: var(--s-4) var(--s-5);
  border-radius: var(--radius); background: rgba(12,21,32,.95); border: 1px solid var(--line-dark-strong);
  box-shadow: 0 18px 40px -16px rgba(0,0,0,.75); font-size: var(--fs-sm); color: var(--frost-200);
  display: grid; gap: var(--s-4);
}
.consent[hidden] { display: none; }
.consent__actions { display: flex; gap: var(--s-3); justify-content: flex-end; }

/* ---------- Reveal motion ---------- */
.js .reveal {
  opacity: 0; transform: translate3d(0, 22px, 0);
  transition: opacity var(--dur) var(--ease-out), transform calc(var(--dur) * 1.2) var(--ease-out);
  transition-delay: calc(var(--d, 0) * 110ms);
}
.js .reveal.is-in { opacity: 1; transform: none; }
/* Hero copy runs on a CSS animation so it never waits for JavaScript */
.js .hero .reveal { opacity: 1; transform: none; transition: none; animation: rise 1.2s var(--ease-out) both; animation-delay: calc(80ms + var(--d, 0) * 130ms); }
@keyframes rise { from { opacity: 0; transform: translate3d(0, 18px, 0); } to { opacity: 1; transform: none; } }

/* ==========================================================================
   Tablet and up
   ========================================================================== */
@media (min-width: 560px) {
  .hero__actions { flex-direction: row; flex-wrap: wrap; }
  .closing__actions { grid-template-columns: 1fr 1fr; max-width: 38rem; }
  .buybar { left: 50%; right: auto; width: min(30rem, calc(100% - 2rem)); transform: translate(-50%, calc(100% + 2rem)); }
  .buybar.is-visible { transform: translate(-50%, 0); }
}

@media (min-width: 700px) {
  .hero__media img { object-position: 30% 55%; }
  .hero__veil {
    background:
      linear-gradient(180deg, rgba(10,18,28,.5) 0%, rgba(10,18,28,0) 20%),
      linear-gradient(0deg, rgba(10,18,28,.92) 0%, rgba(10,18,28,.35) 40%, rgba(10,18,28,0) 70%),
      linear-gradient(90deg, rgba(10,18,28,.0) 30%, rgba(10,18,28,.55) 100%);
  }
  .hero__content { justify-items: end; text-align: right; padding-bottom: calc(var(--s-10) + var(--safe-b)); }
  .hero__title { max-width: 10ch; }
  .hero__actions { justify-content: flex-end; }
  .themes__grid { grid-template-columns: repeat(3, 1fr); }
  .theme-card { padding: var(--s-7) var(--s-6); }
  .editions__grid { grid-template-columns: 1fr 1fr; align-items: stretch; }
  .edition { padding: var(--s-7) var(--s-6) var(--s-6); grid-template-rows: auto auto auto 1fr auto; }
  .assurances { grid-template-columns: repeat(3, 1fr); gap: var(--s-6); }
  .readers__grid { grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr)); }
  .site-footer__inner { grid-template-columns: 1.3fr 1fr 1fr; }
  .site-footer__legal { display: flex; justify-content: space-between; }
  .buybar { display: none !important; }
}

@media (min-width: 900px) {
  :root { --header-h: 76px; }
  .site-nav { display: flex; gap: var(--s-6); margin-left: auto; margin-right: var(--s-5); }
  .site-nav a {
    position: relative; padding-block: .6rem; font-size: var(--fs-sm); letter-spacing: .06em;
    color: var(--frost-200); text-decoration: none; transition: color .3s;
  }
  .site-nav a::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: .35rem; height: 1px; background: currentColor;
    transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease-out);
  }
  .site-nav a:hover { color: var(--ivory-100); }
  .site-nav a:hover::after { transform: scaleX(1); transform-origin: left; }

  .book__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: center; gap: var(--s-9); }
  .book__cover { width: 100%; max-width: 440px; }
  .audio__grid { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); align-items: center; gap: var(--s-9); }
  .audio__visual { order: 0; width: 100%; max-width: 480px; }
  .faq__grid { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: var(--s-9); align-items: start; }
  .faq__grid .section-head { position: sticky; top: calc(var(--header-h) + var(--s-6)); }
  .recognition__list li { padding-left: var(--s-7); }
  .recognition__list li::before { width: 1.5rem; }
}

@media (min-width: 1200px) {
  .hero__content { padding-bottom: 9rem; }
}

/* Short landscape phones: keep the hero usable */
@media (max-height: 520px) and (orientation: landscape) {
  .hero { min-height: 520px; }
  .hero__content { padding-top: calc(var(--header-h) + var(--s-5)); padding-bottom: var(--s-7); }
  .scroll-cue { display: none; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  .hero__snow { display: none; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- Secondary pages (thank-you, inquiries, 404) ---------- */
.page {
  min-height: 100vh; min-height: 100svh; display: grid; align-items: center;
  padding: calc(var(--header-h) + var(--s-8)) 0 var(--s-9);
  background:
    radial-gradient(90% 50% at 50% 0%, rgba(116,136,153,.18), transparent 70%),
    linear-gradient(180deg, var(--night-900), var(--night-700));
}
.page__inner { display: grid; gap: var(--s-5); }
.page__inner > .display-lg { margin-top: var(--s-2); }
.page .prose a { color: var(--ivory-100); text-underline-offset: .2em; }
.page__actions { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-3); }
.steps { display: grid; gap: 0; border-top: 1px solid var(--line-dark); margin-top: var(--s-3); counter-reset: st; }
.steps li { counter-increment: st; display: grid; grid-template-columns: 2.25rem 1fr; gap: var(--s-3); padding-block: var(--s-4); border-bottom: 1px solid var(--line-dark); color: var(--frost-200); }
.steps li::before { content: counter(st, upper-roman); font-family: var(--font-serif); color: var(--slate-400); font-size: 1.1rem; }

.form { display: grid; gap: var(--s-4); margin-top: var(--s-4); }
.field { display: grid; gap: var(--s-2); }
.field label { font-size: var(--fs-xs); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--slate-400); }
.field input, .field textarea {
  width: 100%; padding: .9rem 1rem; font: 400 1rem/1.5 var(--font-sans); color: var(--ivory-100);
  background: rgba(12,21,32,.6); border: 1px solid var(--line-dark-strong); border-radius: 10px;
  transition: border-color .3s, background-color .3s;
}
.field textarea { min-height: 9rem; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--frost-300); background: rgba(12,21,32,.85); }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.notice { padding: var(--s-4) var(--s-5); border-radius: 10px; border: 1px solid var(--line-dark-strong); background: rgba(169,185,198,.08); color: var(--ivory-100); font-size: var(--fs-sm); }
.notice--error { border-color: rgba(230, 160, 150, .45); background: rgba(230, 160, 150, .08); }
.meta-list { display: grid; gap: var(--s-2); font-size: var(--fs-sm); color: var(--slate-400); padding-top: var(--s-5); border-top: 1px solid var(--line-dark); }
.meta-list a { color: var(--frost-200); }
