:root {
  --gold: #b8861c;
  --gold-dark: #8f6812;
  --gold-soft: #f3e8cf;
  --ink: #23201b;
  --ink-soft: #5b544a;
  --cream: #faf6ee;
  --paper: #ffffff;
  --line: #e7dfcf;
  --serif: "Crimson Pro", Georgia, "Times New Roman", serif;
  --sans: "Source Sans 3", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --radius: 14px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.2rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold-dark); }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 720px; }
.center { text-align: center; margin-left: auto; margin-right: auto; }
.muted { color: var(--ink-soft); }

h1, h2, h3 { line-height: 1.15; margin: 0 0 .6em; font-weight: 700; }
h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1.1em; }

.eyebrow {
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .8rem;
  font-weight: 700;
  color: var(--gold-dark);
  margin-bottom: .9em;
}

/* Buttons */
.btn {
  display: inline-block;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
  color: #fff;
  background: var(--gold);
  padding: .85em 1.6em;
  border-radius: 999px;
  border: 2px solid var(--gold);
  box-shadow: 0 6px 18px rgba(184, 134, 28, .28);
  transition: background .2s, transform .2s, box-shadow .2s;
}
.btn:hover { background: var(--gold-dark); border-color: var(--gold-dark); transform: translateY(-1px); }
.btn:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.btn--ghost { background: transparent; color: var(--gold-dark); box-shadow: none; }
.btn--ghost:hover { background: var(--gold-soft); color: var(--gold-dark); }
.btn--small { font-size: .9rem; padding: .5em 1.1em; box-shadow: none; }
.btn--light { background: #fff; color: var(--gold-dark); border-color: #fff; box-shadow: 0 6px 18px rgba(0,0,0,.15); }
.btn--light:hover { background: var(--gold-soft); border-color: var(--gold-soft); color: var(--gold-dark); }

/* Top bar */
.topbar {
  position: sticky; top: 0; z-index: 10;
  background: rgba(250, 246, 238, .9);
  backdrop-filter: saturate(1.4) blur(8px);
  -webkit-backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--line);
}
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 60px; }
.brand { font-family: var(--serif); font-weight: 700; font-size: 1.2rem; color: var(--ink); text-decoration: none; letter-spacing: .02em; }

/* Hero */
.hero {
  padding: clamp(40px, 8vw, 96px) 0 clamp(56px, 9vw, 110px);
  background:
    radial-gradient(ellipse at 75% 40%, rgba(184,134,28,.13), transparent 60%),
    var(--cream);
}
.hero__inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.hero h1 {
  margin: 0 0 .5em;
  font-size: clamp(1.5rem, 2.6vw, 1.9rem);
  letter-spacing: .03em;
  color: var(--gold);
}
.hero__hook {
  font-size: clamp(2.3rem, 4.6vw, 3.5rem);
  font-weight: 700;
  line-height: 1.1;
  margin: 0 0 .55em;
  max-width: 13em;
  text-wrap: balance;
}
.lede { font-size: clamp(1.2rem, 2.2vw, 1.4rem); color: var(--ink-soft); max-width: 30em; margin-bottom: 1.6em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }

.hero__cover { display: flex; justify-content: center; }
.hero__cover picture { display: block; max-width: 460px; width: 100%; }

/* Sections */
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section--tint { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
#about h2 { font-size: clamp(1.8rem, 4.2vw, 2.6rem); }
.sprig { width: 96px; height: auto; margin: 0 0 18px -6px; }
.sprig--light { margin: 0 auto 18px; filter: brightness(0) invert(1); opacity: .85; }

.card {
  margin-top: 2.2em;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(22px, 4vw, 36px);
  box-shadow: 0 10px 30px -18px rgba(60, 40, 10, .25);
}
.card h3 { font-family: var(--sans); font-size: 1.05rem; text-transform: uppercase; letter-spacing: .1em; color: var(--gold-dark); }
.checks { list-style: none; padding: 0; margin: 0; }
.checks li { position: relative; padding-left: 2em; margin: .55em 0; }
.checks li::before {
  content: "";
  position: absolute; left: 0; top: .42em;
  width: 1.1em; height: 1.1em; border-radius: 50%;
  background: var(--gold-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3 3 7-7' fill='none' stroke='%238f6812' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/70% no-repeat;
}

/* Quote band */
.quote-band { background: var(--ink); color: #fff; padding: clamp(56px, 8vw, 96px) 0; text-align: center; }
.quote-band blockquote { margin: 0; }
.quote-band p {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-style: italic;
  line-height: 1.35;
  margin: 0;
}
.quote-band p::before { content: "\201C"; display: block; font-size: 4rem; line-height: .6; color: var(--gold); font-style: normal; margin-bottom: .1em; }

/* Parts grid */
.parts {
  list-style: none; padding: 0; margin: 48px 0 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.parts li {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px 24px;
}
.parts__num {
  display: inline-grid; place-items: center;
  width: 2.4rem; height: 2.4rem; border-radius: 50%;
  background: var(--gold-soft); color: var(--gold-dark);
  font-weight: 700; font-size: 1rem; margin-bottom: 14px;
}
.parts h3 { margin-bottom: .35em; }
.parts p { margin: 0; color: var(--ink-soft); font-size: 1.1rem; }

/* Lines from the book */
.lines { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 40px; }
.lines figure {
  margin: 0;
  padding: 26px 28px;
  border-left: 3px solid var(--gold);
  background: var(--cream);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.lines blockquote { margin: 0; font-size: 1.3rem; font-style: italic; line-height: 1.45; }

/* Author */
.author { display: grid; grid-template-columns: 320px 1fr; gap: clamp(32px, 6vw, 72px); align-items: start; }
.author__photo img { border-radius: var(--radius); box-shadow: 0 18px 40px -16px rgba(60, 40, 10, .35); }

/* Final CTA */
.final {
  background: linear-gradient(135deg, #b8861c, #9a6f14);
  color: #fff;
  padding: clamp(64px, 9vw, 104px) 0;
}
.final h2 { color: #fff; }
.final p { font-size: 1.3rem; opacity: .92; margin-bottom: 1.6em; }

/* Footer */
.footer { background: var(--ink); color: rgba(255,255,255,.75); font-family: var(--sans); font-size: .95rem; padding: 28px 0; }
.footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }
.footer p { margin: 0; }
.footer a { color: #fff; }

/* Responsive */
@media (max-width: 860px) {
  .hero__inner { grid-template-columns: 1fr; text-align: center; }
  .hero__text { order: 2; }
  .hero__cover { order: 1; }
  .hero__cover picture { max-width: 320px; }
  .hero__hook { margin-left: auto; margin-right: auto; }
  .lede { margin-left: auto; margin-right: auto; }
  .cta-row { justify-content: center; }
  .parts { grid-template-columns: 1fr 1fr; }
  .author { grid-template-columns: 1fr; }
  .author__photo { max-width: 260px; margin: 0 auto; }
  .author__text { text-align: left; }
}
@media (max-width: 560px) {
  body { font-size: 1.12rem; }
  .parts, .lines { grid-template-columns: 1fr; }
  .brand { font-size: 1.05rem; }
  .cta-row .btn { width: 100%; text-align: center; }
  .footer__inner { flex-direction: column; text-align: center; }
}

/* "Coming soon" state for buy buttons (until AMAZON_URL is set) */
.btn[aria-disabled="true"] { cursor: default; pointer-events: none; opacity: .75; box-shadow: none; }
.btn--light[aria-disabled="true"] { opacity: .9; }
