/* ========== TOKENS ========== */
:root {
  --cream: #f6efe1;
  --cream-2: #f1e8d6;
  --navy: #0c1a2b;
  --navy-2: #122438;
  --navy-card: #15293f;
  --gold: #c8893d;
  --gold-light: #d89a4e;
  --amber: #d89a4e;
  --ink: #1f1b16;
  --ink-soft: #4a443c;
  --on-dark: #e9e3d6;
  --on-dark-soft: #a9b2bd;
  --sage: #dde2d4;
  --display: "Playfair Display", Georgia, serif;
  --body: "EB Garamond", Georgia, serif;
  --maxw: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--body);
  color: var(--ink);
  background: var(--cream);
  font-size: 19px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: var(--display); font-weight: 600; line-height: 1.12; }
em { font-style: italic; }
a { color: inherit; text-decoration: none; }
.center { text-align: center; }
.gold { color: var(--gold); }
.gold-italic { color: var(--gold-light); font-style: italic; }

.eyebrow {
  font-family: var(--body);
  text-transform: uppercase;
  letter-spacing: .22em;
  font-size: .72rem;
  color: var(--gold);
  margin: 0 0 1rem;
}
.eyebrow.center { letter-spacing: .25em; }

/* ========== BUTTONS ========== */
.btn {
  display: inline-block;
  font-family: var(--body);
  font-size: 1rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: .85rem 1.6rem;
  border: none;
  cursor: pointer;
}
.btn-primary { background: var(--gold); color: #fff; transition: background .2s; }
.btn-primary:hover { background: #b3792f; }

/* ========== NAV ========== */
.nav {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 1.5rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.brand { display: flex; align-items: center; gap: .6rem; }
.brand-heart { color: #c0392b; font-size: 1.4rem; }
.brand-name { font-family: var(--display); font-size: 1.25rem; }
.nav-links { display: flex; gap: 1.8rem; flex-wrap: wrap; }
.nav-links a { font-size: 1rem; transition: color .2s; }
.nav-links a:hover { color: var(--gold); }
.nav-links a.nav-cta {
  background: var(--gold); color: #fff;
  padding: .5rem 1.1rem; border-radius: 3px;
  letter-spacing: .04em; transition: background .2s;
}
.nav-links a.nav-cta:hover { background: #b3792f; color: #fff; }

/* ========== HERO ========== */
.hero {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 3rem 2rem 1rem;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 3rem;
  align-items: center;
}
.hero-title { font-size: clamp(3rem, 7vw, 5.5rem); margin: 0 0 1.5rem; }
.line-dark, .line-gold { display: block; }
.line-gold { color: var(--gold); font-style: italic; }
.hero-sub { font-size: clamp(1.4rem, 2.6vw, 2rem); margin: 0 0 1.5rem; line-height: 1.3; }
.hero-tagline { font-size: 1.6rem; font-style: italic; color: var(--gold); margin: 0 0 2rem; }

.hero-image { display: flex; justify-content: center; }
.book-placeholder {
  width: 280px; height: 380px;
  background: linear-gradient(160deg, #6c93b3, #2f5f86 55%, #1b3f5e);
  color: #f3ede0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; gap: 1rem; padding: 2rem;
  box-shadow: 18px 22px 45px rgba(0,0,0,.25);
  border-radius: 3px;
}
.book-placeholder span { font-family: var(--display); font-size: 1.4rem; letter-spacing: .05em; }
.book-placeholder small { font-size: .8rem; font-style: italic; opacity: .9; }
.book-placeholder em { letter-spacing: .25em; font-size: .85rem; margin-top: auto; }
.book-placeholder.small { width: 200px; height: 270px; }
.hero-cover {
  width: 440px; max-width: 100%; height: auto;
  box-shadow: 18px 22px 45px rgba(0,0,0,.25);
  border-radius: 3px;
}
.hero-cover.small { width: 200px; }

.about-banner {
  display: flex; justify-content: center;
  margin: 2.5rem auto 3rem; max-width: 720px;
}
.about-banner img {
  width: 100%; height: auto;
  border-radius: 3px;
  box-shadow: 18px 22px 45px rgba(0,0,0,.25);
}

.hero-quote { text-align: center; padding: 2.5rem 2rem 4rem; }
.hero-quote p { font-family: var(--display); font-style: italic; font-size: clamp(1.3rem,2.4vw,1.7rem); margin: 0 0 1.5rem; }
.scroll { font-size: .7rem; letter-spacing: .3em; color: var(--ink-soft); }

/* ========== DARK SECTIONS ========== */
.dark { background: var(--navy); color: var(--on-dark); }
.dark h2 { color: #fff; }
.dark h2 em { color: var(--on-dark-soft); font-weight: 400; }
.dark .lead { color: var(--on-dark-soft); }

.section-divider { text-align: center; padding-top: 4rem; }
.section-divider span {
  display: inline-block; color: var(--gold); font-size: 1.4rem;
  position: relative;
}
.section-divider span::before, .section-divider span::after {
  content: ""; position: absolute; top: 50%; width: 220px; height: 1px;
  background: rgba(255,255,255,.15);
}
.section-divider span::before { right: 2.2rem; }
.section-divider span::after { left: 2.2rem; }

/* ===== This Book Is For You ===== */
.for-you { padding: 0 2rem 5rem; }
.for-you h2 { font-size: clamp(2rem, 4vw, 3rem); margin: 1rem auto .5rem; }
.lead { max-width: 640px; margin: 0 auto; }
.for-you .lead { margin-bottom: 3.5rem; }

.card-grid {
  max-width: var(--maxw); margin: 0 auto;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem;
}
.card {
  border: 1px solid rgba(255,255,255,.1);
  background: rgba(255,255,255,.02);
  padding: 1.8rem;
}
.card-icon {
  width: 42px; height: 42px; display: flex; align-items: center; justify-content: center;
  background: rgba(200,137,61,.15); color: var(--gold); border-radius: 6px;
  font-size: 1.1rem; margin-bottom: 1.2rem;
}
.card h3 { color: #fff; font-size: 1.25rem; margin: 0 0 .8rem; }
.card p { color: var(--on-dark-soft); font-size: .98rem; margin: 0; }

.pull-quote {
  max-width: 760px; margin: 4rem auto 0;
  font-family: var(--display); font-style: italic; font-size: 1.5rem;
  color: var(--gold-light); line-height: 1.5;
}
.pull-quote cite {
  display: block; margin-top: 1.5rem; font-style: normal; font-family: var(--body);
  font-size: .8rem; letter-spacing: .2em; text-transform: uppercase; color: var(--on-dark-soft);
}

/* ===== Stats ===== */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem;
  max-width: none; margin: 0;
  padding: 3.5rem max(2rem, calc((100% - var(--maxw)) / 2)); text-align: center;
}
.stat-num { display: block; font-family: var(--display); font-size: 2.8rem; color: var(--gold); }
.stat strong { display: block; color: #fff; font-weight: 600; margin: .6rem 0 .3rem; font-size: 1rem; }
.stat small { color: var(--on-dark-soft); font-size: .85rem; }

/* ===== Big quote ===== */
.quote-section { text-align: center; padding: 5rem 2rem; }
.quote-heart { color: var(--gold); font-size: 1.5rem; margin-bottom: 2rem; }
.big-quote {
  max-width: 820px; margin: 0 auto; font-family: var(--display); font-style: italic;
  font-size: clamp(1.4rem, 2.6vw, 1.9rem); line-height: 1.55; color: #f2ede3;
}
.rule { width: 60px; height: 2px; background: var(--gold); margin: 2rem auto 1.2rem; }
.dark-rule { background: var(--ink); }
.quote-cite { font-family: var(--body); font-size: .78rem; letter-spacing: .22em; text-transform: uppercase; color: var(--on-dark-soft); }

/* ===== Author ===== */
.author {
  display: grid; grid-template-columns: .85fr 1.15fr; gap: 4rem;
  max-width: none; margin: 0;
  padding: 5rem max(2rem, calc((100% - var(--maxw)) / 2));
}
.author-card { text-align: left; }
.author-photo {
  width: 100%; max-width: 280px; aspect-ratio: 1/1; border: 2px solid var(--gold);
  display: flex; align-items: center; justify-content: center; color: var(--on-dark-soft);
  background: var(--navy-2); margin-bottom: 1.5rem; font-style: italic;
  overflow: hidden;
}
.author-photo img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.author-name { color: #fff; font-size: 1.4rem; margin: 0 0 .3rem; }
.author-role { color: var(--gold-light); font-style: italic; margin: 0 0 1.2rem; }
.author-pub { color: var(--on-dark-soft); font-size: .95rem; }
.author-story h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); margin: 0 0 1.5rem; }
.author-story p { color: var(--on-dark-soft); }
.author-story em { color: var(--on-dark); }

.tags { display: flex; flex-wrap: wrap; gap: .6rem; margin: 1.8rem 0; }
.tags span {
  border: 1px solid var(--gold); color: var(--gold-light);
  font-size: .8rem; padding: .35rem .8rem; border-radius: 3px;
}
.author-quote {
  background: var(--navy-card); border-left: 3px solid var(--gold);
  padding: 1.5rem 1.8rem; font-style: italic; color: var(--gold-light); margin: 0;
}
.author-quote cite { display: block; margin-top: .8rem; font-style: normal; font-size: .85rem; color: var(--on-dark-soft); }

/* ===== Community ===== */
.community {
  display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: start;
  max-width: var(--maxw); margin: 0 auto; padding: 5rem 2rem; background: var(--cream);
}
.community-photo {
  width: 100%; aspect-ratio: 4/3; position: relative;
  background: linear-gradient(135deg, #c9a878, #9c7b4e);
  border-radius: 2px; overflow: hidden;
}
.community-photo img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.badge {
  position: absolute; top: 1rem; left: 1rem; background: var(--gold); color: #fff;
  font-size: .72rem; letter-spacing: .15em; text-transform: uppercase; padding: .4rem .8rem;
}
.community-text h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); margin: 0 0 1rem; }
.community-text h2 em { color: var(--ink-soft); font-weight: 400; }
.community-text .lead { margin: 0 0 1.8rem; color: var(--ink-soft); text-align: left; max-width: none; }

.resource {
  display: grid; grid-template-columns: 1fr auto; row-gap: .25rem;
  background: #fff; border: 1px solid var(--cream-2); padding: 1rem 1.2rem; margin-bottom: .9rem;
  transition: box-shadow .2s;
}
.resource:hover { box-shadow: 0 6px 18px rgba(0,0,0,.06); }
.res-cat { grid-column: 1; font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; color: var(--gold); }
.resource strong { grid-column: 1; font-family: var(--display); color: var(--navy); font-size: 1.05rem; }
.res-desc { grid-column: 1; color: var(--ink-soft); font-size: .9rem; }
.res-link { grid-column: 2; grid-row: 1 / span 3; align-self: center; color: var(--gold); font-size: 1.1rem; }

/* ===== Amber quote ===== */
.amber-quote { background: var(--amber); text-align: center; padding: 4.5rem 2rem; }
.amber-heart { color: var(--ink); font-size: 1.4rem; margin-bottom: 1.5rem; }
.amber-quote blockquote {
  max-width: 760px; margin: 0 auto; font-family: var(--display);
  font-size: clamp(1.4rem, 2.6vw, 1.9rem); line-height: 1.5; color: var(--ink);
}
.amber-quote em { font-style: italic; }

/* ===== Get the book ===== */
.get {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 4rem; align-items: start;
  max-width: var(--maxw); margin: 0 auto; padding: 5rem 2rem; background: var(--cream);
}
.get h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); margin: 0 0 1rem; }
.get h2 em { color: var(--ink-soft); font-weight: 400; }
.get .lead { text-align: left; max-width: none; margin: 0 0 1.8rem; color: var(--ink-soft); }

.checklist { list-style: none; padding: 0; margin: 0 0 2.5rem; }
.checklist li { position: relative; padding-left: 1.8rem; margin-bottom: .7rem; color: var(--ink); }
.checklist li::before {
  content: "\2713"; position: absolute; left: 0; top: 0;
  color: var(--gold); font-weight: 700;
  background: rgba(200,137,61,.15); width: 1.2rem; height: 1.2rem;
  display: flex; align-items: center; justify-content: center; font-size: .75rem; border-radius: 3px;
}

.signup { background: var(--navy); color: var(--on-dark); padding: 1.8rem; }
.signup-title { font-family: var(--display); color: #fff; font-size: 1.2rem; margin: 0 0 .5rem; }
.signup-sub { color: var(--on-dark-soft); margin: 0 0 1.2rem; font-size: .95rem; }
.signup-row { display: flex; gap: .6rem; }
.signup-row input {
  flex: 1; padding: .75rem 1rem; border: 1px solid rgba(255,255,255,.2);
  background: var(--navy-2); color: #fff; font-family: var(--body); font-size: 1rem;
}
.signup-row input::placeholder { color: var(--on-dark-soft); }
.signup-fine { color: var(--on-dark-soft); font-size: .8rem; margin: 1rem 0 0; }

.get-aside { display: flex; flex-direction: column; align-items: center; gap: 2rem; }
.gift { background: var(--sage); padding: 1.8rem; text-align: center; }
.gift .eyebrow { color: var(--ink-soft); }
.gift h4 { font-size: 1.3rem; margin: 0 0 .8rem; color: var(--navy); }
.gift p { color: var(--ink-soft); font-size: .95rem; margin: 0; }

/* ===== Footer ===== */
.footer { background: var(--navy); color: var(--on-dark-soft); }
.footer-cols {
  max-width: var(--maxw); margin: 0 auto; padding: 4rem 2rem 2rem;
  display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 3rem;
}
.footer-brand .brand { margin: 0 0 1rem; }
.footer-brand p { font-size: .95rem; max-width: 320px; }
.copyright { color: var(--on-dark-soft); opacity: .7; font-size: .85rem; margin-top: 1.5rem; }
.footer-head { color: var(--gold); text-transform: uppercase; letter-spacing: .15em; font-size: .75rem; margin: 0 0 1.2rem; }
.footer-col a { display: block; margin-bottom: .7rem; font-size: .95rem; transition: color .2s; }
.footer-col a:hover { color: var(--on-dark); }
.footer-bar {
  border-top: 1px solid rgba(255,255,255,.1); max-width: var(--maxw); margin: 0 auto;
  padding: 1.5rem 2rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  font-size: .8rem;
}
.footer-url { white-space: nowrap; }

/* ========== RESPONSIVE ========== */
@media (max-width: 900px) {
  .hero, .author, .community, .get { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero-image, .get-aside { order: -1; }
  .card-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
  .footer-cols { grid-template-columns: 1fr; gap: 2.5rem; }
  .section-divider span::before, .section-divider span::after { width: 80px; }
  .nav { justify-content: center; text-align: center; }
}
@media (max-width: 480px) {
  .stats { grid-template-columns: 1fr; }
  .signup-row { flex-direction: column; }
}

/* Accessibility: visible focus + reduced motion */
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 2px solid var(--gold); outline-offset: 2px;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
