/* ───────────────────────────────────────────────
   Edward Curtis Paperbacks
   ─────────────────────────────────────────────── */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;0,800;1,400&family=Source+Sans+3:wght@400;600;700&display=swap');

:root {
  --bg: #0b0c0f;
  --card: #131521;
  --text: #f2f4ff;
  --muted: #c9cbe0;
  --border: rgba(255,255,255,.10);
  --accent: #8fb2ff;
  --warm: #d4a96a;
  --serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --sans: 'Source Sans 3', system-ui, -apple-system, sans-serif;
}

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

/* ── Body & Background ──────────────────────────*/
body {
  font-family: var(--sans);
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  position: relative;
}

/* Background image — */
.bg-image {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
}

.bg-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

/* Dark overlay on top of background image */
.bg-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(11,12,15,.50);
}

a { color: inherit; }

.wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px;
}

/* ── Nav ──────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(11,12,15,.82);
  backdrop-filter: saturate(120%) blur(12px);
  -webkit-backdrop-filter: saturate(120%) blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
  max-width: 1100px;
  margin: 0 auto;
  padding: 14px 24px;
}

.nav a {
  text-decoration: none;
  font-weight: 600;
  opacity: .88;
  transition: opacity .2s;
}
.nav a:hover { opacity: 1; }

.brand {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: .3px;
}

/* ══════════════════════════════════════════════════
   HERO
   ══════════════════════════════════════════════════ */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 70vh;
  padding: 80px 24px;
  overflow: hidden;
}

/* Subtle radial vignette over the hero area */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 40%, rgba(212,169,106,.08) 0%, transparent 60%),
    linear-gradient(180deg, rgba(11,12,15,.15) 0%, rgba(11,12,15,.70) 100%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 780px;
}

.hero-eyebrow {
  display: inline-block;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--warm);
  margin-bottom: 20px;
  opacity: .9;
}

.hero h1 {
  font-family: var(--serif);
  font-size: clamp(36px, 5.5vw, 64px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -.02em;
  margin-bottom: 18px;
}

.hero h1 em {
  font-style: italic;
  color: var(--warm);
}

.hero-subtitle {
  font-family: var(--serif);
  font-size: clamp(18px, 2.4vw, 26px);
  font-weight: 400;
  font-style: italic;
  color: var(--text);
  margin-bottom: 28px;
  line-height: 1.4;
}

.hero-tagline {
  font-size: 16px;
  color: var(--text);
  opacity: .8;
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  transition: all .25s ease;
}

.hero-btn.primary {
  background: var(--warm);
  color: #0b0c0f;
  border: 1px solid var(--warm);
}
.hero-btn.primary:hover {
  background: #e0b87a;
  border-color: #e0b87a;
}

.hero-btn.ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(255,255,255,.25);
}
.hero-btn.ghost:hover {
  border-color: rgba(255,255,255,.50);
  background: rgba(255,255,255,.06);
}

/* small arrow after CTA text */
.hero-btn .arrow {
  display: inline-block;
  transition: transform .2s;
}
.hero-btn:hover .arrow { transform: translateX(3px); }

/* ── Story section ────────────────────────────── */
.story {
  padding-top: 48px;
  padding-bottom: 48px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.story h2 {
  font-family: var(--serif);
  margin-bottom: 18px;
  font-size: clamp(24px, 2.8vw, 34px);
  font-weight: 700;
}

.story p {
  max-width: 68ch;
  margin-left: auto;
  margin-right: auto;
  color: var(--text);
  font-size: 17px;
}

.story p + p { margin-top: 14px; }

.story .btn { margin-top: 24px; }

/* ── Volumes section ──────────────────────────── */
.volumes-section { padding-bottom: 40px; }

.volumes-heading {
  text-align: center;
  font-family: var(--serif);
  margin-top: 0;
  margin-bottom: 6px;
  font-size: clamp(24px, 2.8vw, 34px);
  font-weight: 700;
}

/* ── Book Grid ─── */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 14px;
}

.book {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color .25s, transform .25s;
}

.book:hover {
  border-color: rgba(212,169,106,.30);
  transform: translateY(-2px);
}

.book img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #0f1118;
}

.book h3 {
  margin: 0;
  font-size: 16px;
  line-height: 1.25;
}

.book h3 a { text-decoration: none; }
.book h3 a:hover { color: var(--warm); }

.book .desc {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.price {
  margin: 0;
  font-weight: 700;
}

.links {
  margin: 0;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: auto;
}

/* ── Buttons ──────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid rgba(212,169,106,.50);
  text-decoration: none;
  font-weight: 650;
  font-size: 14px;
  transition: border-color .2s, background .2s;
}

.btn:hover {
  border-color: var(--warm);
  background: rgba(212,169,106,.08);
}

.btn.secondary {
  border-color: var(--border);
  color: var(--muted);
}

.btn.secondary:hover {
  border-color: rgba(255,255,255,.25);
  background: rgba(255,255,255,.04);
}

/* ── About page ───────────────────────────────── */
.page {
  padding-top: 48px;
  padding-bottom: 48px;
}

.page h1 {
  text-align: center;
  font-family: var(--serif);
  margin-bottom: 28px;
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 800;
}

.page > p {
  max-width: 68ch;
  margin-left: auto;
  margin-right: auto;
  color: var(--muted);
  font-size: 17px;
}

.page > p + p { margin-top: 16px; }

.about-img {
  max-width: 680px;
  margin: 36px auto;
  text-align: center;
}

.about-img img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  border: 1px solid var(--border);
}

.about-img figcaption {
  margin-top: 10px;
  font-size: 13px;
  color: var(--muted);
  opacity: .75;
  font-style: italic;
}

.about-img-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  max-width: 780px;
  margin: 36px auto;
}

.about-img-pair img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  border: 1px solid var(--border);
  object-fit: cover;
}

/* ── Books Showcase ──────── */
.books-showcase {
  text-align: center;
  padding-top: 48px;
  padding-bottom: 48px;
  border-top: 1px solid var(--border);
}

.books-showcase h2 {
  font-family: var(--serif);
  font-size: clamp(24px, 2.8vw, 34px);
  font-weight: 700;
  margin-bottom: 18px;
}

.books-showcase > p {
  max-width: 68ch;
  margin-left: auto;
  margin-right: auto;
  color: var(--text);
  font-size: 17px;
}

.books-showcase > p + p { margin-top: 14px; }

.books-photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  max-width: 820px;
  margin: 32px auto 0;
}

.books-photos img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--border);
}

@media (max-width: 540px) {
  .books-photos {
    grid-template-columns: 1fr;
    max-width: 400px;
  }
}

/* ── Footer ───────────────────────────────────── */
.footer {
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}

/* ── Responsive ───────────────────────────────── */
@media (max-width: 768px) {
  .hero { min-height: 60vh; padding: 60px 20px; }
  .hero h1 { font-size: clamp(30px, 7vw, 44px); }
}

@media (max-width: 540px) {
  .hero { min-height: 50vh; padding: 48px 18px; }
  .hero-actions { flex-direction: column; align-items: center; }
  .about-img-pair { grid-template-columns: 1fr; }
}