/* =====================================================================
   Liam Corwell — design system
   Palette: deep charcoal · muted warm browns · soft ivory · golden light
   ===================================================================== */

:root {
  --bg: #141110;
  --bg-2: #1b1715;
  --surface: #221d1a;
  --surface-2: #2a231f;
  --line: rgba(239, 228, 210, 0.12);
  --line-strong: rgba(239, 228, 210, 0.22);

  --ivory: #efe6d6;
  --ivory-soft: #cfc4b2;
  --text-muted: #a99d8b;

  --brown: #5a4433;
  --brown-deep: #3a2b21;
  --gold: #d2ac6c;
  --gold-soft: #e6c891;
  --gold-deep: #a9834a;
  --on-gold: #1a1310;

  --serif: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --radius: 14px;
  --radius-sm: 10px;
  --shadow-book: 0 30px 60px -20px rgba(0, 0, 0, 0.75), 0 12px 24px -12px rgba(0, 0, 0, 0.6);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --gutter: 20px;
  --header-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ivory);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--gold-soft); }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.12; margin: 0; letter-spacing: -0.005em; }
p { margin: 0 0 1em; }
em { font-style: italic; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

.container { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 var(--gutter); }
.skip-link { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--gold); color: var(--on-gold); padding: 8px 14px; border-radius: 6px; }
.skip-link:focus { left: 8px; }

.eyebrow {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4em;
  min-height: 52px; padding: 0 26px;
  border-radius: 999px; border: 1px solid transparent;
  font: 600 15px/1 var(--sans); letter-spacing: 0.01em;
  text-decoration: none; cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.25s, box-shadow 0.25s, border-color 0.25s;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(0.98); }
.btn-gold {
  background: linear-gradient(180deg, var(--gold-soft), var(--gold));
  color: var(--on-gold);
  box-shadow: 0 8px 24px -10px rgba(210, 172, 108, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.btn-gold:hover { box-shadow: 0 12px 32px -10px rgba(210, 172, 108, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.35); transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--ivory); border-color: var(--line-strong); }
.btn-outline:hover { border-color: var(--gold); color: var(--gold-soft); }
.btn-small { min-height: 40px; padding: 0 18px; font-size: 14px; }
.btn-large { min-height: 58px; padding: 0 34px; font-size: 16px; }
.btn-block { width: 100%; }
.btn[aria-busy="true"] { opacity: 0.75; cursor: progress; pointer-events: none; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h);
  display: flex; align-items: center;
  transition: background 0.3s, border-color 0.3s, backdrop-filter 0.3s;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgba(20, 17, 16, 0.82);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-color: var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.wordmark { font-family: var(--serif); font-size: 22px; font-weight: 500; letter-spacing: 0.04em; color: var(--ivory); text-decoration: none; margin: 0; }
.header-nav { display: none; gap: 30px; }
.header-nav a { color: var(--ivory-soft); text-decoration: none; font-size: 14px; transition: color 0.2s; }
.header-nav a:hover { color: var(--gold-soft); }
@media (min-width: 900px) { .header-nav { display: flex; } }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: calc(var(--header-h) + 16px) 0 48px;
  background:
    radial-gradient(120% 70% at 75% 10%, rgba(90, 68, 51, 0.55), transparent 60%),
    linear-gradient(180deg, #1a1513 0%, var(--bg) 100%);
}
.hero-glow {
  position: absolute; width: 520px; height: 520px; right: -140px; top: -60px;
  background: radial-gradient(circle, rgba(230, 200, 145, 0.22), transparent 65%);
  filter: blur(10px); pointer-events: none;
  animation: breathe 9s ease-in-out infinite;
}
@keyframes breathe { 0%, 100% { opacity: 0.75; transform: scale(1); } 50% { opacity: 1; transform: scale(1.06); } }
.hero-inner { position: relative; display: grid; gap: 24px; align-items: center; }
.hero-copy { order: 2; text-align: center; }
.hero-book { order: 1; display: flex; justify-content: center; }
.hero-title { font-size: clamp(32px, 8.6vw, 68px); font-weight: 500; margin-bottom: 18px; text-wrap: balance; }
.hero-lede { font-size: 16px; color: var(--ivory-soft); max-width: 34em; margin: 0 auto 26px; text-wrap: pretty; }
.hero-actions { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.hero-actions .btn { width: 100%; max-width: 360px; }
.hero-meta { font-size: 13px; color: var(--text-muted); margin: 0; }

@media (min-width: 900px) {
  .hero { padding: calc(var(--header-h) + 72px) 0 110px; min-height: 92vh; display: flex; align-items: center; }
  .hero-inner { grid-template-columns: 1.15fr 0.85fr; gap: 64px; }
  .hero-copy { order: 1; text-align: left; }
  .hero-book { order: 2; }
  .hero-lede { margin-left: 0; font-size: 19px; }
  .hero-actions { align-items: flex-start; }
  .hero-actions .btn { width: auto; }
}

/* ---------- Book (cover) component ---------- */
.book {
  position: relative; aspect-ratio: 600 / 932; width: 100%;
  border-radius: 3px 6px 6px 3px; overflow: hidden;
  background: var(--brown-deep);
}
.book > img { width: 100%; height: 100%; object-fit: cover; }
.book::after { /* spine highlight for depth */
  content: ""; position: absolute; inset: 0 auto 0 0; width: 7%;
  background: linear-gradient(90deg, rgba(0,0,0,0.35), rgba(255,255,255,0.08) 45%, rgba(0,0,0,0.12));
  pointer-events: none;
}
.book-flat::after { display: none; }
.book-hero { width: min(40vw, 158px); box-shadow: var(--shadow-book), 0 0 0 1px rgba(239,228,210,0.08); transform: perspective(1200px) rotateY(-8deg); transition: transform 0.8s var(--ease); }
.hero-book:hover .book-hero { transform: perspective(1200px) rotateY(-3deg); }
@media (min-width: 900px) { .book-hero { width: 360px; } }

/* Real 3D mockup image (transparent WebP) replaces the CSS book frame */
.book.has-mockup { aspect-ratio: auto; background: none; box-shadow: none; overflow: visible; border-radius: 0; transform: none; }
.book.has-mockup::after { display: none; }
.book.has-mockup > img { height: auto; object-fit: contain; filter: drop-shadow(0 28px 36px rgba(0, 0, 0, 0.7)) drop-shadow(0 0 60px rgba(230, 200, 145, 0.12)); }
.book-hero.has-mockup { width: min(58vw, 232px); transition: transform 0.8s var(--ease); }
.hero-book:hover .book-hero.has-mockup { transform: translateY(-4px); }
@media (min-width: 900px) { .book-hero.has-mockup { width: 420px; } }

/* Stage book (3D mockup) in the edition selector */
.book-stage.has-mockup { width: 44%; max-width: 280px; transition: transform 0.6s var(--ease); }
.book-stage-shift.has-mockup { width: 40%; transform: translateX(-28%) rotate(-2deg); }

/* Product mockup images (collection) */
.trio.has-image, .collection-books.has-image { display: flex; align-items: center; justify-content: center; }
.trio.has-image { width: 86%; height: 92%; }
.trio.has-image img, .collection-books.has-image img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; filter: drop-shadow(0 24px 30px rgba(0, 0, 0, 0.65)); }
.collection-books.has-image { padding: 0; }
.collection-books.has-image img { width: min(100%, 520px); }

/* Typographic placeholder (only shown until the real cover is supplied) */
.cover-ph {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: space-between; align-items: center;
  text-align: center; padding: 12% 10% 9%;
  background:
    radial-gradient(90% 60% at 50% 32%, rgba(230, 200, 145, 0.28), transparent 70%),
    linear-gradient(170deg, #3b2c22 0%, #221a15 55%, #15110f 100%);
  color: var(--ivory);
  container-type: inline-size;
}
.cover-ph.alt { background: radial-gradient(80% 50% at 50% 70%, rgba(210, 172, 108, 0.18), transparent 70%), linear-gradient(170deg, #2c2a29 0%, #1c1a19 60%, #121110 100%); }
.cover-ph.blank { background: linear-gradient(170deg, #2a231f, #191512); border: 1px dashed rgba(239, 228, 210, 0.22); }
.cover-ph .ph-rule { width: 22%; height: 1px; background: var(--gold); opacity: 0.7; margin: 0 auto; }
.cover-ph .ph-title { font-family: var(--serif); font-size: 13cqi; line-height: 1.02; font-weight: 500; letter-spacing: 0.01em; text-wrap: balance; }
.cover-ph .ph-author { font: 600 5cqi/1 var(--sans); letter-spacing: 0.28em; text-transform: uppercase; color: var(--gold-soft); }
.cover-ph .ph-tag { font: 500 4cqi/1.2 var(--sans); letter-spacing: 0.08em; color: rgba(239, 228, 210, 0.5); text-transform: uppercase; }
.cover-ph .ph-plus { font-family: var(--serif); font-size: 26cqi; color: rgba(210, 172, 108, 0.5); line-height: 1; }

/* ---------- Sections ---------- */
.section { padding: 72px 0; position: relative; }
@media (min-width: 900px) { .section { padding: 112px 0; } }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 40px; }
.section-title { font-size: clamp(32px, 6.4vw, 50px); text-wrap: balance; }
.section-sub { color: var(--text-muted); margin: 12px 0 0; font-size: 15px; }

/* ---------- Editions / shop ---------- */
.editions { background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%); padding-top: 56px; }
.shop { display: grid; gap: 22px; }
@media (min-width: 900px) {
  .shop { grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: start; }
  .stage { position: sticky; top: calc(var(--header-h) + 24px); }
}

.stage {
  position: relative; aspect-ratio: 5 / 4; border-radius: 22px; overflow: hidden;
  background:
    radial-gradient(70% 60% at 50% 40%, rgba(230, 200, 145, 0.16), transparent 70%),
    linear-gradient(180deg, #2a221d, #1a1512);
  border: 1px solid var(--line);
}
.stage-scene {
  position: absolute; inset: 0 0 40px; margin: 0; display: flex; align-items: center; justify-content: center;
  opacity: 0; transform: scale(0.97); transition: opacity 0.5s var(--ease), transform 0.6s var(--ease); pointer-events: none;
}
.stage-scene.is-active { opacity: 1; transform: none; }
.stage-label {
  position: absolute; left: 50%; bottom: -28px; transform: translateX(-50%);
  font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ivory-soft);
  background: rgba(20, 17, 16, 0.6); padding: 6px 12px; border-radius: 999px; white-space: nowrap;
  border: 1px solid var(--line);
}

/* devices */
.device { background: #0d0b0a; border: 1px solid #3a322c; box-shadow: var(--shadow-book); position: relative; }
.device-screen { overflow: hidden; height: 100%; }
.tablet { width: 41%; aspect-ratio: 3 / 4.1; border-radius: 18px; padding: 4.5%; }
.tablet .device-screen { border-radius: 6px; display: flex; align-items: center; justify-content: center; background: #1a1512; }
.tablet .book { height: 100%; width: auto; }
.tablet-shift { transform: translateX(-22%) rotate(-3deg); }
.phone { position: absolute; width: 23%; aspect-ratio: 9 / 19; border-radius: 22px; padding: 2.4%; right: 22%; top: 50%; transform: translateY(-46%) rotate(4deg); }
.phone-screen { border-radius: 15px; background: linear-gradient(180deg, #2b221c, #141110); display: flex; flex-direction: column; align-items: center; padding: 22% 9% 0; text-align: center; container-type: inline-size; }
.book-mini { width: 76%; border-radius: 4px; box-shadow: 0 10px 20px -10px #000; }
.player-title { font-family: var(--serif); font-size: 12cqi; margin: 12% 0 1%; line-height: 1.1; }
.player-sub { font-size: 7.5cqi; color: var(--text-muted); margin: 0 0 10%; }
.player-bar { width: 100%; height: 2px; background: rgba(239,228,210,0.18); border-radius: 2px; }
.player-bar span { display: block; height: 100%; width: 38%; background: var(--gold); border-radius: 2px; }
.player-controls { display: flex; align-items: center; justify-content: center; gap: 10%; margin-top: 12%; width: 100%; }
.player-controls svg { width: 15cqi; fill: var(--ivory-soft); }
.player-controls .play { width: 22cqi; fill: var(--gold-soft); }

.trio { position: relative; width: 70%; height: 72%; }
.book-trio { position: absolute; width: 38%; bottom: 8%; box-shadow: var(--shadow-book); transition: transform 0.6s var(--ease); }
.book-trio.t1 { left: 4%; transform: rotate(-9deg) translateY(-2%); }
.book-trio.t3 { right: 4%; transform: rotate(9deg) translateY(-2%); }
.book-trio.t2 { left: 31%; width: 40%; bottom: 10%; z-index: 2; }

/* option cards */
.options { display: grid; gap: 12px; }
.option {
  position: relative; border-radius: var(--radius); border: 1px solid var(--line);
  background: var(--surface); padding: 18px 18px; cursor: pointer;
  transition: border-color 0.25s, background 0.25s, box-shadow 0.25s;
  -webkit-tap-highlight-color: transparent;
}
.option:hover { border-color: var(--line-strong); }
.option[aria-checked="true"] {
  border-color: rgba(210, 172, 108, 0.75);
  background: linear-gradient(180deg, #2c241f, #241e1a);
  box-shadow: 0 0 0 1px rgba(210, 172, 108, 0.25), 0 18px 40px -24px rgba(210, 172, 108, 0.45);
}
.option-badge {
  position: absolute; top: -11px; right: 18px;
  font: 600 11px/1 var(--sans); letter-spacing: 0.12em; text-transform: uppercase;
  background: var(--gold); color: var(--on-gold); padding: 6px 10px; border-radius: 999px;
}
.option-head { display: flex; align-items: center; gap: 14px; }
.option-radio { flex: none; width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--line-strong); position: relative; transition: border-color 0.2s; }
.option[aria-checked="true"] .option-radio { border-color: var(--gold); }
.option[aria-checked="true"] .option-radio::after { content: ""; position: absolute; inset: 4px; border-radius: 50%; background: var(--gold); }
.option-name { flex: 1; min-width: 0; }
.option-name h3 { font-size: 23px; font-weight: 600; }
.option-name p { margin: 2px 0 0; font-size: 13px; color: var(--text-muted); }
.option-price { margin: 0; font-family: var(--serif); font-size: 30px; font-weight: 600; color: var(--gold-soft); white-space: nowrap; }
.option-price.is-tbd { font-family: var(--sans); font-size: 13px; font-weight: 500; color: var(--text-muted); }
.option:not([aria-checked="true"]) .option-body { display: none; }
.option[aria-checked="true"] .option-body { animation: unfold 0.45s var(--ease); }
@keyframes unfold { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.includes { list-style: none; padding: 0; margin: 16px 0 18px; display: grid; gap: 8px; }
.includes li { position: relative; padding-left: 26px; font-size: 15px; color: var(--ivory-soft); line-height: 1.45; }
.includes li::before {
  content: ""; position: absolute; left: 2px; top: 0.42em; width: 12px; height: 7px;
  border-left: 1.6px solid var(--gold); border-bottom: 1.6px solid var(--gold); transform: rotate(-45deg);
}

.trust { margin-top: 6px; }
.pending-note {
  display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--ivory-soft);
  background: rgba(210, 172, 108, 0.08); border: 1px solid rgba(210, 172, 108, 0.25);
  padding: 12px 14px; border-radius: var(--radius-sm); margin: 0 0 14px;
}
.pending-note svg { flex: none; width: 18px; height: 18px; margin-top: 2px; fill: none; stroke: var(--gold); stroke-width: 1.6; }
.trust-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 20px; }
.trust-list li { display: flex; align-items: center; gap: 7px; font-size: 13px; color: var(--text-muted); }
.trust-list svg { width: 16px; height: 16px; fill: none; stroke: var(--gold); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Why ---------- */
.why { background: var(--bg-2); }
.why-grid { display: grid; gap: 14px; }
@media (min-width: 760px) { .why-grid { grid-template-columns: repeat(3, 1fr); gap: 22px; } }
.why-card {
  padding: 28px 24px; border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(42, 35, 31, 0.8), rgba(30, 25, 22, 0.6));
  border: 1px solid var(--line);
}
.why-num { font-family: var(--serif); font-style: italic; font-size: 22px; color: var(--gold); display: block; margin-bottom: 10px; }
.why-card h3 { font-size: 26px; margin-bottom: 10px; }
.why-card p { color: var(--ivory-soft); margin: 0; font-size: 15.5px; }
.why-note { text-align: center; color: var(--text-muted); font-size: 13px; margin: 28px auto 0; max-width: 36em; }

/* ---------- Reviews ---------- */
.reviews { background: linear-gradient(180deg, var(--bg-2), var(--bg)); }
.review-gallery {
  display: grid; grid-auto-flow: column; grid-auto-columns: 82%; gap: 14px;
  overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px;
  margin: 0 calc(var(--gutter) * -1); padding-left: var(--gutter); padding-right: var(--gutter);
  scrollbar-width: none;
}
.review-gallery::-webkit-scrollbar { display: none; }
@media (min-width: 760px) {
  .review-gallery { grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); overflow: visible; margin: 0; padding: 0; }
}
.review-card {
  scroll-snap-align: center; margin: 0; border-radius: var(--radius); overflow: hidden;
  background: var(--ivory); border: 1px solid var(--line);
  box-shadow: 0 20px 40px -24px rgba(0, 0, 0, 0.8);
}
.review-card img { width: 100%; height: auto; }
.review-ph {
  scroll-snap-align: center; border-radius: var(--radius); min-height: 220px;
  border: 1px dashed var(--line-strong); background: rgba(42, 35, 31, 0.4);
  display: flex; flex-direction: column; justify-content: center; gap: 12px; padding: 26px;
}
.review-ph .ph-lines { display: grid; gap: 9px; }
.review-ph .ph-lines span { height: 8px; border-radius: 4px; background: rgba(239, 228, 210, 0.08); }
.review-ph .ph-lines span:nth-child(2) { width: 88%; }
.review-ph .ph-lines span:nth-child(3) { width: 64%; }
.review-ph p { margin: 6px 0 0; font-size: 13px; color: var(--text-muted); }
.review-source { text-align: center; color: var(--text-muted); font-size: 13px; margin: 22px 0 0; }

/* Review cards (warm "paper" notes on the dark page) */
.review-gallery { grid-auto-columns: 86%; align-items: stretch; }
.review-card {
  display: flex; flex-direction: column; gap: 14px; padding: 24px 22px 18px;
  background: linear-gradient(180deg, #f3ebdd, #ebe1cf); color: #2a211b;
}
.review-card.review-shot { padding: 0; }
.review-head { display: grid; gap: 6px; }
.stars { color: #b8873e; letter-spacing: 0.12em; font-size: 17px; line-height: 1; }
.review-title { font-family: var(--serif); font-size: 23px; font-weight: 600; line-height: 1.2; margin: 0; color: #1f1813; }
.review-text { margin: 0; flex: 1; }
.review-text p { margin: 0; font-size: 15.5px; line-height: 1.6; color: #3b2f26; }
.review-text p::before { content: "“"; } .review-text p::after { content: "”"; }
.review-meta {
  display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 2px 12px;
  border-top: 1px solid rgba(42, 33, 27, 0.14); padding: 12px 0 0; background: none;
}
.review-name { font-weight: 600; font-size: 14px; color: #2a211b; }
.review-sub { grid-column: 1; font-size: 12px; color: #6d5d4f; }
.review-shot-btn {
  grid-column: 2; grid-row: 1 / span 2; align-self: center;
  font: 600 12px/1 var(--sans); color: #6b4f2a; background: transparent; cursor: pointer;
  border: 1px solid rgba(107, 79, 42, 0.35); border-radius: 999px; padding: 9px 12px; min-height: 36px;
}
.review-shot-btn:hover { border-color: #6b4f2a; }
.lightbox {
  border: 0; padding: 0; background: transparent; max-width: min(94vw, 1000px); width: 100%;
  overflow: visible;
}
.lightbox::backdrop { background: rgba(10, 8, 7, 0.85); backdrop-filter: blur(4px); }
.lightbox img { width: 100%; height: auto; border-radius: 10px; box-shadow: 0 30px 80px -20px #000; }
.lightbox-cap { text-align: center; color: var(--ivory-soft); font-size: 13px; margin: 12px 0 0; }
.lightbox-close {
  position: absolute; top: -48px; right: 0; width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--line-strong); background: var(--surface); color: var(--ivory); font-size: 24px; line-height: 1; cursor: pointer;
}
@media (max-width: 759px) { .lightbox img { max-height: 70vh; object-fit: contain; background: #fff; } }

/* ---------- Collection ---------- */
.collection { background: var(--bg); border-top: 1px solid var(--line); }
.collection-inner { display: grid; gap: 40px; align-items: center; }
.collection-books { display: flex; justify-content: center; align-items: flex-end; gap: 4%; padding: 0 4%; }
.book-shelf { width: 30%; box-shadow: var(--shadow-book); }
.book-shelf:nth-child(2) { width: 34%; transform: translateY(-6%); }
.collection-copy { text-align: center; }
.collection-copy > p { color: var(--ivory-soft); }
.collection-list { list-style: none; counter-reset: c; padding: 0; margin: 20px auto 22px; display: grid; gap: 10px; max-width: 320px; text-align: left; }
.collection-list li { counter-increment: c; display: flex; gap: 14px; align-items: baseline; font-family: var(--serif); font-size: 21px; border-bottom: 1px solid var(--line); padding-bottom: 10px; }
.collection-list li::before { content: counter(c, upper-roman); font-size: 14px; color: var(--gold); width: 22px; font-style: italic; }
.collection-price { font-family: var(--serif); font-size: 34px; font-weight: 600; color: var(--gold-soft); margin-bottom: 18px; }
.collection-price small { font-family: var(--sans); font-size: 13px; font-weight: 400; color: var(--text-muted); margin-left: 6px; }
.collection-price .is-tbd { font-family: var(--sans); font-size: 14px; color: var(--text-muted); }
@media (min-width: 900px) {
  .collection-inner { grid-template-columns: 1fr 1fr; gap: 72px; }
  .collection-copy { text-align: left; }
  .collection-list { margin-left: 0; }
}

/* ---------- About ---------- */
.about { background: linear-gradient(180deg, var(--bg), var(--bg-2)); }
.about-inner { max-width: 680px; text-align: center; }
.about-lede { font-family: var(--serif); font-size: clamp(22px, 4.6vw, 28px); font-style: italic; color: var(--ivory); margin: 18px 0 18px; line-height: 1.35; }
.about-inner p { color: var(--ivory-soft); }
.about-books { font-family: var(--serif); font-size: 19px; color: var(--gold-soft) !important; margin-top: 24px; }

/* ---------- Final CTA ---------- */
.final { overflow: hidden; text-align: center; background: var(--bg-2); padding-bottom: 96px; }
.final-glow { position: absolute; left: 50%; top: 50%; width: 640px; height: 640px; transform: translate(-50%, -50%); background: radial-gradient(circle, rgba(230, 200, 145, 0.16), transparent 62%); pointer-events: none; }
.final-inner { position: relative; max-width: 720px; }
.final-title { font-size: clamp(32px, 7vw, 54px); margin-bottom: 18px; text-wrap: balance; }
.final-inner > p { color: var(--ivory-soft); font-size: 17px; margin-bottom: 28px; }
.final-inner .btn { width: 100%; max-width: 360px; }
.final-inner .final-meta { font-size: 13px; color: var(--text-muted); margin: 16px 0 0; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 40px 0 calc(110px + env(safe-area-inset-bottom)); background: var(--bg); }
@media (min-width: 900px) { .site-footer { padding-bottom: 40px; } }
.footer-inner { display: grid; gap: 22px; }
.footer-sub { font-size: 13px; color: var(--text-muted); margin: 4px 0 0; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.footer-nav a { color: var(--ivory-soft); font-size: 14px; text-decoration: none; }
.footer-nav a:hover { color: var(--gold-soft); }
.footer-legal { font-size: 12.5px; color: var(--text-muted); margin: 0; max-width: 60em; }
@media (min-width: 900px) { .footer-inner { grid-template-columns: 1fr auto; } .footer-legal { grid-column: 1 / -1; } }

/* ---------- Sticky mobile buy bar ---------- */
.buybar {
  position: fixed; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 60;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 10px 10px 18px; border-radius: 999px;
  background: rgba(34, 29, 26, 0.92); border: 1px solid var(--line-strong);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.8);
  transform: translateY(140%); transition: transform 0.45s var(--ease);
}
.buybar.is-visible { transform: none; }
.buybar-info { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.buybar-name { font-size: 13px; color: var(--ivory-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.buybar-price { font-family: var(--serif); font-size: 22px; font-weight: 600; color: var(--gold-soft); }
.buybar .btn { min-height: 46px; padding: 0 22px; flex: none; }
@media (min-width: 900px) { .buybar { display: none; } }

/* ---------- Notice dialog ---------- */
.notice {
  border: 1px solid var(--line-strong); border-radius: 18px; padding: 28px 24px 22px;
  background: var(--surface); color: var(--ivory); width: min(92vw, 420px);
  box-shadow: 0 30px 80px -20px #000;
}
.notice::backdrop { background: rgba(10, 8, 7, 0.7); backdrop-filter: blur(4px); }
.notice h2 { font-size: 30px; margin-bottom: 12px; }
.notice p { color: var(--ivory-soft); font-size: 15px; }
.notice .btn { margin-top: 8px; }

/* ---------- Reveal animation (subtle) ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- Simple content pages (contact / policies) ---------- */
.page { padding: calc(var(--header-h) + 48px) 0 80px; min-height: 70vh; }
.page .container { max-width: 760px; }
.page h1 { font-size: clamp(36px, 7vw, 54px); margin-bottom: 12px; }
.page h2 { font-size: 26px; margin: 36px 0 10px; }
.page p, .page li { color: var(--ivory-soft); }
.page ul { padding-left: 20px; display: grid; gap: 6px; margin: 0 0 1em; }
.page a:not(.btn) { color: var(--gold-soft); }
.page .updated { color: var(--text-muted); font-size: 13px; }
.page .draft-note { border: 1px dashed rgba(210, 172, 108, 0.45); background: rgba(210, 172, 108, 0.07); padding: 14px 16px; border-radius: var(--radius-sm); font-size: 14px; }

/* =====================================================================
   SEO additions: homepage H1, book pages, books index, footer book links
   ===================================================================== */
.hero-name {
  font-family: var(--sans); font-size: 13px; font-weight: 600; line-height: 1.4;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold); margin: 0 0 14px;
}
.hero-title { font-family: var(--serif); font-weight: 500; line-height: 1.12; letter-spacing: -0.005em; }
.hero-meta a, .about-books a, .collection-list a { color: inherit; text-decoration: none; border-bottom: 1px solid rgba(210, 172, 108, 0.35); }
.hero-meta a:hover, .about-books a:hover, .collection-list a:hover { color: var(--gold-soft); border-color: var(--gold); }
.collection-list a { border-bottom: 0; }
.about-official { font-size: 13px; color: var(--text-muted) !important; margin-top: 10px; }
.book-link { text-align: center; margin: 0 0 12px; font-size: 14px; }
.book-link a, .text-link { color: var(--gold-soft); text-decoration: none; }
.book-link a:hover, .text-link:hover { text-decoration: underline; }

/* footer with two navs */
.footer-inner .footer-nav[aria-label="Books"] a { color: var(--ivory); }
@media (min-width: 900px) {
  .footer-inner { grid-template-columns: 1fr auto; row-gap: 14px; }
  .footer-inner > div { grid-row: span 2; }
}

/* breadcrumbs */
.crumbs { font-size: 13px; color: var(--text-muted); margin: 0 0 26px; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0; }
.crumbs li + li::before { content: "›"; margin-right: 6px; color: var(--text-muted); }
.crumbs a { color: var(--ivory-soft); text-decoration: none; }
.crumbs a:hover { color: var(--gold-soft); }

/* book page */
.bookpage .container { max-width: 1040px; }
.bookpage h1 { font-size: clamp(40px, 9vw, 66px); margin-bottom: 6px; }
.bookpage-hero { display: grid; gap: 28px; align-items: center; margin-bottom: 18px; }
.bookpage-cover { display: flex; justify-content: center; }
.bookpage-cover img { width: min(64vw, 320px); height: auto; filter: drop-shadow(0 28px 36px rgba(0, 0, 0, 0.7)) drop-shadow(0 0 60px rgba(230, 200, 145, 0.12)); }
.byline { font-family: var(--serif); font-size: 22px; color: var(--gold-soft); margin: 0 0 14px; }
.byline a { color: inherit; text-decoration: none; border-bottom: 1px solid rgba(210, 172, 108, 0.35); }
.tagline { font-family: var(--serif); font-style: italic; font-size: 24px; line-height: 1.3; color: var(--ivory) !important; margin-bottom: 16px; }
.author-note { margin: 22px 0; padding: 4px 0 4px 18px; border-left: 2px solid var(--gold); }
.author-note p { font-family: var(--serif); font-style: italic; font-size: 20px; line-height: 1.45; color: var(--ivory) !important; margin: 0 0 8px; }
.author-note footer { font-size: 13px; color: var(--text-muted); }
@media (min-width: 900px) {
  .bookpage-hero { grid-template-columns: 0.85fr 1.15fr; gap: 64px; }
  .bookpage-cover img { width: 360px; }
}
.bookpage-section { margin-top: 56px; }
.bookpage-section h2 { font-size: clamp(28px, 5vw, 38px); margin: 0 0 18px; }
.formats { display: grid; gap: 12px; }
.format {
  display: grid; grid-template-columns: 1fr auto; gap: 10px 16px; align-items: center;
  padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface);
}
.format h3 { font-size: 23px; font-weight: 600; }
.format-info p { margin: 4px 0 0; font-size: 14.5px; color: var(--ivory-soft) !important; }
.format-price { margin: 0; font-family: var(--serif); font-size: 30px; font-weight: 600; color: var(--gold-soft) !important; }
.format-btn { grid-column: 1 / -1; width: 100%; }
@media (min-width: 760px) {
  .format { grid-template-columns: 1fr auto auto; }
  .format-btn { grid-column: auto; width: auto; }
}
.format-note { font-size: 13px; color: var(--text-muted) !important; margin: 14px 0 0; }
.more-books { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.book-card {
  display: flex; gap: 16px; align-items: center; padding: 14px 16px; text-decoration: none;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--ivory);
  transition: border-color 0.2s;
}
.book-card:hover { border-color: rgba(210, 172, 108, 0.6); }
.book-card img { width: 64px; height: auto; flex: none; }
.book-card-title { display: block; font-family: var(--serif); font-size: 22px; }
.book-card-sub { display: block; font-size: 13.5px; color: var(--text-muted); margin-top: 2px; }

/* books index */
.lede-muted { color: var(--ivory-soft); font-size: 17px; }
.shelf { display: grid; gap: 18px; margin-top: 28px; }
.shelf-card {
  display: grid; grid-template-columns: 110px 1fr; gap: 20px; align-items: center;
  padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface);
}
.shelf-img img { width: 100%; height: auto; filter: drop-shadow(0 14px 20px rgba(0, 0, 0, 0.6)); }
.shelf-card h2 { font-size: 30px; margin: 0; }
.shelf-card h2 a { color: var(--ivory); text-decoration: none; }
.shelf-card .byline { font-size: 18px; margin: 2px 0 8px; }
.shelf-card p { margin: 0 0 8px; font-size: 15px; }
@media (min-width: 760px) { .shelf-card { grid-template-columns: 150px 1fr; padding: 22px 26px; } }
