/* ==========================================================================
   HIS CHOSEN PATH — SPIRITUAL POETRY SANCTUARY
   Author: Clyde C. Tussey
   Design System: Midnight Obsidian & Gold Foil / Warm Parchment & Bronze
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. CSS Custom Properties & Design Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Sanctuary Green & Staircase of Faith Palette (Drawn directly from His Chosen Path Book Cover) */
  --bg-primary: #122817;          /* Rich Deep Meadow Green (Matches Book Cover Field) */
  --bg-secondary: #1a3b22;        /* Vibrant Woodland Pine */
  --bg-tertiary: #234d2c;         /* Forest Moss Accent */
  --card-bg: rgba(26, 59, 34, 0.88);
  --card-border: rgba(253, 216, 53, 0.35); /* Canary Yellow from Balloons */
  --card-border-hover: rgba(229, 57, 53, 0.85); /* Crimson Red from Staircase */
  
  --text-primary: #ffffff;
  --text-secondary: #d6e8d8;
  --text-muted: #95b89a;
  
  /* Book Cover Primary Colors */
  --color-green-meadow: #3e6b36;   /* Cover Background Grass & Hills */
  --color-red-staircase: #e53935;  /* Crimson Stairway of Redemption */
  --color-purple-steps: #6d2c91;   /* Royal Purple / Violet Steps */
  --color-blue-waves: #1e56a0;     /* Deep Oceanic Wave Water */
  --color-yellow-balloon: #fdd835; /* Radiant Golden Balloons & Light */
  
  /* Celestial Gold & Flame Accents */
  --gold-primary: #f5c518;
  --gold-light: #fff176;
  --gold-dark: #b8860b;
  --gold-gradient: linear-gradient(135deg, #fff176 0%, #f5c518 50%, #d89600 100%);
  --gold-glow: 0 0 25px rgba(245, 197, 24, 0.38);
  --gold-glow-subtle: 0 0 12px rgba(245, 197, 24, 0.2);
  
  /* Staircase Gradient (Red to Purple to Ocean Blue) */
  --staircase-gradient: linear-gradient(135deg, #e53935 0%, #6d2c91 48%, #1e56a0 100%);
  --crimson-glow: 0 0 22px rgba(229, 57, 53, 0.45);
  
  /* Typography */
  --font-display: 'Cinzel', serif;
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  
  /* Elevation & Shadows */
  --shadow-sm: 0 4px 14px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 8px 28px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 18px 52px rgba(0, 0, 0, 0.6);
  --shadow-book: 14px 20px 45px rgba(0, 0, 0, 0.75), 0 0 20px rgba(62, 107, 54, 0.35);
  
  /* Transitions */
  --transition-fast: 0.18s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.32s cubic-bezier(0.16, 1, 0.3, 1);
  
  /* Layout */
  --header-height: 80px;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  --container-max: 1240px;
}

/* Light / Fresh Meadow Mode (Matching Cover's Lush Daylight Palette) */
[data-theme="light"] {
  --bg-primary: #f3f8f3;          /* Morning Meadow Linen */
  --bg-secondary: #e5f0e5;        /* Light Celadon Grass */
  --bg-tertiary: #d6e6d7;         /* Sage Accent */
  --card-bg: rgba(255, 255, 255, 0.92);
  --card-border: rgba(62, 107, 54, 0.25);
  --card-border-hover: rgba(229, 57, 53, 0.6);
  
  --text-primary: #112114;
  --text-secondary: #27402b;
  --text-muted: #516d55;
  
  --gold-primary: #c28800;
  --gold-light: #e09f00;
  --gold-dark: #7a5400;
  --gold-gradient: linear-gradient(135deg, #f5c518 0%, #c28800 60%, #7a5400 100%);
  --gold-glow: 0 0 20px rgba(194, 136, 0, 0.25);
  --gold-glow-subtle: 0 0 10px rgba(194, 136, 0, 0.12);
  
  --shadow-sm: 0 4px 12px rgba(20, 45, 22, 0.08);
  --shadow-md: 0 8px 24px rgba(20, 45, 22, 0.12);
  --shadow-lg: 0 16px 40px rgba(20, 45, 22, 0.18);
  --shadow-book: 10px 16px 36px rgba(20, 45, 22, 0.28), 0 2px 10px rgba(229, 57, 53, 0.18);
}

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

img, picture, svg, video {
  max-width: 100%;
  height: auto;
  display: block;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.65;
  overflow-x: hidden;
  transition: background-color var(--transition-smooth), color var(--transition-smooth);
  position: relative;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--text-primary);
}

p {
  color: var(--text-secondary);
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

.gold-gradient-text {
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

/* Ambient Procedural Particle Canvas (Behind all content) */
.ambient-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  opacity: 0.55;
  transition: opacity var(--transition-smooth);
}
[data-theme="light"] .ambient-canvas {
  opacity: 0.25;
}

/* --------------------------------------------------------------------------
   3. Navigation Bar (Sticky & Frosted Glass)
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
  background: rgba(16, 36, 21, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 2px solid var(--color-yellow-balloon);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  transition: background-color var(--transition-smooth), border-color var(--transition-smooth);
}
[data-theme="light"] .site-header {
  background: rgba(238, 246, 239, 0.96);
  border-bottom: 2px solid var(--color-green-meadow);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 14px;
}
.brand-icon {
  width: 38px;
  height: 38px;
  filter: drop-shadow(0 0 8px rgba(212, 175, 55, 0.4));
  transition: transform var(--transition-smooth);
}
.brand-logo:hover .brand-icon {
  transform: rotate(15deg) scale(1.05);
}

.brand-text {
  display: flex;
  flex-direction: column;
}
.brand-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: 0.08em;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.brand-subtitle {
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 600;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-link {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
  padding: 6px 0;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--gold-gradient);
  transition: width var(--transition-smooth);
}
.nav-link:hover {
  color: var(--text-primary);
}
.nav-link:hover::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Audio Wave Button */
.action-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: var(--radius-full);
  border: 1px solid var(--card-border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-secondary);
  font-size: 0.82rem;
  font-weight: 500;
  transition: all var(--transition-fast);
}
.action-btn:hover {
  border-color: var(--gold-primary);
  color: var(--text-primary);
  background: rgba(212, 175, 55, 0.08);
}
.audio-btn.is-playing {
  border-color: var(--gold-primary);
  color: var(--gold-primary);
  background: rgba(212, 175, 55, 0.12);
  box-shadow: var(--gold-glow-subtle);
}

.audio-wave-icon {
  display: inline-flex;
  align-items: center;
  gap: 2.5px;
  height: 14px;
}
.audio-wave-icon .bar {
  width: 2.5px;
  height: 6px;
  background-color: currentColor;
  border-radius: 1px;
  transition: height 0.2s ease;
}
.audio-btn.is-playing .bar-1 { animation: soundWave 0.8s infinite ease-in-out alternate; }
.audio-btn.is-playing .bar-2 { animation: soundWave 0.6s infinite ease-in-out alternate 0.2s; }
.audio-btn.is-playing .bar-3 { animation: soundWave 0.9s infinite ease-in-out alternate 0.4s; }

@keyframes soundWave {
  0% { height: 4px; }
  100% { height: 14px; }
}

/* Theme Switcher */
.theme-btn {
  padding: 8px 10px;
}
.theme-icon {
  width: 18px;
  height: 18px;
}
[data-theme="dark"] .sun-icon { display: block; }
[data-theme="dark"] .moon-icon { display: none; }
[data-theme="light"] .sun-icon { display: none; }
[data-theme="light"] .moon-icon { display: block; }

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 32px;
  height: 32px;
  justify-content: center;
  align-items: center;
}
.mobile-menu-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  transition: transform 0.2s, opacity 0.2s;
}

/* --------------------------------------------------------------------------
   4. Buttons & Badges
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 600;
  border-radius: var(--radius-md);
  transition: all var(--transition-smooth);
  position: relative;
  overflow: hidden;
  text-align: center;
}

.btn-gold {
  background: var(--gold-gradient);
  color: #0b0d14;
  box-shadow: 0 4px 16px rgba(212, 175, 55, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.4);
}
.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(212, 175, 55, 0.55);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--card-border);
}
.btn-outline:hover {
  border-color: var(--gold-primary);
  background: rgba(212, 175, 55, 0.08);
  transform: translateY(-2px);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-secondary);
  border: 1px solid transparent;
}
.btn-ghost:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.08);
}

.btn-red {
  background: #ff0000;
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(255, 0, 0, 0.35);
}
.btn-red:hover {
  background: #cc0000;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255, 0, 0, 0.5);
}

.btn-sm { padding: 6px 14px; font-size: 0.85rem; }
.btn-md { padding: 10px 20px; font-size: 0.95rem; }
.btn-lg { padding: 14px 28px; font-size: 1.05rem; }
.btn-xl { padding: 16px 32px; font-size: 1.15rem; flex-direction: column; gap: 2px; }
.btn-block { width: 100%; }

.btn-subtext {
  font-size: 0.72rem;
  font-weight: 500;
  opacity: 0.85;
}

.btn-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
.btn-arrow {
  width: 16px;
  height: 16px;
  transition: transform var(--transition-fast);
}
.btn:hover .btn-arrow {
  transform: translateX(4px);
}

/* --------------------------------------------------------------------------
   5. Hero Section
   -------------------------------------------------------------------------- */
.hero-section {
  position: relative;
  padding: 80px 0 60px;
  overflow: hidden;
  background: radial-gradient(circle at 50% 20%, rgba(62, 107, 54, 0.4) 0%, rgba(30, 86, 160, 0.15) 50%, var(--bg-primary) 85%);
}

.hero-radial-glow {
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(253, 216, 53, 0.22) 0%, rgba(229, 57, 53, 0.15) 35%, rgba(62, 107, 54, 0.1) 60%, transparent 75%);
  filter: blur(80px);
  pointer-events: none;
  z-index: 1;
}

.hero-container {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 56px;
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--gold-primary);
  margin-bottom: 24px;
}
.badge-dot {
  width: 8px;
  height: 8px;
  background-color: var(--gold-light);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--gold-light);
  animation: pulseGold 2s infinite ease-in-out;
}
@keyframes pulseGold {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.hero-title {
  font-size: clamp(2.4rem, 4.8vw, 3.8rem);
  line-height: 1.15;
  margin-bottom: 20px;
}

.hero-lead {
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 32px;
}

/* Interactive Hero Verse Banner */
.daily-verse-banner {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 24px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-left: 4px solid var(--gold-primary);
  border-radius: var(--radius-md);
  margin-bottom: 36px;
  box-shadow: var(--shadow-sm);
  position: relative;
  backdrop-filter: blur(10px);
}
.verse-quote-mark {
  font-family: var(--font-serif);
  font-size: 3.2rem;
  line-height: 1;
  color: var(--gold-primary);
  opacity: 0.7;
}
.verse-body {
  flex: 1;
}
.verse-text {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--text-primary);
  line-height: 1.5;
  margin-bottom: 4px;
}
.verse-source {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 500;
}
.verse-refresh-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--card-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}
.verse-refresh-btn:hover {
  border-color: var(--gold-primary);
  color: var(--gold-primary);
  transform: rotate(90deg);
}
.verse-refresh-btn svg {
  width: 16px;
  height: 16px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

/* --------------------------------------------------------------------------
   6. Pure CSS 3D Realistic Book Mockup
   -------------------------------------------------------------------------- */
.hero-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  perspective: 1200px;
  max-width: 280px;
  width: 100%;
  margin: 0 auto;
}

.book-3d-wrapper {
  position: relative;
  transform-style: preserve-3d;
  transition: transform var(--transition-smooth);
  width: 240px;
  max-width: 100%;
}
.book-3d-wrapper:hover {
  transform: rotateY(-14deg) rotateX(6deg) translateY(-6px);
}

.book-3d {
  width: 240px;
  height: 360px;
  aspect-ratio: 2 / 3;
  position: relative;
  transform-style: preserve-3d;
  border-radius: 4px 12px 12px 4px;
}

/* Hardcover Front with Authentic Cover Image */
.book-front-real {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 4px 12px 12px 4px;
  overflow: hidden;
  box-shadow: inset 4px 0 10px rgba(0, 0, 0, 0.6), inset -2px 0 6px rgba(253, 216, 53, 0.4);
  border: 2px solid var(--color-yellow-balloon);
  z-index: 2;
  background: #112114;
}

.book-real-cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.book-cover-gloss {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.25) 0%, rgba(255, 255, 255, 0) 45%, rgba(0, 0, 0, 0.25) 100%);
  pointer-events: none;
}

.book-emboss-gold-badge {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(10, 23, 13, 0.88);
  border: 1px solid var(--gold-primary);
  border-radius: var(--radius-full);
  padding: 4px 12px;
  font-size: 0.58rem;
  letter-spacing: 0.14em;
  font-weight: 700;
  color: var(--gold-light);
  white-space: nowrap;
  backdrop-filter: blur(4px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

/* Hardcover Front (Fallback / Procedural) */
.book-front {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 30% 20%, #1e4a28 0%, #0d2112 100%);
  border-radius: 4px 12px 12px 4px;
  box-shadow: inset 4px 0 10px rgba(0, 0, 0, 0.6), inset -2px 0 6px rgba(253, 216, 53, 0.4);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid rgba(212, 175, 55, 0.4);
  z-index: 2;
  overflow: hidden;
}

.book-spine-line {
  position: absolute;
  top: 0;
  left: 20px;
  width: 2px;
  height: 100%;
  background: linear-gradient(to bottom, rgba(212, 175, 55, 0.1), rgba(212, 175, 55, 0.4), rgba(212, 175, 55, 0.1));
  box-shadow: 2px 0 5px rgba(0, 0, 0, 0.4);
}

.book-cover-frame {
  height: 100%;
  border: 1px solid rgba(212, 175, 55, 0.4);
  border-radius: 4px;
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: rgba(14, 18, 34, 0.5);
  box-shadow: inset 0 0 16px rgba(0, 0, 0, 0.5);
}

.book-emboss-header {
  font-family: var(--font-display);
  font-size: 0.55rem;
  letter-spacing: 0.18em;
  color: var(--gold-light);
  margin-bottom: 16px;
  opacity: 0.9;
}

.book-ornament {
  width: 56px;
  height: 56px;
  margin-bottom: 16px;
  filter: drop-shadow(0 0 10px rgba(212, 175, 55, 0.5));
}

.book-title-foil {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.15;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.8));
  margin-bottom: 12px;
}

.book-divider-gold {
  width: 48px;
  height: 2px;
  background: var(--gold-gradient);
  margin-bottom: 12px;
}

.book-subtitle-foil {
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  color: #d8deeb;
  line-height: 1.4;
  margin-bottom: auto;
  font-weight: 500;
}

.book-author-foil {
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--gold-light);
  margin-top: 14px;
}

.book-badge-foil {
  font-size: 0.55rem;
  letter-spacing: 0.14em;
  color: var(--text-muted);
  margin-top: 6px;
}

/* Spine 3D Face */
.book-spine {
  position: absolute;
  top: 0;
  left: 0;
  width: 38px;
  height: 100%;
  background: linear-gradient(to right, #090c17, #1b2138, #090c17);
  transform: rotateY(-90deg) translateZ(19px);
  border-radius: 4px 0 0 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-left: 1px solid rgba(212, 175, 55, 0.3);
}
.book-spine span {
  transform: rotate(90deg);
  white-space: nowrap;
  font-family: var(--font-display);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  color: var(--gold-primary);
  font-weight: 600;
}

/* Page Block */
.book-pages {
  position: absolute;
  top: 6px;
  right: -24px;
  width: 24px;
  height: calc(100% - 12px);
  background: repeating-linear-gradient(to bottom, #eae2d1 0px, #fdfaf3 2px, #d5cdbd 3px);
  transform: rotateY(90deg);
  transform-origin: left center;
  box-shadow: inset -2px 0 5px rgba(0, 0, 0, 0.3);
  border-radius: 0 4px 4px 0;
}

/* Dynamic Floor Drop Shadow */
.book-shadow {
  position: absolute;
  bottom: -32px;
  left: 10%;
  width: 80%;
  height: 28px;
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.6) 0%, transparent 70%);
  filter: blur(8px);
}

.book-quick-meta {
  display: flex;
  gap: 16px;
  margin-top: 36px;
}
.meta-tag {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px 14px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
}
.meta-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}
.meta-val {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
}

/* --------------------------------------------------------------------------
   7. Hero Strip
   -------------------------------------------------------------------------- */
.hero-strip {
  border-top: 1px solid var(--card-border);
  border-bottom: 1px solid var(--card-border);
  background: var(--bg-secondary);
  padding: 24px 0;
  margin-top: 60px;
}
.strip-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.strip-item {
  display: flex;
  align-items: center;
  gap: 14px;
}
.strip-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid var(--card-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-primary);
  flex-shrink: 0;
}
.strip-icon svg {
  width: 20px;
  height: 20px;
}
.strip-item h4 {
  font-size: 0.95rem;
  margin-bottom: 2px;
}
.strip-item p {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.35;
}

/* --------------------------------------------------------------------------
   8. Section Structure & Common Elements
   -------------------------------------------------------------------------- */
.section {
  padding: 96px 0;
  position: relative;
  z-index: 2;
}

.section-header {
  margin-bottom: 56px;
}
.text-center {
  text-align: center;
}
.section-eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--gold-primary);
  text-transform: uppercase;
  margin-bottom: 12px;
}
.section-title {
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  line-height: 1.25;
  margin-bottom: 16px;
}
.title-embellishment {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 16px;
}
.title-embellishment span {
  width: 48px;
  height: 1px;
  background: var(--card-border);
}
.title-embellishment svg {
  width: 14px;
  height: 14px;
  color: var(--gold-primary);
}
.section-desc {
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
  font-size: 1.1rem;
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   9. Section: Book Spotlight Showcase
   -------------------------------------------------------------------------- */
.book-spotlight-section {
  background: linear-gradient(to bottom, var(--bg-primary), var(--bg-secondary));
}

.book-showcase-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 52px;
  align-items: center;
  max-width: 100%;
}

.book-showcase-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 280px;
  margin: 0 auto;
}

.book-shelf {
  perspective: 1000px;
  width: 100%;
  max-width: 260px;
  display: flex;
  justify-content: center;
}

.master-book-card {
  width: 250px;
  max-width: 100%;
  aspect-ratio: 2 / 3;
  height: auto;
  position: relative;
  border-radius: 6px 16px 16px 6px;
  box-shadow: var(--shadow-book);
  transform: rotateY(-8deg);
  transition: transform var(--transition-smooth);
}
.master-book-card:hover {
  transform: rotateY(0deg) scale(1.02);
}

.master-book-cover {
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 40% 30%, #19203a 0%, #090c16 100%);
  border-radius: 6px 16px 16px 6px;
  border: 2px solid var(--gold-primary);
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.leather-texture {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(212, 175, 55, 0.04) 1px, transparent 0);
  background-size: 8px 8px;
  pointer-events: none;
}

.gold-filigree-corners {
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: 4px;
  pointer-events: none;
}

.book-header-line {
  font-family: var(--font-display);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  color: var(--gold-light);
  margin-bottom: 24px;
}

.sacred-crest {
  width: 70px;
  height: 70px;
  margin-bottom: 20px;
  filter: drop-shadow(0 0 12px rgba(212, 175, 55, 0.5));
}

.cover-main-title {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  line-height: 1.15;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 12px;
}

.cover-divider {
  width: 60px;
  height: 2px;
  background: var(--gold-gradient);
  margin-bottom: 12px;
}

.cover-subtext {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: #ced6eb;
  line-height: 1.45;
  margin-bottom: auto;
}

.cover-author {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--gold-light);
  margin-top: 16px;
}

.cover-ribbon {
  margin-top: 8px;
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  color: var(--text-muted);
}

/* Master Book Card with Authentic Cover Artwork */
.master-book-card-real {
  width: 250px;
  max-width: 100%;
  aspect-ratio: 2 / 3;
  height: auto;
  position: relative;
  border-radius: 8px 16px 16px 8px;
  box-shadow: 12px 18px 36px rgba(0, 0, 0, 0.65), 0 0 25px rgba(62, 107, 54, 0.4);
  transform: rotateY(-6deg);
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
  border: 3px solid var(--color-yellow-balloon);
  background: #112114;
  overflow: hidden;
}
.master-book-card-real:hover {
  transform: rotateY(0deg) scale(1.02);
  box-shadow: 16px 24px 48px rgba(0, 0, 0, 0.75), 0 0 30px rgba(253, 216, 53, 0.45);
}

.master-book-cover-real {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
  border-radius: 5px 13px 13px 5px;
}

.master-cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cover-glare-effect {
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, rgba(255, 255, 255, 0.22) 0%, rgba(255, 255, 255, 0.05) 30%, transparent 60%);
  pointer-events: none;
}

.cover-ribbon-tag {
  position: absolute;
  top: 14px;
  right: 14px;
  background: var(--staircase-gradient);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: var(--radius-sm);
  padding: 4px 10px;
  color: #ffffff;
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

/* Cover Artwork Color Palette Bar */
.cover-palette-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 18px;
  padding: 8px 16px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-full);
}
.palette-caption {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
}
.palette-swatches {
  display: flex;
  align-items: center;
  gap: 6px;
}
.palette-swatch {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  transition: transform var(--transition-fast);
}
.palette-swatch:hover {
  transform: scale(1.3);
}
.swatch-green { background: #3e6b36; }
.swatch-red { background: #e53935; }
.swatch-purple { background: #6d2c91; }
.swatch-blue { background: #1e56a0; }
.swatch-yellow { background: #fdd835; }

/* Excerpt Modal Side-by-Side Layout */
.excerpt-reader-layout {
  display: flex;
  gap: 28px;
  align-items: flex-start;
}
.excerpt-cover-thumb {
  width: 140px;
  flex-shrink: 0;
}
.excerpt-mini-cover {
  width: 100%;
  border-radius: 6px;
  border: 1px solid var(--gold-primary);
  box-shadow: var(--shadow-md);
  display: block;
}
@media (max-width: 640px) {
  .excerpt-reader-layout {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}

.book-retail-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
}
.retailer-pill {
  font-size: 0.78rem;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  color: var(--text-secondary);
}
.retailer-pill.active {
  border-color: var(--gold-primary);
  color: var(--gold-primary);
}

/* Details Column */
.spotlight-header-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}
.genre-badge {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--gold-primary);
  background: rgba(212, 175, 55, 0.1);
  padding: 4px 12px;
  border-radius: var(--radius-full);
}
.star-rating {
  color: #ffb703;
  font-size: 0.95rem;
}
.rating-count {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.spotlight-title {
  font-size: 2.2rem;
  margin-bottom: 8px;
}
.spotlight-author-line {
  font-size: 1.05rem;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.spotlight-quote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.25rem;
  color: var(--text-primary);
  border-left: 3px solid var(--gold-primary);
  padding-left: 20px;
  margin-bottom: 28px;
  line-height: 1.6;
}

.spotlight-synopsis p {
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 16px;
}

.book-spec-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 20px;
  margin: 28px 0;
}
.spec-cell {
  display: flex;
  flex-direction: column;
}
.spec-name {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  font-weight: 600;
}
.spec-value {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
}

.spotlight-buttons {
  display: flex;
  gap: 16px;
  margin-bottom: 20px;
}

.secure-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.82rem;
  color: var(--text-muted);
}
.secure-badge svg {
  width: 18px;
  height: 18px;
  color: var(--gold-primary);
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   10. Section: YouTube Video Sanctuary
   -------------------------------------------------------------------------- */
.youtube-section {
  background: var(--bg-primary);
}

.video-filter-bar {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 40px;
}
.filter-tab {
  padding: 8px 18px;
  border-radius: var(--radius-full);
  border: 1px solid var(--card-border);
  background: var(--card-bg);
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  transition: all var(--transition-fast);
}
.filter-tab:hover {
  border-color: var(--gold-primary);
  color: var(--text-primary);
}
.filter-tab.active {
  background: var(--gold-gradient);
  color: #0b0d14;
  border-color: transparent;
  font-weight: 600;
  box-shadow: 0 2px 10px rgba(212, 175, 55, 0.3);
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-bottom: 48px;
}

/* Video Card Styling (No external image needed; uses pure CSS & SVG play button) */
.video-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-smooth), border-color var(--transition-smooth), box-shadow var(--transition-smooth);
}
.video-card:hover {
  transform: translateY(-6px);
  border-color: var(--gold-primary);
  box-shadow: var(--shadow-md), 0 0 20px rgba(212, 175, 55, 0.15);
}

.video-thumb-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, #1a3d24 0%, #0e2214 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  overflow: hidden;
  border-bottom: 2px solid var(--color-blue-waves);
}

.thumb-backdrop-pattern {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(212, 175, 55, 0.15) 0%, transparent 70%);
}

.thumb-ornament-svg {
  position: absolute;
  width: 80%;
  height: 80%;
  opacity: 0.18;
  color: var(--gold-primary);
}

.play-circle-btn {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: rgba(10, 12, 20, 0.85);
  border: 2px solid var(--gold-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-light);
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.4);
  transition: transform var(--transition-fast), background var(--transition-fast);
  z-index: 2;
}
.video-card:hover .play-circle-btn {
  transform: scale(1.15);
  background: var(--gold-primary);
  color: #0b0d14;
}
.play-circle-btn svg {
  width: 22px;
  height: 22px;
  margin-left: 3px;
}

.video-duration-pill {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(0, 0, 0, 0.8);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 4px;
  z-index: 2;
}

.video-category-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(212, 175, 55, 0.18);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(212, 175, 55, 0.35);
  color: var(--gold-light);
  font-size: 0.68rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 4px;
  z-index: 2;
}

.video-card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.video-title {
  font-family: var(--font-sans);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.video-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 16px;
  flex: 1;
}

.video-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 14px;
}

.watch-modal-trigger {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gold-primary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.watch-modal-trigger:hover {
  text-decoration: underline;
}

.direct-yt-link {
  font-size: 0.8rem;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.direct-yt-link:hover {
  color: #ff0000;
}

/* YouTube Channel Callout Banner */
.youtube-channel-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(135deg, rgba(229, 57, 53, 0.18) 0%, rgba(18, 42, 24, 0.92) 100%);
  border: 1px solid rgba(229, 57, 53, 0.35);
  border-radius: var(--radius-lg);
  padding: 32px 40px;
  box-shadow: var(--shadow-md);
}
.yt-banner-icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.yt-banner-icon svg {
  width: 54px;
  height: 54px;
  filter: drop-shadow(0 0 12px rgba(255, 0, 0, 0.4));
}
.yt-banner-info {
  flex: 1;
  padding: 0 28px;
}
.yt-banner-info h3 {
  font-size: 1.35rem;
  margin-bottom: 6px;
}
.yt-banner-info p {
  font-size: 0.95rem;
  color: var(--text-secondary);
}

/* --------------------------------------------------------------------------
   11. Section: Interactive Poetry Sanctuary & Archive
   -------------------------------------------------------------------------- */
.poetry-archive-section {
  background: var(--bg-secondary);
}

.poetry-toolbar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  margin-bottom: 48px;
}

.search-input-wrapper {
  position: relative;
  width: 100%;
  max-width: 680px;
}
.search-icon {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--text-muted);
}
.search-input-wrapper input {
  width: 100%;
  padding: 14px 44px 14px 48px;
  border-radius: var(--radius-full);
  border: 1px solid var(--card-border);
  background: var(--card-bg);
  color: var(--text-primary);
  font-size: 1rem;
  outline: none;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
}
.search-input-wrapper input:focus {
  border-color: var(--gold-primary);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2);
}
.clear-search-btn {
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 0.9rem;
}

.poetry-theme-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}
.poem-filter-pill {
  padding: 6px 16px;
  border-radius: var(--radius-full);
  border: 1px solid var(--card-border);
  background: var(--card-bg);
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 500;
  transition: all var(--transition-fast);
}
.poem-filter-pill:hover {
  border-color: var(--gold-primary);
  color: var(--text-primary);
}
.poem-filter-pill.active {
  background: var(--gold-gradient);
  color: #0b0d14;
  border-color: transparent;
  font-weight: 600;
}

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

/* Individual Poem Card */
.poem-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all var(--transition-smooth);
}
.poem-card:hover {
  transform: translateY(-4px);
  border-color: var(--card-border-hover);
  box-shadow: var(--shadow-md);
}

.poem-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.poem-theme-badge {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--gold-primary);
  background: rgba(212, 175, 55, 0.1);
  padding: 3px 10px;
  border-radius: var(--radius-full);
}
.poem-read-time {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.poem-card-title {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-weight: 600;
  margin-bottom: 14px;
  color: var(--text-primary);
}

.poem-card-excerpt {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 24px;
  flex: 1;
  position: relative;
  padding-left: 14px;
  border-left: 2px solid rgba(212, 175, 55, 0.4);
}

.poem-card-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 16px;
}

.btn-read-poem {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--gold-primary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.btn-read-poem:hover {
  text-decoration: underline;
}

.poem-icon-btns {
  display: flex;
  align-items: center;
  gap: 8px;
}
.icon-action-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--card-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: all var(--transition-fast);
}
.icon-action-btn:hover {
  border-color: var(--gold-primary);
  color: var(--gold-primary);
  background: rgba(212, 175, 55, 0.08);
}
.icon-action-btn svg {
  width: 14px;
  height: 14px;
}

/* --------------------------------------------------------------------------
   12. Section: Procedural Audio Sanctuary
   -------------------------------------------------------------------------- */
.audio-sanctuary-section {
  padding: 40px 0 60px;
}

.audio-sanctuary-card {
  background: linear-gradient(135deg, rgba(26, 58, 33, 0.92) 0%, rgba(14, 32, 19, 0.96) 100%);
  border: 1px solid var(--color-yellow-balloon);
  border-radius: var(--radius-lg);
  padding: 36px 44px;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  position: relative;
  overflow: hidden;
}

.audio-sanctuary-header {
  flex: 1;
}
.audio-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--gold-primary);
  margin-bottom: 8px;
}
.pulsing-halo {
  width: 8px;
  height: 8px;
  background-color: var(--gold-light);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--gold-light);
  animation: pulseGold 1.5s infinite;
}
.audio-sanctuary-header h3 {
  font-size: 1.45rem;
  margin-bottom: 4px;
}
.audio-sanctuary-header p {
  font-size: 0.92rem;
  color: var(--text-secondary);
}

.audio-controls-row {
  display: flex;
  align-items: center;
  gap: 24px;
}
.audio-preset-selector {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.preset-label {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-muted);
}
.preset-select {
  background: var(--bg-tertiary);
  color: var(--text-primary);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  font-size: 0.9rem;
  outline: none;
}
.preset-select:focus {
  border-color: var(--gold-primary);
}

.audio-playback-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.volume-slider-group {
  display: flex;
  align-items: center;
  gap: 8px;
}
.vol-icon {
  width: 18px;
  height: 18px;
  color: var(--text-muted);
}
#audioVolumeSlider {
  width: 80px;
  accent-color: var(--gold-primary);
}

/* --------------------------------------------------------------------------
   13. Section: Author Testimony & Plaque
   -------------------------------------------------------------------------- */
.author-story-section {
  background: var(--bg-primary);
}

.author-story-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 64px;
  align-items: center;
}

.story-lead {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.25rem;
  color: var(--text-primary);
  line-height: 1.6;
  margin-bottom: 36px;
  border-left: 3px solid var(--gold-primary);
  padding-left: 20px;
}

.story-timeline {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 36px;
}
.timeline-step {
  display: flex;
  gap: 20px;
}
.timeline-marker {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--gold-gradient);
  color: #0b0d14;
  font-family: var(--font-display);
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 0 12px rgba(212, 175, 55, 0.4);
}
.timeline-content h4 {
  font-size: 1.1rem;
  margin-bottom: 4px;
}
.timeline-content p {
  font-size: 0.95rem;
  line-height: 1.55;
}

.author-direct-quote {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 24px;
  position: relative;
}
.quote-glyph {
  width: 28px;
  height: 28px;
  color: var(--gold-primary);
  opacity: 0.4;
  margin-bottom: 12px;
}
.author-direct-quote p {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--text-primary);
  margin-bottom: 8px;
}
.author-signature {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--gold-primary);
}

/* Pure CSS Author Plaque */
.author-portrait-plaque {
  background: linear-gradient(145deg, #1d4024 0%, #102414 100%);
  border: 2px solid var(--color-yellow-balloon);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  box-shadow: var(--shadow-lg), 0 0 30px rgba(62, 107, 54, 0.4);
  text-align: center;
  position: relative;
}
.plaque-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.plaque-monogram {
  position: relative;
  width: 100px;
  height: 100px;
  margin-bottom: 20px;
}
.monogram-circle {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: radial-gradient(circle, #2b5934 0%, #102414 100%);
  border: 2px solid var(--gold-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.6), 0 0 20px rgba(212, 175, 55, 0.3);
}
.monogram-circle span {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.monogram-rings {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1px dashed rgba(212, 175, 55, 0.4);
  animation: rotateRings 24s linear infinite;
}
@keyframes rotateRings {
  100% { transform: rotate(360deg); }
}

.plaque-name {
  font-size: 1.6rem;
  margin-bottom: 4px;
}
.plaque-title {
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  color: var(--gold-primary);
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 20px;
}

.plaque-divider {
  width: 60px;
  height: 2px;
  background: var(--gold-gradient);
  margin-bottom: 24px;
}

.plaque-pillars {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  margin-bottom: 28px;
}
.pillar {
  display: flex;
  justify-content: space-between;
  padding: 8px 14px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(212, 175, 55, 0.15);
  border-radius: var(--radius-sm);
}
.pillar-label {
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  font-weight: 600;
}
.pillar-val {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-primary);
}

.plaque-footer-scripture {
  margin-bottom: 24px;
}
.plaque-footer-scripture p {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.4;
}
.plaque-footer-scripture span {
  font-size: 0.78rem;
  color: var(--gold-primary);
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   14. Section: Prayer & Inquiries
   -------------------------------------------------------------------------- */
.prayer-connect-section {
  background: var(--bg-secondary);
}

.connect-card-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 48px;
  box-shadow: var(--shadow-lg);
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 32px;
}
.c-method {
  display: flex;
  gap: 16px;
}
.c-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid var(--card-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-primary);
  flex-shrink: 0;
}
.c-icon svg {
  width: 20px;
  height: 20px;
}
.c-method h4 {
  font-size: 1rem;
  margin-bottom: 2px;
}
.c-method p {
  font-size: 0.88rem;
}
.c-method a {
  color: var(--gold-primary);
  text-decoration: underline;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--card-border);
  background: var(--bg-primary);
  color: var(--text-primary);
  font-size: 0.95rem;
  outline: none;
  transition: border-color var(--transition-fast);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--gold-primary);
  box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.2);
}

.form-feedback {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  margin-top: 8px;
}
.form-feedback.success {
  background: rgba(46, 204, 113, 0.15);
  border: 1px solid #2ecc71;
  color: #2ecc71;
}

/* --------------------------------------------------------------------------
   15. Site Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--bg-primary);
  border-top: 1px solid var(--card-border);
  padding: 72px 0 24px;
}

.footer-container {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 40px;
  margin-bottom: 56px;
}

.footer-brand .brand-logo {
  margin-bottom: 16px;
}
.footer-tagline {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.footer-links-col h4 {
  font-size: 0.95rem;
  color: var(--gold-primary);
  letter-spacing: 0.06em;
  margin-bottom: 18px;
}
.footer-links-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-links-col a,
.footer-links-col span {
  font-size: 0.88rem;
  color: var(--text-secondary);
}
.footer-links-col a:hover {
  color: var(--gold-primary);
}

.footer-scripture {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 24px;
}
.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   16. Modern Native <dialog> Modals (Top Layer Best Practices)
   -------------------------------------------------------------------------- */
/* Visible / Open State */
dialog[open] {
  opacity: 1;
  transform: scale(1);
  display: flex;
  flex-direction: column;

  /* Entry styling from modern web guidance */
  @starting-style {
    opacity: 0;
    transform: scale(0.92);
  }
}

/* Base Closed / Exit State */
dialog {
  opacity: 0;
  transform: scale(0.92);
  border: none;
  background: transparent;
  padding: 0;
  margin: auto;
  max-width: 90vw;
  max-height: 90vh;
  outline: none;

  /* MANDATORY modern transition properties */
  transition-property: opacity, transform, display, overlay;
  transition-duration: 0.3s;
  transition-timing-function: ease-out;
  transition-behavior: allow-discrete;
}

/* Modern Animated Backdrop */
dialog::backdrop {
  background-color: rgba(0, 0, 0, 0);
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
  transition:
    display 0.3s allow-discrete,
    overlay 0.3s allow-discrete,
    background-color 0.3s ease-out,
    backdrop-filter 0.3s ease-out;
}

dialog[open]::backdrop {
  background-color: rgba(8, 20, 11, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  @starting-style {
    background-color: rgba(0, 0, 0, 0);
    backdrop-filter: blur(0px);
  }
}

/* Modal Inner Card */
.modal-card {
  width: 640px;
  max-width: 92vw;
  background: var(--bg-secondary);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg), 0 0 40px rgba(212, 175, 55, 0.2);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.modal-card-video {
  width: 860px;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 28px;
  border-bottom: 1px solid var(--card-border);
  background: rgba(0, 0, 0, 0.2);
}
.modal-eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--gold-primary);
  text-transform: uppercase;
}
.modal-title {
  font-size: 1.35rem;
}
.modal-close-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: all var(--transition-fast);
}
.modal-close-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
}

.modal-body {
  padding: 28px;
  overflow-y: auto;
  max-height: 60vh;
}

.modal-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 28px;
  border-top: 1px solid var(--card-border);
  background: rgba(0, 0, 0, 0.15);
}

/* Excerpt Reader Styling */
.excerpt-reader-page {
  text-align: center;
  padding: 10px 20px;
}
.excerpt-page-ornament {
  color: var(--gold-primary);
  letter-spacing: 0.4em;
  margin-bottom: 16px;
  font-size: 0.9rem;
}
.excerpt-poem-title {
  font-family: var(--font-serif);
  font-size: 1.7rem;
  font-weight: 600;
  margin-bottom: 20px;
  color: var(--gold-light);
}
.excerpt-poem-stanzas {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  line-height: 1.8;
  color: var(--text-primary);
  margin-bottom: 24px;
  white-space: pre-line;
}
.excerpt-poet-credit {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-style: italic;
}

.excerpt-nav-btns {
  display: flex;
  align-items: center;
  gap: 12px;
}
.excerpt-counter {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* Video Modal Iframe */
.modal-body-video {
  padding: 0;
}
.video-iframe-container {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000000;
}
.video-iframe-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}
.video-modal-description {
  padding: 20px 28px;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Full Poem Display Modal */
.full-poem-display {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  line-height: 1.85;
  color: var(--text-primary);
  margin-bottom: 24px;
  white-space: pre-line;
  padding: 0 16px;
}
.poem-reflection-box {
  background: rgba(212, 175, 55, 0.08);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
}
.poem-reflection-box h5 {
  font-size: 0.85rem;
  color: var(--gold-primary);
  margin-bottom: 4px;
}
.poem-reflection-box p {
  font-size: 0.92rem;
  line-height: 1.55;
}

/* --------------------------------------------------------------------------
   17. Toast Notifications
   -------------------------------------------------------------------------- */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 1000;
  pointer-events: none;
}
.toast {
  padding: 12px 20px;
  background: var(--bg-tertiary);
  border: 1px solid var(--gold-primary);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 0.9rem;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 10px;
  pointer-events: auto;
  animation: slideToastIn 0.3s ease-out;
}
@keyframes slideToastIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --------------------------------------------------------------------------
   18. Responsive Media Queries
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 48px;
  }
  .hero-actions {
    justify-content: center;
  }
  .daily-verse-banner {
    text-align: left;
  }
  .strip-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .book-showcase-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 48px;
  }
  .spotlight-header-meta {
    justify-content: center;
  }
  .spotlight-quote {
    border-left: none;
    border-top: 2px solid var(--gold-primary);
    border-bottom: 2px solid var(--gold-primary);
    padding: 16px 0;
  }
  .spotlight-buttons {
    justify-content: center;
  }
  .video-grid, .poetry-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .author-story-layout {
    grid-template-columns: 1fr;
  }
  .connect-card-wrapper {
    grid-template-columns: 1fr;
  }
  .footer-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-menu {
    display: none;
    position: absolute;
    top: var(--header-height);
    left: 0;
    width: 100%;
    background: var(--bg-primary);
    flex-direction: column;
    padding: 24px;
    gap: 20px;
    border-bottom: 1px solid var(--card-border);
  }
  .nav-menu.is-open {
    display: flex;
  }
  .mobile-menu-btn {
    display: flex;
  }
  .video-grid, .poetry-grid {
    grid-template-columns: 1fr;
  }
  .strip-grid {
    grid-template-columns: 1fr;
  }
  .audio-sanctuary-card {
    flex-direction: column;
    text-align: center;
    padding: 28px 20px;
  }
  .audio-controls-row {
    flex-direction: column;
    width: 100%;
  }
  .youtube-channel-banner {
    flex-direction: column;
    text-align: center;
    gap: 20px;
    padding: 24px;
  }
  .yt-banner-info {
    padding: 0;
  }
  .footer-container {
    grid-template-columns: 1fr;
  }
  .footer-bottom-inner {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
  .modal-footer {
    flex-direction: column;
    gap: 14px;
  }
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  dialog, dialog::backdrop {
    transition-duration: 0.05s !important;
    transform: none !important;
  }
  .book-3d-wrapper:hover, .master-book-card:hover {
    transform: none !important;
  }
  .ambient-canvas {
    display: none;
  }
}
