/* The Hidden South — landing styles. Calm, light, large type for older readers. Mobile first. */

@font-face { font-family: "Libre Caslon Display"; font-weight: 400; font-style: normal; font-display: swap;
  src: url(../fonts/caslon-display-400.woff2) format("woff2"); }
@font-face { font-family: "Libre Caslon Text"; font-weight: 400; font-style: normal; font-display: swap;
  src: url(../fonts/caslon-text-400.woff2) format("woff2"); }
@font-face { font-family: "Libre Caslon Text"; font-weight: 700; font-style: normal; font-display: swap;
  src: url(../fonts/caslon-text-700.woff2) format("woff2"); }
@font-face { font-family: "Atkinson Hyperlegible"; font-weight: 400; font-style: normal; font-display: swap;
  src: url(../fonts/atkinson-Regular.woff) format("woff"); }
@font-face { font-family: "Atkinson Hyperlegible"; font-weight: 700; font-style: normal; font-display: swap;
  src: url(../fonts/atkinson-Bold.woff) format("woff"); }
@font-face { font-family: "Kalam"; font-weight: 400; font-style: normal; font-display: swap;
  src: url(../fonts/kalam-400.woff2) format("woff2"); }

:root {
  --cream: #f5eee1;      /* page */
  --paper: #fdfaf4;      /* cards */
  --sand: #ece1cd;       /* author band */
  --line: #e0d2b8;
  --ink: #1d1a16;
  --ink-2: #3b342c;
  --red: #8a1f25;        /* buttons, prices */
  --red-dark: #701920;
  --oxblood: #6b1d24;
  --navy: #0e1b2b;
  --navy-2: #16283d;
  --on-dark: #f5eee1;
  --on-dark-2: #e6dac4;
  --gold: #e3c27e;
  --gold-2: #ecd096;
  --focus: #d98a00;

  --serif-display: "Libre Caslon Display", "Libre Caslon Text", Georgia, "Times New Roman", serif;
  --serif: "Libre Caslon Text", Georgia, "Times New Roman", serif;
  --sans: "Atkinson Hyperlegible", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --hand: "Kalam", "Bradley Hand", "Segoe Print", cursive;

  --fs-body: 20px;
  --fs-small: 17px;
  --gutter: 20px;
  --section-y: 64px;
  --maxw: 1200px;
}
@media (min-width: 700px) { :root { --gutter: 32px; --section-y: 84px; } }
@media (min-width: 1000px) { :root { --fs-body: 21px; --section-y: 100px; } }

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body { margin: 0; background: var(--cream); color: var(--ink); font-family: var(--sans); font-size: var(--fs-body); line-height: 1.55; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--red); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--red-dark); }
p { margin: 0 0 1em; }
h1, h2, h3 { font-family: var(--serif-display); font-weight: 400; line-height: 1.12; margin: 0 0 .45em; color: var(--ink); }
h2 { font-size: 36px; }
@media (min-width: 1000px) { h2 { font-size: 46px; } }
:focus-visible { outline: 4px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 300; background: var(--paper); color: var(--ink); padding: 14px 20px; }
.skip:focus { left: 8px; }
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 820px; }
.center { text-align: center; }
.nw { white-space: nowrap; }
.section { padding: var(--section-y) 0; }
.section--cream { background: var(--cream); }
.section--sand { background: var(--sand); }
.section--paper { background: var(--paper); }
.section--dark { background: var(--navy) url(../img/topo.svg) center / cover no-repeat; color: var(--on-dark); }
.section--dark h2 { color: var(--on-dark); }
.eyebrow { font-weight: 700; font-size: var(--fs-small); letter-spacing: .14em; text-transform: uppercase; color: var(--red); margin: 0 0 12px; }
.section--dark .eyebrow { color: var(--gold); }

/* ---------- buttons ---------- */
.btn { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 60px; padding: 12px 24px;
  border: 2px solid var(--red); border-radius: 999px; background: var(--red); color: #fff; cursor: pointer;
  font-family: var(--sans); font-size: 21px; font-weight: 700; line-height: 1.2; text-align: center; text-decoration: none;
  box-shadow: 0 6px 16px rgba(138, 31, 37, .22); transition: background-color .15s ease, transform .1s ease; }
.btn:hover { background: var(--red-dark); border-color: var(--red-dark); color: #fff; }
.btn:active { transform: translateY(1px); }
.btn .btn-price { white-space: nowrap; }
.btn--outline { background: transparent; color: var(--red); box-shadow: none; }
.btn--outline:hover { background: rgba(138, 31, 37, .07); color: var(--red-dark); }
.btn--gold { background: var(--gold); border-color: var(--gold); color: var(--navy); box-shadow: 0 6px 18px rgba(0,0,0,.3); }
.btn--gold:hover { background: var(--gold-2); border-color: var(--gold-2); color: var(--navy); }
.btn--sm { width: auto; min-height: 52px; font-size: 19px; padding: 10px 22px; }
@media (min-width: 700px) { .btn--auto { width: auto; display: inline-flex; } }

/* ---------- top bar (real launch date) ---------- */
.topbar { background: var(--oxblood); color: #fff; text-align: center; font-size: var(--fs-small); font-weight: 700; letter-spacing: .02em; padding: 8px var(--gutter); line-height: 1.45; }
.topbar .left { color: var(--gold-2); white-space: nowrap; }
.topbar a { color: #fff; }

/* ---------- header ---------- */
.site-header { background: var(--cream); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 68px; }
.brand { display: flex; align-items: center; text-decoration: none; color: var(--ink); padding: 8px 0; }
.brand-mark { flex: 0 0 auto; width: 40px; height: 40px; border-radius: 6px; background: var(--navy); color: var(--on-dark); display: inline-flex;
  align-items: center; justify-content: center; font-family: var(--serif-display); font-size: 26px; margin-right: 12px; box-shadow: inset 0 0 0 2px var(--oxblood); }
.brand-name { display: block; font-family: var(--serif-display); font-size: 21px; line-height: 1.15; }
.brand:hover { color: var(--ink); }
.nav { display: none; }
.nav a:not(.btn) { color: var(--ink); text-decoration: none; font-weight: 700; font-size: 19px; padding: 12px 14px; border-radius: 8px; }
.nav a:not(.btn):hover { background: rgba(0,0,0,.05); }
.nav .btn { margin-left: 10px; }
@media (min-width: 1000px) {
  .nav { display: flex; align-items: center; }
  .brand-name { font-size: 24px; }
}

/* ---------- hero: the big book and Buy ---------- */
.hero { background: var(--cream) url(../img/topo-light.svg) center top / cover no-repeat; padding: 22px 0 40px; }
.hero-grid { display: grid; grid-template-columns: 1fr; text-align: center; }
.hero h1 { font-size: 46px; line-height: 1.04; margin: 0 0 8px; }
.hero-line { font-size: 20px; color: var(--ink-2); margin: 0 auto 6px; max-width: 560px; }
.hero-book { width: 94%; max-width: 400px; margin: 0 auto 2px; }
.hero-book img { width: 100%; height: auto; }
.price-row { display: flex; align-items: baseline; justify-content: center; flex-wrap: wrap; margin: 0; }
.price-big { font-family: var(--serif-display); font-size: 54px; line-height: 1; color: var(--red); }
.price-was { font-size: 22px; color: var(--ink-2); text-decoration: line-through; margin-left: 12px; }
.price-note { font-size: 18px; color: var(--ink-2); margin: 6px 0 16px; }
.hero .price-note { font-size: 19px; }
.btn--big { min-height: 64px; font-size: 22px; }
.hero-small { font-size: var(--fs-small); color: var(--ink-2); margin: 14px 0 0; }
@media (min-width: 700px) { .hero h1 { font-size: 64px; } .hero-book { max-width: 420px; } }
@media (min-width: 1000px) {
  .hero { padding: 36px 0 56px; }
  .hero-grid { grid-template-columns: 1.1fr 1fr; grid-template-rows: auto auto; column-gap: 56px; text-align: left; align-items: center; }
  .hero-book { grid-column: 1; grid-row: 1 / span 2; width: 100%; max-width: 580px; margin: 0; }
  .hero-title { grid-column: 2; grid-row: 1; align-self: end; }
  .hero-buy { grid-column: 2; grid-row: 2; align-self: start; }
  .hero h1 { font-size: 76px; }
  .hero-line { font-size: 23px; margin: 0 0 22px; }
  .hero .price-row { justify-content: flex-start; }
  .price-big { font-size: 64px; }
  .hero .btn--big { width: auto; display: inline-flex; padding: 14px 44px; }
}

/* ---------- the three options ---------- */
.tiers { display: grid; grid-template-columns: 1fr; gap: 30px; align-items: stretch; }
@media (min-width: 1000px) { .tiers { grid-template-columns: repeat(3, 1fr); gap: 24px; } .tiers .tier { order: 0 !important; } }
.tier { position: relative; background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: 18px 20px 22px;
  display: flex; flex-direction: column; text-align: center; box-shadow: 0 10px 30px rgba(60, 40, 20, .08); }
.tier--featured { border: 2px solid var(--red); box-shadow: 0 16px 40px rgba(138, 31, 37, .16); }
.tier-badge { position: absolute; top: -17px; left: 50%; transform: translateX(-50%); white-space: nowrap; background: var(--red); color: #fff;
  font-weight: 700; font-size: 16px; letter-spacing: .12em; text-transform: uppercase; padding: 6px 18px; border-radius: 999px; z-index: 2; }
.tier-img { height: 270px; display: flex; align-items: center; justify-content: center; margin: 0 0 14px; }
.tier-img picture { display: contents; }
.tier-img img { max-height: 100%; width: auto; max-width: 100%; object-fit: contain; filter: drop-shadow(0 12px 14px rgba(40, 25, 10, .25)); }
.tier h3 { font-size: 30px; margin: 0 0 4px; }
.tier-desc { font-size: 19px; color: var(--ink-2); margin: 0 0 12px; }
.tier .price-note { margin: 4px 0 14px; min-height: 1.4em; }
.tier .btn { margin-top: auto; }
.tier--soon .soon { font-family: var(--serif-display); font-size: 32px; color: var(--ink-2); margin: 2px 0 14px; }
.code-note { font-size: var(--fs-small); color: var(--ink-2); margin: 10px 0 0; }
@media (min-width: 1000px) { .tier-img { height: 300px; } .tier--featured { margin-top: -6px; } }
.tiers { margin-top: 30px; }
.promo-banner { display: none; margin: 26px auto 0; max-width: 760px; text-align: center; border: 2px dashed var(--red); border-radius: 16px; padding: 18px 20px; background: var(--paper); }
.promo-banner.show { display: block; }
.promo-banner p { margin: 0 0 12px; }
.code { font-weight: 700; letter-spacing: .12em; background: #f1e8d8; border: 2px solid var(--red); color: var(--red); padding: 1px 10px; border-radius: 6px; white-space: nowrap; }
.applied { display: none; margin: 22px auto 0; max-width: 760px; text-align: center; padding: 12px 16px; background: #e6efe5; border: 2px solid #2f5d3a; color: #173b20; border-radius: 12px; font-weight: 700; }
.applied.show { display: block; }

/* ---------- author note ---------- */
.author { display: grid; grid-template-columns: 1fr; gap: 28px; align-items: center; }
.author-photo { max-width: 180px; margin: 0 auto; }
.author-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 24% 45%; border-radius: 6px; box-shadow: 0 12px 28px rgba(0,0,0,.18); }
.author-text h2 { font-size: 32px; line-height: 1.2; }
.author-text p { color: var(--ink-2); }
.signature { font-family: var(--hand); font-size: 40px; color: var(--red) !important; margin: 0; line-height: 1.1; }
@media (min-width: 900px) { .author { grid-template-columns: 240px 1fr; gap: 56px; max-width: 1000px; } .author-text h2 { font-size: 40px; } .author-photo { margin: 0; max-width: 240px; } }

/* ---------- what you get ---------- */
.benefits { list-style: none; margin: 30px auto 0; padding: 0; max-width: 1040px; display: grid; grid-template-columns: 1fr; }
.benefits li { display: grid; grid-template-columns: 128px 1fr; align-items: baseline; column-gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); }
.benefits li:first-child { border-top: 0; }
.benefits b { font-family: var(--serif-display); font-weight: 400; font-size: 34px; line-height: 1.1; color: var(--red); }
.benefits span { font-size: 19px; color: var(--ink-2); }
@media (min-width: 900px) {
  .benefits { grid-template-columns: repeat(3, 1fr); column-gap: 40px; row-gap: 34px; text-align: center; }
  .benefits li { display: block; border-top: 0; padding: 0; }
  .benefits b { display: block; font-size: 52px; margin-bottom: 6px; }
}

/* ---------- inside: two spreads ---------- */
.inside-head { margin: 0 auto 26px; }
.spreads { display: grid; grid-template-columns: 1fr; gap: 26px; }
.spread { margin: 0; }
.spread img { width: 100%; height: auto; }
.spread figcaption { text-align: center; font-family: var(--serif-display); font-size: 23px; color: var(--ink-2); margin-top: 4px; }
@media (min-width: 1000px) { .spreads { grid-template-columns: 1fr 1fr; gap: 36px; } .spreads .spread { display: flex; flex-direction: column; justify-content: flex-end; } }

/* ---------- inside (a few words) ---------- */
.inside-text { font-size: 21px; color: var(--ink-2); margin-bottom: 8px; }
.regions { font-family: var(--serif-display); font-size: 24px; color: var(--red); margin: 0; }

/* ---------- series + notify ---------- */
.series { display: grid; grid-template-columns: 1fr; gap: 28px; align-items: center; }
.series-img { max-width: 420px; margin: 0 auto; }
.notify label { display: block; font-weight: 700; margin: 8px 0 8px; }
.notify input[type=email] { width: 100%; min-height: 60px; font-size: 21px; font-family: var(--sans); padding: 10px 16px; border-radius: 12px;
  border: 2px solid var(--ink-2); background: #fff; color: var(--ink); margin: 0 0 12px; }
.notify input::placeholder { color: #5a5148; opacity: 1; }
.notify .fine { font-size: var(--fs-small); color: var(--ink-2); margin: 12px 0 0; }
.notify .msg { display: none; margin: 12px 0 0; padding: 12px 16px; border-radius: 10px; background: var(--sand); font-weight: 700; }
.notify .msg.show { display: block; }
.series { max-width: 720px; }
@media (min-width: 900px) { .notify .btn { width: auto; display: inline-flex; padding: 12px 40px; } }

/* ---------- FAQ ---------- */
.guarantee { margin: 8px 0 26px; padding: 16px 20px; background: var(--paper); border: 1px solid var(--line); border-left: 5px solid var(--red); border-radius: 10px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; min-height: 64px; padding: 12px 2px;
  font-family: var(--serif); font-size: 21px; line-height: 1.3; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: 0 0 auto; font-family: var(--sans); font-size: 30px; color: var(--red); margin-left: 16px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq .a { padding: 0 2px 18px; color: var(--ink-2); }
.faq .a p { margin: 0; }

/* ---------- footer ---------- */
.site-footer { background: var(--navy); color: var(--on-dark-2); padding: 40px 0 110px; font-size: 18px; }
.site-footer a { color: var(--on-dark); }
.foot-brand { font-family: var(--serif-display); font-size: 24px; color: var(--on-dark); }
.foot-links { list-style: none; padding: 0; margin: 0 0 16px; display: flex; flex-wrap: wrap; }
.foot-links li { margin: 0 6px 8px 0; }
.foot-links a { display: inline-flex; align-items: center; min-height: 48px; padding: 6px 12px; text-decoration: underline; font-weight: 700; }
.site-footer p { margin: 0 0 8px; }

/* ---------- sticky buy bar ---------- */
.buybar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; background: var(--paper); border-top: 2px solid var(--red);
  box-shadow: 0 -8px 24px rgba(0,0,0,.18); transform: translateY(110%); transition: transform .25s ease; padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom)); }
.buybar.show { transform: translateY(0); }
.buybar-in { max-width: var(--maxw); margin: 0 auto; display: flex; align-items: center; justify-content: space-between; }
.buybar-text { margin-right: 14px; line-height: 1.2; }
.buybar-title { display: block; font-family: var(--serif-display); font-size: 21px; }
.buybar-price { display: block; font-weight: 700; font-size: 22px; color: var(--red); }
.buybar-price small { font-size: 17px; color: var(--ink-2); white-space: nowrap; }
.buybar .btn { width: auto; flex: 0 0 auto; min-height: 58px; padding: 12px 22px; }
@media (max-width: 380px) { .buybar-title { display: none; } .buybar .btn { padding: 12px 16px; } }

/* ---------- popup ---------- */
.sheet-back { position: fixed; inset: 0; z-index: 150; background: rgba(6,11,18,.55); display: none; align-items: flex-end; justify-content: center; }
.sheet-back.open { display: flex; }
.sheet { width: 100%; max-width: 600px; background: var(--paper); color: var(--ink); border-radius: 18px 18px 0 0; padding: 22px 20px calc(22px + env(safe-area-inset-bottom)); box-shadow: 0 -10px 40px rgba(0,0,0,.35); max-height: 92vh; overflow: auto; }
@media (min-width: 700px) { .sheet-back { align-items: center; } .sheet { border-radius: 18px; padding: 28px; } }
.sheet h2 { font-size: 32px; margin: 0 0 10px; }
.sheet .code-big { display: block; text-align: center; font-size: 30px; letter-spacing: .14em; padding: 12px; margin: 10px 0 18px; }
.sheet .btn + .btn { margin-top: 12px; }
.sheet-close { display: flex; justify-content: flex-end; margin: -4px 0 6px; }
.sheet-close .btn { width: auto; min-width: 130px; min-height: 52px; font-size: 19px; }

/* ---------- legal pages ---------- */
.legal { padding: 40px 0 80px; }
.legal h1 { font-size: 46px; color: var(--oxblood); }
.legal h2 { font-size: 30px; margin-top: 1.4em; color: var(--oxblood); }
.legal li { margin-bottom: .5em; }
.draft { background: #fff3cd; border: 3px solid #b8860b; color: #3d2e00; padding: 16px 18px; border-radius: 10px; font-weight: 700; margin: 0 0 26px; }
.fill { background: #fff3cd; color: #3d2e00; outline: 2px dashed #b8860b; padding: 0 4px; }
.legal .btn--ghost { background: transparent; color: var(--red); box-shadow: none; }

/* ---------- 404 ---------- */
.notfound p { color: var(--ink-2); }
.notfound-book { max-width: 220px; margin: 18px auto 30px; }
.notfound-book img { width: 100%; height: auto; border-radius: 3px; box-shadow: 0 14px 30px rgba(40, 25, 10, .25); }
.notfound .fine { font-size: var(--fs-small); margin-top: 22px; }
