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

:root {
  --gold: #DAAF37;
  --gold-accent: #B49128;
  --dark: #0F0F14;
  --dark-card: #16151C;
  --dark-alt: #1A1920;
  --text: #E8E0D0;
  --text-dim: #9A9486;
  --serif: Georgia, 'Times New Roman', 'Palatino Linotype', serif;
  --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  --red: #C0392B;
  --green: #27AE60;
}

html { scroll-behavior: smooth; }

body {
  background: var(--dark);
  color: var(--text);
  font-family: var(--serif);
  line-height: 1.7;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold-accent); text-decoration: none; transition: color 0.3s; }
a:hover { color: var(--gold); }

/* ========== LAYOUT ========== */

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

.section-narrow { max-width: 780px; }
.section-wide { max-width: 1300px; }

.gold { color: var(--gold); }
.gold-accent { color: var(--gold-accent); }
.text-center { text-align: center; }

.divider {
  width: 80px;
  height: 1px;
  background: var(--gold-accent);
  margin: 32px auto;
  opacity: 0.5;
}

.divider-wide { width: 200px; }

/* ========== NAV ========== */

.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(15, 15, 20, 0.95);
  border-bottom: 1px solid rgba(218, 175, 55, 0.1);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.nav-brand img {
  width: 36px;
  height: 36px;
}

.nav-brand span {
  font-family: var(--serif);
  color: var(--gold);
  font-size: 1.05rem;
  letter-spacing: 0.08em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-family: var(--sans);
  font-size: 0.8rem;
  color: var(--text-dim);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: color 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--gold);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--gold);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 8px;
}

/* ========== HERO ========== */

.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 24px;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(ellipse at center top, rgba(218,175,55,0.04) 0%, transparent 60%);
  pointer-events: none;
}

.hero-emblem {
  width: 220px;
  height: 220px;
  margin-bottom: 48px;
  animation: glow-pulse 4s ease-in-out infinite;
  filter: drop-shadow(0 0 30px rgba(218,175,55,0.15));
}

@keyframes glow-pulse {
  0%, 100% { filter: drop-shadow(0 0 20px rgba(218,175,55,0.1)); }
  50% { filter: drop-shadow(0 0 40px rgba(218,175,55,0.25)); }
}

.hero-title {
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: normal;
  color: var(--gold);
  letter-spacing: 0.15em;
  line-height: 1.1;
  margin-bottom: 16px;
}

.hero-author {
  font-size: 1.15rem;
  color: var(--gold-accent);
  font-style: italic;
  margin-bottom: 48px;
  letter-spacing: 0.05em;
}

.hero-verse {
  font-size: 0.95rem;
  color: var(--text-dim);
  font-style: italic;
  max-width: 600px;
  line-height: 1.8;
  margin-bottom: 12px;
}

.hero-ref {
  font-size: 0.85rem;
  color: var(--gold-accent);
  margin-bottom: 48px;
}

.hero-question {
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  color: var(--gold);
  font-style: italic;
  margin-bottom: 40px;
}

/* ========== BUTTONS ========== */

.btn {
  display: inline-block;
  padding: 16px 40px;
  border: 1px solid var(--gold);
  color: var(--gold);
  text-decoration: none;
  font-family: var(--sans);
  font-size: 0.9rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: all 0.3s ease;
  background: transparent;
  cursor: pointer;
}

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

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

.btn-solid:hover {
  background: var(--gold-accent);
  border-color: var(--gold-accent);
}

.btn-sm {
  font-size: 0.75rem;
  padding: 10px 24px;
}

.btn-wide {
  padding: 16px 60px;
}

/* ========== QUESTION SECTION ========== */

.question-section {
  background: var(--dark-alt);
  padding: 100px 24px;
}

.question-section .section { padding: 0; }

.question-lead {
  font-size: clamp(1.4rem, 3vw, 2rem);
  color: var(--gold);
  text-align: center;
  margin-bottom: 48px;
  font-style: italic;
  line-height: 1.5;
}

.question-text {
  font-size: 1.1rem;
  color: var(--text);
  margin-bottom: 24px;
  text-indent: 1.5em;
}

.question-text:first-of-type { text-indent: 0; }

/* ========== BOOK SECTION ========== */

.book-section {
  display: flex;
  gap: 60px;
  align-items: flex-start;
}

.book-cover {
  flex-shrink: 0;
  width: 320px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 40px rgba(218,175,55,0.08);
  border: 1px solid rgba(218,175,55,0.1);
}

.book-info h2 {
  font-size: 2rem;
  color: var(--gold);
  margin-bottom: 8px;
  font-weight: normal;
}

.book-info .subtitle {
  font-size: 1rem;
  color: var(--gold-accent);
  font-style: italic;
  margin-bottom: 32px;
}

.book-info p {
  font-size: 1.05rem;
  margin-bottom: 20px;
  color: var(--text);
}

.book-prices {
  display: flex;
  gap: 24px;
  margin: 32px 0;
  flex-wrap: wrap;
}

.price-tag { text-align: center; }

.price-tag .format {
  font-family: var(--sans);
  font-size: 0.75rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  display: block;
  margin-bottom: 4px;
}

.price-tag .amount {
  font-size: 1.4rem;
  color: var(--gold);
}

/* ========== CHARACTERS ========== */

.characters-title {
  font-size: 2rem;
  color: var(--gold);
  text-align: center;
  font-weight: normal;
  margin-bottom: 12px;
}

.characters-sub {
  text-align: center;
  color: var(--text-dim);
  font-style: italic;
  margin-bottom: 60px;
}

.characters-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.char-card {
  background: var(--dark-card);
  border: 1px solid rgba(218,175,55,0.08);
  padding: 32px;
  transition: border-color 0.3s ease;
}

.char-card:hover { border-color: var(--gold-accent); }

.char-name {
  font-size: 1.3rem;
  color: var(--gold);
  margin-bottom: 4px;
}

.char-role {
  font-family: var(--sans);
  font-size: 0.8rem;
  color: var(--gold-accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}

.char-desc {
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.6;
}

/* ========== QUOTES ========== */

.quotes-section {
  background: var(--dark-alt);
  padding: 100px 24px;
}

.quote-block {
  max-width: 700px;
  margin: 0 auto 60px;
  padding-left: 24px;
  border-left: 3px solid var(--gold-accent);
}

.quote-block:last-child { margin-bottom: 0; }

.quote-text {
  font-size: 1.2rem;
  font-style: italic;
  color: var(--text);
  margin-bottom: 12px;
  line-height: 1.6;
}

.quote-attr {
  font-size: 0.9rem;
  color: var(--gold-accent);
}

.quote-block:nth-child(even) {
  margin-left: auto;
  margin-right: 0;
  border-left: none;
  border-right: 3px solid var(--gold-accent);
  padding-left: 0;
  padding-right: 24px;
  text-align: right;
}

/* ========== ECOSYSTEM ========== */

.eco-title {
  font-size: 2rem;
  color: var(--gold);
  text-align: center;
  font-weight: normal;
  margin-bottom: 12px;
}

.eco-sub {
  text-align: center;
  color: var(--text-dim);
  font-style: italic;
  margin-bottom: 60px;
  font-size: 1.05rem;
}

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

.eco-card {
  background: var(--dark-card);
  border: 1px solid rgba(218,175,55,0.08);
  padding: 40px 28px;
  text-align: center;
  transition: border-color 0.3s ease;
}

.eco-card:hover { border-color: var(--gold-accent); }

.eco-icon { font-size: 2.5rem; margin-bottom: 20px; }

.eco-card h3 {
  font-size: 1.2rem;
  color: var(--gold);
  font-weight: normal;
  margin-bottom: 6px;
}

.eco-card .eco-product {
  font-size: 0.85rem;
  color: var(--gold-accent);
  font-style: italic;
  margin-bottom: 16px;
}

.eco-card p {
  font-size: 0.95rem;
  color: var(--text);
  margin-bottom: 24px;
  line-height: 1.5;
}

/* ========== EXCERPT ========== */

.excerpt-section {
  background: var(--dark-alt);
  padding: 100px 24px;
}

.excerpt-header {
  text-align: center;
  margin-bottom: 60px;
}

.excerpt-header h2 {
  font-size: 1.8rem;
  color: var(--gold);
  font-weight: normal;
  margin-bottom: 8px;
}

.excerpt-header .ch-title {
  font-size: 1.1rem;
  color: var(--gold-accent);
  font-style: italic;
}

.excerpt-body {
  max-width: 650px;
  margin: 0 auto;
  font-size: 1.05rem;
  line-height: 1.8;
}

.excerpt-body p {
  margin-bottom: 20px;
  text-indent: 1.5em;
}

.excerpt-body p:first-child,
.excerpt-body .scene-break + p { text-indent: 0; }

.scene-break {
  text-align: center;
  color: var(--text-dim);
  margin: 36px 0;
  letter-spacing: 0.5em;
  text-indent: 0 !important;
  font-size: 0.9rem;
}

.excerpt-fade {
  position: relative;
  max-width: 650px;
  margin: 0 auto;
}

.excerpt-fade::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 200px;
  background: linear-gradient(transparent, var(--dark-alt));
  pointer-events: none;
}

.excerpt-cta {
  text-align: center;
  margin-top: 48px;
}

/* ========== AUTHOR ========== */

.author-section {
  display: flex;
  gap: 48px;
  align-items: flex-start;
}

.author-img {
  flex-shrink: 0;
  width: 180px;
  height: 180px;
  border: 1px solid rgba(218,175,55,0.15);
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.author-img img {
  width: 100%;
  filter: drop-shadow(0 0 12px rgba(218,175,55,0.1));
}

.author-info h2 {
  font-size: 1.8rem;
  color: var(--gold);
  font-weight: normal;
  margin-bottom: 24px;
}

.author-info p {
  font-size: 1rem;
  margin-bottom: 16px;
  color: var(--text);
}

.author-links {
  margin-top: 24px;
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.author-links a {
  color: var(--gold-accent);
  text-decoration: none;
  font-family: var(--sans);
  font-size: 0.85rem;
  letter-spacing: 0.05em;
}

/* ========== EMAIL CAPTURE ========== */

.email-section {
  background: var(--dark-card);
  border-top: 1px solid rgba(218,175,55,0.1);
  border-bottom: 1px solid rgba(218,175,55,0.1);
  text-align: center;
  padding: 80px 24px;
}

.email-section h2 {
  font-size: 1.8rem;
  color: var(--gold);
  font-weight: normal;
  margin-bottom: 12px;
}

.email-section .email-sub {
  color: var(--text-dim);
  font-style: italic;
  margin-bottom: 36px;
}

.email-form {
  display: flex;
  gap: 12px;
  justify-content: center;
  max-width: 500px;
  margin: 0 auto;
}

.email-form input[type="email"],
.email-form input[type="text"] {
  flex: 1;
  padding: 14px 20px;
  background: var(--dark);
  border: 1px solid rgba(218,175,55,0.2);
  color: var(--text);
  font-family: var(--sans);
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.3s;
}

.email-form input:focus { border-color: var(--gold); }
.email-form input::placeholder { color: var(--text-dim); }

.email-form button {
  padding: 14px 28px;
  background: var(--gold);
  color: var(--dark);
  border: 1px solid var(--gold);
  font-family: var(--sans);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s;
  white-space: nowrap;
}

.email-form button:hover {
  background: var(--gold-accent);
  border-color: var(--gold-accent);
}

/* ========== PRODUCT PAGE ========== */

.product-hero {
  padding-top: 120px;
  padding-bottom: 80px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.product-card {
  background: var(--dark-card);
  border: 1px solid rgba(218,175,55,0.08);
  padding: 32px;
  transition: border-color 0.3s ease;
}

.product-card:hover { border-color: var(--gold-accent); }

.product-card h3 {
  color: var(--gold);
  font-weight: normal;
  margin-bottom: 8px;
}

.product-card .price {
  font-size: 1.4rem;
  color: var(--gold);
  margin-bottom: 16px;
}

.product-card p {
  font-size: 0.95rem;
  color: var(--text);
  margin-bottom: 24px;
  line-height: 1.5;
}

/* ========== CART + CHECKOUT ========== */

.cart-count {
  background: var(--gold);
  color: var(--dark);
  font-size: 0.65rem;
  font-family: var(--sans);
  padding: 2px 6px;
  border-radius: 10px;
  margin-left: 4px;
  font-weight: 700;
}

.checkout-grid {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 48px;
  align-items: flex-start;
}

.cart-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid rgba(218,175,55,0.08);
}

.cart-item:last-child { border-bottom: none; }

.cart-total {
  text-align: right;
  padding-top: 16px;
  border-top: 2px solid var(--gold-accent);
  font-size: 1.3rem;
  color: var(--gold);
}

.payment-box {
  background: var(--dark-card);
  border: 1px solid rgba(218,175,55,0.15);
  padding: 32px;
}

#card-container {
  min-height: 80px;
  margin-bottom: 24px;
}

/* ========== ADMIN ========== */

.admin-header {
  background: var(--dark-card);
  border-bottom: 1px solid rgba(218,175,55,0.15);
  padding: 16px 24px;
}

.admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.stat-card {
  background: var(--dark-card);
  border: 1px solid rgba(218,175,55,0.08);
  padding: 24px;
  text-align: center;
}

.stat-card .stat-number {
  font-size: 2rem;
  color: var(--gold);
  display: block;
  margin-bottom: 4px;
}

.stat-card .stat-label {
  font-family: var(--sans);
  font-size: 0.75rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--sans);
  font-size: 0.9rem;
}

.data-table th {
  text-align: left;
  padding: 12px 16px;
  color: var(--gold-accent);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-bottom: 1px solid rgba(218,175,55,0.15);
}

.data-table td {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(218,175,55,0.05);
  color: var(--text);
}

.data-table tr:hover td {
  background: rgba(218,175,55,0.03);
}

.badge {
  display: inline-block;
  padding: 3px 10px;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-family: var(--sans);
  border-radius: 3px;
}

.badge-gold { background: rgba(218,175,55,0.15); color: var(--gold); }
.badge-green { background: rgba(39,174,96,0.15); color: var(--green); }
.badge-red { background: rgba(192,57,43,0.15); color: var(--red); }
.badge-dim { background: rgba(154,148,134,0.15); color: var(--text-dim); }

/* ========== LEGAL ========== */

.legal-content {
  max-width: 780px;
  margin: 0 auto;
  padding-top: 120px;
}

.legal-content h1 {
  font-size: 2rem;
  color: var(--gold);
  font-weight: normal;
  margin-bottom: 8px;
}

.legal-content .legal-updated {
  color: var(--text-dim);
  font-size: 0.9rem;
  font-style: italic;
  margin-bottom: 48px;
}

.legal-content h2 {
  font-size: 1.3rem;
  color: var(--gold);
  font-weight: normal;
  margin-top: 40px;
  margin-bottom: 16px;
}

.legal-content p {
  margin-bottom: 16px;
  font-size: 1rem;
}

.legal-content ul {
  margin-bottom: 16px;
  padding-left: 24px;
}

.legal-content li {
  margin-bottom: 8px;
  font-size: 1rem;
}

/* ========== FOOTER ========== */

.site-footer {
  padding: 60px 24px;
  text-align: center;
}

.footer-emblem {
  width: 120px;
  margin: 0 auto 24px;
  opacity: 0.6;
}

.site-footer p {
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-bottom: 8px;
}

.footer-links {
  margin-bottom: 16px;
}

.footer-links a {
  color: var(--gold-accent);
  margin: 0 8px;
  font-size: 0.85rem;
}

/* ========== FORM ELEMENTS ========== */

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-family: var(--sans);
  font-size: 0.8rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}

.form-input {
  width: 100%;
  padding: 12px 16px;
  background: var(--dark);
  border: 1px solid rgba(218,175,55,0.2);
  color: var(--text);
  font-family: var(--sans);
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.3s;
}

.form-input:focus { border-color: var(--gold); }

textarea.form-input {
  min-height: 120px;
  resize: vertical;
  font-family: var(--serif);
}

/* ========== FLASH MESSAGES ========== */

.flash {
  padding: 14px 20px;
  margin-bottom: 24px;
  font-family: var(--sans);
  font-size: 0.9rem;
  border: 1px solid;
}

.flash-success {
  background: rgba(39,174,96,0.1);
  border-color: rgba(39,174,96,0.3);
  color: var(--green);
}

.flash-error {
  background: rgba(192,57,43,0.1);
  border-color: rgba(192,57,43,0.3);
  color: var(--red);
}

/* ========== FADE IN ========== */

.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* ========== AUDIO PREVIEWS ========== */

.track-preview {
  width: 100%;
  height: 36px;
  margin-top: 16px;
  border-radius: 0;
  filter: sepia(20%) saturate(70%) brightness(90%) hue-rotate(5deg);
}

.track-preview::-webkit-media-controls-panel {
  background: var(--dark-card);
}

/* ========== RESPONSIVE ========== */

@media (max-width: 768px) {
  .section { padding: 70px 20px; }

  .book-section {
    flex-direction: column;
    align-items: center;
  }

  .book-cover { width: 260px; }

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

  .author-section {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .author-links { justify-content: center; }

  .quote-block:nth-child(even) {
    margin-left: 0;
    border-right: none;
    border-left: 3px solid var(--gold-accent);
    padding-right: 0;
    padding-left: 24px;
    text-align: left;
  }

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

  .email-form { flex-direction: column; }

  .hero-emblem { width: 160px; height: 160px; }

  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: rgba(15,15,20,0.98);
    padding: 24px;
    gap: 20px;
    border-bottom: 1px solid rgba(218,175,55,0.1);
  }

  .nav-toggle { display: block; }

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

  .product-hero { padding-top: 100px; }
}

@media (max-width: 480px) {
  .hero-title { letter-spacing: 0.08em; }
  .section { padding: 56px 16px; }
  .book-cover { width: 220px; }
}
