/* ==========================================
   ChapterOne — Theme CSS
   ========================================== */

:root {
  --bg: #faf8f5;
  --bg-alt: #f2ede5;
  --fg: #1e1e1e;
  --fg-muted: #6b6b6b;
  --green: #1e3a2e;
  --green-light: #2d5240;
  --gold: #b8862a;
  --gold-light: #d4a843;
  --cream: #faf8f5;
  --border: #e2ddd6;
  --white: #ffffff;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: 'Source Sans 3', system-ui, sans-serif;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ── Typography ── */
h1, h2, h3, h4 {
  font-family: 'Playfair Display', Georgia, serif;
  line-height: 1.15;
  font-weight: 700;
}

/* ── Site Header ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 248, 245, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--green);
  letter-spacing: -0.02em;
}

nav {
  display: flex;
  gap: 2rem;
}

nav a {
  color: var(--fg-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: color 0.2s;
}

nav a:hover { color: var(--green); }

/* ── Section Commons ── */
.section-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  color: var(--green);
  margin-bottom: 3rem;
}

/* ── Hero ── */
.hero {
  padding: 5rem 0 4rem;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-kicker {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}

.hero-headline {
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  color: var(--green);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--fg-muted);
  line-height: 1.65;
  max-width: 420px;
}

/* Hero visual: book stack + tagline */
.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3rem;
}

.book-stack {
  display: flex;
  gap: 10px;
  align-items: flex-end;
}

.book {
  border-radius: 3px 6px 6px 3px;
  box-shadow: 4px 4px 16px rgba(30, 58, 46, 0.18), -2px 0 8px rgba(0,0,0,0.08);
  transition: transform 0.3s ease;
}

.book:hover { transform: translateY(-8px); }

.book-1 { width: 28px; height: 180px; background: #2d5240; }
.book-2 { width: 36px; height: 160px; background: #b8862a; }
.book-3 { width: 26px; height: 195px; background: #1e3a2e; }
.book-4 { width: 32px; height: 140px; background: #8b5e3c; }
.book-5 { width: 22px; height: 170px; background: #c4a35a; }

.hero-tagline {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.tagline-line {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--green);
  opacity: 0.7;
}

.tagline-line:nth-child(1) { opacity: 1; }
.tagline-line:nth-child(2) { opacity: 0.8; }
.tagline-line:nth-child(3) { opacity: 0.6; }

/* ── Curated (Three Stacks) ── */
.curated {
  padding: 5rem 0;
  background: var(--white);
}

.curated .section-title { margin-bottom: 2.5rem; }

.stacks-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}

.stack-card {
  padding: 3rem 2.5rem;
  position: relative;
}

.stack-life { background: #f0f5f1; }
.stack-health { background: #f5f0ec; }
.stack-money { background: #f0f2f5; }

.stack-icon {
  color: var(--green);
  margin-bottom: 1.5rem;
}

.stack-card h3 {
  font-size: 1.6rem;
  color: var(--green);
  margin-bottom: 0.75rem;
}

.stack-card p {
  color: var(--fg-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.stack-topics {
  list-style: none;
  border-top: 1px solid var(--border);
  padding-top: 1rem;
}

.stack-topics li {
  font-size: 0.88rem;
  color: var(--fg-muted);
  padding: 0.35rem 0;
  border-bottom: 1px solid var(--border);
}

.stack-topics li:last-child { border-bottom: none; }

/* ── Why Us ── */
.why {
  padding: 5rem 0;
  background: var(--bg-alt);
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
}

.why-item { }

.why-num {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--gold);
  opacity: 0.5;
  margin-bottom: 0.75rem;
  line-height: 1;
}

.why-item h3 {
  font-size: 1.2rem;
  color: var(--green);
  margin-bottom: 0.75rem;
}

.why-item p {
  color: var(--fg-muted);
  font-size: 0.95rem;
  line-height: 1.65;
}

/* ── Manifesto ── */
.manifesto {
  padding: 5rem 0;
  background: var(--green);
  color: var(--cream);
}

.manifesto-inner {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 2rem;
  text-align: center;
}

.manifesto-quote {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-style: italic;
  color: var(--cream);
  line-height: 1.4;
  margin-bottom: 2rem;
}

.manifesto-body {
  font-size: 1.05rem;
  color: rgba(250, 248, 245, 0.75);
  line-height: 1.7;
  max-width: 620px;
  margin: 0 auto 3rem;
}

.manifesto-divider {
  width: 48px;
  height: 2px;
  background: var(--gold);
  margin: 0 auto 3rem;
}

.manifesto-stats {
  display: flex;
  justify-content: center;
  gap: 4rem;
}

.stat { text-align: center; }

.stat-num {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 0.4rem;
}

.stat-label {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(250, 248, 245, 0.6);
}

/* ── Closing ── */
.closing {
  padding: 5rem 0;
  background: var(--bg);
  text-align: center;
}

.closing-inner {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 2rem;
}

.closing-headline {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  color: var(--green);
  margin-bottom: 1rem;
}

.closing-sub {
  font-size: 1.1rem;
  color: var(--fg-muted);
}

/* ── Footer ── */
.site-footer {
  background: var(--green);
  color: var(--cream);
  padding: 4rem 0 2rem;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  margin-bottom: 3rem;
}

.footer-brand .footer-logo {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--cream);
  margin-bottom: 0.75rem;
}

.footer-brand p {
  font-size: 0.9rem;
  color: rgba(250, 248, 245, 0.6);
  line-height: 1.5;
}

.footer-links {
  display: flex;
  gap: 3rem;
  justify-content: flex-end;
}

.footer-col h4 {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(250, 248, 245, 0.5);
  margin-bottom: 1rem;
}

.footer-col a {
  display: block;
  color: rgba(250, 248, 245, 0.75);
  text-decoration: none;
  font-size: 0.9rem;
  padding: 0.3rem 0;
  transition: color 0.2s;
}

.footer-col a:hover { color: var(--gold-light); }

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem 2rem 0;
  border-top: 1px solid rgba(250, 248, 245, 0.12);
}

.footer-bottom p {
  font-size: 0.8rem;
  color: rgba(250, 248, 245, 0.4);
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .hero-visual { justify-content: flex-start; }

  .stacks-grid {
    grid-template-columns: 1fr;
    gap: 1px;
  }

  .why-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .manifesto-stats {
    gap: 2rem;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-links { justify-content: flex-start; }
}

@media (max-width: 600px) {
  nav { display: none; }

  .hero { padding: 3rem 0; }

  .manifesto-stats {
    flex-direction: column;
    gap: 1.5rem;
  }
}