:root {
  --ink: #1c1710;
  --bark: #2a2218;
  --forest: #143026;
  --moss: #2f5a42;
  --gold: #c9a45a;
  --gold-soft: #e4cc8a;
  --parchment: #f3e8d0;
  --cream: #faf4e8;
  --leaf: #7ea57a;
  --shadow: rgba(20, 16, 10, 0.45);
  --max: 1120px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Source Sans 3", "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  min-height: 100vh;
}

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

a { color: var(--moss); }

.wrap {
  width: min(var(--max), calc(100% - 2.4rem));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(20, 48, 38, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(201, 164, 90, 0.35);
}

.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--gold-soft);
}

.brand img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--gold);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-text strong {
  font-family: Cinzel, serif;
  letter-spacing: 0.12em;
  font-size: 0.92rem;
}

.brand-text span {
  font-size: 0.72rem;
  color: #d7c7a0;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  gap: 1.35rem;
  list-style: none;
}

.nav-links a {
  color: #efe4cc;
  text-decoration: none;
  font-size: 0.92rem;
  letter-spacing: 0.04em;
}

.nav-links a:hover,
.nav-links a.active { color: var(--gold); }

.nav-cta {
  background: var(--gold);
  color: var(--forest) !important;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  font-weight: 600;
}

.menu-btn {
  display: none;
  background: none;
  border: 1px solid var(--gold);
  color: var(--gold);
  padding: 0.35rem 0.6rem;
  border-radius: 6px;
  cursor: pointer;
}

/* Hero */
.hero {
  position: relative;
  min-height: 86vh;
  display: grid;
  place-items: end start;
  color: #fff;
  overflow: hidden;
}

.hero img.bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(12, 18, 14, 0.15) 0%, rgba(12, 18, 14, 0.28) 40%, rgba(12, 18, 14, 0.82) 100%);
}

.hero-copy {
  position: relative;
  z-index: 2;
  padding: 0 0 4.5rem;
  max-width: 760px;
}

.kicker {
  font-family: Cinzel, serif;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: var(--gold-soft);
  margin-bottom: 0.8rem;
}

h1, h2, h3 { font-family: Cinzel, serif; font-weight: 600; line-height: 1.15; }

.hero h1 {
  font-size: clamp(2.3rem, 6vw, 4.4rem);
  letter-spacing: 0.04em;
  margin-bottom: 0.6rem;
}

.hero .lede {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.2rem, 2.4vw, 1.7rem);
  font-style: italic;
  color: #f3e8d0;
  margin-bottom: 1.6rem;
  max-width: 40rem;
}

.btn-row { display: flex; flex-wrap: wrap; gap: 0.8rem; }

.btn {
  display: inline-block;
  text-decoration: none;
  padding: 0.75rem 1.15rem;
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.btn-gold { background: var(--gold); color: var(--forest); }
.btn-ghost { border: 1px solid #efe4cc; color: #efe4cc; }
.btn-outline { border: 1px solid var(--gold); color: var(--forest); background: transparent; }

/* Sections */
section { padding: 4.2rem 0; }

.section-title {
  text-align: center;
  margin-bottom: 2.2rem;
}

.section-title h2 {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  color: var(--forest);
}

.section-title p {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.25rem;
  color: #5b4d38;
  margin-top: 0.4rem;
}

.gold-rule {
  width: 72px;
  height: 2px;
  background: var(--gold);
  margin: 0.8rem auto 0;
}

/* Books */
.book-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.6rem;
}

.book-card {
  background: #fffdf8;
  border: 1px solid #e6d7b8;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 28px var(--shadow);
  display: grid;
  grid-template-columns: 180px 1fr;
}

.book-card img {
  height: 100%;
  object-fit: cover;
  min-height: 280px;
}

.book-body { padding: 1.3rem 1.4rem 1.5rem; }

.book-body .meta {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #7a6848;
  margin-bottom: 0.35rem;
}

.book-body h3 { font-size: 1.25rem; margin-bottom: 0.55rem; color: var(--forest); }

.book-body p { font-size: 0.98rem; color: #3b3226; }

.stars { color: #b68a2c; letter-spacing: 0.08em; margin: 0.4rem 0 0.8rem; font-size: 0.9rem; }

/* Quote band */
.quote-band {
  background: var(--forest);
  color: var(--parchment);
  text-align: center;
}

.quote-band blockquote {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.3rem, 2.6vw, 1.9rem);
  font-style: italic;
  max-width: 46rem;
  margin: 0 auto;
  line-height: 1.4;
}

.quote-band cite {
  display: block;
  margin-top: 1rem;
  font-style: normal;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.75rem;
  color: var(--gold);
}

/* Features */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}

.feature {
  background: #fffdf8;
  border: 1px solid #e6d7b8;
  border-radius: 14px;
  padding: 1.4rem;
}

.feature h3 { color: var(--forest); margin-bottom: 0.45rem; font-size: 1.05rem; }

/* Author */
.author-split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: center;
}

.author-copy h2 { margin-bottom: 0.8rem; color: var(--forest); }

.author-copy p { margin-bottom: 0.9rem; }

.emblem-frame {
  background: var(--forest);
  border-radius: 16px;
  padding: 1.2rem;
  border: 1px solid var(--gold);
}

/* Reviews */
.review-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
}

.review {
  background: #fffdf8;
  border-left: 4px solid var(--gold);
  padding: 1.2rem 1.2rem 1.3rem;
  border-radius: 0 12px 12px 0;
  box-shadow: 0 6px 18px rgba(28,23,16,.08);
}

.review p { font-family: "Cormorant Garamond", serif; font-size: 1.15rem; }
.review .who { margin-top: 0.8rem; font-size: 0.82rem; letter-spacing: 0.06em; text-transform: uppercase; color: #6b5a3d; }

/* Contact */
.contact-card {
  max-width: 640px;
  margin: 0 auto;
  background: #fffdf8;
  border: 1px solid #e6d7b8;
  border-radius: 16px;
  padding: 1.6rem;
}

form { display: grid; gap: 0.8rem; }

label { font-size: 0.85rem; font-weight: 600; color: var(--forest); }

input, textarea, select {
  width: 100%;
  padding: 0.7rem 0.8rem;
  border: 1px solid #d7c7a4;
  border-radius: 8px;
  font: inherit;
  background: #fff;
}

button[type="submit"] {
  border: 0;
  cursor: pointer;
  font: inherit;
}

.note { font-size: 0.88rem; color: #6b5a3d; margin-top: 0.8rem; }

/* Footer */
.site-footer {
  background: var(--bark);
  color: #efe4cc;
  padding: 2.4rem 0 1.4rem;
}

.foot-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.6rem;
}

.site-footer h4 {
  font-family: Cinzel, serif;
  color: var(--gold);
  margin-bottom: 0.6rem;
}

.site-footer a { color: #efe4cc; text-decoration: none; }
.site-footer a:hover { color: var(--gold); }
.site-footer ul { list-style: none; }
.site-footer li { margin: 0.28rem 0; }

.legal {
  border-top: 1px solid rgba(201,164,90,.25);
  padding-top: 1rem;
  font-size: 0.8rem;
  color: #cbb994;
  text-align: center;
}

/* Inner pages */
.page-hero {
  background: var(--forest) url("assets/hero.jpg") center/cover;
  color: #fff;
  padding: 5.2rem 0 3.2rem;
  position: relative;
}

.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(12, 24, 18, 0.62);
}

.page-hero .wrap { position: relative; z-index: 1; }

.page-hero h1 { font-size: clamp(2rem, 4vw, 3.2rem); }

.detail {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2rem;
  align-items: start;
}

.cover-frame {
  background: #111;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 16px 40px var(--shadow);
}

.cover-frame img { width: 100%; }

.prose p { margin-bottom: 1rem; }
.prose h3 { margin: 1.4rem 0 0.5rem; color: var(--forest); }

.buy-box {
  margin-top: 1.2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.alert {
  display: none;
  background: #e8f3e6;
  border: 1px solid #9fca9a;
  color: #1d4a2d;
  padding: 0.8rem 1rem;
  border-radius: 8px;
  margin-top: 0.6rem;
}

.alert.show { display: block; }

@media (max-width: 860px) {
  .menu-btn { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--forest);
    flex-direction: column;
    padding: 1rem 1.2rem 1.3rem;
    gap: 0.85rem;
  }
  .nav-links.open { display: flex; }
  .book-grid, .feature-grid, .review-grid, .author-split, .detail, .foot-grid, .book-card {
    grid-template-columns: 1fr;
  }
  .book-card img { min-height: 220px; max-height: 320px; width: 100%; }
}
