/* =========================================================
   Gender Transition in Minors — landing page
   Palette + type sampled from the book cover
   ========================================================= */

:root {
  /* Blues sampled from the cover */
  --navy-950: #06122a;
  --navy-900: #0a1c3a;
  --navy-850: #0d2347;
  --navy-800: #102a52;
  --navy-700: #173a6b;
  --navy-600: #21507f;

  /* Warm gradient sampled from the cover symbol */
  --peach: #f6c89a;
  --amber: #e8915a;
  --amber-deep: #d97a45;
  --warm-grad: linear-gradient(135deg, var(--peach), var(--amber));

  /* Paper / light surfaces */
  --paper: #f8f5ef;
  --paper-2: #efe8db;
  --paper-line: #e3dccd;

  /* Ink / text */
  --ink: #0c1730;
  --ink-soft: #33405c;
  --ink-mute: #5c6884;
  --on-dark: #eef2fb;
  --on-dark-soft: #aebbd6;
  --on-dark-mute: #7e8cae;

  --maxw: 1180px;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow-cover: 0 40px 80px -24px rgba(0, 0, 0, .65), 0 8px 24px -8px rgba(0, 0, 0, .5);
  --shadow-card: 0 18px 40px -22px rgba(12, 23, 48, .35);

  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { line-height: 1.1; font-weight: 700; letter-spacing: -0.01em; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 24px; }

.eyebrow {
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--amber-deep);
}
.eyebrow.on-dark { color: var(--peach); }

section { position: relative; }
.section-pad { padding-block: clamp(64px, 9vw, 120px); }

/* =========================================================
   Buttons
   ========================================================= */
.btn {
  --bg: var(--warm-grad);
  display: inline-flex;
  align-items: center;
  gap: .6em;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1;
  padding: 15px 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease, border-color .18s ease;
  white-space: nowrap;
}
.btn svg { width: 1.15em; height: 1.15em; flex: none; }
.btn--amazon {
  background: var(--warm-grad);
  color: #2a1606;
  box-shadow: 0 14px 30px -12px rgba(232, 145, 90, .8);
  font-weight: 700;
}
.btn--amazon:hover { transform: translateY(-2px); box-shadow: 0 20px 38px -12px rgba(232, 145, 90, .95); }
.btn--bn {
  background: transparent;
  color: var(--on-dark);
  border-color: rgba(255, 255, 255, .35);
}
.btn--bn:hover { transform: translateY(-2px); border-color: var(--peach); color: #fff; background: rgba(255,255,255,.06); }

/* light-context variants */
.on-light .btn--bn { color: var(--ink); border-color: rgba(12, 23, 48, .25); }
.on-light .btn--bn:hover { border-color: var(--amber-deep); color: var(--amber-deep); background: rgba(232,145,90,.06); }

.btn--sm { padding: 11px 18px; font-size: .92rem; }

/* =========================================================
   Header
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(6, 18, 42, .72);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 66px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--on-dark);
  font-weight: 700;
  letter-spacing: .02em;
}
.brand .mark { width: 26px; height: 26px; flex: none; }
.brand b { font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; }
.brand span { color: var(--on-dark-mute); font-weight: 500; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav-links a {
  color: var(--on-dark-soft);
  font-size: .9rem;
  font-weight: 500;
  transition: color .15s ease;
}
.nav-links a:hover { color: #fff; }
.nav-links { display: flex; gap: 28px; }
@media (max-width: 860px) { .nav-links { display: none; } }

/* =========================================================
   Hero
   ========================================================= */
.hero {
  position: relative;
  color: var(--on-dark);
  background:
    radial-gradient(120% 90% at 80% -10%, rgba(232, 145, 90, .22), transparent 55%),
    radial-gradient(90% 80% at 0% 0%, rgba(33, 80, 127, .55), transparent 60%),
    linear-gradient(180deg, var(--navy-900) 0%, var(--navy-950) 100%);
  overflow: hidden;
}
.hero::after {
  /* subtle texture/vignette */
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(120% 70% at 50% 120%, rgba(0,0,0,.45), transparent 60%);
  pointer-events: none;
}
.hero .wrap {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  padding-block: clamp(56px, 8vw, 104px);
}
.hero-copy { max-width: 620px; }
.hero h1 {
  font-family: var(--sans);
  font-weight: 800;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  line-height: .98;
  margin-top: 18px;
  color: #fff;
}
.hero .subtitle {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.15rem, 2.2vw, 1.55rem);
  color: var(--peach);
  margin-top: 16px;
  letter-spacing: .01em;
}
.hero .subtitle::before { content: ""; display: inline-block; width: 46px; height: 1px; background: rgba(246,200,154,.6); vertical-align: middle; margin-right: 14px; }
.byline {
  margin-top: 22px;
  font-size: 1.02rem;
  color: var(--on-dark-soft);
}
.byline b { color: #fff; font-weight: 600; }
.hero-hook {
  margin-top: 24px;
  font-size: 1.08rem;
  color: var(--on-dark-soft);
  max-width: 540px;
}
.hero-hook strong { color: #fff; font-weight: 600; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.hero-foot {
  margin-top: 22px;
  font-size: .9rem;
  color: var(--on-dark-mute);
  display: flex; align-items: center; gap: 10px;
}
.hero-foot::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--amber); flex: none; }

/* Cover presentation */
.cover-stage {
  display: flex;
  justify-content: center;
  perspective: 1600px;
}
.cover {
  position: relative;
  width: min(360px, 78%);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: var(--shadow-cover);
  transform: rotateY(-13deg) rotateX(3deg) rotateZ(.5deg);
  transition: transform .5s cubic-bezier(.2,.7,.2,1);
}
.cover::after {
  /* spine + sheen */
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(255,255,255,.32) 0%, rgba(255,255,255,0) 14%),
              linear-gradient(90deg, rgba(0,0,0,.28) 0%, rgba(0,0,0,0) 7%);
  pointer-events: none;
}
.cover img { width: 100%; }
.cover-stage:hover .cover { transform: rotateY(-6deg) rotateX(2deg); }
.cover-glow {
  position: absolute;
  inset: auto 0 -6% 0;
  height: 60px;
  filter: blur(26px);
  background: radial-gradient(60% 100% at 50% 50%, rgba(232,145,90,.55), transparent 70%);
  z-index: -1;
}

@media (max-width: 880px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .cover-stage { order: -1; margin-bottom: 8px; }
  .cover { transform: none; width: min(300px, 70%); }
  .cover-stage:hover .cover { transform: none; }
  .hero-copy { max-width: none; }
}

/* =========================================================
   Marquee / availability strip
   ========================================================= */
.avail {
  background: var(--navy-950);
  color: var(--on-dark-soft);
  border-top: 1px solid rgba(255,255,255,.06);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.avail .wrap {
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap;
  gap: 14px 34px; padding-block: 18px; font-size: .9rem;
}
.avail .item { display: flex; align-items: center; gap: 9px; }
.avail .item svg { width: 17px; height: 17px; color: var(--peach); }
.avail .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--on-dark-mute); }
@media (max-width: 720px) { .avail .dot { display: none; } }

/* =========================================================
   The Case (about)
   ========================================================= */
.case { background: var(--paper); }
.case .grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
}
.pullquote {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.9rem, 3.6vw, 2.9rem);
  line-height: 1.12;
  letter-spacing: -0.015em;
  color: var(--ink);
}
.pullquote em { font-style: italic; color: var(--amber-deep); }
.pullquote .small { display:block; font-family: var(--sans); font-weight:700; font-size:.8rem; letter-spacing:.2em; text-transform:uppercase; color: var(--ink-mute); margin-bottom: 20px; }
.prose p { color: var(--ink-soft); margin-bottom: 18px; font-size: 1.06rem; }
.prose p:last-child { margin-bottom: 0; }
.prose strong { color: var(--ink); font-weight: 650; }
.prose .lead { font-size: 1.18rem; color: var(--ink); }
@media (max-width: 820px) { .case .grid { grid-template-columns: 1fr; gap: 28px; } }

/* =========================================================
   Stats
   ========================================================= */
.stats { background: var(--paper-2); border-top: 1px solid var(--paper-line); border-bottom: 1px solid var(--paper-line); }
.stats .wrap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; padding-block: 46px; }
.stat { text-align: center; padding: 6px 8px; }
.stat .n { font-family: var(--serif); font-weight: 700; font-size: clamp(2rem, 4vw, 2.8rem); color: var(--ink); line-height: 1; }
.stat .n span { color: var(--amber-deep); }
.stat .l { margin-top: 10px; font-size: .82rem; color: var(--ink-mute); letter-spacing: .02em; }
.stat + .stat { border-left: 1px solid var(--paper-line); }
@media (max-width: 760px) {
  .stats .wrap { grid-template-columns: repeat(2, 1fr); gap: 28px 0; }
  .stat:nth-child(odd) { border-left: none; }
  .stat:nth-child(3), .stat:nth-child(4) { padding-top: 22px; }
}

/* =========================================================
   Inside the book (TOC)
   ========================================================= */
.inside {
  color: var(--on-dark);
  background:
    radial-gradient(100% 80% at 100% 0%, rgba(33,80,127,.45), transparent 55%),
    linear-gradient(180deg, var(--navy-900), var(--navy-950));
}
.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head h2 {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3rem);
  margin-top: 14px;
  letter-spacing: -0.02em;
}
.inside .section-head h2 { color: #fff; }
.section-head p { margin-top: 16px; font-size: 1.08rem; }
.inside .section-head p { color: var(--on-dark-soft); }

.toc-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.chapter {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  padding: 24px 26px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, .035);
  border: 1px solid rgba(255, 255, 255, .08);
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}
.chapter:hover { transform: translateY(-3px); background: rgba(255,255,255,.06); border-color: rgba(246,200,154,.35); }
.chapter .num {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.5rem;
  line-height: 1;
  background: var(--warm-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  min-width: 1.6em;
}
.chapter h3 { font-size: 1.12rem; color: #fff; font-weight: 650; letter-spacing: -0.005em; }
.chapter p { margin-top: 7px; font-size: .94rem; color: var(--on-dark-soft); line-height: 1.55; }
@media (max-width: 800px) { .toc-grid { grid-template-columns: 1fr; } }

/* =========================================================
   Audience
   ========================================================= */
.audience { background: var(--paper); }
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 44px; }
.aud-card {
  background: #fff;
  border: 1px solid var(--paper-line);
  border-radius: var(--radius);
  padding: 30px 28px;
  box-shadow: var(--shadow-card);
}
.aud-card .ic {
  width: 48px; height: 48px; border-radius: 12px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(246,200,154,.35), rgba(232,145,90,.18));
  color: var(--amber-deep);
  margin-bottom: 18px;
}
.aud-card .ic svg { width: 24px; height: 24px; }
.aud-card h3 { font-family: var(--serif); font-size: 1.3rem; color: var(--ink); }
.aud-card p { margin-top: 10px; color: var(--ink-soft); font-size: 1rem; }
.audience .closing { margin-top: 40px; text-align: center; font-family: var(--serif); font-style: italic; font-size: clamp(1.2rem,2.4vw,1.6rem); color: var(--ink); }
.audience .closing span { color: var(--amber-deep); }
@media (max-width: 820px) { .cards-3 { grid-template-columns: 1fr; } }

/* =========================================================
   People (author + contributor)
   ========================================================= */
.people { background: var(--navy-950); color: var(--on-dark); }
.person { display: grid; grid-template-columns: 280px 1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.person + .person { margin-top: 72px; padding-top: 72px; border-top: 1px solid rgba(255,255,255,.09); }
.portrait {
  position: relative;
  aspect-ratio: 1;
  border-radius: var(--radius);
  display: grid;
  place-items: center;
  background:
    radial-gradient(120% 120% at 30% 20%, rgba(33,80,127,.9), var(--navy-850));
  border: 1px solid rgba(255,255,255,.1);
  overflow: hidden;
}
.portrait .monogram {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 4.6rem;
  background: var(--warm-grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  letter-spacing: .02em;
}
.portrait img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 18%;
}
.portrait .ring { position: absolute; inset: 14px; border: 1px solid rgba(246,200,154,.25); border-radius: calc(var(--radius) - 6px); z-index: 1; pointer-events: none; }
.person .role { color: var(--peach); }
.person h3 { font-family: var(--serif); font-size: clamp(1.7rem, 3vw, 2.3rem); color: #fff; margin-top: 10px; }
.person .creds { margin-top: 6px; color: var(--on-dark-mute); font-size: .95rem; }
.person .bio { margin-top: 20px; }
.person .bio p { color: var(--on-dark-soft); margin-bottom: 15px; }
.person .bio p:last-child { margin-bottom: 0; }
.person .bio strong { color: #fff; font-weight: 600; }
.facts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.facts .tag {
  font-size: .82rem; font-weight: 500;
  padding: 7px 13px; border-radius: 999px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.12);
  color: var(--on-dark-soft);
}
.facts .tag b { color: var(--peach); font-weight: 600; }
@media (max-width: 720px) {
  .person { grid-template-columns: 1fr; }
  .portrait { width: 200px; }
}

/* =========================================================
   Foreword quote
   ========================================================= */
.foreword {
  background: var(--paper-2);
  text-align: center;
}
.foreword .wrap { max-width: 900px; }
.foreword .mark { font-family: var(--serif); font-size: 5rem; line-height: .6; color: var(--amber); height: 40px; }
.foreword blockquote {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 3.2vw, 2.3rem);
  line-height: 1.28;
  color: var(--ink);
  font-weight: 500;
  margin: 18px 0 26px;
}
.foreword blockquote em { color: var(--amber-deep); font-style: italic; }
.foreword cite {
  font-style: normal;
  font-size: .92rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.foreword cite b { color: var(--ink); }

/* =========================================================
   Pastor endorsement
   ========================================================= */
.endorsement {
  background: linear-gradient(180deg, var(--navy-950), var(--navy-900));
  color: var(--on-dark);
}
.endorsement-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
.endorsement-quote blockquote {
  margin-top: 18px;
}
.endorsement-quote blockquote p {
  font-size: 1.08rem;
  line-height: 1.7;
  color: var(--on-dark-soft);
  margin-bottom: 16px;
}
.endorsement-quote .endorsement-punch {
  font-family: var(--serif);
  font-size: clamp(1.25rem, 2.4vw, 1.6rem);
  line-height: 1.35;
  font-weight: 600;
  color: var(--peach);
}
.endorsement-quote cite {
  font-style: normal;
  font-size: .92rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--on-dark-mute);
}
.endorsement-quote cite b { color: var(--on-dark); }
.endorsement-art img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-cover);
}
@media (max-width: 820px) {
  .endorsement-grid { grid-template-columns: 1fr; }
  .endorsement-art { max-width: 440px; margin-inline: auto; }
}

/* =========================================================
   Final CTA
   ========================================================= */
.final {
  color: var(--on-dark);
  background:
    radial-gradient(110% 120% at 80% 0%, rgba(232,145,90,.28), transparent 50%),
    linear-gradient(180deg, var(--navy-850), var(--navy-950));
}
.final .wrap { display: grid; grid-template-columns: auto 1fr; gap: clamp(32px, 6vw, 72px); align-items: center; }
.final .cover-mini {
  width: 200px; border-radius: 5px; overflow: hidden;
  box-shadow: var(--shadow-cover);
  transform: rotate(-3deg);
}
.final h2 { font-family: var(--serif); font-size: clamp(2rem, 4.5vw, 3.2rem); color: #fff; letter-spacing: -0.02em; }
.final p { margin-top: 16px; color: var(--on-dark-soft); font-size: 1.1rem; max-width: 560px; }
.final .cta-row { margin-top: 30px; }
.final .meta { margin-top: 20px; font-size: .86rem; color: var(--on-dark-mute); }
@media (max-width: 720px) {
  .final .wrap { grid-template-columns: 1fr; text-align: center; }
  .final .cover-mini { margin: 0 auto; }
  .final .cta-row { justify-content: center; }
}

/* =========================================================
   Footer
   ========================================================= */
.site-footer { background: var(--navy-950); color: var(--on-dark-mute); border-top: 1px solid rgba(255,255,255,.07); }
.site-footer .wrap { padding-block: 52px; }
.foot-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 28px; }
.foot-brand { max-width: 360px; }
.foot-brand .brand { margin-bottom: 14px; }
.foot-brand p { font-size: .9rem; line-height: 1.6; }
.foot-meta { display: grid; gap: 8px; font-size: .85rem; }
.foot-meta .k { color: var(--on-dark-soft); }
.foot-meta b { color: var(--peach); font-weight: 600; }
.disclaimer {
  margin-top: 36px; padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.07);
  font-size: .78rem; line-height: 1.65; color: #61708f;
}
.disclaimer + .copyright { margin-top: 14px; }
.copyright { font-size: .8rem; color: #56648a; }
.copyright b { color: var(--on-dark-soft); font-weight: 500; }

/* =========================================================
   Scroll reveal
   Visible by default (safe if JS fails). JS adds .pre only to
   off-screen elements, then .in reveals them on scroll.
   ========================================================= */
.reveal { transition: opacity .7s ease, transform .7s ease; }
.reveal.pre { opacity: 0; transform: translateY(22px); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal.pre { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  .cover { transform: none !important; }
}
