:root {
  --ink: #071a24;
  --ink-2: #0d2733;
  --paper: #f3efe5;
  --paper-2: #e8e0d1;
  --gold: #c58b43;
  --gold-light: #e0b36d;
  --muted: #74858a;
  --line: rgba(197, 139, 67, .34);
  --serif: Georgia, 'Times New Roman', serif;
  --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
button, input { font: inherit; }

.grain { position: fixed; inset: 0; pointer-events: none; opacity: .045; z-index: 20; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.6'/%3E%3C/svg%3E"); }

.site-header { width: min(1440px, calc(100% - 80px)); margin: 0 auto; min-height: 96px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; border-bottom: 1px solid rgba(7, 26, 36, .15); }
.wordmark { text-decoration: none; font-family: var(--serif); font-size: 18px; letter-spacing: .18em; justify-self: start; }
.wordmark span { color: var(--gold); }
.site-header nav { display: flex; gap: 34px; font-size: 13px; letter-spacing: .04em; }
.site-header nav a, .languages a, .site-header > a:not(.wordmark) { text-decoration: none; }
.site-header nav a:hover, .site-header nav a:focus-visible { color: var(--gold); }
.nav-buy { padding-bottom: 5px; border-bottom: 1px solid var(--gold); }
.languages { justify-self: end; display: flex; gap: 8px; font-size: 11px; letter-spacing: .08em; }
.languages a { width: 30px; height: 30px; display: grid; place-items: center; border: 1px solid transparent; border-radius: 50%; }
.languages a[aria-current='page'] { border-color: var(--gold); color: var(--gold); }

.hero { min-height: 780px; width: min(1320px, calc(100% - 80px)); margin: 0 auto; display: grid; grid-template-columns: minmax(360px, .82fr) minmax(480px, 1.18fr); align-items: center; gap: clamp(70px, 10vw, 170px); padding: 76px 0 105px; }
.cover-stage { position: relative; width: min(440px, 92%); justify-self: end; isolation: isolate; }
.cover-button { position: relative; z-index: 3; width: 100%; display: block; padding: 0; border: 0; background: transparent; color: inherit; cursor: pointer; text-align: left; }
.book-cover { position: relative; z-index: 3; width: 100%; height: auto; aspect-ratio: 720 / 999; object-fit: contain; box-shadow: -22px 30px 60px rgba(4, 18, 25, .28), -6px 8px 12px rgba(4, 18, 25, .18); border-radius: 2px 7px 7px 2px; }
.cover-button:focus-visible { outline: 2px solid var(--gold); outline-offset: 7px; }
.cover-button:hover .book-cover { transform: translateY(-3px); box-shadow: -24px 34px 68px rgba(4, 18, 25, .31), -6px 8px 12px rgba(4, 18, 25, .18); }
.cover-hint { position: absolute; z-index: 5; left: 50%; bottom: 18px; translate: -50% 0; min-width: max-content; padding: 10px 15px; background: rgba(7,26,36,.9); color: var(--paper); border: 1px solid rgba(224,179,109,.55); font-size: 11px; font-weight: 700; letter-spacing: .06em; text-align: center; opacity: 0; transform: translateY(6px); transition: opacity .2s, transform .2s; }
.cover-button:hover .cover-hint, .cover-button:focus-visible .cover-hint { opacity: 1; transform: translateY(0); }
.book-cover::after { content: ''; position: absolute; inset: 0; }
.cover-stage::before { content: ''; position: absolute; z-index: 4; left: 2px; top: 0; bottom: 0; width: 7px; background: linear-gradient(90deg, rgba(255,255,255,.16), transparent); pointer-events: none; }
.cover-shadow { position: absolute; z-index: 1; inset: 12% -12% -9% 12%; border: 1px solid var(--line); pointer-events: none; }
.orbit { position: absolute; z-index: 0; border: 1px solid rgba(197, 139, 67, .2); border-radius: 50%; }
.orbit-one { width: 410px; height: 410px; left: -42%; top: 14%; }
.orbit-two { width: 270px; height: 270px; left: -23%; top: 24%; }

.hero-copy { max-width: 690px; }
.eyebrow { margin: 0 0 24px; color: #9a692d; font-size: 11px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; }
.hero h1 { margin: 0; max-width: 680px; font-family: var(--serif); font-size: clamp(56px, 6.15vw, 94px); line-height: .96; font-weight: 400; letter-spacing: -.045em; text-wrap: balance; }
.subtitle { margin: 23px 0 38px; font-family: var(--serif); color: var(--gold); font-size: clamp(21px, 2vw, 29px); font-style: italic; }
.lead { max-width: 610px; margin: 0 0 19px; font-family: var(--serif); font-size: 22px; line-height: 1.42; }
.description { max-width: 630px; color: #53666b; line-height: 1.78; font-size: 14px; }
.author-line { margin: 36px 0 34px; display: flex; align-items: center; gap: 15px; font-family: var(--serif); font-size: 15px; letter-spacing: .08em; text-transform: uppercase; }
.author-line span { width: 48px; height: 1px; background: var(--gold); }
.primary-link { display: inline-flex; align-items: center; gap: 26px; padding: 15px 0 10px; border-bottom: 1px solid var(--gold); text-decoration: none; font-size: 13px; font-weight: 700; letter-spacing: .05em; }
.primary-link span { color: var(--gold); font-size: 18px; }

.stats { background: var(--ink); color: var(--paper); padding: 48px max(40px, calc((100vw - 1180px) / 2)); display: grid; grid-template-columns: repeat(3, 1fr); }
.stats div { min-height: 94px; display: flex; align-items: center; justify-content: center; gap: 18px; border-right: 1px solid rgba(224, 179, 109, .24); }
.stats div:last-child { border-right: 0; }
.stats strong { font-family: var(--serif); color: var(--gold-light); font-size: 55px; font-weight: 400; }
.stats span { max-width: 120px; color: #b7c3c5; font-size: 11px; line-height: 1.45; letter-spacing: .08em; text-transform: uppercase; }

.structure { padding: 132px max(40px, calc((100vw - 1180px) / 2)); background: #ece6da; }
.section-intro { display: grid; grid-template-columns: .65fr 1.25fr 1fr; gap: 56px; align-items: start; margin-bottom: 76px; }
.section-intro h2, .purchase h2 { margin: 0; font-family: var(--serif); font-weight: 400; line-height: 1.08; font-size: clamp(40px, 4.1vw, 61px); letter-spacing: -.03em; }
.section-intro > p:last-child { margin: 5px 0 0; color: #586a6e; font-size: 14px; line-height: 1.8; }
.concept-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid rgba(7, 26, 36, .17); }
.concept-grid article { min-height: 330px; padding: 34px 38px; position: relative; border-right: 1px solid rgba(7, 26, 36, .17); }
.concept-grid article:last-child { border-right: 0; }
.concept-grid article > span { color: var(--gold); font-family: var(--serif); font-size: 13px; }
.concept-grid h3 { margin: 58px 0 17px; font-family: var(--serif); font-size: 31px; font-weight: 400; }
.concept-grid p { color: #596a6e; font-size: 13px; line-height: 1.7; }
.formula { position: absolute; right: 32px; bottom: 30px; color: rgba(197, 139, 67, .75); font-family: var(--serif); font-size: 23px; }

.purchase { background: var(--ink); color: var(--paper); padding: 120px max(40px, calc((100vw - 1180px) / 2)) 130px; display: grid; grid-template-columns: .9fr 1.1fr; gap: 110px; align-items: start; }
.purchase-heading { padding-top: 34px; }
.purchase-heading h2 { max-width: 520px; }
.purchase-heading > p:not(.eyebrow) { max-width: 470px; margin-top: 25px; color: #a8b6b8; font-size: 14px; line-height: 1.75; }
.offer-link { display: inline-flex; gap: 8px; margin-top: 18px; color: var(--gold-light); font-size: 12px; text-underline-offset: 4px; }
.purchase-card { background: #f5f1e8; color: var(--ink); border-top: 3px solid var(--gold); padding: 34px; box-shadow: 0 22px 60px rgba(0,0,0,.2); }
.purchase-summary { display: grid; grid-template-columns: 62px 1fr auto; gap: 18px; align-items: center; padding-bottom: 27px; border-bottom: 1px solid rgba(7,26,36,.15); }
.purchase-summary img { width: 58px; height: 80px; object-fit: cover; }
.purchase-summary div { display: flex; flex-direction: column; gap: 7px; }
.purchase-summary div strong { font-family: var(--serif); font-size: 19px; }
.purchase-summary div span { color: #697a7e; font-size: 11px; letter-spacing: .05em; }
.purchase-summary > b { font-family: var(--serif); font-size: 24px; font-weight: 400; }
.checkout-form { padding-top: 28px; }
.checkout-form > .field-label { display: block; margin-bottom: 9px; font-size: 12px; font-weight: 700; }
.checkout-form > input + .field-label { margin-top: 18px; }
.checkout-form > input[type='email'], .checkout-form > input[type='tel'] { width: 100%; height: 52px; padding: 0 15px; background: #fff; color: var(--ink); border: 1px solid rgba(7,26,36,.23); border-radius: 0; outline: none; }
.checkout-form > input[type='email']:focus, .checkout-form > input[type='tel']:focus { border-color: var(--gold); box-shadow: 0 0 0 2px rgba(197,139,67,.16); }
.consent { margin: 18px 0 22px; display: grid; grid-template-columns: 18px 1fr; gap: 10px; color: #5c6c70; font-size: 11px; line-height: 1.55; }
.consent input { margin: 2px 0 0; accent-color: var(--gold); }
.consent a { color: var(--ink); text-underline-offset: 2px; }
.pay-button { width: 100%; min-height: 58px; padding: 12px 20px; display: flex; justify-content: space-between; align-items: center; border: 0; background: var(--gold); color: #071a24; cursor: pointer; font-size: 13px; font-weight: 800; letter-spacing: .03em; transition: background .2s, transform .2s; }
.pay-button:hover:not(:disabled) { background: var(--gold-light); transform: translateY(-1px); }
.pay-button:disabled { cursor: not-allowed; opacity: .55; }
.pay-button b { font-family: var(--serif); font-size: 18px; font-weight: 400; }
.secure-note { display: flex; align-items: center; justify-content: center; gap: 8px; color: #728084; font-size: 10px; letter-spacing: .04em; }
.secure-note i { width: 7px; height: 9px; display: inline-block; border: 1px solid var(--gold); border-radius: 1px; position: relative; }
.secure-note i::before { content: ''; position: absolute; width: 5px; height: 4px; border: 1px solid var(--gold); border-bottom: 0; border-radius: 4px 4px 0 0; left: 0; top: -5px; }
.form-status { min-height: 18px; margin: 10px 0 0; color: #9c4e39; font-size: 12px; text-align: center; }

.site-footer { min-height: 130px; padding: 0 max(40px, calc((100vw - 1180px) / 2)); display: flex; align-items: center; justify-content: space-between; background: #06151d; color: #aab6b8; border-top: 1px solid rgba(224,179,109,.18); font-size: 11px; }
.site-footer > div:first-child { display: flex; gap: 18px; align-items: center; }
.site-footer strong { color: var(--paper); font-family: var(--serif); font-size: 15px; font-weight: 400; }
.footer-links { display: flex; gap: 26px; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { color: var(--gold-light); }

.payment-dialog { width: min(760px, calc(100% - 30px)); height: min(820px, calc(100% - 30px)); padding: 0; border: 0; border-radius: 5px; box-shadow: 0 30px 100px rgba(0,0,0,.45); overflow: hidden; }
.payment-dialog::backdrop { background: rgba(3,14,20,.78); backdrop-filter: blur(4px); }
.dialog-bar { height: 52px; padding: 0 14px 0 20px; background: var(--ink); color: var(--paper); display: flex; align-items: center; justify-content: space-between; font-size: 12px; }
.dialog-bar button { width: 34px; height: 34px; border: 0; background: transparent; color: var(--paper); cursor: pointer; font-size: 25px; }
.payment-dialog iframe { width: 100%; height: calc(100% - 52px); border: 0; background: white; }

.reader-dialog { width: min(900px, calc(100% - 30px)); height: min(840px, calc(100% - 30px)); padding: 0; border: 0; background: #e8e0d1; color: var(--ink); box-shadow: 0 30px 100px rgba(0,0,0,.48); overflow: hidden; }
.reader-dialog::backdrop { background: rgba(3,14,20,.82); backdrop-filter: blur(5px); }
.reader-shell { height: 100%; display: grid; grid-template-rows: auto minmax(0,1fr) auto auto; }
.reader-header { min-height: 76px; padding: 15px 20px 15px 28px; display: flex; align-items: center; justify-content: space-between; gap: 18px; background: var(--ink); color: var(--paper); border-bottom: 2px solid var(--gold); }
.reader-header > div { min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.reader-header span { color: var(--gold-light); font-size: 10px; letter-spacing: .11em; text-transform: uppercase; }
.reader-header strong { overflow: hidden; font-family: var(--serif); font-size: 20px; font-weight: 400; text-overflow: ellipsis; white-space: nowrap; }
.reader-header button { flex: 0 0 auto; width: 38px; height: 38px; border: 0; background: transparent; color: var(--paper); cursor: pointer; font-size: 28px; }
.reader-page { width: min(680px, calc(100% - 64px)); margin: 30px auto 18px; padding: clamp(30px,5vw,62px); overflow-y: auto; background: #f8f4e9; box-shadow: 0 12px 35px rgba(7,26,36,.14); border-left: 1px solid rgba(197,139,67,.35); scrollbar-width: thin; }
.reader-page h2 { margin: 0 0 25px; font-family: var(--serif); font-size: clamp(28px,4vw,42px); font-weight: 400; line-height: 1.08; }
.reader-page p { margin: 0 0 1em; font-family: var(--serif); font-size: 17px; line-height: 1.62; }
.reader-page p:last-child { margin-bottom: 0; }
.reader-loading { color: var(--muted); text-align: center; }
.reader-controls { width: min(680px, calc(100% - 64px)); margin: 0 auto; min-height: 52px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; }
.reader-controls button { min-height: 38px; padding: 0; border: 0; background: transparent; color: var(--ink); cursor: pointer; font-size: 12px; font-weight: 700; }
.reader-controls button:first-child { text-align: left; }
.reader-controls button:last-child { text-align: right; }
.reader-controls button:disabled { opacity: .3; cursor: default; }
.reader-controls span { color: #6b7a7e; font-size: 11px; white-space: nowrap; }
.reader-buy { justify-self: center; margin: 2px 0 18px; color: #85551e; font-size: 12px; font-weight: 700; text-underline-offset: 4px; }

.simple-page, .relay-page { min-height: 100vh; display: grid; place-items: center; background: var(--ink); color: var(--paper); padding: 24px; }
.message-card { width: min(650px, 100%); padding: 60px; border: 1px solid rgba(224,179,109,.3); text-align: center; background: #0b2430; }
.message-card h1 { margin: 12px 0 22px; font-family: var(--serif); font-weight: 400; font-size: clamp(42px, 7vw, 70px); }
.message-card > p:not(.eyebrow) { max-width: 470px; margin: 0 auto 28px; color: #b4c0c2; line-height: 1.75; }
.success-mark, .error-mark { width: 54px; height: 54px; display: grid; place-items: center; margin: 0 auto 28px; border: 1px solid var(--gold); border-radius: 50%; color: var(--gold-light); font-size: 26px; }
.relay-page main { text-align: center; }
.relay-spinner { width: 46px; height: 46px; margin: 0 auto 20px; border: 1px solid rgba(224,179,109,.25); border-top-color: var(--gold); border-radius: 50%; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.legal-page { background: var(--paper); }
.legal-page .site-header { grid-template-columns: 1fr auto 1fr; }
.legal-page .site-header > a:nth-child(2) { font-size: 12px; }
.legal-content { width: min(820px, calc(100% - 48px)); margin: 0 auto; padding: 100px 0 130px; }
.legal-content h1 { max-width: 720px; margin: 0 0 12px; font-family: var(--serif); font-size: clamp(48px, 7vw, 78px); font-weight: 400; line-height: 1; }
.legal-updated { color: var(--muted); font-size: 12px; }
.legal-content section { margin-top: 58px; padding-top: 28px; border-top: 1px solid rgba(7,26,36,.15); }
.legal-content h2 { font-family: var(--serif); font-size: 27px; font-weight: 400; }
.legal-content section p { color: #4f6267; line-height: 1.85; }

@media (max-width: 900px) {
  .site-header { width: min(100% - 36px, 720px); grid-template-columns: 1fr auto; min-height: 78px; }
  .site-header nav { display: none; }
  .languages { grid-column: 2; }
  .hero { width: min(100% - 36px, 720px); grid-template-columns: 1fr; gap: 70px; padding: 55px 0 80px; }
  .cover-stage { width: min(380px, 82vw); justify-self: center; }
  .hero-copy { max-width: 680px; }
  .section-intro { grid-template-columns: 1fr; gap: 15px; }
  .section-intro .eyebrow { margin-bottom: 10px; }
  .concept-grid { grid-template-columns: 1fr; }
  .concept-grid article { min-height: 260px; border-right: 0; border-bottom: 1px solid rgba(7,26,36,.17); }
  .purchase { grid-template-columns: 1fr; gap: 50px; }
}

@media (max-width: 620px) {
  .site-header { width: calc(100% - 28px); }
  .hero { width: calc(100% - 36px); padding-top: 35px; }
  .hero h1 { font-size: clamp(47px, 15vw, 70px); }
  .description { font-size: 13px; }
  .orbit { display: none; }
  .cover-hint { bottom: 12px; padding: 8px 12px; opacity: .92; transform: none; }
  .stats { padding: 28px 18px; }
  .stats div { min-height: 115px; flex-direction: column; gap: 5px; text-align: center; }
  .stats strong { font-size: 38px; }
  .stats span { max-width: 92px; font-size: 9px; }
  .structure, .purchase { padding: 82px 20px; }
  .concept-grid article { padding-left: 20px; padding-right: 20px; }
  .purchase-card { padding: 22px 18px; }
  .purchase-summary { grid-template-columns: 48px 1fr auto; gap: 12px; }
  .purchase-summary img { width: 46px; height: 64px; }
  .purchase-summary > b { font-size: 19px; }
  .site-footer { padding: 38px 22px; flex-direction: column; justify-content: center; gap: 24px; }
  .footer-links { gap: 16px; flex-wrap: wrap; justify-content: center; }
  .message-card { padding: 48px 22px; }
  .legal-page .site-header > a:nth-child(2) { display: none; }
  .legal-content { padding: 70px 0 90px; }
  .reader-dialog { width: calc(100% - 14px); height: calc(100% - 14px); max-height: none; }
  .reader-header { min-height: 66px; padding: 12px 12px 12px 18px; }
  .reader-header strong { font-size: 17px; }
  .reader-page { width: calc(100% - 24px); margin: 12px auto 8px; padding: 26px 22px; }
  .reader-page h2 { margin-bottom: 20px; font-size: 30px; }
  .reader-page p { font-size: 16px; line-height: 1.56; }
  .reader-controls { width: calc(100% - 32px); }
  .reader-buy { margin-bottom: 13px; }
}

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