/* ============================================
   Moonlit Forge Press - Immersive Dark Theme
   ============================================ */

/* Fonts */
/* Fonts loaded via <link> in HTML head to comply with CSP */

/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

:root {
  --burgundy: #722f37;
  --burgundy-dark: #5a242a;
  --burgundy-glow: rgba(114, 47, 55, 0.4);
  --gold: #c9a227;
  --gold-light: #d4b94a;
  --gold-glow: rgba(201, 162, 39, 0.4);
  --cream: #f8f6f1;
  --dark: #0a0808;
  --dark-lighter: #151313;
  --dark-card: rgba(255, 255, 255, 0.03);
  --scifi-accent: #4a90a4;
  --scifi-glow: rgba(74, 144, 164, 0.4);
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Crimson Pro', Georgia, serif;
}

body {
  font-family: var(--font-body);
  background: var(--dark);
  color: var(--cream);
  line-height: 1.7;
  font-size: 17px;
  overflow-x: hidden;
}

/* ============================================
   Ambient Background Effects
   ============================================ */
.ambient-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.ambient-bg::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background:
    radial-gradient(ellipse at 20% 20%, rgba(114, 47, 55, 0.12) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 80%, rgba(201, 162, 39, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 50%, rgba(114, 47, 55, 0.05) 0%, transparent 70%);
  animation: ambientDrift 30s ease-in-out infinite;
}

@keyframes ambientDrift {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  33% { transform: translate(2%, 1%) rotate(1deg); }
  66% { transform: translate(-1%, 2%) rotate(-1deg); }
}

.noise-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

/* ============================================
   Typography
   ============================================ */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.2;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); margin: 0 0 1rem; }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); margin: 2rem 0 1rem; color: var(--gold); }
h3 { font-size: 1.3rem; margin: 0 0 0.5rem; }

p { margin: 0 0 1rem; }

a { color: var(--gold-light); transition: all 0.3s ease; text-decoration: none; }
a:hover { color: var(--gold); }

/* ============================================
   Layout Containers
   ============================================ */
.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
  z-index: 10;
}

.container-wide {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
  z-index: 10;
}

/* ============================================
   Header & Navigation
   ============================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(10, 8, 8, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(201, 162, 39, 0.1);
  transition: all 0.4s ease;
}

.site-header.scrolled {
  background: rgba(10, 8, 8, 0.95);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
}

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

.brand-icon {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.4s ease;
}

.brand-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand:hover .brand-icon {
  box-shadow: 0 0 20px var(--gold-glow);
}

.brand-text {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
}

.nav-links a {
  color: rgba(248, 246, 241, 0.7);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.08em;
  position: relative;
  padding: 0.5rem 0;
  transition: all 0.3s ease;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--gold);
}

.nav-links a:hover::after,
.nav-links a[aria-current="page"]::after {
  width: 100%;
}

/* Mobile Navigation */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--cream);
  cursor: pointer;
  padding: 0.75rem;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  min-width: 44px;
  min-height: 44px;
}

.nav-toggle svg {
  display: block;
  width: 28px;
  height: 28px;
  pointer-events: none;
}

.nav-toggle .close-icon { display: none; }
.nav-toggle.active .menu-icon { display: none; }
.nav-toggle.active .close-icon { display: block; }

@media (max-width: 768px) {
  .nav-toggle { display: block; }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(10, 8, 8, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 1.5rem 2rem;
    gap: 0;
    border-bottom: 1px solid rgba(201, 162, 39, 0.1);
  }

  .nav-links.open { display: flex; }

  .nav-links a {
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
  }

  .nav-links a::after { display: none; }

  .nav-links a:hover {
    background: transparent;
  }
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 6rem 2rem;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.35;
  filter: saturate(0.8);
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at center, transparent 0%, var(--dark) 70%),
    linear-gradient(180deg, var(--dark) 0%, transparent 20%, transparent 80%, var(--dark) 100%);
}

.hero-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(114, 47, 55, 0.25) 0%, transparent 60%);
  animation: heroGlow 8s ease-in-out infinite;
  z-index: 2;
}

@keyframes heroGlow {
  0%, 100% { opacity: 0.6; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 1; transform: translate(-50%, -50%) scale(1.15); }
}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  max-width: 800px;
}

.hero-series {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.4em;
  margin-bottom: 1.5rem;
  opacity: 0.9;
  animation: fadeInUp 1s ease 0.2s both;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 10vw, 6rem);
  font-weight: 600;
  color: var(--cream);
  line-height: 1;
  margin-bottom: 1.5rem;
  text-shadow: 0 0 80px var(--burgundy-glow);
  animation: fadeInUp 1s ease 0.4s both;
}

.hero-tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.2rem, 3vw, 1.6rem);
  color: rgba(248, 246, 241, 0.8);
  line-height: 1.5;
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  animation: fadeInUp 1s ease 0.6s both;
}

.hero-heat {
  font-size: 1.2rem;
  margin-bottom: 2.5rem;
  animation: fadeInUp 1s ease 0.8s both;
}

.hero-heat .flames {
  color: #ff6b35;
  text-shadow: 0 0 20px rgba(255, 107, 53, 0.6);
  letter-spacing: 4px;
}

.hero-heat .label {
  color: rgba(248, 246, 241, 0.6);
  margin-left: 0.75rem;
  font-size: 1rem;
}

.hero-buttons {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 1s ease 1s both;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Simple hero for secondary pages */
.hero-simple {
  min-height: 30vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8rem 2rem 4rem;
  text-align: center;
  position: relative;
  z-index: 10;
}

.hero-simple h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4rem);
  color: var(--cream);
  text-shadow: 0 0 60px var(--burgundy-glow);
}

.hero-simple p {
  color: rgba(248, 246, 241, 0.6);
  font-size: 1.1rem;
  margin-top: 1rem;
}

@media (max-width: 768px) {
  .hero {
    min-height: 90vh;
    padding: 5rem 1.5rem;
  }

  .hero-simple {
    min-height: 25vh;
    padding: 7rem 1.5rem 3rem;
  }
}

/* ============================================
   Section Dividers
   ============================================ */
.divider {
  text-align: center;
  padding: 4rem 0;
  position: relative;
  z-index: 10;
}

.divider-ornament {
  display: inline-flex;
  align-items: center;
  gap: 1.5rem;
  color: var(--gold);
  opacity: 0.5;
}

.divider-line {
  width: 80px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.divider-symbol {
  font-family: var(--font-display);
  font-size: 1.5rem;
}

/* ============================================
   Sections
   ============================================ */
.section {
  padding: 6rem 0;
  position: relative;
  z-index: 10;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 2.8rem);
  font-weight: 500;
  color: var(--gold);
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
}

.section-header h2::after {
  content: '';
  position: absolute;
  bottom: -0.75rem;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 2px;
  background: var(--gold);
  opacity: 0.5;
}

.section-header p {
  color: rgba(248, 246, 241, 0.6);
  font-size: 1.1rem;
  max-width: 500px;
  margin: 1.5rem auto 0;
}

/* ============================================
   Buttons
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2.5rem;
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: 0.15em;
  border-radius: 2px;
  position: relative;
  overflow: hidden;
  transition: all 0.4s ease;
  border: none;
  cursor: pointer;
}

.btn-gold {
  background: var(--gold);
  color: var(--dark);
}

.btn-gold:hover {
  background: var(--gold-light);
  color: var(--dark);
  box-shadow: 0 0 40px var(--gold-glow);
  transform: translateY(-3px);
}

.btn-outline {
  background: transparent;
  color: var(--cream);
  border: 1px solid rgba(248, 246, 241, 0.4);
}

.btn-outline::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(201, 162, 39, 0.15), transparent);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}

.btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.btn-outline:hover::before {
  transform: translateX(100%);
}

.btn-amazon {
  background: #232f3e;
  color: #fff;
}

.btn-amazon:hover {
  background: #37475a;
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.btn-audible {
  background: #ff9900;
  color: #111;
}

.btn-audible:hover {
  background: #ffad33;
  color: #111;
  transform: translateY(-3px);
}

.btn-bn {
  background: #2a5934;
  color: #fff;
}

.btn-bn:hover {
  background: #367243;
  color: #fff;
  transform: translateY(-3px);
}

.btn-disabled {
  background: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.4);
  cursor: not-allowed;
  pointer-events: none;
}

.btn-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin: 1.5rem 0;
}

/* ============================================
   Books Grid
   ============================================ */
.books-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 3rem;
  max-width: 1100px;
  margin: 0 auto;
}

@media (max-width: 600px) {
  .books-grid {
    grid-template-columns: 1fr;
    max-width: 320px;
  }
}

.book-card {
  text-align: center;
  position: relative;
}

.book-cover-wrap {
  position: relative;
  margin-bottom: 1.5rem;
}

.book-cover-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 200px;
  height: 300px;
  background: radial-gradient(ellipse, var(--burgundy-glow) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.5s ease;
  filter: blur(30px);
}

.book-card:hover .book-cover-glow {
  opacity: 1;
}

.book-cover {
  position: relative;
  width: 200px;
  height: auto;
  margin: 0 auto;
  border-radius: 4px;
  box-shadow:
    0 25px 50px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.05);
  transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.book-card:hover .book-cover {
  transform: translateY(-15px) scale(1.03);
  box-shadow:
    0 40px 80px rgba(0, 0, 0, 0.6),
    0 0 60px var(--burgundy-glow);
}

.book-card h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--cream);
  margin-bottom: 0.5rem;
}

.book-card h3 a {
  color: inherit;
  text-decoration: none;
  transition: all 0.3s ease;
}

.book-card h3 a:hover {
  color: var(--gold);
  text-shadow: 0 0 20px var(--gold-glow);
}

.book-meta {
  color: rgba(248, 246, 241, 0.5);
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}

.book-heat {
  color: #ff6b35;
  font-size: 0.95rem;
}

/* ============================================
   Heat Level
   ============================================ */
.heat-level {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
  padding: 0.25rem 0;
}

.heat-level .flames {
  color: #ff6b35;
  letter-spacing: 2px;
  text-shadow: 0 0 15px rgba(255, 107, 53, 0.5);
}

.heat-level .label {
  font-size: 0.9rem;
  color: rgba(248, 246, 241, 0.6);
}

/* ============================================
   Testimonials
   ============================================ */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

@media (max-width: 700px) {
  .testimonials-grid {
    grid-template-columns: 1fr;
    max-width: 600px;
  }
}

.testimonial {
  position: relative;
  padding: 2.5rem 2rem;
  background: var(--dark-card);
  border: 1px solid rgba(201, 162, 39, 0.15);
  border-radius: 8px;
  transition: all 0.4s ease;
}

.testimonial:hover {
  border-color: rgba(201, 162, 39, 0.35);
  box-shadow: 0 20px 60px rgba(201, 162, 39, 0.08);
  transform: translateY(-5px);
}

.testimonial::before {
  content: '"';
  position: absolute;
  top: 1rem;
  left: 1.5rem;
  font-family: var(--font-display);
  font-size: 4rem;
  line-height: 1;
  color: var(--gold);
  opacity: 0.3;
}

.testimonial-quote {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-style: italic;
  line-height: 1.6;
  color: var(--cream);
  margin-bottom: 1.25rem;
  position: relative;
  z-index: 1;
}

.testimonial-author {
  color: var(--gold);
  font-size: 0.9rem;
  font-weight: 500;
}

/* ============================================
   News Section
   ============================================ */
.news-grid {
  display: grid;
  gap: 1.5rem;
  max-width: 800px;
  margin: 0 auto;
}

.news-item {
  padding: 1.75rem 2rem;
  background: var(--dark-card);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  transition: all 0.3s ease;
}

.news-item:hover {
  border-color: rgba(201, 162, 39, 0.25);
  background: rgba(255, 255, 255, 0.04);
}

.news-date {
  display: inline-block;
  font-size: 0.75rem;
  color: var(--dark);
  background: var(--gold);
  font-weight: 600;
  padding: 0.3rem 0.75rem;
  border-radius: 3px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}

.news-item p {
  color: rgba(248, 246, 241, 0.85);
  line-height: 1.7;
  margin: 0;
}

.news-item a {
  color: var(--gold-light);
}

.news-item a:hover {
  color: var(--gold);
  text-shadow: 0 0 10px var(--gold-glow);
}

.news-item em {
  font-style: italic;
  color: var(--cream);
}

/* ============================================
   Book Detail Page
   ============================================ */
.book-hero {
  min-height: 70vh;
  display: grid;
  grid-template-columns: 400px 1fr;
  gap: 4rem;
  align-items: center;
  padding: 8rem 4rem 4rem;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 10;
}

@media (max-width: 900px) {
  .book-hero {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 7rem 2rem 3rem;
    gap: 2rem;
  }
}

.book-cover-container {
  position: relative;
}

.book-cover-detail-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 400px;
  height: 600px;
  background: radial-gradient(ellipse, var(--burgundy-glow) 0%, transparent 60%);
  filter: blur(60px);
  animation: coverGlow 6s ease-in-out infinite;
}

@keyframes coverGlow {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 0.8; }
}

.book-cover-main {
  position: relative;
  max-width: 350px;
  width: 100%;
  border-radius: 6px;
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(255, 255, 255, 0.05);
}

.cover-badge {
  position: absolute;
  top: 1rem;
  right: -0.5rem;
  background: var(--gold);
  color: var(--dark);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.5rem 1rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

@media (max-width: 900px) {
  .book-cover-main {
    max-width: 280px;
    margin: 0 auto;
  }
}

.book-info {
  animation: fadeInUp 1s ease 0.3s both;
}

.book-series {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.3em;
  margin-bottom: 1rem;
  opacity: 0.9;
}

.book-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 600;
  color: var(--cream);
  line-height: 1.1;
  margin-bottom: 1rem;
  text-shadow: 0 0 60px var(--burgundy-glow);
}

.book-subtitle {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.2rem;
  color: rgba(248, 246, 241, 0.6);
  margin-bottom: 1.5rem;
}

.book-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

@media (max-width: 900px) {
  .book-buttons { justify-content: center; }
}

.book-meta-quick {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  font-size: 0.9rem;
  color: rgba(248, 246, 241, 0.5);
}

@media (max-width: 900px) {
  .book-meta-quick { justify-content: center; }
}

.book-meta-quick span {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.book-meta-quick strong {
  color: var(--gold);
}

/* Book Content Sections */
.book-content {
  position: relative;
  z-index: 10;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 2rem 4rem;
}

.content-section {
  margin-bottom: 4rem;
}

.content-section h2 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--gold);
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(201, 162, 39, 0.2);
}

.book-description p {
  font-size: 1.1rem;
  color: rgba(248, 246, 241, 0.85);
  line-height: 1.9;
  margin-bottom: 1.5rem;
}

.book-description p:first-of-type {
  font-size: 1.25rem;
  font-style: italic;
  color: var(--cream);
}

.book-description p:last-of-type {
  font-style: italic;
  color: var(--gold);
  font-size: 1.15rem;
}

/* Details Grid */
.details-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

@media (max-width: 600px) {
  .details-grid { grid-template-columns: 1fr; }
}

.detail-item {
  padding: 1rem 1.25rem;
  background: var(--dark-card);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 6px;
}

.detail-item .label {
  font-size: 0.75rem;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.25rem;
}

.detail-item .value {
  color: var(--cream);
  font-size: 1rem;
}

.detail-item .value a {
  color: var(--gold-light);
}

.detail-item .value a:hover {
  color: var(--gold);
}

/* Series Navigation */
.series-nav {
  background: linear-gradient(135deg, rgba(114, 47, 55, 0.15) 0%, rgba(10, 8, 8, 0.9) 100%);
  border: 1px solid rgba(201, 162, 39, 0.15);
  border-radius: 12px;
  padding: 2rem;
}

.series-nav h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--gold);
  margin-bottom: 1.5rem;
}

.series-books {
  display: grid;
  gap: 1rem;
}

.series-book {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.series-book:hover {
  background: rgba(255, 255, 255, 0.06);
  transform: translateX(5px);
}

.series-book.current {
  border: 1px solid rgba(201, 162, 39, 0.3);
}

.series-book img {
  width: 60px;
  height: auto;
  border-radius: 3px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.series-book-info h4 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--cream);
  margin-bottom: 0.25rem;
}

.series-book-info p {
  font-size: 0.85rem;
  color: rgba(248, 246, 241, 0.5);
  margin: 0;
}

.series-book-info .heat {
  color: #ff6b35;
  font-size: 0.9rem;
}

.current-badge {
  font-size: 0.7rem;
  background: var(--gold);
  color: var(--dark);
  padding: 0.2rem 0.5rem;
  border-radius: 3px;
  margin-left: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* More Books */
.more-books {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

@media (max-width: 600px) {
  .more-books { grid-template-columns: 1fr; }
}

.more-book-card {
  display: flex;
  gap: 1.5rem;
  padding: 1.5rem;
  background: var(--dark-card);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.more-book-card:hover {
  border-color: rgba(201, 162, 39, 0.25);
  transform: translateY(-3px);
}

.more-book-card img {
  width: 80px;
  height: auto;
  border-radius: 4px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

.more-book-card h4 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--cream);
  margin-bottom: 0.25rem;
}

.more-book-card .meta {
  font-size: 0.85rem;
  color: rgba(248, 246, 241, 0.5);
  margin-bottom: 0.5rem;
}

.more-book-card .heat {
  color: #ff6b35;
  font-size: 0.9rem;
}

/* Back link */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--gold);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 1rem;
  margin-bottom: 3rem;
  transition: all 0.3s ease;
}

.back-link:hover {
  color: var(--gold-light);
  transform: translateX(-5px);
}

/* ============================================
   Prose Content (for secondary pages)
   ============================================ */
.prose {
  position: relative;
  z-index: 10;
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
}

.prose h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  color: var(--cream);
  margin-bottom: 2rem;
  text-shadow: 0 0 40px var(--burgundy-glow);
}

.prose h2 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--gold);
  margin-top: 3rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(201, 162, 39, 0.2);
}

.prose p {
  color: rgba(248, 246, 241, 0.85);
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.prose a {
  color: var(--gold-light);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.prose a:hover {
  color: var(--gold);
}

.prose ul, .prose ol {
  margin: 1.5rem 0;
  padding-left: 1.5rem;
  color: rgba(248, 246, 241, 0.85);
}

.prose li {
  margin-bottom: 0.75rem;
  line-height: 1.7;
}

.prose strong {
  color: var(--cream);
}

/* Author photo */
.author-photo {
  float: right;
  margin: 0 0 2rem 2rem;
  max-width: 220px;
  width: 100%;
}

.author-photo img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

@media (max-width: 640px) {
  .author-photo {
    float: none;
    margin: 0 auto 2rem;
    max-width: 200px;
  }
}

/* ============================================
   Lists
   ============================================ */
.list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
}

.list li {
  margin: 0.75rem 0;
  padding-left: 1.5rem;
  position: relative;
  color: rgba(248, 246, 241, 0.85);
}

.list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--gold);
}

.list a {
  color: var(--gold-light);
}

.list a:hover {
  color: var(--gold);
}

/* ============================================
   Footer
   ============================================ */
.site-footer {
  position: relative;
  z-index: 10;
  padding: 4rem 2rem;
  border-top: 1px solid rgba(201, 162, 39, 0.1);
  text-align: center;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.footer-brand img {
  width: 40px;
  height: 40px;
  border-radius: 6px;
}

.footer-brand span {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--cream);
  opacity: 0.8;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: rgba(248, 246, 241, 0.5);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--gold);
}

.footer-copy {
  color: rgba(248, 246, 241, 0.4);
  font-size: 0.85rem;
}

.footer-copy a {
  color: var(--gold);
  text-decoration: none;
}

/* ============================================
   Scroll Animations
   ============================================ */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered children */
.stagger-children .fade-in:nth-child(1) { transition-delay: 0.1s; }
.stagger-children .fade-in:nth-child(2) { transition-delay: 0.2s; }
.stagger-children .fade-in:nth-child(3) { transition-delay: 0.3s; }
.stagger-children .fade-in:nth-child(4) { transition-delay: 0.4s; }
.stagger-children .fade-in:nth-child(5) { transition-delay: 0.5s; }

/* ============================================
   Utility Classes
   ============================================ */
.text-center { text-align: center; }
.text-gold { color: var(--gold); }
.sr-only {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Sci-fi accent variant */
.scifi-accent { color: var(--scifi-accent); }
.scifi-glow { text-shadow: 0 0 20px var(--scifi-glow); }

/* ============================================
   Secondary Page Styles
   ============================================ */

/* Page Hero (simpler hero for secondary pages) */
.page-hero {
  position: relative;
  z-index: 10;
  padding: 8rem 2rem 4rem;
  text-align: center;
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 400;
  color: var(--cream);
  margin: 0 0 1rem;
  text-shadow: 0 0 60px var(--burgundy-glow);
}

.page-hero p {
  font-size: 1.2rem;
  color: rgba(248, 246, 241, 0.7);
  margin: 0;
}

/* Prose Page Layout */
.prose-page {
  position: relative;
  z-index: 10;
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
}

.prose-content {
  color: rgba(248, 246, 241, 0.85);
  line-height: 1.8;
}

.prose-content p {
  margin: 0 0 1.5rem;
}

.prose-content .lead {
  font-size: 1.25rem;
  color: rgba(248, 246, 241, 0.9);
  line-height: 1.7;
}

.prose-content h2 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 400;
  color: var(--gold);
  margin: 3rem 0 1.5rem;
}

.prose-content h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--cream);
  margin: 2rem 0 1rem;
}

.prose-content a {
  color: var(--gold);
  text-decoration: underline;
  text-decoration-color: rgba(201, 162, 39, 0.3);
  text-underline-offset: 3px;
}

.prose-content a:hover {
  text-decoration-color: var(--gold);
}

.prose-content a.btn {
  text-decoration: none;
}

.prose-content a.btn-gold {
  color: var(--dark);
}

.prose-content ul {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
}

.prose-content ul li {
  margin: 0.75rem 0;
  padding-left: 1.5rem;
  position: relative;
}

.prose-content ul li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--gold);
}

/* Notice Box */
.notice {
  background: rgba(114, 47, 55, 0.15);
  border: 1px solid rgba(114, 47, 55, 0.3);
  border-radius: 8px;
  padding: 1.5rem;
  margin: 2rem 0;
}

.notice p {
  margin: 0;
  color: rgba(248, 246, 241, 0.9);
}

/* Genre List */
.genre-list li {
  margin: 1rem 0;
}

.genre-list strong {
  color: var(--gold);
}

/* Contact Email */
.contact-email {
  text-align: center;
  margin: 2rem 0;
}

/* Compact Details Grid */
.details-grid.compact {
  margin-top: 2rem;
  gap: 1rem;
}

.details-grid.compact .detail-item {
  padding: 1rem;
}

/* Download Grid */
.download-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.download-item h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--gold);
  margin: 0 0 1rem;
}

.download-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.download-list li {
  margin: 0.5rem 0;
  padding-left: 1.25rem;
  position: relative;
}

.download-list li::before {
  content: '↓';
  position: absolute;
  left: 0;
  color: var(--gold);
}

.download-list a {
  color: rgba(248, 246, 241, 0.8);
  text-decoration: none;
  transition: color 0.3s ease;
}

.download-list a:hover {
  color: var(--gold);
}

/* Author Profile */
.author-profile {
  text-align: center;
}

.author-profile h2 {
  margin-bottom: 2rem;
}

.author-photo {
  display: block;
  margin: 0 auto 2rem;
  max-width: 300px;
}

.author-photo img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

.author-profile p {
  text-align: left;
}

.author-profile .btn {
  margin-top: 1rem;
}

.author-divider {
  border: none;
  border-top: 1px solid rgba(248, 246, 241, 0.15);
  margin: 4rem auto;
  max-width: 200px;
}

/* ============================================
   Responsive Adjustments
   ============================================ */

/* ============================================
   Newsletter Section
   ============================================ */
.newsletter-section {
  text-align: center;
}

.newsletter-section .formkit-form {
  max-width: 600px;
  margin: 0 auto;
  background: transparent !important;
}

.newsletter-section .formkit-header h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.5rem);
  font-weight: 400;
  color: var(--gold);
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.newsletter-section .formkit-subheader p {
  color: rgba(248, 246, 241, 0.8);
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 2rem;
}

.newsletter-section .formkit-fields {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.newsletter-section .formkit-field {
  flex: 1;
  min-width: 250px;
  max-width: 350px;
}

.newsletter-section .formkit-input {
  width: 100%;
  padding: 1rem 1.25rem;
  font-size: 1rem;
  font-family: var(--font-body);
  background: rgba(248, 246, 241, 0.05);
  border: 1px solid rgba(248, 246, 241, 0.2);
  border-radius: 6px;
  color: var(--cream);
  transition: all 0.3s ease;
}

.newsletter-section .formkit-input::placeholder {
  color: rgba(248, 246, 241, 0.5);
}

.newsletter-section .formkit-input:focus {
  outline: none;
  border-color: var(--gold);
  background: rgba(248, 246, 241, 0.08);
}

.newsletter-section .formkit-submit {
  padding: 1rem 2rem;
  font-size: 1rem;
  font-family: var(--font-body);
  font-weight: 500;
  background: var(--gold);
  color: var(--dark);
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.newsletter-section .formkit-submit:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px var(--gold-glow);
}

.newsletter-section .formkit-alert-error {
  background: rgba(220, 53, 69, 0.1);
  border: 1px solid rgba(220, 53, 69, 0.3);
  color: #ff6b6b;
  border-radius: 6px;
  padding: 1rem;
  margin-bottom: 1rem;
  list-style: none;
}

.newsletter-section .formkit-alert-success {
  background: rgba(40, 167, 69, 0.1);
  border: 1px solid rgba(40, 167, 69, 0.3);
  color: #51cf66;
  border-radius: 6px;
  padding: 1rem;
}

.newsletter-section .formkit-spinner {
  display: none;
}

.newsletter-section .formkit-background {
  display: none;
}

@media (max-width: 768px) {
  .page-hero {
    padding: 6rem 1.5rem 3rem;
  }

  .prose-page {
    padding: 1.5rem;
  }

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

  .newsletter-section .formkit-fields {
    flex-direction: column;
    align-items: center;
  }

  .newsletter-section .formkit-field {
    width: 100%;
    max-width: 100%;
  }

  .newsletter-section .formkit-submit {
    width: 100%;
  }
}

/* ============================================
   Wholesale Page Styles
   ============================================ */

/* Wholesale Book List */
.wholesale-titles {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin: 2rem 0;
}

.wholesale-book {
  display: flex;
  gap: 1.5rem;
  padding: 1.5rem;
  background: var(--dark-card);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  transition: all 0.3s ease;
}

.wholesale-book:hover {
  border-color: rgba(201, 162, 39, 0.25);
}

.wholesale-book img {
  width: 80px;
  height: auto;
  border-radius: 4px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  flex-shrink: 0;
}

.wholesale-book-info {
  flex: 1;
}

.wholesale-book-info h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--cream);
  margin: 0 0 0.25rem;
}

.wholesale-book-info .series {
  font-size: 0.9rem;
  color: rgba(248, 246, 241, 0.6);
  margin: 0 0 0.5rem;
}

.wholesale-book-info .details {
  font-size: 0.85rem;
  color: rgba(248, 246, 241, 0.5);
  margin: 0 0 0.5rem;
}

.wholesale-book-info .price {
  font-size: 0.95rem;
  color: rgba(248, 246, 241, 0.8);
  margin: 0;
}

.wholesale-book-info .price strong {
  color: var(--gold);
}

@media (max-width: 500px) {
  .wholesale-book {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .wholesale-book img {
    width: 100px;
  }
}

/* Wholesale Form */
.wholesale-form {
  margin: 2rem 0;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  color: var(--cream);
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.form-group label .required {
  color: var(--gold);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.9rem 1rem;
  font-size: 1rem;
  font-family: var(--font-body);
  background: rgba(248, 246, 241, 0.05);
  border: 1px solid rgba(248, 246, 241, 0.15);
  border-radius: 6px;
  color: var(--cream);
  transition: all 0.3s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(248, 246, 241, 0.4);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
  background: rgba(248, 246, 241, 0.08);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 600px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

.form-fieldset {
  border: 1px solid rgba(248, 246, 241, 0.1);
  border-radius: 8px;
  padding: 1.5rem;
  margin: 2rem 0;
}

.form-fieldset legend {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--gold);
  padding: 0 0.75rem;
}

.fieldset-note {
  font-size: 0.85rem;
  color: rgba(248, 246, 241, 0.5);
  margin: 0 0 1rem;
}

.quantity-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
}

.quantity-item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.quantity-item label {
  font-size: 0.9rem;
  color: var(--cream);
}

.quantity-item input {
  width: 100%;
  padding: 0.75rem;
  font-size: 1rem;
  font-family: var(--font-body);
  background: rgba(248, 246, 241, 0.05);
  border: 1px solid rgba(248, 246, 241, 0.15);
  border-radius: 6px;
  color: var(--cream);
  text-align: center;
}

.quantity-item input:focus {
  outline: none;
  border-color: var(--gold);
  background: rgba(248, 246, 241, 0.08);
}

.wholesale-form .btn {
  margin-top: 1rem;
}
