/* ==========================================================================
   JULIAN KELLS — OFFICIAL AUTHOR WEBSITE
   Atmospheric, Literary, and Cinematic Design System
   The Lake Greywake Mysteries
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design Tokens (Custom Properties)
   -------------------------------------------------------------------------- */
:root {
  /* Color Palette: Cold water, winter isolation, restrained crimson clue */
  --bg-primary: #080c10;
  --bg-surface: #0e141c;
  --bg-surface-elevated: #141d27;
  --bg-card: rgba(16, 24, 34, 0.65);
  --bg-card-hover: rgba(22, 33, 46, 0.8);
  
  /* Text Colors */
  --text-primary: #f2eee5;       /* Warm ivory / off-white */
  --text-secondary: #adb8c4;     /* Foggy slate grey */
  --text-muted: #6e7a88;         /* Subdued cold charcoal */
  --text-inverted: #080c10;
  
  /* Brand & Atmosphere Accents */
  --accent-ice: #8ab4ce;         /* Desaturated icy blue */
  --accent-ice-light: #c5dcee;   /* Frost highlight */
  --accent-ice-glow: rgba(138, 180, 206, 0.15);
  --accent-red: #9e2a2b;         /* Deep crimson clue accent */
  --accent-red-hover: #ba3436;
  --accent-red-glow: rgba(158, 42, 43, 0.25);
  
  /* Borders & Dividers */
  --border-subtle: rgba(138, 180, 206, 0.12);
  --border-medium: rgba(138, 180, 206, 0.22);
  --border-active: rgba(138, 180, 206, 0.45);
  
  /* Typography */
  --font-serif: 'Cormorant Garamond', 'Georgia', 'Cambria', 'Times New Roman', serif;
  --font-display: 'Cinzel', 'Cormorant Garamond', 'Georgia', serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  
  /* Layout & Spacing */
  --container-max: 1200px;
  --container-narrow: 840px;
  --container-reading: 720px;
  --header-height: 76px;
  
  /* Shadows */
  --shadow-book: 0 20px 40px -10px rgba(0, 0, 0, 0.85), 0 0 30px rgba(138, 180, 206, 0.08);
  --shadow-card: 0 12px 32px -8px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 24px var(--accent-red-glow);

  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-medium: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --------------------------------------------------------------------------
   2. Reset & Global Styles
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  background-color: var(--bg-primary);
  color: var(--text-primary);
}

body {
  font-family: var(--font-sans);
  font-weight: 400;
  line-height: 1.7;
  letter-spacing: 0.01em;
  background-color: var(--bg-primary);
  color: var(--text-secondary);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Subtle atmosphere background gradient */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(ellipse at 50% 0%, rgba(20, 32, 44, 0.45) 0%, transparent 60%),
    radial-gradient(ellipse at 85% 40%, rgba(14, 22, 32, 0.3) 0%, transparent 50%),
    radial-gradient(ellipse at 15% 75%, rgba(18, 28, 38, 0.25) 0%, transparent 50%);
  pointer-events: none;
  z-index: -1;
}

/* --------------------------------------------------------------------------
   3. Typography & Editorial Hierarchy
   -------------------------------------------------------------------------- */
h1, h2, h3, h4, .serif-heading {
  font-family: var(--font-serif);
  color: var(--text-primary);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.02em;
}

h1 {
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  font-family: var(--font-display);
  font-weight: 600;
}

h2 {
  font-size: clamp(1.8rem, 3.8vw, 2.75rem);
  letter-spacing: 0.02em;
}

h3 {
  font-size: clamp(1.3rem, 2.2vw, 1.8rem);
  letter-spacing: 0.015em;
}

p {
  margin-bottom: 1.4rem;
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.75;
}

p:last-child {
  margin-bottom: 0;
}

.text-lead {
  font-size: clamp(1.15rem, 1.8vw, 1.35rem);
  line-height: 1.65;
  color: var(--text-primary);
  font-family: var(--font-serif);
  font-style: italic;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--accent-ice);
  margin-bottom: 1rem;
  font-weight: 600;
}

.eyebrow-accent {
  color: var(--accent-red);
}

a {
  color: var(--accent-ice);
  text-decoration: none;
  transition: color var(--transition-fast), border-color var(--transition-fast);
}

a:hover {
  color: var(--accent-ice-light);
}

/* Subtle focus outline for keyboard accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--accent-ice);
  outline-offset: 3px;
}

/* --------------------------------------------------------------------------
   4. Layout Containers
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.container-narrow {
  max-width: var(--container-narrow);
}

.container-reading {
  max-width: var(--container-reading);
}

section {
  padding: 5.5rem 0;
  position: relative;
}

@media (min-width: 992px) {
  section {
    padding: 7.5rem 0;
  }
}

.section-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-subtle) 20%, var(--border-subtle) 80%, transparent);
  border: none;
  margin: 0;
}

/* --------------------------------------------------------------------------
   5. Site Header & Navigation
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 100;
  background: rgba(8, 12, 16, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-subtle);
  transition: background var(--transition-medium), border-color var(--transition-medium);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--text-primary);
  text-transform: uppercase;
  transition: opacity var(--transition-fast);
}

.brand-logo:hover {
  opacity: 0.85;
}

.brand-logo-mark {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--accent-red);
  margin-left: 0.5rem;
  opacity: 0.9;
}

.site-nav {
  display: flex;
  align-items: center;
}

.nav-list {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 2.25rem;
}

.nav-link {
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-secondary);
  font-weight: 500;
  position: relative;
  padding: 0.35rem 0;
  transition: color var(--transition-fast);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 1px;
  background-color: var(--accent-ice);
  transition: width var(--transition-medium);
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-primary);
}

.nav-link.active::after,
.nav-link:hover::after {
  width: 100%;
}

/* Mobile Nav Toggle */
.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  padding: 0.55rem;
  cursor: pointer;
  color: var(--text-primary);
  line-height: 0;
}

.nav-toggle:hover {
  border-color: var(--accent-ice);
}

.nav-toggle svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
}

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

  .site-nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    background: rgba(10, 15, 21, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-medium);
    padding: 2rem 1.5rem;
    flex-direction: column;
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform var(--transition-medium), opacity var(--transition-medium);
  }

  .site-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-list {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
    width: 100%;
  }

  .nav-link {
    font-size: 1.05rem;
    display: block;
    width: 100%;
  }
}

/* --------------------------------------------------------------------------
   5B. Breadcrumb Navigation (SEO & Accessible Navigation)
   -------------------------------------------------------------------------- */
.breadcrumb-nav {
  padding: 1.25rem 0 0.25rem;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.breadcrumb-list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.breadcrumb-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
}

.breadcrumb-item a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.breadcrumb-item a:hover {
  color: var(--accent-ice-light);
}

.breadcrumb-separator {
  color: var(--border-medium);
  font-size: 0.72rem;
  user-select: none;
}

.breadcrumb-current {
  color: var(--accent-ice-light);
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   6. Buttons & CTAs (Conversion Focused)
   -------------------------------------------------------------------------- */
.btn-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.95rem 1.9rem;
  border-radius: 2px;
  cursor: pointer;
  transition: transform var(--transition-fast), background var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast), box-shadow var(--transition-fast);
  text-decoration: none;
  min-height: 48px;
  text-align: center;
  border: 1px solid transparent;
}

/* Primary CTA: Kindle / Conversion */
.btn-primary {
  background-color: var(--text-primary);
  color: var(--text-inverted);
  border-color: var(--text-primary);
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}

.btn-primary:hover {
  background-color: #ffffff;
  color: #000000;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6), 0 0 15px rgba(255, 255, 255, 0.15);
}

/* Secondary CTA: Paperback */
.btn-secondary {
  background-color: transparent;
  color: var(--text-primary);
  border-color: var(--border-medium);
}

.btn-secondary:hover {
  background-color: rgba(138, 180, 206, 0.08);
  border-color: var(--accent-ice);
  color: var(--accent-ice-light);
  transform: translateY(-2px);
}

/* Subtle Crimson Accent CTA */
.btn-accent {
  background-color: var(--accent-red);
  color: #ffffff;
  border-color: var(--accent-red);
}

.btn-accent:hover {
  background-color: var(--accent-red-hover);
  border-color: var(--accent-red-hover);
  color: #ffffff;
  box-shadow: 0 4px 18px var(--accent-red-glow);
  transform: translateY(-2px);
}

/* Disabled / Coming soon badge */
.badge-muted {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.35rem 0.75rem;
  border: 1px dashed var(--border-subtle);
  color: var(--text-muted);
  border-radius: 2px;
}

/* --------------------------------------------------------------------------
   6B. Professional Book Edition Purchase Hub (Kindle, Paperback, Hardcover)
   -------------------------------------------------------------------------- */
.edition-selector {
  margin-top: 2rem;
  width: 100%;
}

.edition-selector-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.85rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-subtle);
}

.edition-selector-title {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.edition-geo-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.75rem;
  color: var(--text-secondary);
  background-color: rgba(20, 32, 45, 0.6);
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
}

.geo-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #34d399;
  box-shadow: 0 0 8px rgba(52, 211, 153, 0.7);
  flex-shrink: 0;
}

.geo-store-text {
  font-weight: 500;
  color: var(--accent-ice-light);
}

.edition-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.85rem;
}

@media (max-width: 720px) {
  .edition-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
}

.edition-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.1rem 1.15rem;
  background-color: rgba(13, 22, 33, 0.85);
  border: 1px solid var(--border-medium);
  border-radius: 4px;
  text-decoration: none;
  color: var(--text-primary);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
  transition: transform var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast), background-color var(--transition-fast);
  position: relative;
  overflow: hidden;
}

.edition-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent-ice);
  background-color: rgba(18, 30, 44, 0.95);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.55), 0 0 16px rgba(138, 180, 206, 0.15);
}

.edition-card:focus-visible {
  outline: 2px solid var(--accent-ice-light);
  outline-offset: 3px;
}

/* Featured / Kindle Edition Highlight */
.edition-card-featured {
  border-color: rgba(138, 180, 206, 0.38);
  background: linear-gradient(180deg, rgba(22, 36, 52, 0.9) 0%, rgba(13, 22, 33, 0.95) 100%);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4), 0 0 20px rgba(138, 180, 206, 0.08);
}

.edition-card-featured:hover {
  border-color: var(--accent-ice-light);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.6), 0 0 24px rgba(138, 180, 206, 0.25);
}

.edition-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.edition-icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 4px;
  background-color: rgba(138, 180, 206, 0.08);
  color: var(--accent-ice-light);
}

.edition-card-featured .edition-icon-wrap {
  background-color: rgba(138, 180, 206, 0.16);
  color: #ffffff;
}

.edition-tag {
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.2rem 0.55rem;
  border-radius: 2px;
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  border: 1px solid var(--border-subtle);
}

.edition-tag-highlight {
  background-color: rgba(158, 42, 43, 0.25);
  color: #fca5a5;
  border-color: rgba(158, 42, 43, 0.45);
}

.edition-card-body {
  margin-bottom: 1rem;
}

.edition-format-title {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.25;
  margin-bottom: 0.25rem;
}

.edition-format-desc {
  display: block;
  font-size: 0.78rem;
  line-height: 1.4;
  color: var(--text-muted);
}

.edition-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--accent-ice-light);
}

.edition-retailer {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--text-secondary);
}

.edition-card:hover .edition-retailer {
  color: var(--text-primary);
}

.edition-action-arrow {
  color: var(--accent-ice-light);
  transition: transform var(--transition-fast), color var(--transition-fast);
}

.edition-card:hover .edition-action-arrow {
  transform: translateX(4px);
  color: #ffffff;
}

.edition-notice {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 0.85rem;
  font-size: 0.76rem;
  color: var(--text-muted);
}

.edition-notice-badge {
  display: inline-block;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.15rem 0.5rem;
  border: 1px dashed var(--border-subtle);
  border-radius: 2px;
  color: var(--text-secondary);
}

/* --------------------------------------------------------------------------
   7. Homepage: Hero Section
   -------------------------------------------------------------------------- */
.hero-section {
  padding: 3.5rem 0 5rem;
  overflow: hidden;
  position: relative;
}

@media (min-width: 992px) {
  .hero-section {
    padding: 5.5rem 0 7rem;
    min-height: calc(100vh - var(--header-height));
    display: flex;
    align-items: center;
  }
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3.5rem;
  align-items: center;
}

@media (min-width: 992px) {
  .hero-grid {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 4.5rem;
  }
}

.hero-copy {
  max-width: 600px;
}

.hero-author-tag {
  display: block;
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent-ice);
  margin-bottom: 1.25rem;
  font-weight: 500;
}

.hero-title {
  margin-bottom: 0.8rem;
  line-height: 1.08;
}

.hero-series {
  font-family: var(--font-serif);
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  font-style: italic;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  display: block;
}

.hero-hook-quote {
  border-left: 2px solid var(--accent-red);
  padding-left: 1.25rem;
  margin: 2rem 0;
  font-family: var(--font-serif);
  font-size: clamp(1.2rem, 2.2vw, 1.45rem);
  line-height: 1.5;
  color: var(--text-primary);
  font-style: italic;
}

.hero-hook-quote span {
  display: block;
}

.hero-cover-wrap {
  display: flex;
  justify-content: center;
  position: relative;
}

.book-cover-frame {
  position: relative;
  display: inline-block;
  max-width: 360px;
  width: 100%;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: var(--shadow-book);
  transition: transform var(--transition-slow), box-shadow var(--transition-slow);
  background-color: var(--bg-surface-elevated);
}

.book-cover-frame:hover {
  transform: translateY(-6px) scale(1.015);
  box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.95), 0 0 35px rgba(138, 180, 206, 0.15);
}

.book-cover-img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 1575 / 2400;
  object-fit: cover;
}

/* --------------------------------------------------------------------------
   8. Atmospheric Section: The Hook (Section 2)
   -------------------------------------------------------------------------- */
.hook-section {
  background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-surface) 50%, var(--bg-primary) 100%);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.hook-content {
  text-align: left;
}

.hook-lead {
  font-size: clamp(1.25rem, 2.4vw, 1.6rem);
  font-family: var(--font-serif);
  line-height: 1.6;
  color: var(--text-primary);
  margin-bottom: 2rem;
}

/* --------------------------------------------------------------------------
   9. Lake Greywake: Fictional World (Section 3)
   -------------------------------------------------------------------------- */
.greywake-world-section {
  position: relative;
  overflow: hidden;
  padding: 6rem 0;
}

.greywake-landscape-banner {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  background-color: var(--bg-surface);
  margin-bottom: 3.5rem;
  box-shadow: var(--shadow-card);
}

.greywake-landscape-img {
  width: 100%;
  height: auto;
  max-height: 520px;
  object-fit: cover;
  display: block;
  filter: brightness(0.92) contrast(1.05);
}

.greywake-landscape-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 2rem 2.5rem;
  background: linear-gradient(0deg, rgba(8, 12, 16, 0.95) 0%, rgba(8, 12, 16, 0.6) 60%, transparent 100%);
  color: var(--text-primary);
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
}

.greywake-features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 2rem;
}

@media (min-width: 768px) {
  .greywake-features-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  padding: 2.25rem 1.85rem;
  border-radius: 3px;
  transition: border-color var(--transition-fast), background var(--transition-fast);
}

.feature-card:hover {
  border-color: var(--border-medium);
  background: var(--bg-card-hover);
}

.feature-card h3 {
  font-size: 1.35rem;
  margin-bottom: 0.85rem;
  color: var(--text-primary);
}

.feature-card p {
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--text-secondary);
}

/* --------------------------------------------------------------------------
   10. Book Spotlight Feature (Section 4)
   -------------------------------------------------------------------------- */
.book-spotlight-section {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.spotlight-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 900px) {
  .spotlight-card {
    grid-template-columns: 340px 1fr;
    gap: 4.5rem;
  }
}

.book-specs-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin: 1.5rem 0 2rem;
  padding: 1.25rem 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.spec-item {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.spec-label {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.spec-value {
  color: var(--text-primary);
  font-weight: 500;
}

/* --------------------------------------------------------------------------
   11. Pen-Name Author Section (Section 5)
   -------------------------------------------------------------------------- */
.author-section {
  padding: 6rem 0;
}

.author-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 840px) {
  .author-layout {
    grid-template-columns: 320px 1fr;
    gap: 4rem;
  }
}

.author-portrait-frame {
  position: relative;
  border-radius: 3px;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-card);
  max-width: 320px;
  margin: 0 auto;
}

.author-portrait-img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  filter: contrast(1.05) brightness(0.95);
}

.author-bio-content h2 {
  margin-bottom: 1.25rem;
}

/* --------------------------------------------------------------------------
   12. Reader List / Newsletter Signup (Section 6)
   -------------------------------------------------------------------------- */
.newsletter-section {
  background: linear-gradient(180deg, var(--bg-surface) 0%, var(--bg-primary) 100%);
  border-top: 1px solid var(--border-subtle);
  text-align: center;
  padding: 6.5rem 0;
}

.newsletter-box {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  padding: 3.5rem 2rem;
  box-shadow: var(--shadow-card);
  position: relative;
}

.newsletter-box h2 {
  font-size: clamp(1.8rem, 3.2vw, 2.5rem);
  margin-bottom: 1rem;
}

.newsletter-subtext {
  max-width: 520px;
  margin: 0 auto 2.25rem;
  font-size: 1.05rem;
  color: var(--text-secondary);
}

.newsletter-form {
  max-width: 500px;
  margin: 0 auto;
}

.form-group-inline {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

@media (min-width: 600px) {
  .form-group-inline {
    flex-direction: row;
  }
}

.form-input {
  flex: 1;
  background-color: rgba(8, 12, 16, 0.85);
  border: 1px solid var(--border-medium);
  border-radius: 2px;
  padding: 0.95rem 1.25rem;
  font-size: 0.95rem;
  font-family: var(--font-sans);
  color: var(--text-primary);
  transition: border-color var(--transition-fast), background var(--transition-fast);
  min-height: 48px;
}

.form-input:focus {
  border-color: var(--accent-ice);
  background-color: rgba(14, 20, 28, 0.95);
  outline: none;
}

.form-input::placeholder {
  color: var(--text-muted);
}

.form-privacy-note {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 1rem;
  letter-spacing: 0.02em;
}

.form-feedback {
  margin-top: 1rem;
  font-size: 0.9rem;
  padding: 0.75rem 1rem;
  border-radius: 2px;
  display: none;
}

.form-feedback.success {
  display: block;
  background: rgba(138, 180, 206, 0.12);
  border: 1px solid var(--accent-ice);
  color: var(--accent-ice-light);
}

.form-feedback.error {
  display: block;
  background: rgba(158, 42, 43, 0.15);
  border: 1px solid var(--accent-red);
  color: #ff9999;
}

/* --------------------------------------------------------------------------
   13. Contact Page Styles
   -------------------------------------------------------------------------- */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3.5rem;
  margin-top: 3rem;
}

@media (min-width: 850px) {
  .contact-layout {
    grid-template-columns: 1fr 1.35fr;
    gap: 5rem;
  }
}

.contact-info-panel {
  padding-right: 1.5rem;
}

.contact-email-link {
  display: inline-block;
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 2.2vw, 1.8rem);
  color: var(--text-primary);
  margin: 1.25rem 0 2rem;
  border-bottom: 1px solid var(--border-medium);
  padding-bottom: 0.25rem;
}

.contact-email-link:hover {
  color: var(--accent-ice);
  border-bottom-color: var(--accent-ice);
}

.contact-form {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  padding: 2.5rem 2rem;
}

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

.form-label {
  display: block;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
  font-weight: 500;
}

textarea.form-input {
  min-height: 140px;
  resize: vertical;
}

/* --------------------------------------------------------------------------
   14. Books Archive Page Styles
   -------------------------------------------------------------------------- */
.books-archive-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
  margin-top: 3rem;
}

.book-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  padding: 2.5rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  transition: border-color var(--transition-fast), background var(--transition-fast);
}

@media (min-width: 800px) {
  .book-card {
    grid-template-columns: 260px 1fr;
    gap: 3.5rem;
  }
}

.book-card:hover {
  border-color: var(--border-medium);
  background: var(--bg-card-hover);
}

.book-card-cover {
  max-width: 260px;
  margin: 0 auto;
  box-shadow: var(--shadow-card);
  border-radius: 3px;
  overflow: hidden;
}

.book-card-cover img {
  width: 100%;
  height: auto;
  aspect-ratio: 1575 / 2400;
  object-fit: cover;
  display: block;
}

/* Coming soon card placeholder */
.book-card-upcoming {
  border-style: dashed;
  background: rgba(14, 20, 28, 0.4);
}

.upcoming-cover-placeholder {
  width: 100%;
  aspect-ratio: 2 / 3;
  background: var(--bg-surface-elevated);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  text-align: center;
  border: 1px dashed var(--border-subtle);
  border-radius: 3px;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   15. Privacy & Prose Page Styles
   -------------------------------------------------------------------------- */
.prose-content {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-secondary);
}

.prose-content h2 {
  font-size: 1.6rem;
  margin-top: 3rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.prose-content h3 {
  font-size: 1.25rem;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

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

.prose-content ul {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

.prose-content li {
  margin-bottom: 0.5rem;
}

/* --------------------------------------------------------------------------
   16. Site Footer
   -------------------------------------------------------------------------- */
.site-footer {
  margin-top: auto;
  background-color: #05080b;
  border-top: 1px solid var(--border-subtle);
  padding: 4.5rem 0 2.5rem;
  font-size: 0.88rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  margin-bottom: 3.5rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
  }
}

.footer-brand h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-primary);
  margin-bottom: 0.6rem;
}

.footer-series-name {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--text-secondary);
  font-size: 1.05rem;
  margin-bottom: 1.25rem;
}

.footer-heading {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  font-weight: 600;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-link {
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}

.footer-link:hover {
  color: var(--text-primary);
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(138, 180, 206, 0.08);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  color: var(--text-muted);
  font-size: 0.82rem;
}

@media (min-width: 640px) {
  .footer-bottom {
    flex-direction: row;
  }
}

/* --------------------------------------------------------------------------
   17. Micro-Animations & Scroll Reveal
   -------------------------------------------------------------------------- */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity var(--transition-slow), transform var(--transition-slow);
  will-change: opacity, transform;
}

.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Fallback for reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .reveal-on-scroll {
    opacity: 1 !important;
    transform: none !important;
  }

  .book-cover-frame:hover {
    transform: none !important;
  }
}
