:root {
  --ink: #0a0b0d;
  --charcoal: #111214;
  --midnight: #0c121c;
  --warm: #15130f;
  --line: rgba(236, 230, 218, 0.09);
  --line-gold: rgba(198, 166, 107, 0.22);
  --ivory: #ece6da;
  --ivory-2: #c9c2b5;
  --muted: #8f897f;
  --gold: #c6a66b;
  --gold-deep: #9c7f4a;
  --serif: 'Cormorant Garamond', 'Iowan Old Style', Georgia, serif;
  --caps: 'Cinzel', 'Trajan Pro', Georgia, serif;
  --sans: 'Inter', -apple-system, 'Segoe UI', sans-serif;
  --wrap: 1180px;
  --gutter: clamp(20px, 5vw, 40px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; background: var(--ink); }
body { margin: 0; background: var(--ink); color: var(--ivory-2); font: 400 17px/1.7 var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { color: var(--ivory); margin: 0; font-weight: 500; }
p { margin: 0; }
::selection { background: var(--gold); color: var(--ink); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; border-radius: 2px; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -9999px; top: 12px; z-index: 100; background: var(--ivory); color: var(--ink); padding: 10px 16px; }
.skip:focus { left: 12px; }

.label { font: 500 12px/1.4 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
.label--muted { color: var(--muted); }
.rule { width: 48px; height: 1px; background: var(--gold); opacity: .7; border: 0; margin: 0; }

/* ── Buttons ─────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 12px; padding: 17px 30px; border-radius: 2px;
       font: 500 15px/1 var(--sans); letter-spacing: .03em; text-decoration: none; cursor: pointer; border: 1px solid transparent; white-space: nowrap;
       transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease); }
.btn--primary { background: var(--ivory); color: var(--ink); }
.btn--primary:hover { background: #fff; transform: translateY(-1px); }
.btn--outline { border-color: var(--line-gold); color: var(--ivory); padding: 11px 18px; font-size: 13.5px; }
.btn--outline:hover { border-color: var(--gold); color: #fff; }
.btn svg { width: 16px; height: 16px; transition: transform .3s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.link { display: inline-flex; align-items: center; gap: 10px; color: var(--ivory-2); text-decoration: none; font: 500 15px/1.4 var(--sans);
        border-bottom: 1px solid var(--line-gold); padding-bottom: 4px; transition: color .3s, border-color .3s; }
.link:hover { color: var(--ivory); border-color: var(--gold); }

/* ── Header ──────────────────────────────────────── */
.header { position: fixed; inset: 0 0 auto; z-index: 50; border-bottom: 1px solid transparent; transition: background .4s, border-color .4s; }
.header.is-solid { background: rgba(10, 11, 13, 0.94); border-color: var(--line); }
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 24px; }
.wordmark { font: 500 13px/1.2 var(--caps); letter-spacing: .14em; color: var(--ivory); text-decoration: none; white-space: nowrap; }
.wordmark span { color: var(--gold); }
.nav { display: flex; align-items: center; gap: 32px; }
.nav a:not(.btn) { font: 500 14px/1 var(--sans); color: var(--ivory-2); text-decoration: none; transition: color .3s; }
.nav a:not(.btn):hover { color: var(--ivory); }
@media (max-width: 760px) { .nav a:not(.btn) { display: none; } .wordmark { font-size: 11px; letter-spacing: .08em; } .btn--outline { padding: 10px 14px; font-size: 13px; } }
@media (max-width: 360px) { .wordmark { white-space: normal; max-width: 150px; line-height: 1.35; } }

/* ── Hero ────────────────────────────────────────── */
.hero { position: relative; isolation: isolate; overflow: hidden; padding: 128px 0 96px;
        background:
          radial-gradient(48% 60% at 74% 46%, rgba(198, 166, 107, 0.13), transparent 70%),
          radial-gradient(60% 70% at 10% 100%, rgba(22, 37, 61, 0.55), transparent 70%),
          var(--ink); }
.hero::after { content: ""; position: absolute; inset: auto 0 0; height: 140px; background: linear-gradient(transparent, var(--ink)); z-index: -1; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: clamp(40px, 6vw, 88px); align-items: center; }
.hero__title { margin-top: 22px; font: 500 clamp(2.4rem, 5.3vw, 4.5rem)/1.04 var(--caps); letter-spacing: .02em; }
.hero__title .gold { color: var(--gold); }
.hero__hook { margin-top: 30px; font: italic 500 clamp(1.55rem, 2.8vw, 2.25rem)/1.25 var(--serif); color: var(--ivory); max-width: 25ch; text-wrap: balance; }
.hero__text { margin-top: 22px; max-width: 34rem; font-size: 18px; color: var(--ivory-2); }
.hero__actions { margin-top: 36px; display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; }
.hero__meta { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 8px 22px; font: 500 12.5px/1.4 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.hero__meta span { display: inline-flex; align-items: center; gap: 10px; }
.hero__meta span::before { content: ""; width: 4px; height: 4px; background: var(--gold-deep); transform: rotate(45deg); }
@media (max-width: 900px) {
  .hero { padding: 108px 0 72px; }
  .hero__grid { grid-template-columns: 1fr; }
  .hero__visual { order: 2; }
}

/* ── 3D book ─────────────────────────────────────── */
.book-stage { position: relative; display: grid; place-items: center; padding: 24px 0 48px; }
.book-stage::before { content: ""; position: absolute; width: 78%; aspect-ratio: 1; border-radius: 50%;
                      background: radial-gradient(closest-side, rgba(214, 178, 110, 0.20), rgba(214, 178, 110, 0.05) 55%, transparent 72%);
                      animation: glow 9s ease-in-out infinite; z-index: -1; }
.book-stage::after { content: ""; position: absolute; bottom: 22px; width: 62%; height: 34px; border-radius: 50%;
                     background: radial-gradient(closest-side, rgba(0, 0, 0, 0.75), transparent); filter: blur(6px); z-index: -1; }
@keyframes glow { 0%, 100% { opacity: .8; } 50% { opacity: 1; } }
.book { --w: clamp(220px, 27vw, 340px); --d: calc(var(--w) * 0.075); perspective: 1600px; }
.book__body { position: relative; width: var(--w); aspect-ratio: 992 / 1585; transform-style: preserve-3d;
              transform: rotateY(-22deg) rotateX(3deg); transition: transform 1.2s var(--ease); }
.book:hover .book__body { transform: rotateY(-12deg) rotateX(2deg); }
.book__face { position: absolute; inset: 0; }
.book__front { transform: translateZ(calc(var(--d) / 2)); border-radius: 1px 4px 4px 1px; overflow: hidden;
               box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.9); }
.book__front img { width: 100%; height: 100%; object-fit: cover; }
.book__front::after { content: ""; position: absolute; inset: 0;
                      background: linear-gradient(90deg, rgba(0,0,0,.45) 0%, rgba(255,255,255,.10) 3.5%, transparent 7%, transparent 70%, rgba(255,255,255,.05) 100%); }
.book__back { transform: rotateY(180deg) translateZ(calc(var(--d) / 2)); background: #07090c; border-radius: 4px 1px 1px 4px; }
.book__spine { width: var(--d); left: calc(50% - var(--d) / 2); transform: rotateY(-90deg) translateZ(calc(var(--w) / 2));
               background: linear-gradient(90deg, #05070a, #10161d 45%, #07090c); }
.book__pages { width: calc(var(--d) - 4px); left: calc(50% - (var(--d) - 4px) / 2); top: 3px; bottom: 3px;
               transform: rotateY(90deg) translateZ(calc(var(--w) / 2 - 3px));
               background: repeating-linear-gradient(90deg, #e6dfd0 0 1px, #c9c0ad 1px 2px); }
.book__top { height: calc(var(--d) - 4px); top: calc(-1 * (var(--d) - 4px) / 2); left: 3px; right: 6px;
             transform: rotateX(90deg); background: repeating-linear-gradient(0deg, #ddd5c4 0 1px, #bfb6a2 1px 2px); }

/* ── Sections ────────────────────────────────────── */
.section { padding: clamp(80px, 11vw, 136px) 0; border-top: 1px solid var(--line); }
.section--charcoal { background: var(--charcoal); }
.section--midnight { background: linear-gradient(180deg, var(--midnight), #0a0e15); }
.section--warm { background: var(--warm); }
.eyebrow { display: flex; align-items: center; gap: 16px; }
.h2 { font: 500 clamp(2.1rem, 4.6vw, 3.5rem)/1.08 var(--serif); letter-spacing: -.005em; text-wrap: balance; }
.h2 em { font-style: italic; color: var(--gold); }

/* Central idea */
.idea { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(40px, 7vw, 110px); align-items: start; }
.idea__heading { position: sticky; top: 110px; }
.idea__heading .h2 { margin-top: 26px; }
.prose p + p { margin-top: 22px; }
.prose p { font-size: 18.5px; line-height: 1.75; }
.prose p:first-child::first-line { color: var(--ivory); }
.pull { margin: 52px 0 0; padding: 34px 0 0; border-top: 1px solid var(--line-gold); }
.pull blockquote { margin: 0; font: italic 500 clamp(1.6rem, 2.8vw, 2.15rem)/1.3 var(--serif); color: var(--ivory); }
.pull figcaption { margin-top: 18px; }
@media (max-width: 900px) { .idea { grid-template-columns: 1fr; } .idea__heading { position: static; } }

/* Discover */
.discover__head { max-width: 40rem; }
.discover__head .h2 { margin-top: 26px; }
.discover__head p { margin-top: 22px; font-size: 18px; }
.themes { list-style: none; margin: 64px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.theme { padding: 40px 40px 44px 0; border-bottom: 1px solid var(--line); }
.theme:nth-child(even) { padding: 40px 0 44px 40px; border-left: 1px solid var(--line); }
.theme__num { font: 500 15px/1 var(--caps); letter-spacing: .12em; color: var(--gold); }
.theme h3 { margin-top: 18px; font: 500 clamp(1.55rem, 2.4vw, 1.9rem)/1.2 var(--serif); }
.theme p { margin-top: 14px; font-size: 16.5px; line-height: 1.7; }
.theme__chapters { display: block; margin-top: 18px; font: 500 12px/1.4 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.discover__note { margin-top: 44px; display: flex; flex-wrap: wrap; gap: 10px 28px; font-size: 15px; color: var(--muted); }
.discover__note span::before { content: ""; display: inline-block; width: 5px; height: 5px; margin-right: 12px; vertical-align: middle; background: var(--gold-deep); transform: rotate(45deg); }
@media (max-width: 760px) {
  .themes { grid-template-columns: 1fr; }
  .theme, .theme:nth-child(even) { padding: 34px 0 36px; border-left: 0; }
}

/* Excerpt */
.excerpt { max-width: 780px; margin: 0 auto; }
.excerpt__head { text-align: center; }
.excerpt__head .h2 { margin-top: 22px; }
.reader { margin-top: 52px; padding: clamp(32px, 6vw, 72px) clamp(24px, 6vw, 80px); background: linear-gradient(180deg, #1a1712, #14120e);
          border: 1px solid var(--line-gold); border-radius: 2px; box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.8); }
.reader__source { display: flex; justify-content: space-between; gap: 16px; padding-bottom: 22px; margin-bottom: 30px; border-bottom: 1px solid var(--line); }
.reader p { font: 500 clamp(1.25rem, 2.2vw, 1.5rem)/1.68 var(--serif); color: #e7e0d2; }
.reader p + p { margin-top: 1.1em; }
.reader p:first-of-type::first-letter { float: left; font: 500 3.4em/0.82 var(--caps); color: var(--gold); margin: 0.08em 0.06em 0 -0.02em; }
.excerpt__links { margin-top: 36px; display: flex; flex-wrap: wrap; justify-content: center; gap: 18px 36px; }

/* Book trailer */
.trailer__grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(40px, 7vw, 100px); align-items: center; }
.trailer__copy .h2 { margin-top: 26px; }
.trailer__copy p { margin-top: 22px; font-size: 18px; max-width: 32rem; }
.trailer__actions { margin-top: 34px; }
.trailer__media { position: relative; justify-self: center; width: min(100%, 360px); text-align: center; }
.trailer__media::before { content: ""; position: absolute; inset: -10% -20%; z-index: -1; background: radial-gradient(closest-side, rgba(198, 166, 107, .12), transparent 75%); }
.trailer__frame { position: relative; aspect-ratio: 9 / 16; border: 1px solid var(--line-gold); border-radius: 4px; overflow: hidden; background: #000;
                  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.9); }
.trailer__video { display: block; width: 100%; height: 100%; object-fit: cover; cursor: pointer; }
.trailer__toggle { position: absolute; right: 14px; bottom: 14px; width: 44px; height: 44px; display: grid; place-items: center; padding: 0;
                   border-radius: 50%; border: 1px solid var(--line-gold); background: rgba(10, 11, 13, .62); color: var(--ivory); cursor: pointer;
                   transition: background .3s, border-color .3s; }
.trailer__toggle:hover { background: rgba(10, 11, 13, .88); border-color: var(--gold); }
.trailer__toggle svg { width: 15px; height: 15px; }
.trailer__frame .i-play, .trailer__frame.is-paused .i-pause { display: none; }
.trailer__frame.is-paused .i-play { display: block; }
.trailer__note { margin-top: 16px; }
@media (max-width: 900px) { .trailer__grid { grid-template-columns: 1fr; } }

/* Purchase */
.offer { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 7vw, 100px); align-items: center; }
.offer__cover { position: relative; justify-self: center; width: min(100%, 360px); }
.offer__cover::before { content: ""; position: absolute; inset: -12%; z-index: 0; background: radial-gradient(closest-side, rgba(198, 166, 107, .14), transparent 75%); }
.offer__cover img { position: relative; z-index: 1; border-radius: 1px 4px 4px 1px; box-shadow: 0 40px 70px -24px rgba(0, 0, 0, 0.95), 0 0 0 1px rgba(255,255,255,.04); }
.offer__title { margin-top: 24px; font: 500 clamp(1.8rem, 3.6vw, 2.6rem)/1.15 var(--caps); letter-spacing: .015em; }
.offer__author { margin-top: 10px; font: italic 500 1.35rem/1.3 var(--serif); color: var(--gold); }
.offer__desc { margin-top: 24px; font-size: 17.5px; max-width: 38rem; }
.specs { margin: 32px 0 0; display: grid; grid-template-columns: max-content 1fr; gap: 12px 28px; font-size: 15.5px; }
.specs dt { color: var(--muted); }
.specs dd { margin: 0; color: var(--ivory); }
.buy { margin-top: 38px; padding-top: 32px; border-top: 1px solid var(--line); }
.buy + .specs { padding-top: 30px; border-top: 1px solid var(--line); margin-top: 34px; }
.buy__price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 14px; margin-bottom: 20px; }
.buy__amount { font: 500 2.4rem/1 var(--serif); color: var(--ivory); }
.price-regular { font: 500 1.5rem/1 var(--serif); color: var(--muted); }
.price-regular s { text-decoration-thickness: 1px; }
.buy__launch { margin: -10px 0 22px; font-size: 13.5px; color: var(--muted); }
.buy__note { margin-top: 18px; font-size: 14.5px; color: var(--muted); max-width: 32rem; }
.buy__note strong { color: var(--ivory-2); font-weight: 500; }
.buy .btn { min-width: 240px; }
.dev-note { margin-top: 14px; padding: 10px 14px; border: 1px dashed var(--gold-deep); color: var(--gold); font-size: 13.5px; display: none; }
.dev-note.is-shown { display: block; }
@media (max-width: 900px) { .offer { grid-template-columns: 1fr; } .buy .btn { width: 100%; } }
.page-top { padding-top: clamp(116px, 13vw, 164px); border-top: 0; }
.back { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 34px; font: 500 14px/1.4 var(--sans); color: var(--ivory-2); text-decoration: none; transition: color .3s; }
.back:hover { color: var(--ivory); }
.buy__secure { margin-top: 14px; display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--muted); }
.buy__secure svg { width: 14px; height: 14px; flex: none; color: var(--gold-deep); }

/* Author */
.author { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(40px, 7vw, 100px); }
.author .h2 { margin-top: 26px; }
.author .prose { margin-top: 6px; }
.author .pull { margin-top: 40px; }
@media (max-width: 900px) { .author { grid-template-columns: 1fr; } }

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; }
.faq__head { text-align: center; }
.faq__head .h2 { margin-top: 22px; }
.faq__list { margin-top: 52px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 26px 0;
               font: 500 clamp(1.25rem, 2vw, 1.45rem)/1.3 var(--serif); color: var(--ivory); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 12px; height: 12px; border-right: 1px solid var(--gold); border-bottom: 1px solid var(--gold);
                      transform: rotate(45deg) translateY(-3px); transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(225deg) translateY(-3px); }
.faq details p { padding: 0 0 28px; max-width: 44rem; font-size: 16.5px; }

/* Final call */
.final { position: relative; isolation: isolate; text-align: center; overflow: hidden;
         background: radial-gradient(50% 70% at 50% 100%, rgba(198, 166, 107, 0.12), transparent 70%), var(--ink); }
.final blockquote { margin: 28px auto 0; max-width: 24ch; text-wrap: balance; font: italic 500 clamp(2rem, 5vw, 3.6rem)/1.15 var(--serif); color: var(--ivory); }
.final__cap { margin-top: 20px; }
.final__actions { margin-top: 44px; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 18px 30px; }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 44px 0 52px; font-size: 14px; color: var(--muted); }
.footer__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 32px; }
.footer nav { display: flex; flex-wrap: wrap; gap: 10px 26px; }
.footer a { text-decoration: none; color: var(--muted); transition: color .3s; }
.footer a:hover { color: var(--ivory); }

/* Mobile buy bar */
.buybar { position: fixed; inset: auto 0 0; z-index: 40; display: none; align-items: center; justify-content: space-between; gap: 16px;
          padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom)); background: rgba(10, 11, 13, 0.96); border-top: 1px solid var(--line);
          transform: translateY(110%); transition: transform .45s var(--ease); }
.buybar.is-shown { transform: none; }
.buybar__text { font: 500 13px/1.3 var(--sans); color: var(--ivory-2); }
.buybar__text b { display: block; font: 500 14px/1.2 var(--caps); letter-spacing: .06em; color: var(--ivory); }
.buybar .btn { padding: 13px 20px; font-size: 14px; flex: none; }
@media (max-width: 760px) { .buybar { display: flex; } .footer { padding-bottom: 110px; } }

/* Reveal */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: var(--delay, 0ms); }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
