:root {
  --bg-deep: #0e161f;
  --bg-panel: #152230;
  --bg-card: #1a2a3b;
  --lattice-blue: #4c7491;
  --lattice-dark: #2c4960;
  --mahogany: #4e342b;
  --mahogany-light: #6a483c;
  --gold: #d4b078;
  --gold-hover: #e5c693;
  --ink: #f4efe6;
  --ink-muted: #b7c3ce;
  --border: rgba(212, 176, 120, 0.22);
  --shadow: 0 22px 48px rgba(0, 0, 0, 0.45);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  background: radial-gradient(circle at 20% 0%, #1b2f44 0%, var(--bg-deep) 60%);
  color: var(--ink);
  line-height: 1.65;
}

a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-hover); }

.container {
  width: min(1080px, 92vw);
  margin: 0 auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(12px);
  background: rgba(14, 22, 31, 0.88);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 0;
  gap: 1rem;
}
.brand {
  font-family: var(--serif);
  font-size: 1.1rem;
  letter-spacing: 0.04em;
  color: var(--ink);
  font-weight: 700;
}
.nav { display: flex; gap: 1.35rem; font-size: 0.92rem; }
.nav a { color: var(--ink-muted); }
.nav a:hover { color: var(--gold); }

/* Hero */
.hero {
  padding: 4.5rem 0 3.75rem;
}
.hero-grid {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 3.5rem;
  align-items: center;
}

/* Authentic CSS recreation of the physical blue-lattice & mahogany cover */
.book-stage {
  display: flex;
  justify-content: center;
  perspective: 1100px;
}
.book-cover {
  position: relative;
  width: 280px;
  aspect-ratio: 8.5 / 11;
  border-radius: 3px 10px 10px 3px;
  background-color: var(--lattice-blue);
  background-image:
    radial-gradient(circle at 50% 50%, rgba(255,255,255,0.14) 1px, transparent 1px),
    repeating-linear-gradient(45deg, rgba(20, 42, 60, 0.24) 0 1px, transparent 1px 14px),
    repeating-linear-gradient(-45deg, rgba(20, 42, 60, 0.24) 0 1px, transparent 1px 14px);
  background-size: 14px 14px, 20px 20px, 20px 20px;
  box-shadow: -10px 18px 40px rgba(0, 0, 0, 0.6), inset 10px 0 18px rgba(0, 0, 0, 0.32);
  border-left: 6px solid var(--lattice-dark);
  display: flex;
  align-items: center;
  overflow: hidden;
  transform: rotateY(-8deg);
  transition: transform 0.35s ease;
}
.book-cover:hover { transform: rotateY(-2deg) translateY(-4px); }
.book-cover.has-photo .cover-band { display: none; }
.cover-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cover-band {
  width: 100%;
  background:
    repeating-linear-gradient(0deg, rgba(0,0,0,0.12) 0 2px, transparent 2px 4px),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.05) 0 2px, transparent 2px 5px),
    var(--mahogany);
  padding: 1.55rem 1.2rem;
  text-align: center;
  border-top: 1px solid rgba(255,255,255,0.15);
  border-bottom: 1px solid rgba(0,0,0,0.45);
  box-shadow: 0 4px 16px rgba(0,0,0,0.35);
}
.cover-title {
  font-family: var(--serif);
  font-size: 1.25rem;
  line-height: 1.28;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 0.7rem;
}
.cover-author {
  font-family: var(--serif);
  font-size: 0.84rem;
  color: #f0e4d6;
  margin: 0;
  line-height: 1.35;
}

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid var(--border);
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}
h1 {
  font-family: var(--serif);
  font-size: clamp(2.1rem, 4.2vw, 3.25rem);
  line-height: 1.12;
  margin: 0 0 0.35rem;
}
.subtitle {
  font-family: var(--serif);
  font-size: 1.35rem;
  color: var(--gold);
  font-weight: 400;
  margin: 0 0 1.2rem;
}
.lead {
  color: var(--ink-muted);
  font-size: 1.05rem;
  max-width: 60ch;
  margin: 0 0 1.5rem;
}
.meta-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 1.8rem;
}
.pill {
  font-size: 0.8rem;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.3rem 0.7rem;
  border-radius: 6px;
}
.pill-mature {
  border-color: rgba(212, 176, 120, 0.45);
  color: var(--gold);
}
.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  align-items: center;
}

/* Buttons */
.btn {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0.85rem 1.45rem;
  border-radius: 8px;
  font-weight: 600;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
  cursor: pointer;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--gold);
  color: #16120e;
  border: 1px solid var(--gold);
}
.btn-primary:hover {
  background: var(--gold-hover);
  color: #16120e;
}
.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--ink);
  border: 1px solid var(--border);
}
.btn-secondary:hover {
  background: rgba(212, 176, 120, 0.12);
  border-color: var(--gold);
  color: var(--ink);
}
.btn-label { font-size: 0.98rem; line-height: 1.25; }
.btn-sub { font-size: 0.75rem; font-weight: 400; opacity: 0.85; margin-top: 0.2rem; }

/* Sections */
.section {
  padding: 3.75rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}
.section-title {
  font-family: var(--serif);
  font-size: 1.85rem;
  margin: 0 0 0.5rem;
}
.section-sub {
  color: var(--ink-muted);
  margin: 0 0 2rem;
}

/* Editions Grid */
.editions-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.85rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}
.card-badge {
  align-self: flex-start;
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: rgba(76, 116, 145, 0.28);
  color: #d6e8f5;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  margin-bottom: 0.85rem;
}
.card h3 {
  font-family: var(--serif);
  font-size: 1.45rem;
  margin: 0 0 0.35rem;
}
.price {
  font-size: 2rem;
  font-weight: 700;
  color: var(--gold);
  margin: 0.25rem 0 1rem;
}
.price span { font-size: 0.92rem; color: var(--ink-muted); font-weight: 400; }
.spec-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  color: var(--ink-muted);
  font-size: 0.93rem;
}
.spec-list li {
  padding: 0.35rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.spec-list li strong { color: var(--ink); }
.checkout-stack {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.checkout-stack .btn { width: 100%; }

/* Blurb & Excerpts */
.blurb-box {
  background: var(--bg-panel);
  border-left: 4px solid var(--gold);
  border-radius: 0 10px 10px 0;
  padding: 1.75rem 2rem;
  font-family: var(--serif);
  font-size: 1.12rem;
  line-height: 1.8;
  color: var(--ink);
  margin-bottom: 2.25rem;
}
.excerpts-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}
.excerpt-card {
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 1.4rem;
}
.excerpt-card h4 {
  font-family: var(--serif);
  color: var(--gold);
  margin: 0 0 0.6rem;
  font-size: 1.05rem;
}
.excerpt-card blockquote {
  margin: 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--ink-muted);
}

/* Table of Contents */
.toc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
}
.toc-card {
  background: var(--bg-panel);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 1.35rem;
}
.toc-card h3 {
  font-family: var(--serif);
  font-size: 1.08rem;
  color: var(--gold);
  margin: 0 0 0.65rem;
}
.toc-card ul {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--ink-muted);
  font-size: 0.9rem;
}
.toc-card li { margin-bottom: 0.25rem; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 0;
  font-size: 0.88rem;
  color: var(--ink-muted);
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}

@media (max-width: 820px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; gap: 2.25rem; }
  .meta-pills, .hero-cta-row { justify-content: center; }
  .editions-grid, .excerpts-grid { grid-template-columns: 1fr; }
  .nav { display: none; }
}
