:root {
  --bg: #f7f3eb;
  --paper: #fffdf9;
  --soft: #efe6d7;
  --ink: #1f1c19;
  --muted: #6c6256;
  --accent: #7b4e2f;
  --accent-dark: #5f3b22;
  --line: #d9cdbd;
  --shadow: 0 12px 30px rgba(31, 28, 25, 0.08);
  --radius: 18px;
  --radius-sm: 12px;
  --max: 1120px;
}
* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px; /* offset for sticky header */
}
body {
  margin: 0;
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
}
a { color: var(--accent-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
.container { width: min(100% - 2rem, var(--max)); margin: 0 auto; }

/* ── Header & Nav ──────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(247,243,235,0.92); backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(123, 78, 47, 0.12);
}
.nav-wrap { display: flex; align-items: center; justify-content: space-between; padding: 1rem 0; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: .85rem; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 2.75rem; height: 2.75rem; border-radius: 999px;
  display: grid; place-items: center; background: var(--accent);
  color: #fff; font-weight: 700; letter-spacing: 0.04em;
}
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-text strong {
  font-family: 'Cormorant Garamond', serif; font-size: 1.5rem; font-weight: 700;
}
.brand-text small { color: var(--muted); font-size: .9rem; margin-top: .15rem; }
.nav { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.nav a { color: var(--ink); font-size: .95rem; }
.nav .nav-button { color: #fff; }
.nav-button, .button {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .85rem 1.15rem; border-radius: 999px; font-weight: 600;
  border: 1px solid transparent; transition: .2s ease;
}
.nav-button, .button.primary { background: var(--accent); color: #fff; }
.nav-button:hover, .button.primary:hover { background: var(--accent-dark); text-decoration: none; }
.button.secondary { border-color: var(--line); background: transparent; color: var(--ink); }
.button.secondary:hover { background: rgba(255,255,255,0.5); text-decoration: none; }
.button.light { background: #fff; color: var(--accent-dark); }
.button.light:hover { background: rgba(255,255,255,0.5); text-decoration: none; }
.button.full { width: 100%; }

/* ── Hero ──────────────────────────────────────────────────────── */
.hero {
  padding: 5rem 0 4rem;
  background: radial-gradient(circle at top right, rgba(123,78,47,0.08), transparent 35%), var(--bg);
}
.hero.compact { padding-top: 4rem; }
.hero-grid, .author-hero-grid {
  display: grid; grid-template-columns: 1.2fr .9fr; gap: 2rem; align-items: center;
}

/* ── Typography ────────────────────────────────────────────────── */
.eyebrow {
  text-transform: uppercase; letter-spacing: .12em; font-size: .76rem; font-weight: 700;
  color: var(--accent); margin: 0 0 .75rem;
}
h1, h2, h3, h4 {
  font-family: 'Cormorant Garamond', serif; line-height: 1.05; margin: 0 0 1rem;
}
h1 { font-size: clamp(2.5rem, 5vw, 4.7rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: 1.6rem; }
p { margin: 0 0 1rem; }
.lead { font-size: 1.08rem; color: var(--muted); max-width: 62ch; }
.hero-actions { display: flex; gap: .9rem; flex-wrap: wrap; margin-top: 1.4rem; }
.muted { color: var(--muted); }
.inline-link { font-weight: 600; }

/* ── Cards & Panels ────────────────────────────────────────────── */
.hero-card, .panel, .title-card, .feature-book, .bio-card, .quote-card {
  background: var(--paper); border: 1px solid rgba(123,78,47,0.12);
  border-radius: var(--radius); box-shadow: var(--shadow);
}
.book-stack { display: grid; gap: 1rem; }
.book-card { padding: 1.5rem; background: linear-gradient(135deg, #fff9f1, #f5ede1); border-radius: var(--radius); }
.book-card.alt { background: linear-gradient(135deg, #f2e5d4, #fbf7f1); }
.book-label, .pill {
  display: inline-block; padding: .35rem .7rem; border-radius: 999px;
  background: rgba(123,78,47,0.12); color: var(--accent-dark); font-size: .78rem; font-weight: 700; margin-bottom: .8rem;
}

/* ── Sections ──────────────────────────────────────────────────── */
.section { padding: 4.5rem 0; }
.section.soft { background: rgba(255,255,255,0.45); }
.section-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 2rem; }
.section-heading {
  display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem;
}
.section-note { color: var(--muted); max-width: 34rem; }
.split-callout, .author-body-grid, .book-feature-grid {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 1.5rem; align-items: start;
}
.panel { padding: 1.35rem; }
.check-list { margin: 0 0 1.25rem; padding-left: 1.1rem; }
.check-list li { margin-bottom: .7rem; }

/* ── Book catalog ──────────────────────────────────────────────── */
.catalog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.catalog-grid.one-up { grid-template-columns: 1fr; }
.title-card { padding: 1.1rem; }
.cover-image {
  aspect-ratio: 2 / 3; width: 100%; object-fit: cover; border-radius: 14px; margin-bottom: 1rem;
  box-shadow: 0 10px 24px rgba(31, 28, 25, 0.14);
}
.title-card h3 { margin-bottom: .55rem; }
.title-meta { color: var(--muted); font-size: .95rem; }
.feature-book-cover {
  border-radius: var(--radius); overflow: hidden; background: #f8f2e8;
  border: 1px solid rgba(123,78,47,0.12); box-shadow: var(--shadow);
  padding: .8rem;
}
.feature-book-cover img { border-radius: 12px; }
.bio-card, .quote-card, .feature-book { padding: 1.5rem; }
.quote-card blockquote {
  font-family: 'Cormorant Garamond', serif; font-size: 1.7rem; line-height: 1.25; margin: 0;
}

/* ── Author photo ──────────────────────────────────────────────── */
.author-portrait {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(123,78,47,0.12);
  box-shadow: var(--shadow);
  max-width: 420px;
}
.author-photo {
  width: 100%;
  display: block;
  border-radius: 18px;
  box-shadow: 0 16px 40px rgba(0,0,0,0.15);
}
/* When author-photo is inside author-portrait, the container
   handles radius/shadow — no need to double up */
.author-portrait .author-photo {
  border-radius: 0;
  box-shadow: none;
}

/* ── Newsletter ────────────────────────────────────────────────── */
.newsletter-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.newsletter-content p:last-of-type { margin-bottom: 0; color: var(--muted); }
.newsletter-form-card {
  background: var(--paper);
  border: 1px solid rgba(123,78,47,0.12);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2rem;
}

/* ── Footer ────────────────────────────────────────────────────── */
.site-footer { padding: 2.25rem 0 3rem; border-top: 1px solid rgba(123,78,47,0.15); background: #f2ebdf; }
.footer-grid { display: grid; grid-template-columns: 1.1fr .9fr .9fr; gap: 1.5rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .55rem; }

/* ── Responsive ────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .hero-grid, .author-hero-grid, .section-grid, .split-callout,
  .author-body-grid, .book-feature-grid, .footer-grid, .newsletter-wrap {
    grid-template-columns: 1fr;
  }
  .catalog-grid { grid-template-columns: 1fr; }
  .author-portrait { max-width: 100%; }
}
@media (max-width: 640px) {
  .nav-wrap { align-items: start; flex-direction: column; }
  .hero { padding-top: 3.5rem; }
  .section { padding: 3.5rem 0; }
  h1 { font-size: 2.5rem; }
}
