/* Wren — Explore With Wren
   Palette: olive green + tan/khaki + cream (matches Wren's plating)
   Big readable type, mobile-first, no build step. */

:root {
  --olive: #4a5d23;
  --olive-dark: #35431a;
  --olive-deep: #232c12;
  --tan: #c9a86a;
  --khaki: #a89a6a;
  --cream: #faf6ec;
  --cream-dark: #f1e9d6;
  --ink: #2b2a24;
  --ink-soft: #55524a;
  --white: #ffffff;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(35, 44, 18, 0.14);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Avenir Next", "Segoe UI", system-ui, -apple-system, sans-serif;
  background: var(--cream);
  color: var(--ink);
  font-size: 18px;
  line-height: 1.65;
}

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 22px; }

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3 { line-height: 1.15; color: var(--olive-dark); letter-spacing: -0.01em; }
h1 { font-size: clamp(2.6rem, 6vw, 4.2rem); margin-bottom: 1rem; }
h2 { font-size: clamp(1.9rem, 4vw, 2.7rem); margin-bottom: 1rem; }

.kicker {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--olive);
  margin-bottom: 0.6rem;
}

.lede { font-size: 1.2rem; color: var(--ink-soft); max-width: 34em; }

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.9rem 1.8rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn-primary { background: var(--olive); color: var(--white); box-shadow: var(--shadow); }
.btn-primary:hover { background: var(--olive-dark); transform: translateY(-2px); }
.btn-ghost { border: 2px solid var(--olive); color: var(--olive-dark); }
.btn-ghost:hover { background: var(--olive); color: var(--white); }
.btn-big { font-size: 1.25rem; padding: 1.1rem 2.6rem; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 246, 236, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 2px solid var(--cream-dark);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 0.8rem 22px; }
.brand { display: flex; align-items: baseline; gap: 0.5rem; text-decoration: none; color: var(--olive-dark); }
.brand-mark { font-size: 1.6rem; }
.brand-name { font-size: 1.6rem; font-weight: 800; }
.brand-sub { font-size: 0.85rem; color: var(--ink-soft); font-weight: 600; }
.site-nav { display: flex; gap: 1.4rem; }
.site-nav a { text-decoration: none; color: var(--olive-dark); font-weight: 600; font-size: 1rem; }
.site-nav a:hover { color: var(--olive); text-decoration: underline; }
.menu-btn {
  display: none;
  background: none; border: none;
  font-size: 1.8rem; line-height: 1;
  color: var(--olive-dark); cursor: pointer;
  padding: 0.4rem 0.6rem;
}

/* Hero */
.hero { padding: 4rem 0 3.5rem; background: linear-gradient(180deg, var(--cream) 0%, var(--cream-dark) 100%); }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 3rem; align-items: center; }
.hero-art img { border-radius: 50%; border: 8px solid var(--tan); box-shadow: var(--shadow); aspect-ratio: 1/1; object-fit: cover; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1.8rem; }

/* Sections */
.section { padding: 4.5rem 0; }

/* Book */
.book-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 3rem; align-items: center; }
.book-cover img { border-radius: var(--radius); box-shadow: var(--shadow); border: 6px solid var(--white); }
.highlights { list-style: none; margin-top: 1.5rem; display: grid; gap: 1rem; }
.highlights li {
  background: var(--white);
  border-left: 6px solid var(--olive);
  border-radius: 0 12px 12px 0;
  padding: 0.9rem 1.2rem;
  box-shadow: 0 4px 14px rgba(35, 44, 18, 0.08);
}

/* Buy */
.buy-section { background: var(--olive-deep); }
.buy-box {
  background: var(--white);
  border-radius: 24px;
  padding: 3rem;
  text-align: center;
  box-shadow: var(--shadow);
  max-width: 720px;
  margin: 0 auto;
  border-top: 10px solid var(--tan);
}
.price { margin: 1.2rem 0; }
.price-amount { font-size: 3rem; font-weight: 800; color: var(--olive-dark); }
.price-note { display: block; font-size: 1rem; color: var(--ink-soft); margin-top: 0.3rem; }
.buy-box .btn-big { margin: 1.2rem 0; }
.fine-print { font-size: 0.9rem; color: var(--ink-soft); }
.preview-box { margin-top: 1.8rem; padding-top: 1.5rem; border-top: 1px solid rgba(0,0,0,0.12); }
.preview-box p { margin-bottom: 1rem; }

/* About */
.about-section { background: var(--cream-dark); }
.about-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 3rem; align-items: center; }
.about-art img { border-radius: var(--radius); box-shadow: var(--shadow); border: 6px solid var(--tan); }
.about-copy p { margin-bottom: 1rem; }
.about-copy .btn { margin-top: 0.8rem; }

/* Instagram band */
.insta-section { padding: 3.5rem 0; }
.insta-box {
  text-align: center;
  background: linear-gradient(135deg, var(--olive) 0%, var(--olive-dark) 100%);
  color: var(--cream);
  border-radius: 24px;
  padding: 3rem 2rem;
}
.insta-box h2 { color: var(--white); }
.insta-box p { margin-bottom: 1.5rem; opacity: 0.92; }
.insta-box .btn-primary { background: var(--tan); color: var(--olive-deep); }
.insta-box .btn-primary:hover { background: var(--white); }

/* Footer */
.site-footer { background: var(--olive-deep); color: var(--cream); padding: 2.2rem 0; }
.footer-inner p { margin-bottom: 0.4rem; }
.copyright { font-size: 0.9rem; opacity: 0.75; }

/* Peek inside gallery */
.peek { margin-top: 3.5rem; text-align: center; }
.peek h3 { margin-bottom: 1.8rem; }
.peek-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; text-align: left; }
.peek-grid figure {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 4px solid var(--white);
}
.peek-grid img { width: 100%; }
.peek-grid figcaption { padding: 0.9rem 1.1rem; font-size: 0.95rem; color: var(--ink-soft); }

/* Mobile */
@media (max-width: 820px) {
  body { font-size: 17px; }
  .hero-grid, .book-grid, .about-grid { grid-template-columns: 1fr; gap: 2rem; }
  .hero-art { order: -1; max-width: 340px; margin: 0 auto; }
  .about-art { max-width: 340px; margin: 0 auto; }
  .menu-btn { display: block; }
  .site-nav {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0;
    background: var(--cream);
    border-bottom: 2px solid var(--cream-dark);
    box-shadow: 0 12px 24px rgba(35, 44, 18, 0.12);
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 1rem 22px; border-top: 1px solid var(--cream-dark); font-size: 1.1rem; }
  .header-inner { position: relative; }
  .peek-grid { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }
  .buy-box { padding: 2rem 1.4rem; }
  .section { padding: 3rem 0; }
}
