:root {
  --navy: #0b2138;
  --navy-deep: #061423;
  --paper: #f7f0dc;
  --sand: #eadfbd;
  --ink: #171815;
  --muted: #544f43;
  --red: #982e25;
  --red-dark: #742018;
  --gold: #c79a48;
  --gold-soft: #dcc37f;
  --rule: rgba(83, 67, 34, 0.28);
  --serif-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --serif-body: "Fraunces", "Iowan Old Style", Georgia, serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --gutter: 22px;
}

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

html {
  background: var(--navy-deep);
  color-scheme: light;
  scroll-behavior: smooth;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-width: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--serif-body);
  font-size: 18px;
  line-height: 1.62;
  overflow-x: hidden;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: 0.17;
  content: "";
  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='.72' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.19'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

body.modal-open { overflow: hidden; }

img { display: block; width: auto; max-width: 100%; height: auto; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 200;
  padding: 10px 14px;
  color: white;
  background: var(--navy);
  transform: translateY(-160%);
}

.skip-link:focus { transform: translateY(0); }

.shell {
  width: calc(100% - (var(--gutter) * 2));
  max-width: 1100px;
  margin-inline: auto;
}

.reading-shell { max-width: 720px; }
.reading-shell--wide { max-width: 760px; }

.launch-bar {
  position: relative;
  z-index: 110;
  min-height: 52px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: white;
  background: linear-gradient(90deg, var(--red-dark), var(--red), var(--red-dark));
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.12) inset;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.launch-bar__countdown {
  display: inline-flex;
  min-width: 76px;
  justify-content: center;
  color: #fff4cd;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.08em;
  white-space: nowrap;
}
}

.hero {
  padding: 64px 0 76px;
  background:
    radial-gradient(620px 300px at 105% 5%, rgba(199, 154, 72, 0.13), transparent 62%),
    radial-gradient(500px 360px at -15% 90%, rgba(11, 33, 56, 0.08), transparent 64%),
    var(--paper);
}

.hero__shell { max-width: 1080px; }

.portrait-frame {
  margin: 0;
  padding: 12px;
  border: 1px solid rgba(141, 108, 49, 0.48);
  background: rgba(255, 252, 239, 0.5);
}

.portrait-frame img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 45%;
  filter: saturate(0.84) contrast(1.04);
}

.hero__copy { margin-top: 54px; }

.maker-line {
  display: grid;
  grid-template-columns: auto minmax(28px, 1fr) auto;
  align-items: center;
  gap: 14px;
  margin-bottom: 34px;
  color: var(--red);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.maker-line__rule {
  height: 1px;
  background: rgba(151, 116, 51, 0.5);
}

h1, h2, h3, p, figure, blockquote { margin-top: 0; }

h1, h2, h3 {
  color: inherit;
  font-family: var(--serif-display);
  font-weight: 400;
}

h1 {
  margin-bottom: 28px;
  font-size: 35.2px;
  line-height: 1.05;
  letter-spacing: -0.025em;
}

.hero__lead {
  margin-bottom: 30px;
  color: #312e27;
  font-size: 18.88px;
  line-height: 1.55;
}

.hero__lead::first-letter {
  float: left;
  margin: 7px 7px 0 0;
  color: var(--red);
  font-family: var(--serif-display);
  font-size: 63px;
  line-height: 0.72;
}

.hero__actions {
  display: grid;
  gap: 13px;
}

.button {
  min-height: 63px;
  padding: 16px 18px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid transparent;
  border-radius: 0;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.13em;
  line-height: 1.4;
  text-decoration: none;
  text-transform: uppercase;
  transition: background-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.button:active { transform: translateY(1px); }
.button--primary { color: #fff9e8; background: var(--red); }
.button--primary:hover { background: var(--red-dark); }
.button--secondary { color: var(--navy); border-color: var(--navy); background: transparent; }
.button--secondary:hover { color: white; background: var(--navy); }
.button--wide { width: 100%; }

.proof-row {
  margin-top: 40px;
  padding-top: 30px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  border-top: 1px solid var(--rule);
}

.proof-row div { min-width: 0; }
.proof-row strong {
  display: block;
  color: var(--navy);
  font-family: var(--serif-display);
  font-size: 27px;
  font-weight: 400;
  line-height: 1;
}

.proof-row span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.06em;
  line-height: 1.45;
  text-transform: uppercase;
}

.section { padding: 76px 0; }
.section--paper { background: var(--paper); }
.section--sand { background: var(--sand); }
.section--navy { color: #f7f0dc; background: var(--navy-deep); }

.section-heading { margin-bottom: 58px; }

.section-number {
  display: block;
  margin-bottom: 8px;
  color: var(--red);
  font-family: var(--serif-display);
  font-size: 57px;
  font-style: italic;
  line-height: 1;
}

.section-number--gold { color: var(--gold-soft); }

.eyebrow {
  margin-bottom: 17px;
  color: var(--red);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  line-height: 1.6;
  text-transform: uppercase;
}

.eyebrow--gold { color: var(--gold-soft); }

.section h2,
.final-order h2 {
  margin-bottom: 26px;
  font-size: 35.2px;
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.02em;
}

.section-intro {
  margin-bottom: 0;
  color: #3e392e;
  font-size: 18.4px;
  line-height: 1.62;
}

.section-support {
  margin: 22px 0 0;
  color: #514a3d;
  font-size: 16px;
  line-height: 1.66;
}

.section--navy .section-intro { color: #e0d5b7; }

.book-stage {
  position: relative;
  width: min(86%, 320px);
  margin: 0 auto 44px;
  padding: 14px;
  background: rgba(255, 251, 235, 0.62);
}

.book-stage__line {
  position: absolute;
  inset: 5px -6px -6px 5px;
  z-index: 0;
  border: 2px solid var(--gold);
}

.book-stage img {
  position: relative;
  z-index: 1;
  width: 100%;
  box-shadow: 0 25px 48px -24px rgba(7, 20, 35, 0.62);
}

.product-copy { margin-bottom: 52px; }
.product-copy h3 {
  margin-bottom: 23px;
  font-size: 30.4px;
  font-weight: 600;
  line-height: 1.04;
}
.product-copy p:last-child { margin-bottom: 0; font-size: 17px; line-height: 1.63; }

.offer__label {
  margin-bottom: 16px;
  color: var(--red);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.offer__list {
  margin: 0 0 25px;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--rule);
}

.offer__list li {
  min-height: 72px;
  padding: 15px 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 12px;
  border-bottom: 1px solid var(--rule);
  font-size: 15px;
  line-height: 1.55;
}

.offer__list strong { font-weight: 700; }
.offer__list b {
  color: var(--navy);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.03em;
  text-align: right;
  text-transform: uppercase;
}

.offer__list .offer__total {
  min-height: 62px;
  align-items: center;
  font-weight: 700;
}

.offer__list .offer__today {
  min-height: 70px;
  margin-top: 8px;
  padding-inline: 12px;
  align-items: center;
  color: var(--red-dark);
  background: rgba(152, 46, 37, 0.07);
  font-size: 19px;
  font-style: italic;
  font-weight: 700;
}

.offer__list .offer__today b { color: var(--red-dark); font-size: 18px; }

.offer__list .offer__saving {
  min-height: 62px;
  align-items: center;
  color: var(--navy);
  font-weight: 700;
}

.offer__list .offer__saving b { color: var(--navy); font-size: 14px; }

.trust-line,
.checkout-line {
  margin: 14px auto 0;
  color: #6d6553;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.09em;
  line-height: 1.6;
  text-align: center;
  text-transform: uppercase;
}

.checkout-line { margin-top: 46px; color: #746c59; }

.comparison__group + .comparison__group { margin-top: 48px; }
.comparison__group h3 {
  margin-bottom: 20px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  color: var(--paper);
  font-size: 26px;
  line-height: 1.08;
}

.comparison__group h3 span {
  flex: 0 0 auto;
  color: var(--gold-soft);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.comparison ul {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid rgba(220, 195, 127, 0.25);
}

.comparison li {
  min-height: 68px;
  padding: 17px 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  border-bottom: 1px dashed rgba(220, 195, 127, 0.24);
  color: #e0d5b7;
  font-size: 15px;
  line-height: 1.5;
}

.comparison li b {
  color: var(--paper);
  font-size: 15px;
  text-align: right;
}

.math-note {
  margin: 48px 0 0;
  padding: 28px 24px;
  border: 1px solid rgba(220, 195, 127, 0.38);
  color: #ded3b5;
  font-size: 15px;
  line-height: 1.65;
  text-align: center;
}
.math-note strong { display: block; margin-bottom: 8px; color: var(--paper); }

.contents-grid { display: grid; gap: 34px; }

.content-card {
  padding: 30px 28px 28px;
  border: 1px solid rgba(118, 94, 50, 0.38);
  background: rgba(255, 252, 239, 0.16);
}

.content-card__label {
  margin-bottom: 20px;
  color: var(--red);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.content-card h3 {
  margin-bottom: 19px;
  font-size: 20.8px;
  font-weight: 600;
  line-height: 1.04;
}

.content-card ol {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: chapter;
}

.content-card li {
  position: relative;
  min-height: 60px;
  padding: 14px 0 14px 46px;
  border-bottom: 1px dotted rgba(87, 71, 40, 0.24);
  counter-increment: chapter;
  font-size: 15.36px;
  line-height: 1.45;
}

.content-card li:last-child { border-bottom: 0; }
.content-card li::before {
  position: absolute;
  top: 16px;
  left: 0;
  content: counter(chapter, decimal-leading-zero);
  color: var(--gold);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
}

.content-card__tools {
  margin: 20px 0 0;
  padding-top: 20px;
  border-top: 1px solid var(--rule);
  font-size: 14px;
  line-height: 1.55;
}

.quotes { display: grid; gap: 38px; }
.quote-card {
  margin: 0;
  padding: 42px 27px 28px;
  border: 1px solid rgba(118, 94, 50, 0.38);
}

.quote-card blockquote {
  margin-bottom: 22px;
  color: var(--navy);
  font-family: var(--serif-display);
  font-size: 27px;
  line-height: 1.18;
}

.quote-card figcaption {
  margin-bottom: 24px;
  color: var(--red);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.07em;
  line-height: 1.55;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.quote-card p { margin-bottom: 0; font-size: 15px; line-height: 1.65; }

.portrait-frame--about { margin-bottom: 48px; }
.about-title-line {
  margin-bottom: 34px;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: end;
  gap: 18px;
}
.about-title-line .section-number { margin: 0; }
.about-title-line .eyebrow { margin-bottom: 8px; }
.about-title-line h2 { margin: 0; }

.about-copy > p:not(.eyebrow) { margin-bottom: 18px; font-size: 16px; line-height: 1.68; }
.author-quote {
  margin: 38px 0 30px;
  padding: 24px 0 24px 24px;
  border-left: 3px solid var(--gold);
  color: var(--navy);
  font-family: var(--serif-display);
  font-size: 25px;
  line-height: 1.25;
}

.text-link,
.wait-modal__inside {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--red-dark);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-decoration-thickness: 1px;
  text-underline-offset: 6px;
  text-transform: uppercase;
}

.book-stage--order { margin-top: -4px; }

.faq-list details {
  border-bottom: 1px solid var(--rule);
}
.faq-list details:first-child { border-top: 1px solid var(--rule); }
.faq-list summary {
  position: relative;
  min-height: 76px;
  padding: 23px 42px 23px 0;
  cursor: pointer;
  list-style: none;
  font-family: var(--serif-display);
  font-size: 21px;
  line-height: 1.3;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  position: absolute;
  top: 24px;
  right: 2px;
  content: "+";
  color: var(--red);
  font-family: var(--serif-display);
  font-size: 24px;
  line-height: 1;
}
.faq-list details[open] summary::after { content: "×"; }
.faq-list details p {
  margin: -2px 0 0;
  padding: 0 34px 26px 0;
  color: #3d392f;
  font-size: 15px;
  line-height: 1.7;
}

.final-order {
  position: relative;
  overflow: hidden;
  padding: 130px 0 110px;
  color: var(--paper);
  background:
    radial-gradient(460px 340px at 15% 35%, rgba(152, 46, 37, 0.42), transparent 68%),
    radial-gradient(420px 320px at 95% 80%, rgba(199, 154, 72, 0.14), transparent 70%),
    var(--navy-deep);
  text-align: center;
}
.final-order__shell { max-width: 650px; }
.final-order h2 { font-size: clamp(39px, 10.5vw, 46px); }
.final-order p:not(.eyebrow) { margin: 0 auto 33px; color: #dfd4b6; font-size: 17px; line-height: 1.65; }
.button--light { color: var(--navy-deep); background: var(--paper); }
.button--light:hover { color: white; background: var(--red); }

.footer {
  padding: 52px 0 40px;
  color: #bfb69f;
  background: #030b12;
}
.footer__brand {
  display: block;
  margin-bottom: 30px;
  color: var(--paper);
  font-family: var(--serif-display);
  font-size: 23px;
  line-height: 1.2;
  text-decoration: none;
}
.footer nav { display: flex; flex-wrap: wrap; gap: 13px 20px; }
.footer nav a {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.footer p { margin: 34px 0 0; font-size: 11px; line-height: 1.7; }

.wait-modal[hidden] { display: none; }
.wait-modal {
  position: fixed;
  inset: 0;
  z-index: 150;
  display: grid;
  place-items: center;
  padding: 22px;
}
.wait-modal__backdrop { position: absolute; inset: 0; background: rgba(5, 12, 15, 0.76); backdrop-filter: blur(5px); }
.wait-modal__panel {
  position: relative;
  z-index: 1;
  width: min(100%, 350px);
  max-height: calc(100dvh - 30px);
  padding: 34px 30px 30px;
  overflow-y: auto;
  color: var(--ink);
  background: var(--paper);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.42);
  text-align: center;
}
.wait-modal__close {
  position: absolute;
  top: 8px;
  right: 10px;
  width: 44px;
  height: 44px;
  border: 0;
  color: var(--muted);
  background: transparent;
  font-family: var(--serif-display);
  font-size: 28px;
  cursor: pointer;
}
.wait-modal__cover { position: relative; width: 112px; margin: 0 auto 24px; }
.wait-modal__cover span { position: absolute; inset: -5px 5px 5px -5px; border: 2px solid var(--gold); }
.wait-modal__cover img { position: relative; width: 100%; box-shadow: 0 18px 36px -18px rgba(6, 20, 35, 0.7); }
.wait-modal .eyebrow { margin-bottom: 18px; }
.wait-modal h2 { margin-bottom: 16px; font-size: 29px; line-height: 1.08; }
.wait-modal p:not(.eyebrow) { margin-bottom: 22px; font-size: 15px; line-height: 1.58; }
.wait-modal__inside { margin-top: 22px; }

.noscript {
  position: fixed;
  right: 12px;
  bottom: 12px;
  left: 12px;
  z-index: 220;
  padding: 14px;
  color: white;
  background: var(--navy);
  font-size: 14px;
  text-align: center;
}

.reveal { opacity: 1; transform: none; }
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 600ms ease, transform 600ms ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (max-width: 374px) {
  :root { --gutter: 18px; }
  .launch-bar { gap: 8px; font-size: 10px; letter-spacing: 0.08em; }
  .launch-bar__countdown { min-width: 72px; font-size: 12px; }
  .proof-row { gap: 8px; }
  .content-card { padding-inline: 22px; }
  .offer__list li { font-size: 14px; }
}

@media (min-width: 760px) {
  :root { --gutter: 34px; }
  body { font-size: 19px; }
  .launch-bar { font-size: 11px; gap: 12px; }
  .launch-bar__countdown { min-width: 84px; font-size: 14px; }
  .hero, .section { padding-block: 94px; }
  .hero__shell {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    align-items: center;
    gap: 70px;
  }
  .hero__copy { margin-top: 0; }
  .portrait-frame img { aspect-ratio: 4 / 5; }
  h1 { font-size: 56px; }
  .hero__lead, .section-intro { font-size: 19px; }
  .section h2 { font-size: 50px; }
  .reading-shell { max-width: 950px; }
  .reading-shell--wide { max-width: 1100px; }
  .section-heading { max-width: 720px; }
  .book-stage { width: 330px; }
  .product-copy, .offer { max-width: 720px; }
  .comparison { display: grid; grid-template-columns: 1fr 1fr; gap: 54px; }
  .comparison__group + .comparison__group { margin-top: 0; }
  .contents-grid { grid-template-columns: repeat(2, 1fr); align-items: start; }
  .quotes { grid-template-columns: 1fr; gap: 28px; }
  .quote-card { padding: 38px 26px 28px; }
  .about-copy { max-width: 720px; }
  .faq-list { max-width: 760px; }
  .button { font-size: 13px; }
}

@media (min-width: 1000px) {
  .quotes { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
  .section--sand:not(#viewers) .reading-shell,
  #manual .reading-shell,
  #order .reading-shell {
    display: grid;
    grid-template-columns: minmax(300px, 0.82fr) minmax(0, 1.18fr);
    column-gap: 78px;
    align-items: start;
  }
  #manual .section-heading,
  #order .section-heading { grid-column: 1 / -1; }
  #manual .book-stage,
  #order .book-stage { grid-column: 1; grid-row: 2 / span 2; margin: 0 auto; }
  #manual .product-copy,
  #order .product-copy { grid-column: 2; margin-bottom: 38px; }
  #manual .offer,
  #order .offer { grid-column: 2; }
  #about .reading-shell {
    display: grid;
    grid-template-columns: 0.92fr 1.08fr;
    gap: 72px;
    max-width: 1080px;
  }
  .portrait-frame--about { margin-bottom: 0; }
  .footer__shell { display: grid; grid-template-columns: 1fr auto; gap: 22px 60px; }
  .footer__brand { margin: 0; }
  .footer p { grid-column: 1 / -1; }
}

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