/* ============================================================
   Thoughts for Life — wisdomsforlife.com
   Shared stylesheet
   ============================================================ */

:root {
  /* Fonts */
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Work Sans', -apple-system, sans-serif;

  /* Fluid type scale */
  --text-xs: clamp(0.75rem, 0.7rem + 0.1vw, 0.8125rem);
  --text-sm: clamp(0.8125rem, 0.78rem + 0.15vw, 0.9375rem);
  --text-base: clamp(0.9375rem, 0.9rem + 0.2vw, 1.0625rem);
  --text-lg: clamp(1.0625rem, 1rem + 0.3vw, 1.25rem);
  --text-xl: clamp(1.25rem, 1.1rem + 0.6vw, 1.625rem);
  --text-2xl: clamp(1.625rem, 1.4rem + 1vw, 2.25rem);
  --text-3xl: clamp(2rem, 1.6rem + 1.8vw, 3.25rem);
  --text-hero: clamp(3rem, 0.5rem + 7vw, 8rem);

  /* Spacing (4px base) */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-full: 999px;

  /* Content widths */
  --content-narrow: 640px;
  --content-default: 960px;
  --content-wide: 1200px;

  /* Per-volume accent colors */
  --color-vol1: #E8720A;
  --color-vol2: #C41E3A;
  --color-vol3: #D4901A;
  --color-vol4: #B22222;
  --color-vol5: #1B6EC2;
  --color-vol6: #A0306A;

  --transition-fast: 0.15s ease;
  --transition-base: 0.25s ease;
}

/* Dark mode (default) */
[data-theme="dark"] {
  --bg: #1A1714;
  --surface: #221F1B;
  --surface-2: #2A2620;
  --surface-offset: #302B25;
  --divider: #3D3830;
  --border: #4A4540;
  --text: #E8E2D8;
  --text-muted: #9A9187;
  --text-faint: #605A52;
  --gold: #B8902A;
  --gold-light: #D4A94A;
  --gold-dim: #7A6020;
  --gold-highlight: rgba(184, 144, 42, 0.12);
  --shadow-color: rgba(0, 0, 0, 0.4);
}

/* Light mode */
[data-theme="light"] {
  --bg: #F5F0E8;
  --surface: #F9F5EE;
  --surface-2: #FDF9F3;
  --surface-offset: #EDE8DF;
  --divider: #DDD7CC;
  --border: #C8C0B0;
  --text: #1C1710;
  --text-muted: #6B6355;
  --text-faint: #A89E90;
  --gold: #8A6A18;
  --gold-light: #A07E24;
  --gold-dim: #C4A048;
  --gold-highlight: rgba(138, 106, 24, 0.10);
  --shadow-color: rgba(0, 0, 0, 0.12);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  transition: background var(--transition-base), color var(--transition-base);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

.container {
  max-width: var(--content-wide);
  margin: 0 auto;
  padding: 0 var(--space-6);
}

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

/* ============================ Header / Nav ============================ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--divider);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4) var(--space-6);
  max-width: var(--content-wide);
  margin: 0 auto;
  gap: var(--space-4);
}

.brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-shrink: 0;
}

.brand svg { width: 32px; height: 32px; color: var(--gold); }

.brand-word {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: var(--space-8);
}

.main-nav ul {
  display: flex;
  list-style: none;
  gap: var(--space-6);
}

.main-nav a {
  font-size: var(--text-sm);
  color: var(--text-muted);
  transition: color var(--transition-fast);
  position: relative;
  padding: var(--space-2) 0;
}

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

.main-nav a.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gold);
  border-radius: var(--radius-full);
}

.nav-dropdown { position: relative; }

.nav-dropdown-panel {
  position: absolute;
  top: calc(100% + var(--space-3));
  left: 50%;
  transform: translateX(-50%);
  background: var(--surface);
  border: 1px solid var(--divider);
  border-radius: var(--radius-md);
  padding: var(--space-3);
  display: grid;
  grid-template-columns: repeat(2, minmax(160px, 1fr));
  gap: var(--space-1);
  box-shadow: 0 12px 32px var(--shadow-color);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-fast), visibility var(--transition-fast);
  z-index: 10;
}

.nav-dropdown:hover .nav-dropdown-panel,
.nav-dropdown:focus-within .nav-dropdown-panel {
  opacity: 1;
  visibility: visible;
}

.nav-dropdown-panel a {
  display: block;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm);
  font-size: var(--text-xs);
  white-space: nowrap;
}

.nav-dropdown-panel a:hover { background: var(--surface-offset); }

.nav-dropdown-panel--compact {
  min-width: 210px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  flex-shrink: 0;
}

.theme-toggle {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-full);
  color: var(--text-muted);
  transition: background var(--transition-fast), color var(--transition-fast);
}

.theme-toggle:hover { background: var(--surface-offset); color: var(--gold-light); }
.theme-toggle svg { width: 18px; height: 18px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: 600;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
  min-height: 44px;
}

.btn--primary {
  background: var(--gold);
  color: var(--bg);
}
[data-theme="light"] .btn--primary { color: #FDF9F3; }

.btn--primary:hover {
  background: var(--gold-light);
  transform: translateY(-1px);
}

.btn--outline {
  border: 1px solid var(--border);
  color: var(--text);
}
.btn--outline:hover { border-color: var(--gold); color: var(--gold-light); }

.btn--sm { padding: var(--space-2) var(--space-4); font-size: var(--text-xs); min-height: 36px; }

.mobile-nav-toggle {
  display: none;
  width: 36px;
  height: 36px;
  place-items: center;
}
.mobile-nav-toggle svg { width: 22px; height: 22px; }

/* ============================ Hero ============================ */

.hero {
  position: relative;
  padding: var(--space-24) 0 var(--space-20);
  text-align: center;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 900px;
  background: radial-gradient(circle, var(--gold-highlight) 0%, transparent 65%);
  pointer-events: none;
}

.hero-inner { position: relative; max-width: var(--content-default); margin: 0 auto; padding: 0 var(--space-6); }

.eyebrow {
  display: inline-block;
  font-size: var(--text-xs);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--space-6);
  font-weight: 600;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: var(--text-hero);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin-bottom: var(--space-5);
}

.hero-subtitle {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  color: var(--gold-light);
  font-style: italic;
  margin-bottom: var(--space-8);
}

.divider-orn {
  color: var(--gold-dim);
  font-size: var(--text-lg);
  margin: var(--space-6) 0;
  letter-spacing: var(--space-3);
}

.hero-description {
  font-size: var(--text-lg);
  color: var(--text-muted);
  max-width: 620px;
  margin: 0 auto var(--space-10);
  line-height: 1.75;
}

.cta-group {
  display: flex;
  gap: var(--space-4);
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================ Sections ============================ */

section { padding: var(--space-20) 0; }

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto var(--space-12);
}

.section-eyebrow {
  font-size: var(--text-xs);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: var(--space-3);
}

.section-header h2 {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 600;
  margin-bottom: var(--space-4);
}

.section-header p {
  color: var(--text-muted);
  font-size: var(--text-lg);
  line-height: 1.7;
}

/* Quote section */
.quote-section {
  background: var(--surface);
  border-top: 1px solid var(--divider);
  border-bottom: 1px solid var(--divider);
  text-align: center;
}

.quote-mark {
  font-family: var(--font-display);
  font-size: 5rem;
  color: var(--gold-dim);
  line-height: 1;
  margin-bottom: var(--space-2);
}

.quote-text {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-style: italic;
  max-width: 780px;
  margin: 0 auto var(--space-4);
  line-height: 1.5;
}

.quote-attr { color: var(--text-muted); font-size: var(--text-sm); letter-spacing: 0.05em; text-transform: uppercase; }

/* Stats strip */
.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
  max-width: var(--content-default);
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.stat { text-align: center; }
.stat__number {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  color: var(--gold);
  font-weight: 600;
  margin-bottom: var(--space-2);
}
.stat__label {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

/* Volumes grid */
.volumes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

.volume-card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--divider);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
  position: relative;
  overflow: hidden;
}

.volume-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--vol-color, var(--gold));
}

.volume-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px var(--shadow-color);
  border-color: var(--vol-color, var(--gold));
}

.volume-card__num {
  font-size: var(--text-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--vol-color, var(--gold));
  font-weight: 700;
  margin-bottom: var(--space-3);
}

.volume-card__title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 600;
  margin-bottom: var(--space-2);
}

.volume-card__subtitle {
  font-size: var(--text-sm);
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: var(--space-4);
  line-height: 1.5;
}

.volume-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: var(--text-xs);
  color: var(--text-faint);
  padding-top: var(--space-4);
  border-top: 1px solid var(--divider);
}

.volume-card__arrow { color: var(--vol-color, var(--gold)); font-size: var(--text-base); }

/* Ornament divider */
.ornament-divider {
  text-align: center;
  color: var(--gold-dim);
  font-size: var(--text-lg);
  letter-spacing: var(--space-4);
  padding: var(--space-4) 0;
}

/* Social section */
.social-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
}

.social-card {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  background: var(--surface);
  border: 1px solid var(--divider);
  border-radius: var(--radius-md);
  padding: var(--space-5);
  transition: border-color var(--transition-fast), transform var(--transition-fast);
}

.social-card:hover { border-color: var(--gold); transform: translateY(-2px); }
.social-card svg { width: 28px; height: 28px; color: var(--gold); flex-shrink: 0; }
.social-card__name { font-weight: 600; font-size: var(--text-sm); }
.social-card__handle { font-size: var(--text-xs); color: var(--text-muted); }

/* Notify / newsletter */
.notify-section { background: var(--surface); text-align: center; }

.notify-form {
  display: flex;
  gap: var(--space-3);
  max-width: 480px;
  margin: var(--space-8) auto 0;
}

.notify-form input {
  flex: 1;
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
  font-size: var(--text-sm);
  min-height: 44px;
}

.notify-form input:focus { outline: 2px solid var(--gold); outline-offset: 1px; }

/* ============================ Footer ============================ */

.site-footer {
  border-top: 1px solid var(--divider);
  padding: var(--space-16) 0 var(--space-8);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-10);
  margin-bottom: var(--space-12);
}

.footer-brand .brand { margin-bottom: var(--space-4); }
.footer-brand p { color: var(--text-muted); font-size: var(--text-sm); line-height: 1.7; max-width: 320px; }

.footer-col h4 {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-faint);
  margin-bottom: var(--space-4);
}

.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: var(--space-3); }
.footer-col a { font-size: var(--text-sm); color: var(--text-muted); transition: color var(--transition-fast); }
.footer-col a:hover { color: var(--gold-light); }

.footer-pwpub {
  border-top: 1px solid var(--divider);
  border-bottom: 1px solid var(--divider);
  padding: var(--space-6) 0;
  margin-bottom: var(--space-6);
  text-align: center;
}

.footer-pwpub p { font-size: var(--text-sm); color: var(--text-muted); }
.footer-pwpub a { color: var(--gold-light); font-weight: 600; }
.footer-pwpub a:hover { text-decoration: underline; }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: var(--text-xs);
  color: var(--text-faint);
  flex-wrap: wrap;
  gap: var(--space-4);
}

/* ============================ Page header (non-home pages) ============================ */

.page-hero {
  padding: var(--space-16) 0 var(--space-12);
  text-align: center;
  border-bottom: 1px solid var(--divider);
}

.page-hero .eyebrow { margin-bottom: var(--space-4); }

.page-hero h1 {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 600;
  margin-bottom: var(--space-4);
}

.page-hero p {
  color: var(--text-muted);
  font-size: var(--text-lg);
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.7;
}

.breadcrumb {
  font-size: var(--text-xs);
  color: var(--text-faint);
  margin-bottom: var(--space-6);
}
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--gold-light); }

/* Prose blocks (preface/prologue/bio content) */
.prose {
  max-width: var(--content-narrow);
  margin: 0 auto;
}

.prose h2 {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 600;
  margin: var(--space-12) 0 var(--space-5);
}

.prose h2:first-child { margin-top: 0; }

.prose p {
  margin-bottom: var(--space-5);
  color: var(--text);
  line-height: 1.8;
  font-size: var(--text-base);
}

.prose p.lead {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-style: italic;
  color: var(--gold-light);
  line-height: 1.6;
}

.prose .signature {
  text-align: right;
  font-family: var(--font-display);
  font-style: italic;
  color: var(--gold);
  font-size: var(--text-lg);
  margin-top: var(--space-8);
}

.prose-nav {
  display: flex;
  gap: var(--space-3);
  justify-content: center;
  flex-wrap: wrap;
  margin: var(--space-10) 0;
}

.prose-nav button, .prose-nav a {
  padding: var(--space-2) var(--space-5);
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  font-size: var(--text-sm);
  transition: all var(--transition-fast);
}

.prose-nav button.active, .prose-nav a.active {
  background: var(--gold);
  color: var(--bg);
  border-color: var(--gold);
}
[data-theme="light"] .prose-nav button.active,
[data-theme="light"] .prose-nav a.active { color: #FDF9F3; }

.prose-nav button:hover:not(.active), .prose-nav a:hover:not(.active) { border-color: var(--gold); color: var(--gold-light); }

/* ============================ Author page ============================ */

.author-hero {
  padding: clamp(4rem, 8vw, 7.5rem) 0;
  background:
    radial-gradient(circle at 72% 35%, var(--gold-highlight), transparent 28%),
    linear-gradient(180deg, var(--surface), var(--bg));
  border-bottom: 1px solid var(--divider);
}

.author-hero__grid {
  display: grid;
  grid-template-columns: minmax(250px, 420px) minmax(0, 1fr);
  align-items: center;
  gap: clamp(3rem, 8vw, 8rem);
}

.author-portrait {
  position: relative;
  max-width: 390px;
}

.author-portrait::before {
  content: "";
  position: absolute;
  inset: -14px 14px 14px -14px;
  border: 1px solid var(--gold-dim);
  z-index: 0;
}

.author-portrait img {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 630 / 780;
  object-fit: cover;
  filter: saturate(.82) contrast(1.04);
}

.author-portrait__caption {
  position: relative;
  z-index: 2;
  margin: -1.25rem 1rem 0;
  padding: .7rem 1rem;
  background: var(--surface-2);
  border: 1px solid var(--divider);
  color: var(--gold-light);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: .12em;
  text-align: center;
  text-transform: uppercase;
}

.author-hero__copy h1,
.series-hero h1 {
  margin: var(--space-4) 0 var(--space-6);
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 7vw, 7rem);
  font-weight: 500;
  line-height: .88;
  letter-spacing: -.045em;
}

.author-hero__lead {
  max-width: 650px;
  color: var(--text-muted);
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.4vw, 2rem);
  line-height: 1.45;
}

.author-hero__actions {
  justify-content: flex-start;
  margin-top: var(--space-8);
}

.author-story__grid {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: clamp(3rem, 8vw, 7rem);
}

.author-story h2,
.author-connect h2,
.series-format h2 {
  margin-top: var(--space-4);
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 500;
  line-height: 1.05;
}

.author-story__prose a {
  color: var(--gold-light);
  text-decoration: underline;
  text-underline-offset: .18em;
}

.author-notebook {
  padding: var(--space-24) 0;
  text-align: center;
  background: var(--surface);
  border-block: 1px solid var(--divider);
}

.author-notebook__mark {
  height: 4rem;
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 7rem;
  line-height: 1;
}

.author-notebook blockquote {
  max-width: 850px;
  margin: 0 auto var(--space-6);
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.8vw, 3.2rem);
  font-style: italic;
  line-height: 1.2;
}

.author-notebook p {
  color: var(--gold-light);
  font-size: var(--text-sm);
  letter-spacing: .08em;
  text-transform: uppercase;
}

.author-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: var(--space-12);
  border: 1px solid var(--divider);
}

.author-stats > div {
  display: grid;
  gap: var(--space-2);
  padding: var(--space-10);
  text-align: center;
}

.author-stats > div + div { border-left: 1px solid var(--divider); }
.author-stats strong { color: var(--gold-light); font-family: var(--font-display); font-size: var(--text-3xl); font-weight: 500; }
.author-stats span { color: var(--text-muted); font-size: var(--text-sm); }

.author-connect,
.series-format {
  padding: var(--space-24) 0;
  background: var(--surface);
  border-top: 1px solid var(--divider);
  text-align: center;
}

.author-connect p,
.series-format p {
  max-width: 760px;
  margin: var(--space-6) auto 0;
  color: var(--text-muted);
  font-size: var(--text-lg);
}

/* ============================ Series page ============================ */

.series-hero {
  padding: clamp(5rem, 10vw, 9rem) 0;
  text-align: center;
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--color-vol1) 18%, transparent), transparent 18%),
    linear-gradient(270deg, color-mix(in srgb, var(--color-vol6) 16%, transparent), transparent 18%),
    var(--surface);
  border-bottom: 1px solid var(--divider);
}

.series-hero h1 { line-height: .92; }
.series-hero p { max-width: 800px; margin: 0 auto; color: var(--text-muted); font-size: var(--text-lg); }

.series-arc__steps {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  margin-top: var(--space-12);
  list-style: none;
}

.series-arc__steps li {
  position: relative;
  display: grid;
  align-content: start;
  min-height: 145px;
  padding: var(--space-6);
  border-top: 4px solid var(--vol-color);
  border-bottom: 1px solid var(--divider);
  background: var(--surface);
}

.series-arc__steps li + li { border-left: 1px solid var(--divider); }
.series-arc__steps span { color: var(--vol-color); font-size: var(--text-xs); font-weight: 700; letter-spacing: .12em; }
.series-arc__steps strong { margin-top: var(--space-4); font-family: var(--font-display); font-size: var(--text-xl); font-weight: 600; line-height: 1.1; }

.series-volume-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-6);
}

.series-volume {
  position: relative;
  overflow: hidden;
  padding: clamp(2rem, 5vw, 3.5rem);
  background: var(--surface);
  border: 1px solid var(--divider);
}

.series-volume::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: var(--vol-color);
}

.series-volume__number { color: var(--vol-color); font-size: var(--text-xs); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.series-volume h2 { margin-top: var(--space-4); font-family: var(--font-display); font-size: var(--text-2xl); font-weight: 600; line-height: 1.05; }
.series-volume__subtitle { margin-top: var(--space-2); color: var(--text); font-family: var(--font-display); font-size: var(--text-lg); font-style: italic; }
.series-volume > p:not(.series-volume__subtitle) { margin-top: var(--space-5); color: var(--text-muted); }

.series-volume__links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-top: var(--space-8);
  padding-top: var(--space-5);
  border-top: 1px solid var(--divider);
}

.series-volume__links a {
  color: var(--vol-color);
  font-size: var(--text-sm);
  font-weight: 700;
}

.series-volume__links a::after { content: " →"; }
.series-volume__links a:hover { text-decoration: underline; text-underline-offset: .2em; }

@media (max-width: 900px) {
  .author-hero__grid,
  .author-story__grid { grid-template-columns: 1fr; }
  .author-portrait { max-width: 330px; margin: 0 auto; }
  .author-hero__copy { text-align: center; }
  .author-hero__lead { margin-inline: auto; }
  .author-hero__actions { justify-content: center; }
  .series-arc__steps { grid-template-columns: repeat(3, 1fr); }
  .series-arc__steps li:nth-child(4) { border-left: 0; }
}

@media (max-width: 640px) {
  .author-hero { padding-top: var(--space-16); }
  .author-hero__copy h1,
  .series-hero h1 { font-size: clamp(3rem, 16vw, 4.5rem); }
  .author-stats,
  .series-volume-list { grid-template-columns: 1fr; }
  .author-stats > div + div { border-left: 0; border-top: 1px solid var(--divider); }
  .series-arc__steps { grid-template-columns: repeat(2, 1fr); }
  .series-arc__steps li:nth-child(odd) { border-left: 0; }
  .series-arc__steps li:nth-child(even) { border-left: 1px solid var(--divider); }
  .series-volume__links { flex-direction: column; }
}

.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ============================ Volume page ============================ */

.volume-hero {
  padding: var(--space-16) 0 var(--space-12);
  text-align: center;
  border-bottom: 1px solid var(--divider);
  background: linear-gradient(180deg, var(--vol-highlight, transparent) 0%, transparent 100%);
}

.volume-hero .volume-card__num { font-size: var(--text-sm); margin-bottom: var(--space-4); }

.volume-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 1.5rem + 4vw, 5rem);
  font-weight: 600;
  margin-bottom: var(--space-4);
  color: var(--vol-color, var(--gold));
}

.volume-hero .subtitle {
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--text-xl);
  color: var(--text-muted);
  margin-bottom: var(--space-8);
}

.volume-meta-row {
  display: flex;
  gap: var(--space-8);
  justify-content: center;
  flex-wrap: wrap;
}

.volume-meta-item { text-align: center; }
.volume-meta-item .num {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  color: var(--vol-color, var(--gold));
  font-weight: 600;
}
.volume-meta-item .label {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-faint);
}

.wisdom-preview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
}

.wisdom-mini-card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--divider);
  border-left: 3px solid var(--vol-color, var(--gold));
  border-radius: var(--radius-md);
  padding: var(--space-5);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.wisdom-mini-card:hover { transform: translateX(2px); box-shadow: 0 8px 20px var(--shadow-color); }

.wisdom-mini-card__num {
  font-size: var(--text-xs);
  color: var(--vol-color, var(--gold));
  font-weight: 700;
  margin-bottom: var(--space-2);
}

.wisdom-mini-card__title {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 600;
  margin-bottom: var(--space-2);
}

.wisdom-mini-card__quote {
  font-size: var(--text-xs);
  color: var(--text-muted);
  font-style: italic;
  line-height: 1.5;
}

.view-all-wrap { text-align: center; margin-top: var(--space-10); }

/* ============================ Wisdom Index table ============================ */

.index-controls {
  display: flex;
  gap: var(--space-4);
  margin-bottom: var(--space-8);
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
}

.search-box {
  position: relative;
  flex: 1;
  min-width: 240px;
  max-width: 420px;
}

.search-box svg {
  position: absolute;
  left: var(--space-4);
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: var(--text-faint);
}

.search-box input {
  width: 100%;
  padding: var(--space-3) var(--space-4) var(--space-3) var(--space-10);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: var(--text-sm);
  min-height: 44px;
}

.search-box input:focus { outline: 2px solid var(--gold); outline-offset: 1px; }

.volume-filter {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
}

.filter-chip {
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  font-size: var(--text-xs);
  font-weight: 600;
  transition: all var(--transition-fast);
  min-height: 36px;
  display: inline-flex;
  align-items: center;
}

.filter-chip.active {
  background: var(--chip-color, var(--gold));
  border-color: var(--chip-color, var(--gold));
  color: #fff;
}

.filter-chip:hover:not(.active) { border-color: var(--chip-color, var(--gold)); }

.result-count {
  font-size: var(--text-xs);
  color: var(--text-faint);
  margin-bottom: var(--space-4);
}

.wisdom-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--divider);
  border-radius: var(--radius-lg);
}

table.wisdom-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-sm);
}

.wisdom-table thead th {
  text-align: left;
  padding: var(--space-4) var(--space-5);
  background: var(--surface);
  border-bottom: 1px solid var(--divider);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  cursor: pointer;
  white-space: nowrap;
  user-select: none;
}

.wisdom-table thead th:hover { color: var(--gold-light); }

.wisdom-table thead th .sort-arrow { margin-left: var(--space-1); opacity: 0.5; font-size: 0.7em; }
.wisdom-table thead th.sorted .sort-arrow { opacity: 1; color: var(--gold); }

.wisdom-table tbody tr {
  border-bottom: 1px solid var(--divider);
  border-left: 3px solid var(--row-color, transparent);
  transition: background var(--transition-fast);
  cursor: pointer;
}

.wisdom-table tbody tr:hover { background: var(--surface); }
.wisdom-table tbody tr:last-child { border-bottom: none; }

.wisdom-table td {
  padding: var(--space-4) var(--space-5);
  vertical-align: top;
}

.wisdom-table td.num-col { color: var(--text-faint); font-size: var(--text-xs); white-space: nowrap; }
.wisdom-table td.title-col { font-weight: 600; min-width: 180px; }
.wisdom-table td.quote-col { color: var(--text-muted); font-style: italic; min-width: 260px; }
.wisdom-table td.volume-col { white-space: nowrap; }

.volume-pill {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  font-weight: 600;
}

.volume-pill::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  background: var(--pill-color, var(--gold));
}

.empty-state {
  text-align: center;
  padding: var(--space-20) var(--space-6);
  color: var(--text-muted);
}

.empty-state svg { width: 48px; height: 48px; color: var(--text-faint); margin: 0 auto var(--space-4); }

/* ============================ Volume detail page ============================ */

.volume-hero {
  padding: var(--space-16) 0 var(--space-10);
  border-bottom: 4px solid var(--vp-color, var(--gold));
}

.volume-hero__num {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--vp-color, var(--gold));
  margin-bottom: var(--space-4);
}

.volume-hero h1 {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 600;
  line-height: 1.05;
  margin-bottom: var(--space-4);
}

.volume-hero__subtitle {
  font-size: var(--text-lg);
  color: var(--text-muted);
  margin-bottom: var(--space-6);
  max-width: 620px;
}

.volume-hero__meta {
  display: flex;
  gap: var(--space-6);
  flex-wrap: wrap;
  margin-bottom: var(--space-8);
}

.volume-hero__meta-item {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-faint);
}

.volume-hero__meta-item strong {
  display: block;
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: var(--text);
  text-transform: none;
  letter-spacing: normal;
}

.volume-theme-chip {
  display: inline-flex;
  align-items: center;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  border: 1px solid var(--vp-color, var(--gold));
  color: var(--vp-color, var(--gold));
  font-size: var(--text-xs);
  font-weight: 600;
  margin: 0 var(--space-2) var(--space-2) 0;
}

.volume-wisdom-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
  margin-top: var(--space-8);
}

@media (max-width: 720px) {
  .volume-wisdom-list { grid-template-columns: 1fr; }
}

.volume-wisdom-item {
  display: flex;
  gap: var(--space-4);
  align-items: baseline;
  padding: var(--space-4) var(--space-5);
  border: 1px solid var(--divider);
  border-left: 3px solid var(--vp-color, var(--gold));
  border-radius: var(--radius-md);
  background: var(--surface);
}

.volume-wisdom-item__num { font-size: var(--text-xs); color: var(--text-faint); flex-shrink: 0; }
.volume-wisdom-item a { font-weight: 600; }
.volume-wisdom-item span.badge-soon { margin-left: 0; }

.volume-loading, .volume-not-found {
  text-align: center;
  padding: var(--space-20) var(--space-6);
  color: var(--text-muted);
}

.badge-soon {
  display: inline-block;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-faint);
  border: 1px solid var(--divider);
  border-radius: var(--radius-full);
  padding: 1px 8px;
  margin-left: var(--space-2);
  vertical-align: middle;
}

/* ============================ Coaching page ============================ */

.coaching-hero {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: var(--space-16);
  align-items: center;
  padding: var(--space-20) 0;
}

.coaching-hero h1 {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 600;
  margin-bottom: var(--space-5);
}

.coaching-hero p { color: var(--text-muted); font-size: var(--text-lg); line-height: 1.7; margin-bottom: var(--space-6); }

.coaching-panel {
  background: var(--surface);
  border: 1px solid var(--divider);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
}

.coaching-panel h3 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  margin-bottom: var(--space-5);
}

.coaching-list { list-style: none; display: flex; flex-direction: column; gap: var(--space-4); margin-bottom: var(--space-8); }

.coaching-list li {
  display: flex;
  gap: var(--space-3);
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: 1.6;
}

.coaching-list svg { width: 18px; height: 18px; color: var(--gold); flex-shrink: 0; margin-top: 2px; }

.qualifier-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-6);
  margin: var(--space-12) 0;
}

.qualifier-card {
  padding: var(--space-6);
  border: 1px solid var(--divider);
  border-radius: var(--radius-md);
  background: var(--surface);
}

.qualifier-card h4 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  margin-bottom: var(--space-3);
  color: var(--gold-light);
}

.qualifier-card p { color: var(--text-muted); font-size: var(--text-sm); line-height: 1.6; }

.inquiry-form { display: flex; flex-direction: column; gap: var(--space-4); }

.form-row { display: flex; flex-direction: column; gap: var(--space-2); }

.form-row label { font-size: var(--text-xs); text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-faint); }

.form-row input, .form-row textarea, .form-row select {
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
  font-size: var(--text-sm);
  font-family: inherit;
  min-height: 44px;
}

.form-row textarea { min-height: 100px; resize: vertical; }
.form-row input:focus, .form-row textarea:focus, .form-row select:focus { outline: 2px solid var(--gold); outline-offset: 1px; }

.direct-link-panel {
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--divider);
  border-radius: var(--radius-lg);
  padding: var(--space-10);
  margin-top: var(--space-16);
}

.direct-link-panel h3 {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  margin-bottom: var(--space-4);
}

.direct-link-panel p { color: var(--text-muted); font-size: var(--text-base); max-width: 480px; margin: 0 auto var(--space-8); }

/* ============================ Amazon / buy CTA ============================ */

.buy-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
}

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

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

.buy-card {
  background: var(--surface);
  border: 1px solid var(--divider);
  border-top: 3px solid var(--vol-color, var(--gold));
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  text-align: center;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.buy-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px var(--shadow-color);
}

.buy-card__num {
  font-size: var(--text-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--vol-color, var(--gold));
  font-weight: 700;
  margin-bottom: var(--space-2);
}

.buy-card__title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  margin-bottom: var(--space-4);
  min-height: 2.6em;
}

.buy-card__formats {
  display: flex;
  justify-content: center;
  gap: var(--space-3);
  font-size: var(--text-xs);
  color: var(--text-muted);
  margin-bottom: var(--space-5);
}

.buy-card__formats a {
  color: var(--text-muted);
  text-decoration: underline;
  text-decoration-color: var(--divider);
}

.buy-card__formats a:hover {
  color: var(--vol-color, var(--gold));
  text-decoration-color: var(--vol-color, var(--gold));
}

.buy-card__cta {
  width: 100%;
  background: var(--vol-color, var(--gold));
  color: #FDF9F3;
  border: none;
}

.buy-card__cta:hover {
  filter: brightness(1.1);
  transform: none;
}

.buy-grid__note {
  text-align: center;
  color: var(--text-muted);
  font-size: var(--text-sm);
  margin-top: var(--space-6);
}

/* ============================ Utility ============================ */

.text-center { text-align: center; }
.mt-4 { margin-top: var(--space-4); }
.mt-8 { margin-top: var(--space-8); }
.mb-8 { margin-bottom: var(--space-8); }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
}

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

@media (max-width: 900px) {
  .main-nav { display: none; }
  .header-actions .btn { display: none; }
  .mobile-nav-toggle { display: grid; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--space-8); }
  .volumes-grid { grid-template-columns: 1fr; }
  .social-grid { grid-template-columns: 1fr; }
  .stats-strip { grid-template-columns: repeat(2, 1fr); gap: var(--space-8); }
  .wisdom-preview-grid { grid-template-columns: 1fr; }
  .coaching-hero { grid-template-columns: 1fr; gap: var(--space-10); }
  .qualifier-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .notify-form { flex-direction: column; }
  .cta-group { flex-direction: column; width: 100%; }
  .cta-group .btn { width: 100%; }
  .footer-grid { grid-template-columns: 1fr; gap: var(--space-8); }
  .footer-bottom { flex-direction: column; text-align: center; }
  section { padding: var(--space-16) 0; }
  .index-controls { flex-direction: column; align-items: stretch; }
  .search-box { max-width: 100%; }
}

/* Mobile nav drawer */
.mobile-nav-drawer {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 200;
  display: none;
  flex-direction: column;
  padding: var(--space-6);
  overflow-y: auto;
}

.mobile-nav-drawer.open { display: flex; }

.mobile-nav-drawer .drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-10);
}

.mobile-nav-drawer nav {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.mobile-nav-drawer nav a {
  padding: var(--space-4) var(--space-2);
  font-size: var(--text-xl);
  font-family: var(--font-display);
  border-bottom: 1px solid var(--divider);
}

.mobile-nav-drawer .sub-links {
  display: flex;
  flex-direction: column;
  padding-left: var(--space-4);
}

.mobile-nav-drawer .sub-links a {
  font-size: var(--text-base);
  font-family: var(--font-body);
  color: var(--text-muted);
  padding: var(--space-3) var(--space-2);
}

.close-drawer { width: 36px; height: 36px; }
.close-drawer svg { width: 24px; height: 24px; }
