:root {
  --cream: #fbf4e4;
  --paper: #fffaf0;
  --honey: #e8a838;
  --honey-dark: #c9861a;
  --forest: #2f5d3a;
  --forest-dark: #22452b;
  --bark: #4a2f1b;
  --plum: #7a5c8c;
  --robin: #e2672a;
  --ink: #3b2a1e;
  --muted: #7a6656;
  --line: #ecdfc5;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(74, 47, 27, 0.15);
  --heading: "Fraunces", Georgia, serif;
  --body: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--forest); }
h1, h2, h3 { font-family: var(--heading); line-height: 1.15; color: var(--bark); margin: 0 0 .5em; }
h1 { font-size: clamp(2.4rem, 6vw, 4rem); }
h2 { font-size: clamp(1.9rem, 4vw, 2.75rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }

.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.eyebrow { font-weight: 800; letter-spacing: .12em; text-transform: uppercase; font-size: .8rem; color: var(--honey-dark); margin-bottom: .6rem; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(251, 244, 228, .94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.logo { font-family: var(--heading); font-weight: 700; font-size: 1.5rem; color: var(--forest); text-decoration: none; white-space: nowrap; }
.logo span { color: var(--honey-dark); }
.nav { display: flex; align-items: center; gap: 22px; }
.nav a { text-decoration: none; font-weight: 700; color: var(--bark); }
.nav a:hover { color: var(--forest); }
.region { display: flex; align-items: center; gap: 8px; font-size: .9rem; font-weight: 700; color: var(--muted); }
.region select {
  font: inherit; font-weight: 700; color: var(--bark);
  padding: 6px 10px; border-radius: 999px; border: 2px solid var(--line); background: var(--paper);
}
.menu-btn { display: none; background: none; border: 0; font-size: 1.6rem; cursor: pointer; color: var(--bark); padding: 4px 8px; }

/* Buttons */
.btn {
  display: inline-block; text-decoration: none; cursor: pointer;
  font: inherit; font-weight: 800; padding: 12px 26px; border-radius: 999px; border: 0;
  background: var(--honey); color: var(--bark);
  box-shadow: 0 4px 0 var(--honey-dark);
  transition: transform .1s, box-shadow .1s;
}
.btn:hover { transform: translateY(2px); box-shadow: 0 2px 0 var(--honey-dark); }
.btn.small { padding: 8px 18px; font-size: .95rem; }
.btn.disabled { background: var(--line); color: var(--muted); box-shadow: none; cursor: default; pointer-events: none; }
.btn.ghost { background: transparent; box-shadow: none; border: 2px solid var(--forest); color: var(--forest); }
.btn.ghost:hover { background: var(--forest); color: #fff; transform: none; }

/* Hero */
.hero {
  background:
    radial-gradient(circle at 15% 20%, rgba(232, 168, 56, .28), transparent 45%),
    radial-gradient(circle at 90% 80%, rgba(47, 93, 58, .18), transparent 45%),
    var(--cream);
  padding: clamp(48px, 9vw, 110px) 0 clamp(40px, 7vw, 80px);
}
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.hero h1 em { color: var(--forest); font-style: italic; }
.hero p.lead { font-size: 1.25rem; color: var(--muted); max-width: 32ch; }
.hero-covers { position: relative; height: clamp(300px, 40vw, 440px); }
.hero-covers img { position: absolute; width: 44%; border-radius: 10px; box-shadow: var(--shadow); border: 5px solid #fff; }
.hero-covers img:nth-child(1) { left: 0; top: 12%; transform: rotate(-7deg); }
.hero-covers img:nth-child(2) { left: 28%; top: 0; transform: rotate(2deg); z-index: 2; }
.hero-covers img:nth-child(3) { right: 0; top: 16%; transform: rotate(8deg); }

/* Sections */
section { padding: clamp(48px, 8vw, 96px) 0; }
.section-head { text-align: center; max-width: 620px; margin: 0 auto 44px; }
.section-head p { color: var(--muted); }

/* Shelf */
.shelf { background: var(--paper); border-block: 1px solid var(--line); }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px 28px; }
.card { display: flex; flex-direction: column; text-align: center; }
.card .cover { position: relative; display: block; margin-bottom: 16px; }
.card .cover img {
  width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 10px;
  box-shadow: var(--shadow); transition: transform .25s;
}
.card .cover:hover img { transform: translateY(-6px) rotate(-1deg); }
.card h3 { margin-bottom: .2em; }
.card .meta { color: var(--muted); font-size: .95rem; margin-bottom: 14px; }
.card .actions { margin-top: auto; }
.badge {
  position: absolute; top: 12px; left: -6px; z-index: 1;
  background: var(--robin); color: #fff; font-weight: 800; font-size: .78rem;
  padding: 4px 12px; border-radius: 0 999px 999px 0; letter-spacing: .04em; text-transform: uppercase;
}
.badge.plum { background: var(--plum); }
.card.soon .cover img { filter: saturate(.7); opacity: .85; }

/* Book details */
.book { padding-block: clamp(40px, 7vw, 80px); }
.book:nth-of-type(odd) { background: var(--paper); border-block: 1px solid var(--line); }
.book .wrap { display: grid; grid-template-columns: 340px 1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.book.flip .wrap { grid-template-columns: 1fr 340px; }
.book.flip .book-art { order: 2; }
.book-art img { border-radius: 12px; box-shadow: var(--shadow); width: 100%; }
.book-art .back { margin-top: 18px; width: 62%; margin-inline: auto; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 20px; padding: 0; list-style: none; }
.tags li { background: var(--cream); border: 2px solid var(--line); border-radius: 999px; padding: 2px 14px; font-weight: 700; font-size: .9rem; color: var(--forest-dark); }
.book:nth-of-type(odd) .tags li { background: var(--cream); }
.tagline { font-family: var(--heading); font-style: italic; font-size: 1.35rem; color: var(--forest); margin-bottom: 1em; }
.buy-box { background: #fff; border: 2px solid var(--line); border-radius: var(--radius); padding: 18px 22px; margin: 24px 0; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.buy-box small { color: var(--muted); flex-basis: 100%; }
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 28px; }
.gallery button { padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: 10px; overflow: hidden; }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .25s; }
.gallery button:hover img { transform: scale(1.05); }
.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px 20px; padding: 0; list-style: none; margin: 0 0 8px; }
.features li::before { content: "🌿 "; }

/* About */
.about .wrap { display: grid; grid-template-columns: 300px 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.about img { border-radius: 50% 50% 16px 16px / 40% 40% 16px 16px; box-shadow: var(--shadow); border: 6px solid #fff; }

/* Footer */
footer { background: var(--forest-dark); color: #dfe9d9; padding: 44px 0; text-align: center; font-size: .95rem; }
footer .logo { color: #fff; display: inline-block; margin-bottom: 8px; }
footer p { margin: 0 0 .4em; }
footer .soon { color: #b9cdb2; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 50; background: rgba(30, 20, 12, .9); display: none; align-items: center; justify-content: center; padding: 20px; cursor: zoom-out; }
.lightbox.open { display: flex; }
.lightbox img { max-height: 92vh; border-radius: 10px; }

/* Tablet */
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; text-align: center; gap: 32px; }
  .hero p.lead { margin-inline: auto; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .book .wrap, .book.flip .wrap { grid-template-columns: 1fr; }
  .book.flip .book-art { order: 0; }
  .book-art { max-width: 340px; margin-inline: auto; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .about .wrap { grid-template-columns: 1fr; text-align: center; }
  .about img { max-width: 260px; margin-inline: auto; }
}

/* Phone */
@media (max-width: 640px) {
  .menu-btn { display: block; }
  .nav {
    display: none; position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--cream); border-bottom: 1px solid var(--line); padding: 8px 16px 16px;
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .region { padding-top: 12px; }
  .region select { flex: 1; }
  .grid { gap: 28px 14px; }
  .card h3 { font-size: 1.1rem; }
  .card .btn.small { padding: 8px 14px; font-size: .88rem; }
  .features { grid-template-columns: 1fr; }
  .buy-box { justify-content: center; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
