/*
Theme Name:  Ask Marcus Aurelius
Theme URI:   https://askmarcusaurelius.ai
Author:      Scriptus
Author URI:  https://getscriptus.com
Description: Custom WordPress theme for AskMarcusAurelius.ai — a dark, stoic landing page with gold accents.
Version:     1.0.0
License:     All Rights Reserved
Text Domain: marcus-aurelius
Tags:        custom-menu, full-width-template, dark
*/

/* ═══════════════════════════════════════════
   DESIGN TOKENS
═══════════════════════════════════════════ */
:root {
  --bg-void:       #0D0B08;
  --bg-deep:       #111009;
  --bg-surface:    #181410;
  --bg-raised:     #211D16;
  --bg-card:       #271F15;
  --gold:          #C8A96E;
  --gold-bright:   #E2C07A;
  --gold-dim:      #8A6E40;
  --gold-glow:     rgba(200,169,110,0.15);
  --gold-glow-sm:  rgba(200,169,110,0.08);
  --text-primary:  #EDE6D6;
  --text-secondary:#B8A882;
  --text-dim:      #7A6E56;
  --text-faint:    #4A4030;
  --border:        rgba(200,169,110,0.12);
  --border-bright: rgba(200,169,110,0.28);
  --red-accent:    #8B2E2E;
  --ff-display:    'Cormorant Garamond', Georgia, serif;
  --ff-body:       'Crimson Pro', Georgia, serif;
  --transition:    0.3s cubic-bezier(0.4,0,0.2,1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 18px;
}

body {
  background: var(--bg-void);
  color: var(--text-primary);
  font-family: var(--ff-body);
  font-weight: 300;
  line-height: 1.75;
  overflow-x: hidden;
  cursor: default;
}

::selection {
  background: var(--gold-glow);
  color: var(--gold-bright);
}

/* ═══════════════════════════════════════════
   GRAIN TEXTURE OVERLAY
═══════════════════════════════════════════ */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 1000;
  opacity: 0.4;
}

/* ═══════════════════════════════════════════
   SCROLLBAR
═══════════════════════════════════════════ */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg-void); }
::-webkit-scrollbar-thumb { background: var(--gold-dim); border-radius: 2px; }

/* ═══════════════════════════════════════════
   TYPOGRAPHY SCALE
═══════════════════════════════════════════ */
h1, h2, h3, h4 {
  font-family: var(--ff-display);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: 0.01em;
}

h1 { font-size: clamp(2.8rem, 6vw, 5.5rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 3rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.6rem); }

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

a {
  color: var(--gold);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover { color: var(--gold-bright); }

strong { font-weight: 600; color: var(--text-primary); }
em { font-style: italic; color: var(--text-secondary); }

/* ═══════════════════════════════════════════
   UTILITY
═══════════════════════════════════════════ */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
}
.container--narrow { max-width: 760px; }
.container--wide   { max-width: 1320px; }

.gold { color: var(--gold); }
.dim  { color: var(--text-secondary); }

.divider {
  width: 60px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin: 0 auto;
}
.divider--left { margin: 0; }

.eyebrow {
  font-family: var(--ff-body);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-dim);
  font-weight: 400;
}

/* ═══════════════════════════════════════════
   FADE-IN ANIMATION
═══════════════════════════════════════════ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes shimmer {
  0%   { background-position: -200% center; }
  100% { background-position: 200% center; }
}
@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 20px rgba(200,169,110,0.1); }
  50%       { box-shadow: 0 0 40px rgba(200,169,110,0.22); }
}
@keyframes flicker {
  0%, 100% { opacity: 1; }
  92% { opacity: 1; }
  93% { opacity: 0.85; }
  94% { opacity: 1; }
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ═══════════════════════════════════════════
   NAV
═══════════════════════════════════════════ */
nav#site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.2rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background var(--transition), backdrop-filter var(--transition);
}
nav#site-nav.scrolled {
  background: rgba(13,11,8,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  font-family: var(--ff-display);
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text-primary);
  letter-spacing: 0.04em;
  animation: fadeIn 1s ease both;
  text-decoration: none;
}
.nav-logo span { color: var(--gold); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  list-style: none;
  animation: fadeIn 1s ease 0.2s both;
}
.nav-links li { list-style: none; }
.nav-links a {
  font-family: var(--ff-body);
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-secondary);
  transition: color var(--transition);
}
.nav-links a:hover { color: var(--gold); }

.nav-cta {
  font-family: var(--ff-body);
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.55rem 1.4rem;
  border: 1px solid var(--border-bright);
  color: var(--gold);
  border-radius: 2px;
  transition: all var(--transition);
  animation: fadeIn 1s ease 0.3s both;
}
.nav-cta:hover {
  background: var(--gold-glow);
  border-color: var(--gold);
  color: var(--gold-bright);
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  color: var(--gold);
  padding: 0.4rem 0.7rem;
  font-size: 1.2rem;
  cursor: pointer;
  border-radius: 2px;
}

@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(13,11,8,0.98);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    gap: 0;
    padding: 1rem 0;
    animation: none;
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a {
    display: block;
    padding: 0.75rem 2rem;
  }
  .nav-cta { display: none; }
}

/* ═══════════════════════════════════════════
   HERO
═══════════════════════════════════════════ */
#hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 7rem 2rem 4rem;
  position: relative;
  overflow: hidden;
  text-align: center;
}

/* Atmospheric radial gradient */
#hero::before {
  content: '';
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 700px;
  background: radial-gradient(ellipse at center,
    rgba(200,169,110,0.07) 0%,
    rgba(200,169,110,0.03) 35%,
    transparent 70%);
  pointer-events: none;
}

/* Marble column lines */
#hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(90deg, rgba(200,169,110,0.025) 1px, transparent 1px),
    linear-gradient(0deg, rgba(200,169,110,0.015) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse at center, black 20%, transparent 75%);
  pointer-events: none;
}

.hero-eyebrow {
  animation: fadeUp 0.8s ease 0.2s both;
  margin-bottom: 1.5rem;
}

.hero-title {
  animation: fadeUp 0.9s ease 0.4s both;
  margin-bottom: 1.5rem;
  position: relative;
}

.hero-title em {
  font-style: italic;
  color: var(--gold);
  font-weight: 300;
}

.hero-subtitle {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 2.5rem;
  font-weight: 300;
  animation: fadeUp 0.9s ease 0.6s both;
}

.hero-ctas {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  flex-wrap: wrap;
  animation: fadeUp 0.9s ease 0.8s both;
  margin-bottom: 0.8rem;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 1rem 2.2rem;
  background: linear-gradient(135deg, #C8A96E 0%, #A07840 100%);
  color: #0D0B08;
  font-family: var(--ff-body);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 2px;
  transition: all var(--transition);
  animation: pulse-glow 4s ease-in-out infinite;
}
.btn-primary:hover {
  background: linear-gradient(135deg, #E2C07A 0%, #C8A96E 100%);
  color: #0D0B08;
  transform: translateY(-1px);
  box-shadow: 0 8px 30px rgba(200,169,110,0.3);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  border: 1px solid var(--border-bright);
  color: var(--text-secondary);
  font-family: var(--ff-body);
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 2px;
  transition: all var(--transition);
}
.btn-secondary:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: var(--gold-glow-sm);
}

.hero-note {
  font-size: 0.8rem;
  color: var(--text-faint);
  letter-spacing: 0.06em;
  animation: fadeUp 0.9s ease 1s both;
}

/* ═══════════════════════════════════════════
   BOT EMBED SECTION
═══════════════════════════════════════════ */
#bot-section {
  padding: 0 2rem 6rem;
  position: relative;
}

.bot-container {
  max-width: 860px;
  margin: 0 auto;
  position: relative;
  animation: fadeUp 1s ease 1.1s both;
}

.bot-frame {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
  box-shadow:
    0 0 0 1px rgba(200,169,110,0.05),
    0 20px 60px rgba(0,0,0,0.6),
    0 0 80px rgba(200,169,110,0.04);
}

.bot-frame-header {
  background: var(--bg-raised);
  border-bottom: 1px solid var(--border);
  padding: 0.75rem 1.2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.bot-frame-dots {
  display: flex;
  gap: 6px;
}
.bot-frame-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--text-faint);
  opacity: 0.4;
}
.bot-frame-label {
  font-family: var(--ff-body);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-faint);
  flex: 1;
  text-align: center;
}
.bot-frame-label span { color: var(--gold-dim); }

.bot-placeholder {
  min-height: 520px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 2rem;
  background: linear-gradient(180deg, var(--bg-card) 0%, var(--bg-surface) 100%);
  position: relative;
}

.bust-svg {
  width: 120px;
  height: 120px;
  margin-bottom: 1.8rem;
  opacity: 0.7;
  animation: flicker 8s ease-in-out infinite;
  filter: drop-shadow(0 0 20px rgba(200,169,110,0.2));
}

.bot-welcome {
  font-family: var(--ff-display);
  font-size: 1.4rem;
  font-weight: 400;
  font-style: italic;
  color: var(--text-secondary);
  text-align: center;
  max-width: 480px;
  line-height: 1.6;
  margin-bottom: 2rem;
}

/* Voiceflow embed wrapper */
#voiceflow-chat-wrapper {
  width: 100%;
  min-height: 520px;
  background: linear-gradient(180deg, var(--bg-card) 0%, var(--bg-surface) 100%);
  position: relative;
}

.bot-quota {
  position: absolute;
  bottom: 1rem;
  right: 1.2rem;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--text-faint);
}
.bot-quota .free { color: var(--gold-dim); }

/* ═══════════════════════════════════════════
   SECTION BASE
═══════════════════════════════════════════ */
section {
  padding: 6rem 2rem;
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}
.section-header .eyebrow { margin-bottom: 1rem; display: block; }
.section-header h2 { margin-bottom: 1.2rem; }
.section-header p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto;
}

/* ═══════════════════════════════════════════
   QUOTE BAND
═══════════════════════════════════════════ */
#quote-band {
  padding: 4rem 2rem;
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  text-align: center;
  overflow: hidden;
  position: relative;
}
#quote-band::before {
  content: '\201C';
  position: absolute;
  font-family: var(--ff-display);
  font-size: 20rem;
  color: rgba(200,169,110,0.04);
  top: -4rem;
  left: 2rem;
  line-height: 1;
  pointer-events: none;
}

.quote-text {
  font-family: var(--ff-display);
  font-size: clamp(1.4rem, 3vw, 2.4rem);
  font-weight: 300;
  font-style: italic;
  color: var(--text-primary);
  max-width: 800px;
  margin: 0 auto 1.2rem;
  line-height: 1.4;
}
.quote-source {
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-dim);
}

/* ═══════════════════════════════════════════
   WHO WAS MARCUS
═══════════════════════════════════════════ */
#who {
  background: var(--bg-deep);
}

.who-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
}

.who-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bust-large {
  width: 280px;
  height: auto;
  filter: drop-shadow(0 20px 60px rgba(200,169,110,0.15));
  opacity: 0.85;
}

.who-dates {
  position: absolute;
  bottom: -1rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 0.5rem 1.2rem;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-dim);
  white-space: nowrap;
}

.who-content .eyebrow { display: block; margin-bottom: 1rem; }
.who-content h2 { margin-bottom: 1.5rem; }
.who-content p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.8;
}

@media (max-width: 768px) {
  .who-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .who-visual { display: none; }
}

/* ═══════════════════════════════════════════
   HOW IT WORKS
═══════════════════════════════════════════ */
#how {
  background: var(--bg-void);
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  max-width: 1100px;
  margin: 0 auto;
}

.step {
  background: var(--bg-surface);
  padding: 2.5rem 1.8rem;
  position: relative;
  transition: background var(--transition);
}
.step:hover { background: var(--bg-raised); }

.step-num {
  font-family: var(--ff-display);
  font-size: 3.5rem;
  font-weight: 300;
  color: rgba(200,169,110,0.15);
  line-height: 1;
  margin-bottom: 1rem;
}
.step-title {
  font-family: var(--ff-display);
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 0.8rem;
}
.step p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

@media (max-width: 900px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 500px) {
  .steps { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════
   PRICING
═══════════════════════════════════════════ */
#pricing {
  background: var(--bg-deep);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 960px;
  margin: 0 auto;
}

.pricing-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2.5rem 2rem;
  position: relative;
  transition: all var(--transition);
}
.pricing-card:hover {
  border-color: var(--gold-dim);
  background: var(--bg-raised);
  transform: translateY(-3px);
}
.pricing-card.featured {
  border-color: var(--gold-dim);
  background: var(--bg-card);
}
.pricing-card.featured::before {
  content: 'Most Popular';
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #C8A96E, #A07840);
  color: #0D0B08;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.3rem 1rem;
  border-radius: 0 0 3px 3px;
}

.plan-name {
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-dim);
  margin-bottom: 1.2rem;
  display: block;
}
.plan-price {
  font-family: var(--ff-display);
  font-size: 3rem;
  font-weight: 300;
  color: var(--text-primary);
  line-height: 1;
  margin-bottom: 0.3rem;
}
.plan-price sup {
  font-size: 1.2rem;
  vertical-align: top;
  margin-top: 0.5rem;
  color: var(--gold);
}
.plan-cadence {
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-bottom: 2rem;
}

.plan-divider {
  width: 100%;
  height: 1px;
  background: var(--border);
  margin-bottom: 1.8rem;
}

.plan-features {
  list-style: none;
  margin-bottom: 2rem;
}
.plan-features li {
  font-size: 0.92rem;
  color: var(--text-secondary);
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(200,169,110,0.05);
  display: flex;
  align-items: baseline;
  gap: 0.7rem;
}
.plan-features li::before {
  content: '—';
  color: var(--gold-dim);
  flex-shrink: 0;
  font-size: 0.8rem;
}
.plan-features li.highlight { color: var(--text-primary); }
.plan-features li.highlight::before { color: var(--gold); }

.plan-btn {
  display: block;
  width: 100%;
  padding: 0.9rem;
  text-align: center;
  border: 1px solid var(--border-bright);
  color: var(--gold);
  font-family: var(--ff-body);
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: 2px;
  transition: all var(--transition);
  cursor: pointer;
  background: transparent;
}
.plan-btn:hover,
.plan-btn.primary {
  background: linear-gradient(135deg, #C8A96E, #A07840);
  color: #0D0B08;
  border-color: transparent;
}
.plan-btn.primary { font-weight: 600; }

@media (max-width: 768px) {
  .pricing-grid { grid-template-columns: 1fr; max-width: 420px; }
}

/* ═══════════════════════════════════════════
   FAQ
═══════════════════════════════════════════ */
#faq {
  background: var(--bg-void);
}

.faq-list {
  max-width: 760px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 1.6rem 0;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.5rem;
  cursor: pointer;
  text-align: left;
  transition: color var(--transition);
}
.faq-question:hover .faq-q-text { color: var(--gold); }

.faq-q-text {
  font-family: var(--ff-display);
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--text-primary);
  transition: color var(--transition);
}
.faq-icon {
  color: var(--gold-dim);
  font-size: 1.4rem;
  flex-shrink: 0;
  transition: transform var(--transition);
  line-height: 1;
}
.faq-item.open .faq-icon { transform: rotate(45deg); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4,0,0.2,1);
}
.faq-item.open .faq-answer { max-height: 300px; }

.faq-answer p {
  padding-bottom: 1.6rem;
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.8;
}

/* ═══════════════════════════════════════════
   READING LIST CALLOUT
═══════════════════════════════════════════ */
#reading {
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.reading-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

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

.book-spine {
  height: 180px;
  border-radius: 3px;
  display: flex;
  align-items: flex-end;
  padding: 1rem 0.8rem;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: transform var(--transition);
}
.book-spine:hover { transform: translateY(-4px); }

/* Cover image replaces the colored spine when a Featured Image is set */
.book-spine.has-cover {
  padding: 0;
  border-left: none;
  box-shadow: 3px 3px 14px rgba(0,0,0,0.55), -1px 0 4px rgba(0,0,0,0.3);
  background: none !important;
}
.book-spine.has-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 3px;
  display: block;
}

.book-spine-1 { background: linear-gradient(180deg, #2A1F0E 0%, #1A1208 100%); border-left: 4px solid #C8A96E; }
.book-spine-2 { background: linear-gradient(180deg, #1A1F2A 0%, #10141A 100%); border-left: 4px solid #6E8AC8; }
.book-spine-3 { background: linear-gradient(180deg, #1A2A1A 0%, #0E180E 100%); border-left: 4px solid #6EC87B; }
.book-spine-4 { background: linear-gradient(180deg, #2A1A1A 0%, #180E0E 100%); border-left: 4px solid #C86E6E; }
.book-spine-5 { background: linear-gradient(180deg, #221A2A 0%, #150E1A 100%); border-left: 4px solid #A86EC8; }
.book-spine-6 { background: linear-gradient(180deg, #2A2A1A 0%, #181808 100%); border-left: 4px solid #C8C06E; }

.book-title {
  font-family: var(--ff-display);
  font-size: 0.72rem;
  font-weight: 500;
  color: rgba(237,230,214,0.7);
  line-height: 1.3;
  writing-mode: vertical-lr;
  transform: rotate(180deg);
  height: 100%;
  display: flex;
  align-items: center;
}

.reading-content .eyebrow { display: block; margin-bottom: 1rem; }
.reading-content h2 { margin-bottom: 1.2rem; }
.reading-content p {
  color: var(--text-secondary);
  margin-bottom: 1.8rem;
  font-size: 1rem;
}

@media (max-width: 768px) {
  .reading-inner { grid-template-columns: 1fr; gap: 3rem; }
  .reading-books { display: none; }
}

/* ═══════════════════════════════════════════
   SCRIPTUS CALLOUT
═══════════════════════════════════════════ */
#scriptus {
  background: var(--bg-void);
  text-align: center;
}

.scriptus-inner {
  max-width: 680px;
  margin: 0 auto;
}

.scriptus-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  padding: 0.4rem 1rem;
  border-radius: 100px;
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold-dim);
  margin-bottom: 2rem;
}
.scriptus-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
}

.scriptus-inner h2 { margin-bottom: 1.2rem; }
.scriptus-inner p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  margin-bottom: 2.5rem;
  line-height: 1.8;
}

/* ═══════════════════════════════════════════
   NIETZSCHE CROSS-SELL
═══════════════════════════════════════════ */
#cross-sell {
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  padding: 4rem 2rem;
}

.cross-sell-inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 3rem;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 3rem;
  position: relative;
  overflow: hidden;
}
.cross-sell-inner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 60%, rgba(139,46,46,0.08) 100%);
  pointer-events: none;
}

.cross-sell-text { flex: 1; }
.cross-sell-text .eyebrow { display: block; margin-bottom: 0.8rem; }
.cross-sell-text h3 {
  font-size: 1.6rem;
  margin-bottom: 0.8rem;
}
.cross-sell-text p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
}

.cross-sell-cta {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  text-align: center;
}

.btn-nietzsche {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 1rem 2rem;
  background: transparent;
  border: 1px solid rgba(139,46,46,0.5);
  color: #C86E6E;
  font-family: var(--ff-body);
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: 2px;
  transition: all var(--transition);
  white-space: nowrap;
}
.btn-nietzsche:hover {
  background: rgba(139,46,46,0.12);
  border-color: #C86E6E;
  color: #E08080;
}
.cross-sell-note {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--text-faint);
}

@media (max-width: 680px) {
  .cross-sell-inner {
    flex-direction: column;
    gap: 2rem;
    text-align: center;
  }
  .cross-sell-text .eyebrow { display: block; }
}

/* ═══════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════ */
footer {
  background: var(--bg-deep);
  border-top: 1px solid var(--border);
  padding: 5rem 2rem 2rem;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 4rem;
  margin-bottom: 4rem;
}

.footer-brand .logo {
  font-family: var(--ff-display);
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 1rem;
}
.footer-brand .logo span { color: var(--gold); }
.footer-brand p {
  color: var(--text-dim);
  font-size: 0.88rem;
  line-height: 1.7;
  margin-bottom: 1.2rem;
}
.footer-scriptus-link {
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  color: var(--gold-dim);
}
.footer-scriptus-link:hover { color: var(--gold); }

.footer-col h4 {
  font-family: var(--ff-body);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-dim);
  margin-bottom: 1.5rem;
  font-weight: 400;
}
.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}
.footer-col a {
  font-size: 0.88rem;
  color: var(--text-dim);
  transition: color var(--transition);
}
.footer-col a:hover { color: var(--gold); }

.footer-bottom {
  max-width: 1100px;
  margin: 0 auto;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
}
.footer-bottom p {
  font-size: 0.78rem;
  color: var(--text-faint);
  margin: 0;
  letter-spacing: 0.04em;
}
.footer-bottom a {
  color: var(--text-faint);
}
.footer-bottom a:hover { color: var(--gold-dim); }

@media (max-width: 900px) {
  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 500px) {
  .footer-inner { grid-template-columns: 1fr; }
  .footer-brand { grid-column: auto; }
}

/* ═══════════════════════════════════════════
   INNER PAGE — GENERIC
═══════════════════════════════════════════ */
.page-content-wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 10rem 2rem 6rem;
}
.page-content-wrap h1 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  margin-bottom: 2rem;
  color: var(--text-primary);
}
.page-content-wrap .entry-content p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.8;
}
.page-content-wrap .entry-content h2,
.page-content-wrap .entry-content h3 {
  color: var(--text-primary);
  margin: 2rem 0 0.8rem;
}
.page-content-wrap .entry-content ul,
.page-content-wrap .entry-content ol {
  color: var(--text-secondary);
  padding-left: 1.5rem;
  margin-bottom: 1.2rem;
}
.page-content-wrap .entry-content li {
  margin-bottom: 0.5rem;
  font-size: 1.05rem;
  line-height: 1.8;
}
.page-content-wrap .entry-content a {
  color: var(--gold);
  text-decoration: underline;
  text-decoration-color: rgba(200,169,110,0.3);
}
.page-content-wrap .entry-content a:hover {
  color: var(--gold-bright);
}

/* Blog archive */
.posts-list {
  max-width: 760px;
  margin: 0 auto;
  padding: 10rem 2rem 6rem;
}
.post-card {
  border-bottom: 1px solid var(--border);
  padding: 2.5rem 0;
}
.post-card h2 {
  font-size: 1.6rem;
  margin-bottom: 0.8rem;
}
.post-card h2 a { color: var(--text-primary); }
.post-card h2 a:hover { color: var(--gold); }
.post-card .post-meta {
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-dim);
  margin-bottom: 1rem;
}

/* ═══════════════════════════════════════════
   CUSTOM BUST IMAGES
   When an image is uploaded via the Customizer
   it replaces the SVG. These styles make the
   uploaded image match the SVG's appearance.
═══════════════════════════════════════════ */
.bust-img {
  object-fit: contain;
  filter: drop-shadow(0 0 20px rgba(200,169,110,0.15));
  opacity: 0.85;
}
.bust-svg.bust-img {
  width: 120px;
  height: 120px;
  margin-bottom: 1.8rem;
  animation: flicker 8s ease-in-out infinite;
}
.bust-large.bust-img {
  width: 280px;
  height: auto;
  object-fit: unset;
}

/* ═══════════════════════════════════════════
   READING LIST PAGE (archive-marcus_book.php)
═══════════════════════════════════════════ */

/* Hero */
.rl-hero {
  padding: 10rem 2rem 5rem;
  background: var(--bg-void);
  position: relative;
  overflow: hidden;
}
.rl-hero::before {
  content: '';
  position: absolute;
  top: -10%;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 500px;
  background: radial-gradient(ellipse at center, rgba(200,169,110,0.06) 0%, transparent 70%);
  pointer-events: none;
}
.rl-heading {
  font-size: clamp(2.2rem, 5vw, 4rem);
  margin: 1.2rem 0;
}
.rl-heading em { color: var(--gold); font-style: italic; font-weight: 300; }
.rl-intro {
  color: var(--text-secondary);
  font-size: 1.1rem;
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.75;
}

/* Body / grid wrapper */
.rl-body {
  padding: 5rem 2rem 8rem;
  background: var(--bg-deep);
}

.rl-grid {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  max-width: 860px;
  margin: 0 auto 5rem;
}

/* Individual book card */
.rl-card {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 3rem;
  align-items: start;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2.5rem;
  transition: border-color var(--transition), background var(--transition);
}
.rl-card:hover {
  border-color: var(--gold-dim);
  background: var(--bg-raised);
}

/* Spine in card */
.rl-spine-wrap { flex-shrink: 0; }
.rl-spine {
  display: flex;
  align-items: center;
  height: 200px;
  border-left-width: 4px;
  border-left-style: solid;
  border-radius: 3px;
  padding: 1rem 0.8rem;
  text-decoration: none;
  transition: transform var(--transition);
  cursor: default;
}
a.rl-spine {
  cursor: pointer;
}
a.rl-spine:hover { transform: translateY(-3px); }

/* Cover image replaces the colored spine on the reading list page */
.rl-spine.has-cover {
  padding: 0;
  border-left: none;
  height: auto;
  width: auto;
  background: none !important;
  box-shadow: 4px 4px 16px rgba(0,0,0,0.55), -1px 0 4px rgba(0,0,0,0.3);
}
.rl-spine.has-cover img {
  display: block;
  height: 200px;
  width: auto;
  max-width: 140px;
  object-fit: cover;
  border-radius: 3px;
}

.rl-spine .book-title {
  font-size: 0.68rem;
}

/* Card body */
.rl-card-body { flex: 1; }

.rl-tag {
  display: inline-block;
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  border: 1px solid;
  padding: 0.2rem 0.7rem;
  border-radius: 2px;
  margin-bottom: 0.8rem;
}

.rl-card-title {
  font-family: var(--ff-display);
  font-size: clamp(1.2rem, 2vw, 1.7rem);
  font-weight: 400;
  color: var(--text-primary);
  margin-bottom: 0.3rem;
  line-height: 1.2;
}

.rl-card-author {
  font-size: 0.85rem;
  color: var(--gold-dim);
  letter-spacing: 0.06em;
  margin-bottom: 1rem;
}

.rl-card-excerpt {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.75;
  font-style: italic;
  margin-bottom: 0.8rem;
  border-left: 2px solid var(--border);
  padding-left: 1rem;
}

.rl-card-description {
  font-size: 0.93rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 1.5rem;
}
.rl-card-description p { margin-bottom: 0.8em; }

/* Amazon button */
.rl-amazon-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.3rem;
  border: 1px solid;
  border-radius: 2px;
  font-family: var(--ff-body);
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: all var(--transition);
  text-decoration: none;
}
.rl-amazon-btn:hover {
  opacity: 0.8;
  transform: translateY(-1px);
}

.rl-affiliate-note {
  font-size: 0.7rem;
  color: var(--text-faint);
  margin-top: 0.6rem;
  letter-spacing: 0.03em;
}

/* Empty state */
.rl-empty {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--text-secondary);
  border: 1px dashed var(--border);
  border-radius: 4px;
  max-width: 560px;
  margin: 0 auto;
}
.rl-empty a { color: var(--gold); }

/* Bottom CTA */
.rl-bottom-cta {
  text-align: center;
  padding: 5rem 2rem 2rem;
  border-top: 1px solid var(--border);
  max-width: 560px;
  margin: 0 auto;
}
.rl-bottom-cta h2 { margin-bottom: 1.5rem; }
.rl-bottom-cta em { color: var(--gold); }

@media (max-width: 640px) {
  .rl-card {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .rl-spine {
    height: 80px;
    writing-mode: horizontal-tb;
  }
  .rl-spine .book-title {
    writing-mode: horizontal-tb;
    transform: none;
    height: auto;
    font-size: 0.8rem;
  }
}
.post-card p { color: var(--text-secondary); }
