/* ============================================================
   The House — Austine Ojo · landing page styles
   Mobile-first. Day / Night tokens. Motion respects reduced-motion.
   ============================================================ */

:root,
:root[data-theme="light"] {
  color-scheme: light;
  --page: #FAF8F2;
  --wash-1: #ECE4F6;
  --wash-2: #E4ECF8;
  --wash-3: #E2F1EF;
  --surface: #FFFFFF;
  --surface-2: #F7F2E6;
  --glass: rgba(255, 255, 255, 0.72);
  --text: #182033;
  --muted: #505A6A;
  --accent: #805C08;
  --gold: #D9A93A;
  --gold-hi: #F2CF6E;
  --gold-soft: rgba(217, 169, 58, 0.16);
  --link: #294F92;
  --line: rgba(24, 32, 51, 0.10);
  --header-bg: rgba(250, 248, 242, 0.78);
  --btn-text: #1B1405;
  --orb-1: rgba(242, 207, 110, 0.55);
  --orb-2: rgba(170, 140, 220, 0.45);
  --orb-3: rgba(120, 200, 200, 0.40);
  --book-shadow: rgba(40, 25, 70, 0.35);
  --shadow: 0 24px 60px -28px rgba(40, 30, 80, 0.40);
  --shadow-soft: 0 10px 30px -20px rgba(40, 30, 80, 0.40);
  --focus: #294F92;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --page: #101322;
  --wash-1: #2A1B3D;
  --wash-2: #131933;
  --wash-3: #0F2A2E;
  --surface: #1A2033;
  --surface-2: #20283E;
  --glass: rgba(26, 32, 51, 0.72);
  --text: #F4F1E8;
  --muted: #B9C2D2;
  --accent: #E8C66B;
  --gold: #E8C66B;
  --gold-hi: #F5DA8E;
  --gold-soft: rgba(232, 198, 107, 0.14);
  --link: #A6C9FF;
  --line: rgba(244, 241, 232, 0.12);
  --header-bg: rgba(16, 19, 34, 0.74);
  --btn-text: #1B1405;
  --orb-1: rgba(232, 180, 80, 0.30);
  --orb-2: rgba(130, 80, 200, 0.40);
  --orb-3: rgba(40, 150, 160, 0.32);
  --book-shadow: rgba(0, 0, 0, 0.65);
  --shadow: 0 26px 60px -26px rgba(0, 0, 0, 0.75);
  --shadow-soft: 0 12px 30px -18px rgba(0, 0, 0, 0.7);
  --focus: #A6C9FF;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    color-scheme: dark;
    --page: #101322; --wash-1: #2A1B3D; --wash-2: #131933; --wash-3: #0F2A2E;
    --surface: #1A2033; --surface-2: #20283E; --glass: rgba(26,32,51,.72);
    --text: #F4F1E8; --muted: #B9C2D2; --accent: #E8C66B; --gold: #E8C66B; --gold-hi: #F5DA8E;
    --gold-soft: rgba(232,198,107,.14); --link: #A6C9FF; --line: rgba(244,241,232,.12);
    --header-bg: rgba(16,19,34,.74); --orb-1: rgba(232,180,80,.30); --orb-2: rgba(130,80,200,.40);
    --orb-3: rgba(40,150,160,.32); --book-shadow: rgba(0,0,0,.65);
    --shadow: 0 26px 60px -26px rgba(0,0,0,.75); --shadow-soft: 0 12px 30px -18px rgba(0,0,0,.7);
    --focus: #A6C9FF;
  }
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 76px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background-color: var(--page);
  background-image: linear-gradient(175deg, var(--wash-1) 0%, var(--wash-2) 48%, var(--wash-3) 100%);
  background-attachment: fixed;
  color: var(--text);
  font-family: "Source Sans 3", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color .4s ease, color .4s ease;
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3 {
  font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  font-weight: 600;
  line-height: 1.1;
  margin: 0 0 0.45em;
  letter-spacing: -0.005em;
}
h2 { font-size: clamp(2rem, 1.5rem + 2.4vw, 3rem); }
h3 { font-size: 1.4rem; }
p { margin: 0 0 1em; }
a { color: var(--link); text-underline-offset: 3px; }
cite { font-style: italic; }

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

.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: -100px; z-index: 100;
  background: var(--surface); color: var(--text);
  padding: 12px 18px; border-radius: 10px; font-weight: 700; box-shadow: var(--shadow-soft);
}
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: 1160px; margin-inline: auto; padding-inline: var(--gutter, 20px); }
.narrow { max-width: 820px; }
main:focus { outline: none; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: var(--header-bg);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 12px; min-height: 64px; }
.wordmark {
  display: inline-flex; align-items: center; gap: 10px; margin-right: auto;
  color: var(--text); text-decoration: none; min-height: 44px;
  font-family: "Cormorant Garamond", Georgia, serif; font-size: 1.55rem; font-weight: 700;
}
.wordmark-icon { width: 28px; height: 28px; color: var(--accent); }

.header-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-width: 44px; height: 44px; padding: 0 11px;
  border: 1px solid var(--line); border-radius: 14px;
  background: var(--glass); color: var(--text);
  font: inherit; font-size: 0.92rem; font-weight: 600; cursor: pointer;
  transition: transform .2s ease, background-color .2s ease, border-color .2s ease;
}
.icon-btn:hover { border-color: var(--gold); }
.icon-btn:active { transform: scale(0.94); }

/* Single appearance button: shows the current mode */
.theme-toggle svg { width: 20px; height: 20px; display: none; }
.theme-toggle .ti { animation: pop .35s ease; }
[data-theme-pref="day"] .theme-toggle .ti-day,
[data-theme-pref="night"] .theme-toggle .ti-night,
[data-theme-pref="system"] .theme-toggle .ti-system { display: block; }
[data-theme-pref="day"] .theme-toggle { color: #B07A00; }
[data-theme-pref="night"] .theme-toggle { color: var(--accent); }
.theme-toggle-label { display: none; }
@keyframes pop { from { transform: rotate(-60deg) scale(.6); opacity: 0; } to { transform: none; opacity: 1; } }

.menu-toggle-bars,
.menu-toggle-bars::before,
.menu-toggle-bars::after {
  display: block; width: 20px; height: 2px; background: currentColor; border-radius: 2px;
  position: relative; transition: transform .25s ease, background-color .2s ease;
}
.menu-toggle-bars::before, .menu-toggle-bars::after { content: ""; position: absolute; left: 0; }
.menu-toggle-bars::before { top: -6px; }
.menu-toggle-bars::after { top: 6px; width: 14px; }
.menu-toggle[aria-expanded="true"] .menu-toggle-bars { background: transparent; }
.menu-toggle[aria-expanded="true"] .menu-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); width: 20px; }

/* Mobile menu sheet (default) */
.primary-nav ul { list-style: none; margin: 0; padding: 0; }
.primary-nav a:not(.btn) {
  display: flex; align-items: center; gap: 14px; min-height: 52px;
  color: var(--text); text-decoration: none; font-weight: 600; font-size: 1.15rem;
}
.nav-num { font-family: "Cormorant Garamond", Georgia, serif; font-weight: 700; color: var(--accent); font-size: 1rem; width: 22px; }
.nav-cta { margin-top: 14px; width: 100%; }

.js .primary-nav {
  position: absolute; left: 12px; right: 12px; top: calc(100% + 8px);
  padding: 10px 20px 20px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 22px;
  box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(-10px) scale(.98); transform-origin: top right;
  transition: opacity .22s ease, transform .22s ease, visibility 0s linear .22s;
}
.js .primary-nav.is-open { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.js .primary-nav li + li { border-top: 1px solid var(--line); }
html:not(.js) .header-inner { flex-wrap: wrap; }
html:not(.js) .menu-toggle, html:not(.js) .theme-toggle { display: none; }
html:not(.js) .primary-nav { order: 5; width: 100%; padding-bottom: 10px; }
html:not(.js) .nav-cta { display: none; }

/* ---------- Buttons ---------- */
.button-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.btn {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 52px; padding: 0 24px;
  border-radius: 999px; font-weight: 700; font-size: 1.02rem;
  text-decoration: none; border: 2px solid transparent;
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease;
}
.btn:active { transform: scale(.97); }
.btn-primary {
  background: linear-gradient(180deg, var(--gold-hi), #D9A93A);
  color: var(--btn-text);
  box-shadow: 0 12px 26px -12px rgba(170, 115, 10, .8), inset 0 1px 0 rgba(255,255,255,.5);
}
.btn-primary::after { /* soft moving sheen */
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.55) 50%, transparent 70%);
  transform: translateX(-120%); animation: sheen 5.5s ease-in-out infinite 1.5s;
}
@keyframes sheen { 0%, 70% { transform: translateX(-120%); } 100% { transform: translateX(120%); } }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -12px rgba(170,115,10,.9); }
.btn-ghost { background: var(--glass); color: var(--text); border-color: var(--gold); }
.btn-ghost:hover { background: var(--gold-soft); }
.btn-icon, .btn svg { width: 20px; height: 20px; flex: none; }

.paperback-pill {
  display: inline-flex; white-space: nowrap; align-items: center; gap: 10px;
  margin-top: 18px; min-height: 44px; padding: 8px 14px 8px 12px;
  border-radius: 999px; border: 1px solid var(--line); background: var(--glass);
  color: var(--text); text-decoration: none; font-weight: 600; font-size: .97rem;
  transition: border-color .2s ease, transform .2s ease;
}
.paperback-pill:hover { border-color: var(--gold); transform: translateX(2px); }
.paperback-pill svg { width: 16px; height: 16px; color: var(--accent); }
.pill-dot {
  width: 9px; height: 9px; border-radius: 50%; background: #25D366; flex: none;
  box-shadow: 0 0 0 0 rgba(37, 211, 102, .6); animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(37,211,102,.55); } 80%, 100% { box-shadow: 0 0 0 10px rgba(37,211,102,0); } }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 22px 0 36px; overflow: clip; isolation: isolate; }
.hero-glow {
  position: absolute; inset: -10% -20% 0; z-index: -1; pointer-events: none;
  -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent 98%); mask-image: linear-gradient(180deg, #000 55%, transparent 98%);
}
.orb { position: absolute; border-radius: 50%; filter: blur(50px); will-change: transform; }
.orb-1 { width: 340px; height: 340px; background: var(--orb-1); left: 50%; top: 4%; margin-left: -170px; animation: drift1 16s ease-in-out infinite; }
.orb-2 { width: 260px; height: 260px; background: var(--orb-2); left: -60px; top: 30%; animation: drift2 19s ease-in-out infinite; }
.orb-3 { width: 260px; height: 260px; background: var(--orb-3); right: -70px; top: 48%; animation: drift3 22s ease-in-out infinite; }
@keyframes drift1 { 50% { transform: translate(30px, 24px) scale(1.08); } }
@keyframes drift2 { 50% { transform: translate(40px, -30px) scale(1.12); } }
@keyframes drift3 { 50% { transform: translate(-36px, 26px) scale(.92); } }

.hero-grid { display: grid; gap: 8px; align-items: center; text-align: center; }
.hero-grid > *, .order-panel > * { min-width: 0; }
.hero-art { display: flex; justify-content: center; }
.book-stage { position: relative; width: min(58vw, 250px); padding: 14px 0 30px; }
.book-halo {
  position: absolute; left: 50%; top: 46%; width: 160%; aspect-ratio: 1; z-index: -1;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(255, 226, 140, .75) 0%, rgba(255, 210, 110, .28) 32%, transparent 64%);
  animation: breathe 6s ease-in-out infinite;
}
:root[data-theme="dark"] .book-halo { background: radial-gradient(circle, rgba(240, 200, 110, .45) 0%, rgba(200, 150, 70, .16) 34%, transparent 64%); }
@keyframes breathe { 50% { transform: translate(-50%, -50%) scale(1.08); opacity: .8; } }
.book-float {
  width: 100%; height: auto;
  filter: drop-shadow(0 18px 22px var(--book-shadow)) drop-shadow(0 2px 3px rgba(0,0,0,.25));
  animation: float 6s ease-in-out infinite;
  transform-origin: 50% 80%;
}
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(-1.2deg); }
  50% { transform: translateY(-14px) rotate(1deg); }
}
.book-shadow {
  position: absolute; left: 50%; bottom: 8px; width: 70%; height: 18px; margin-left: -35%;
  border-radius: 50%; background: radial-gradient(ellipse at center, var(--book-shadow), transparent 70%);
  animation: shadow 6s ease-in-out infinite;
}
@keyframes shadow { 50% { transform: scaleX(.8); opacity: .55; } }

.eyebrow, .section-kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.76rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 10px;
}
.section-kicker::before { content: ""; width: 22px; height: 2px; background: currentColor; border-radius: 2px; }
.hero h1 {
  font-size: clamp(3.4rem, 2rem + 8vw, 6.4rem); font-weight: 700; margin-bottom: .05em;
  background: linear-gradient(180deg, var(--text) 40%, color-mix(in srgb, var(--text) 70%, var(--gold)));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-subtitle {
  display: inline-block;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.15rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 3px 14px; margin-bottom: 16px; border-radius: 999px;
  background: var(--gold-soft); border: 1px solid color-mix(in srgb, var(--gold) 55%, transparent); color: var(--text);
}
.hero-lead {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.45rem, 1.2rem + 1.2vw, 2rem); font-style: italic; font-weight: 500;
  line-height: 1.25; margin: 0 auto 18px; max-width: 22ch;
}
.hero-body { display: none; color: var(--muted); max-width: 54ch; font-size: 1.08rem; }
.hero .button-row { flex-direction: column; }
.hero .button-row .btn { width: 100%; }

.quick-facts {
  list-style: none; margin: 30px auto 0; padding: 0 20px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
}
.quick-facts li {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 12px 6px; border-radius: 18px;
  background: var(--glass); border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.quick-facts strong { font-family: "Cormorant Garamond", Georgia, serif; font-size: 1.6rem; line-height: 1.1; color: var(--accent); }
.quick-facts span { font-size: .78rem; color: var(--muted); font-weight: 600; letter-spacing: .02em; }

/* ---------- Sections ---------- */
.section { padding: 56px 0; }
.section-head { max-width: 720px; margin-bottom: 26px; }
.prose { max-width: 66ch; color: var(--muted); font-size: 1.05rem; }
.prose cite { color: var(--text); }

/* About */
.about-grid { display: grid; gap: 26px; }
.theme-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.theme-item {
  padding: 18px 16px 16px; border-radius: 22px;
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-soft);
  transition: transform .25s ease, box-shadow .25s ease;
}
.theme-item:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.theme-icon {
  display: inline-grid; place-items: center; width: 44px; height: 44px; margin-bottom: 10px;
  border-radius: 14px; color: var(--accent);
  background: linear-gradient(145deg, var(--gold-soft), transparent);
  border: 1px solid color-mix(in srgb, var(--gold) 40%, transparent);
}
.theme-icon svg { width: 24px; height: 24px; }
.theme-item h3 { font-size: 1.25rem; margin-bottom: 4px; }
.theme-item p { color: var(--muted); margin: 0; font-size: .93rem; line-height: 1.45; }

/* Chapters — swipe rail on phones, grid on larger screens */
.chapter-rail { position: relative; }
.chapter-grid {
  list-style: none; margin: 0;
  display: flex; gap: 14px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter, 20px);
  padding-top: 6px; padding-bottom: 18px;
  -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.chapter-grid::-webkit-scrollbar { display: none; }
.chapter-card {
  position: relative; flex: 0 0 82%; scroll-snap-align: start;
  display: flex; flex-direction: column;
  min-height: 300px; padding: 24px 22px 22px 26px;
  border-radius: 8px 24px 24px 8px;
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-soft);
  overflow: hidden;
  transition: transform .3s ease, box-shadow .3s ease;
}
.chapter-card::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 7px;
  background: linear-gradient(180deg, var(--gold-hi), #C99124);
}
.chapter-card::after { /* big ghost numeral */
  content: attr(data-num); position: absolute; right: 14px; bottom: -18px;
  font-family: "Cormorant Garamond", Georgia, serif; font-size: 7rem; font-weight: 700; line-height: 1;
  color: var(--gold); opacity: .13; pointer-events: none;
}
.chapter-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.chapter-num {
  font-size: .74rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 8px;
}
.chapter-card h3 { font-size: 1.55rem; margin-bottom: 10px; }
.chapter-card p:last-child { color: var(--muted); font-size: .98rem; line-height: 1.6; margin: 0; position: relative; }

.rail-controls { display: flex; align-items: center; gap: 12px; margin-top: 2px; }
.rail-btn {
  display: inline-grid; place-items: center; width: 44px; height: 44px; flex: none;
  border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--text); cursor: pointer;
}
.rail-btn svg { width: 20px; height: 20px; }
.rail-btn:disabled { opacity: .35; cursor: default; }
.rail-progress { flex: 1; height: 4px; border-radius: 4px; background: var(--line); overflow: hidden; }
.rail-bar { display: block; height: 100%; width: 6.67%; border-radius: 4px; background: linear-gradient(90deg, var(--gold-hi), var(--gold)); transition: width .25s ease; }
.rail-count { font-weight: 700; font-size: .9rem; color: var(--muted); font-variant-numeric: tabular-nums; min-width: 58px; text-align: right; }

/* Gallery */
.gallery {
  display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory;
  margin-inline: calc(-1 * var(--gutter, 20px)); padding: 4px var(--gutter, 20px) 14px; scroll-padding-inline: var(--gutter, 20px); scrollbar-width: none;
}
.gallery::-webkit-scrollbar { display: none; }
.gallery-item { margin: 0; flex: 0 0 80%; scroll-snap-align: start; }
.gallery-frame {
  background: #FFFFFF; border-radius: 24px; overflow: hidden; aspect-ratio: 1 / 1;
  box-shadow: var(--shadow-soft); border: 1px solid var(--line);
}
.gallery-frame img { width: 100%; height: 100%; object-fit: contain; transition: transform .6s ease; }
.gallery-item:hover img { transform: scale(1.03); }
.gallery-item figcaption { margin-top: 10px; text-align: center; font-family: "Cormorant Garamond", Georgia, serif; font-size: 1.2rem; font-style: italic; }
.book-details {
  margin: 22px 0 0; padding: 18px 20px;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 18px;
  background: var(--glass); border-radius: 20px; border: 1px solid var(--line);
}
.book-details dt { font-size: .7rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.book-details dd { margin: 2px 0 0; font-weight: 600; font-size: .95rem; overflow-wrap: anywhere; }

/* Author */
.author-grid { display: grid; gap: 26px; text-align: center; }
.author-portrait {
  justify-self: center; width: min(68vw, 300px);
  border-radius: 200px 200px 28px 28px; overflow: hidden;
  box-shadow: var(--shadow), 0 0 0 6px var(--gold-soft);
  background: var(--surface-2);
}
.author-portrait img { width: 100%; height: auto; }
.author-copy .section-kicker { justify-content: center; }
.author-copy .prose { margin-inline: auto; }

/* Order */
.order-panel {
  position: relative; overflow: hidden; isolation: isolate;
  display: grid; gap: 10px; text-align: center;
  padding: 30px 22px 26px; border-radius: 30px;
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow);
}
.order-glow {
  position: absolute; inset: -40% -30% auto; height: 120%; z-index: -1;
  background: radial-gradient(closest-side, rgba(242, 207, 110, .35), transparent);
}
.order-copy .section-kicker { justify-content: center; }
.order-art { order: -1; justify-self: center; width: 120px; }
.order-art img { width: 100%; filter: drop-shadow(0 12px 16px var(--book-shadow)); animation: float 6s ease-in-out infinite; }
.price-tag { display: flex; align-items: baseline; justify-content: center; gap: 10px; margin: 0 0 18px; }
.price { font-family: "Cormorant Garamond", Georgia, serif; font-size: 3.2rem; font-weight: 700; line-height: 1; color: var(--accent); }
.price-format {
  font-size: .74rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 999px; background: var(--gold-soft); color: var(--text);
}
.order-steps { list-style: none; margin: 0 auto 20px; padding: 0; display: grid; gap: 10px; text-align: left; max-width: 420px; }
.order-steps li {
  display: flex; align-items: center; gap: 12px; padding: 10px 14px;
  border-radius: 16px; background: var(--surface-2); border: 1px solid var(--line); font-size: .98rem;
}
.order-steps strong { color: var(--text); }
.step-num {
  display: inline-grid; place-items: center; flex: none; width: 30px; height: 30px; border-radius: 50%;
  background: linear-gradient(180deg, var(--gold-hi), #D9A93A); color: var(--btn-text); font-weight: 700; font-size: .9rem;
}
.order-panel .button-row { justify-content: center; }
.order-panel .button-row .btn { width: 100%; }

.bank-panel {
  margin-top: 16px; padding: 22px 18px 18px; border-radius: 26px;
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-soft);
}
.bank-head h3 { font-size: 1.6rem; margin-bottom: 2px; }
.bank-holder { display: flex; flex-wrap: wrap; gap: 2px 8px; margin: 0 0 14px; color: var(--muted); font-size: .9rem; font-weight: 600; letter-spacing: .02em; }
.bank-sep { color: var(--accent); }
.bank-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.bank-row {
  display: flex; align-items: center; gap: 12px; padding: 10px 10px 10px 12px;
  border-radius: 16px; background: var(--surface-2); border: 1px solid var(--line);
}
.bank-code {
  display: inline-grid; place-items: center; flex: none; width: 48px; height: 40px; border-radius: 12px;
  font-weight: 700; font-size: .82rem; letter-spacing: .06em;
  color: var(--accent); background: var(--gold-soft); border: 1px solid color-mix(in srgb, var(--gold) 40%, transparent);
}
.bank-info { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.bank-cur { font-size: .74rem; color: var(--muted); font-weight: 600; }
.bank-num { font-size: 1.18rem; font-weight: 700; letter-spacing: .05em; font-variant-numeric: tabular-nums; color: var(--text); }
.copy-btn {
  display: inline-flex; align-items: center; gap: 6px; flex: none;
  min-height: 44px; padding: 0 14px; border-radius: 999px; cursor: pointer;
  border: 1.5px solid var(--gold); background: transparent; color: var(--text);
  font: inherit; font-size: .88rem; font-weight: 700;
  transition: background-color .2s ease, color .2s ease, transform .15s ease;
}
.copy-btn svg { width: 16px; height: 16px; }
.copy-btn:hover { background: var(--gold-soft); }
.copy-btn:active { transform: scale(.94); }
.copy-btn.is-copied { background: var(--accent); color: var(--page); border-color: var(--accent); }
.bank-note { margin: 14px 0 0; color: var(--muted); font-size: .9rem; }

/* FAQ */
.faq-list { display: grid; gap: 10px; }
.faq-item { background: var(--surface); border-radius: 18px; border: 1px solid var(--line); box-shadow: var(--shadow-soft); }
.faq-item summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 16px 18px; min-height: 56px; border-radius: 18px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary h3 { margin: 0; font-size: 1.22rem; }
.faq-item summary::after {
  content: "+"; flex: none; display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
  background: var(--gold-soft); color: var(--accent); font-size: 1.3rem; font-weight: 600; line-height: 1;
  transition: transform .25s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { margin: 0; padding: 0 18px 18px; color: var(--muted); max-width: 66ch; }

/* Footer */
.site-footer { padding: 44px 0 100px; border-top: 1px solid var(--line); background: color-mix(in srgb, var(--page) 70%, transparent); }
.footer-grid { display: grid; gap: 28px; }
.footer-title { font-family: "Cormorant Garamond", Georgia, serif; font-size: 2rem; font-weight: 700; margin: 0; }
.footer-sub { color: var(--muted); margin-bottom: 12px; }
.footer-social { display: flex; flex-wrap: wrap; gap: 8px; }
.footer-social a {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px;
  border-radius: 999px; border: 1px solid var(--line); background: var(--glass);
  color: var(--text); text-decoration: none; font-weight: 600; font-size: .95rem;
}
.footer-social a:hover { border-color: var(--gold); }
.footer-social svg { width: 20px; height: 20px; color: var(--accent); }
.footer-heading {
  font-family: "Source Sans 3", system-ui, sans-serif; font-size: .76rem; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase; color: var(--accent); margin-bottom: 8px;
}
.footer-nav ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; }
.footer-nav a { display: inline-flex; align-items: center; min-height: 40px; color: var(--text); }
.footer-share { margin-top: 30px; padding-top: 24px; border-top: 1px solid var(--line); }
.footer-share-note { color: var(--muted); margin: 0 0 12px; }
.share-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.share-btn {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px;
  border-radius: 999px; border: 1px solid var(--line); background: var(--glass);
  color: var(--text); text-decoration: none; font: inherit; font-weight: 600; font-size: .95rem; cursor: pointer;
  transition: border-color .2s ease, transform .2s ease;
}
.share-btn:hover { border-color: var(--gold); transform: translateY(-1px); }
.share-btn svg { width: 19px; height: 19px; flex: none; color: var(--accent); }
.share-btn.is-copied { border-color: var(--gold); }
.footer-base {
  margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 20px;
}
.footer-base p { margin: 0; }
.footer-legal { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0 18px; }
.footer-legal a { display: inline-flex; align-items: center; min-height: 40px; color: var(--muted); }
.footer-legal a:hover { color: var(--text); }

/* Policy pages */
.policy-page .site-footer { padding-bottom: 40px; }
.policy { padding-top: 40px; }
.policy h1 { font-size: clamp(2.4rem, 1.8rem + 2.6vw, 3.4rem); margin-bottom: .2em; }
.policy h2 { font-size: clamp(1.5rem, 1.3rem + 1vw, 1.9rem); margin-top: 1.6em; }
.policy p, .policy li { max-width: 68ch; }
.policy ul { padding-left: 1.2em; margin: 0 0 1em; }
.policy li { margin-bottom: .5em; }
.policy-updated { color: var(--muted); font-size: .95rem; margin-bottom: 1.6em; }
.policy-back { display: inline-flex; align-items: center; min-height: 44px; padding: 0 6px; font-weight: 600; color: var(--text); text-decoration: none; }
.policy-back::before { content: "\2190"; margin-right: 6px; color: var(--accent); }
.policy-back:hover { color: var(--accent); }
.policy-page .wordmark, .policy-back { white-space: nowrap; }
@media (max-width: 479px) { .policy-back-long { display: none; } }

/* Floating WhatsApp order button (phones) */
.wa-fab {
  position: fixed; right: 16px; bottom: max(16px, env(safe-area-inset-bottom)); z-index: 55;
  display: inline-flex; align-items: center; gap: 8px; height: 54px; padding: 0 20px 0 16px;
  border-radius: 999px; background: #25D366; color: #06331A; text-decoration: none; font-weight: 700;
  box-shadow: 0 14px 30px -10px rgba(10, 120, 60, .7);
  transform: translateY(130%); opacity: 0; transition: transform .35s cubic-bezier(.2,.8,.2,1), opacity .35s ease;
}
.wa-fab svg { width: 24px; height: 24px; }
.wa-fab.is-visible { transform: none; opacity: 1; }
html:not(.js) .wa-fab { display: none; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.8,.2,1); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Larger phones / small tablets ---------- */
@media (min-width: 560px) {
  .hero .button-row { flex-direction: row; justify-content: center; }
  .hero .button-row .btn { width: auto; }
  .chapter-card { flex-basis: 46%; }
  .gallery-item { flex-basis: 46%; }
  .order-panel .button-row .btn { width: auto; }
}

/* ---------- Tablet & desktop ---------- */
@media (min-width: 900px) {
  .header-inner { min-height: 72px; gap: 20px; }
  .menu-toggle { display: none; }
  .js .primary-nav, .primary-nav {
    position: static; opacity: 1; visibility: visible; transform: none;
    padding: 0; background: none; border: 0; box-shadow: none;
    display: flex; align-items: center;
  }
  .primary-nav ul { display: flex; gap: 2px; }
  .js .primary-nav li + li { border: 0; }
  .primary-nav a:not(.btn) { min-height: 44px; padding: 0 12px; font-size: .98rem; border-radius: 10px; }
  .primary-nav a:not(.btn):hover { background: var(--gold-soft); }
  .nav-num, .nav-cta { display: none; }
  .theme-toggle-label { display: inline; }

  .hero { padding: 56px 0 64px; }
  .hero-grid { grid-template-columns: 1.1fr .9fr; gap: 40px; text-align: left; }
  .hero-art { order: 2; }
  .book-stage { width: min(100%, 380px); }
  .hero-lead { margin-inline: 0; }
  .hero-body { display: block; }
  .hero .button-row { justify-content: flex-start; }
  .quick-facts { grid-template-columns: repeat(3, 190px); justify-content: start; margin-top: 44px; }
  .orb-1 { width: 520px; height: 520px; left: auto; right: 4%; margin-left: 0; }
  .orb-2 { width: 380px; height: 380px; }

  .section { padding: 96px 0; }
  .section-head { margin-bottom: 40px; }
  .about-grid { grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: start; }
  .theme-item { padding: 22px; }

  .chapter-grid {
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px;
    overflow: visible; padding-bottom: 0;
  }
  .chapter-card { min-height: 0; }
  .rail-controls { display: none; }

  .gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; overflow: visible; margin: 0; padding: 0; }
  .book-details { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 32px; }

  .author-grid { grid-template-columns: .85fr 1.15fr; gap: 56px; align-items: center; text-align: left; }
  .author-portrait { width: min(100%, 400px); }
  .author-copy .section-kicker { justify-content: flex-start; }
  .author-copy .prose { margin-inline: 0; }

  .order-panel { grid-template-columns: 1.3fr .7fr; text-align: left; padding: 52px; align-items: center; }
  .order-copy .section-kicker { justify-content: flex-start; }
  .order-art { order: 0; width: min(100%, 230px); }
  .price-tag { justify-content: flex-start; }
  .order-steps { margin-inline: 0; }
  .order-panel .button-row { justify-content: flex-start; }
  .bank-panel { padding: 32px; }
  .bank-head { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 8px 20px; margin-bottom: 18px; }
  .bank-holder { margin: 0; }
  .bank-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }

  .footer-grid { grid-template-columns: 1fr 1.3fr; }
  .site-footer { padding-bottom: 32px; }
  .wa-fab { display: none; }
}

@media (min-width: 1100px) {
  .bank-list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .bank-row { flex-wrap: wrap; }
  .bank-info { flex-basis: calc(100% - 60px); }
  .copy-btn { margin-left: 60px; }
}

@media (max-width: 359px) {
  :root { --gutter: 14px; }
  .wordmark { font-size: 1.3rem; }
  .wordmark-icon { width: 24px; height: 24px; }
  .bank-num { font-size: 1.05rem; }
  .copy-label { display: none; }
  .paperback-pill { white-space: normal; font-size: .92rem; }
  .eyebrow { letter-spacing: .12em; font-size: .7rem; }
  .hero h1 { font-size: 3.1rem; }
  .copy-btn { padding: 0 12px; }
  .quick-facts strong { font-size: 1.35rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  .wa-fab { transform: none; }
  .wa-fab:not(.is-visible) { visibility: hidden; }
}

@media print {
  .site-header, .button-row, .wa-fab, .hero-glow, .rail-controls, .footer-share { display: none; }
  body { background: #fff; color: #000; }
}

/* keep a little breathing room after the last swipe card */
@media (max-width: 899px) { .chapter-grid::after { content: ""; flex: 0 0 6px; } }
