:root {
  --bg: #f3efe8;
  --paper: #fbf8f2;
  --ink: #18201f;
  --muted: #68706d;
  --line: #d9d2c7;
  --accent: #b85e3b;
  --accent-dark: #8e4328;
  --green: #264a43;
  --max: 1180px;
  --serif: "Libre Caslon Display", Georgia, serif;
  --sans: "DM Sans", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.6;
}

a { color: inherit; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 1rem max(1.25rem, calc((100vw - var(--max)) / 2));
  background: rgba(243, 239, 232, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(217, 210, 199, 0.9);
}

.brand {
  font-family: var(--serif);
  font-size: 1.35rem;
  text-decoration: none;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav a {
  text-decoration: none;
  font-size: 0.92rem;
}

.nav-cta {
  border: 1px solid var(--ink);
  padding: 0.65rem 1rem;
  border-radius: 999px;
}

.menu-toggle {
  display: none;
  border: 0;
  background: transparent;
  font: inherit;
}

.section {
  width: min(var(--max), calc(100% - 2.5rem));
  margin: 0 auto;
  padding: 6rem 0;
}

.hero {
  min-height: 82vh;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 5rem;
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--accent-dark);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

h1, h2, h3, p { margin-top: 0; }

h1, h2 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 0.98;
}

h1 {
  margin-bottom: 1.5rem;
  font-size: clamp(4.4rem, 9vw, 8.7rem);
  letter-spacing: -0.055em;
}

h2 {
  margin-bottom: 1.5rem;
  font-size: clamp(2.6rem, 5vw, 5.4rem);
  letter-spacing: -0.04em;
}

h3 {
  margin-bottom: 0.65rem;
  font-size: 1.15rem;
}

.hero-text {
  max-width: 650px;
  color: var(--muted);
  font-size: 1.2rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 50px;
  padding: 0.8rem 1.3rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
}

.primary {
  background: var(--accent);
  color: white;
}

.primary:hover { background: var(--accent-dark); }

.secondary {
  border: 1px solid var(--line);
  background: var(--paper);
}

.disabled { opacity: 0.62; pointer-events: none; }

.book-mockup {
  display: flex;
  justify-content: center;
  perspective: 1000px;
}

.book-cover {
  width: min(350px, 80vw);
  aspect-ratio: 0.68;
  padding: 2.2rem;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(circle at 70% 25%, rgba(255,255,255,.12), transparent 24%),
    linear-gradient(150deg, #284f47 0%, #102924 100%);
  color: #f8f0df;
  box-shadow: -24px 28px 55px rgba(16, 41, 36, .28);
  transform: rotateY(-8deg) rotateZ(1deg);
}

.cover-kicker, .cover-subtitle, .cover-author {
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.book-cover strong {
  margin: auto 0;
  font-family: var(--serif);
  font-size: clamp(3.2rem, 7vw, 5.2rem);
  line-height: .82;
  letter-spacing: -.05em;
}

.cover-subtitle { max-width: 85%; line-height: 1.5; }
.cover-author { margin-top: 2rem; }

.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  border-top: 1px solid var(--line);
}

.prose {
  color: var(--muted);
  font-size: 1.1rem;
}

.story-panel {
  display: grid;
  grid-template-columns: 0.4fr 1.1fr;
  gap: 4rem;
  padding-left: 4rem;
  padding-right: 4rem;
  background: var(--green);
  color: white;
  border-radius: 2rem;
}

.story-panel p { color: rgba(255,255,255,.78); }
.story-panel .eyebrow { color: #e3ad8f; }

.story-number {
  font-family: var(--serif);
  font-size: clamp(8rem, 20vw, 16rem);
  line-height: .7;
  opacity: .16;
}

.section-heading { max-width: 820px; }

.timeline {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--line);
}

.timeline-item {
  position: relative;
  padding: 2.2rem 2rem 2.5rem 0;
  border-bottom: 1px solid var(--line);
}

.timeline-item:nth-child(odd) {
  border-right: 1px solid var(--line);
  padding-right: 3rem;
}

.timeline-item:nth-child(even) { padding-left: 3rem; }

.year {
  display: inline-block;
  margin-bottom: 1rem;
  color: var(--accent-dark);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .1em;
}

.timeline-item p, .card p, .buy-panel p { color: var(--muted); }

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

.card {
  min-height: 240px;
  padding: 1.6rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 1.25rem;
}

.card span {
  display: block;
  margin-bottom: 3.2rem;
  color: var(--accent-dark);
  font-size: .75rem;
  font-weight: 700;
}

.quote {
  padding-top: 3rem;
  padding-bottom: 3rem;
}

blockquote {
  max-width: 980px;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(3rem, 7vw, 7.2rem);
  line-height: 1;
  letter-spacing: -.045em;
}

.buy-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
  padding-left: 3.5rem;
  padding-right: 3.5rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 2rem;
}

.buy-panel > div { max-width: 670px; }

.contact {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 4rem;
}

.contact-links {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.contact-links a {
  padding: 1.2rem 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  font-size: 1.15rem;
}

footer {
  width: min(var(--max), calc(100% - 2.5rem));
  margin: 0 auto;
  padding: 2rem 0 3rem;
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: .84rem;
}

@media (max-width: 820px) {
  .menu-toggle { display: block; }

  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 1rem;
    right: 1rem;
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 1rem;
  }

  .nav.open { display: flex; }

  .hero,
  .intro-grid,
  .story-panel,
  .contact {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 4rem;
    gap: 3rem;
  }

  .book-mockup { order: -1; }

  .book-cover {
    width: min(280px, 72vw);
    transform: none;
  }

  .story-panel {
    gap: 1rem;
    padding: 3rem 1.5rem;
  }

  .story-number { font-size: 8rem; }

  .timeline,
  .cards {
    grid-template-columns: 1fr;
  }

  .timeline-item,
  .timeline-item:nth-child(odd),
  .timeline-item:nth-child(even) {
    padding: 1.8rem 0;
    border-right: 0;
  }

  .buy-panel {
    align-items: flex-start;
    flex-direction: column;
    padding: 2.2rem 1.5rem;
  }

  footer { flex-direction: column; }
}
