/* === RESET & BASE === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --crimson: #8B1A1A;
  --crimson-dark: #5C0F0F;
  --cream: #F8F0E8;
  --cream-dark: #EFE4D4;
  --charcoal: #1C1616;
  --ink: #2D2020;
  --bone: #E8DDD0;
  --muted: #8A7A74;
  --gold: #C8A96E;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;

  --max-w: 1160px;
  --section-pad: clamp(64px, 10vw, 120px);
}

html { scroll-behavior: smooth; }

body {
  background: var(--cream);
  color: var(--charcoal);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--cream-dark); }
::-webkit-scrollbar-thumb { background: var(--crimson); border-radius: 3px; }

::selection { background: var(--crimson); color: var(--cream); }

/* === NAV === */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 20px 32px;
  background: linear-gradient(to bottom, rgba(248,240,232,0.97) 60%, transparent);
  backdrop-filter: blur(4px);
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 900;
  color: var(--crimson);
  letter-spacing: -0.5px;
}

.nav-logo-dot { color: var(--charcoal); }

.nav-tagline {
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* === HERO === */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 32px 80px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -20%; right: -10%;
  width: 55vw;
  height: 120%;
  background: radial-gradient(ellipse, rgba(139,26,26,0.07) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 80px;
  align-items: center;
}

/* Book visual */
.hero-book {
  position: relative;
  display: flex;
  justify-content: center;
  perspective: 1000px;
}

.book-cover {
  width: 240px;
  height: 360px;
  background: linear-gradient(135deg, var(--crimson) 0%, var(--crimson-dark) 100%);
  border-radius: 2px 6px 6px 2px;
  position: relative;
  box-shadow:
    -4px 0 0 rgba(0,0,0,0.15),
    8px 16px 40px rgba(0,0,0,0.3),
    0 40px 60px rgba(0,0,0,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  transform: rotateY(-8deg) rotateX(2deg);
  transition: transform 0.4s ease;
}

.hero-book:hover .book-cover {
  transform: rotateY(-3deg) rotateX(0deg);
}

.book-cover::before {
  content: '';
  position: absolute;
  top: 12px; left: 12px; right: 12px; bottom: 12px;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 1px;
}

.book-cover-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 24px;
  gap: 8px;
}

.book-series-label {
  font-family: var(--font-body);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: rgba(255,255,255,0.6);
  margin-bottom: 16px;
}

.book-title {
  font-family: var(--font-display);
  font-size: 42px;
  font-weight: 900;
  color: var(--cream);
  line-height: 0.9;
  letter-spacing: -1px;
}

.book-divider {
  width: 40px;
  height: 2px;
  background: var(--gold);
  margin: 12px auto;
}

.book-subtitle {
  font-family: var(--font-display);
  font-size: 14px;
  font-style: italic;
  color: rgba(255,255,255,0.85);
  line-height: 1.4;
}

.book-author {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: var(--gold);
  text-transform: uppercase;
  margin-top: 24px;
}

.book-spine {
  position: absolute;
  left: -16px;
  top: 0; bottom: 0;
  width: 16px;
  background: linear-gradient(to right, rgba(0,0,0,0.25), rgba(0,0,0,0.05));
  border-radius: 2px 0 0 2px;
  transform: rotateY(90deg);
  transform-origin: right;
}

/* Hero text */
.hero-text { max-width: 560px; }

.hero-eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--crimson);
  margin-bottom: 20px;
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(48px, 6vw, 80px);
  font-weight: 900;
  line-height: 0.92;
  color: var(--charcoal);
  letter-spacing: -2px;
  margin-bottom: 28px;
}

.hero-headline em {
  font-style: italic;
  color: var(--crimson);
}

.hero-desc {
  font-size: 17px;
  color: var(--ink);
  max-width: 440px;
  line-height: 1.7;
}

/* === AUTHOR === */
.author {
  background: var(--charcoal);
  color: var(--cream);
  padding: var(--section-pad) 32px;
}

.author-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 64px;
  align-items: start;
}

.portrait-frame {
  width: 200px;
  aspect-ratio: 1;
  border: 2px solid rgba(200,169,110,0.4);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
}

.portrait-placeholder {
  width: 100%;
  height: 100%;
  background: var(--crimson);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.portrait-initials {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 900;
  color: var(--cream);
  letter-spacing: -1px;
}

.author-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}

.author-name {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 900;
  color: var(--cream);
  line-height: 1.1;
  letter-spacing: -1px;
  margin-bottom: 20px;
}

.author-bio {
  font-size: 16px;
  color: rgba(248,240,232,0.8);
  line-height: 1.75;
  margin-bottom: 16px;
}

.author-bio-secondary {
  font-size: 15px;
  color: rgba(248,240,232,0.5);
  font-style: italic;
}

/* === EXCERPTS === */
.excerpts {
  padding: var(--section-pad) 32px;
  background: var(--cream-dark);
}

.excerpts-inner { max-width: var(--max-w); margin: 0 auto; }

.excerpts-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 48px;
}

.excerpt-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 28px;
}

.excerpt-card {
  background: var(--cream);
  border: 1px solid var(--bone);
  border-left: 4px solid var(--crimson);
  padding: 36px 32px 28px;
  position: relative;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.excerpt-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.08);
}

.excerpt-card-tall {
  margin-top: -28px;
}

.excerpt-text {
  font-family: var(--font-display);
  font-size: 18px;
  font-style: italic;
  line-height: 1.55;
  color: var(--ink);
  margin-bottom: 20px;
}

.excerpt-text::before { content: '\201C'; }
.excerpt-text::after { content: '\201D'; }

.excerpt-page {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--muted);
  text-transform: uppercase;
}

/* === MERCH === */
.merch {
  padding: var(--section-pad) 32px;
  background: var(--cream);
}

.merch-inner { max-width: var(--max-w); margin: 0 auto; }

.merch-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}

.merch-headline {
  font-family: var(--font-display);
  font-size: clamp(36px, 4.5vw, 60px);
  font-weight: 900;
  color: var(--charcoal);
  letter-spacing: -1.5px;
  line-height: 1.05;
  margin-bottom: 12px;
}

.merch-desc {
  font-size: 16px;
  color: var(--muted);
  margin-bottom: 56px;
}

.merch-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.merch-item { display: flex; flex-direction: column; gap: 12px; }

.merch-visual {
  aspect-ratio: 4/5;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Bookmark visual */
.merch-visual-bookmark { background: var(--crimson); }
.bookmark-shape {
  width: 60px;
  height: 180px;
  background: linear-gradient(to bottom, var(--cream) 60%, transparent 60%);
  clip-path: polygon(0 0, 100% 0, 100% 80%, 50% 100%, 0 80%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.bookmark-text {
  font-family: var(--font-display);
  font-size: 16px;
  font-style: italic;
  font-weight: 700;
  color: var(--crimson);
  text-align: center;
  line-height: 1.2;
  position: absolute;
  top: 18%;
}

/* Tote visual */
.merch-visual-tote { background: var(--charcoal); }
.tote-shape {
  width: 100px;
  height: 80px;
  background: var(--cream);
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tote-logo {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 900;
  color: var(--charcoal);
}

/* Pin visual */
.merch-visual-pin { background: var(--cream-dark); }
.pin-shape {
  width: 72px;
  height: 72px;
  background: var(--crimson);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 900;
  color: var(--cream);
}

.merch-name {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--charcoal);
}

.merch-price {
  font-size: 15px;
  font-weight: 600;
  color: var(--crimson);
}

/* === CLOSING === */
.closing {
  padding: var(--section-pad) 32px;
  background: var(--crimson);
  color: var(--cream);
}

.closing-inner { max-width: 760px; margin: 0 auto; }

.closing-rule {
  width: 80px;
  height: 2px;
  background: rgba(200,169,110,0.5);
  margin: 0 auto 48px;
}

.closing-quote {
  text-align: center;
  margin-bottom: 48px;
}

.closing-quote p {
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 36px);
  font-style: italic;
  line-height: 1.4;
  color: var(--cream);
  margin-bottom: 20px;
}

.closing-quote cite {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  font-style: normal;
}

.closing-bottom { text-align: center; }

.closing-press {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 900;
  color: var(--cream);
  margin-bottom: 4px;
}

.closing-sub {
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(248,240,232,0.5);
}

/* === FOOTER === */
.footer {
  background: var(--charcoal);
  color: rgba(248,240,232,0.4);
  padding: 48px 32px;
  text-align: center;
}

.footer-inner { max-width: var(--max-w); margin: 0 auto; }

.footer-brand {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 900;
  color: var(--cream);
  margin-bottom: 8px;
}

.footer-dot { color: var(--crimson); }

.footer-tagline {
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 24px;
}

.footer-copy {
  font-size: 13px;
  line-height: 1.7;
}

/* === RESPONSIVE === */
@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 48px;
    text-align: center;
  }

  .hero-book {
    order: -1;
    justify-content: center;
  }

  .hero-text { max-width: 100%; }
  .hero-headline { font-size: 52px; }
  .hero-desc { max-width: 480px; margin: 0 auto; }

  .author-inner {
    grid-template-columns: 1fr;
    gap: 32px;
    text-align: center;
  }

  .portrait-frame { margin: 0 auto; }

  .excerpt-grid {
    grid-template-columns: 1fr;
  }

  .excerpt-card-tall { margin-top: 0; }

  .merch-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .merch-visual { max-width: 300px; margin: 0 auto; }
}

@media (max-width: 480px) {
  .hero { padding-top: 100px; }
  .book-cover { width: 180px; height: 270px; }
  .book-title { font-size: 32px; }
  .hero-headline { font-size: 40px; }
}