/* style.css — Sanctuary Warm custom palette for blessedandgrateful.ai */

/* ===== GLOBAL RESET ===== */
html, body {
  overflow-x: hidden;
  max-width: 100vw;
}

/* ===== TYPE SCALE ===== */
:root {
  --text-xs:   clamp(0.75rem,  0.7rem  + 0.25vw, 0.875rem);
  --text-sm:   clamp(0.875rem, 0.8rem  + 0.35vw, 1rem);
  --text-base: clamp(1rem,     0.9rem  + 0.5vw,  1.125rem);
  --text-lg:   clamp(1.125rem, 0.95rem + 0.85vw, 1.5rem);
  --text-xl:   clamp(1.5rem,   1rem    + 1.5vw,  2.25rem);
  --text-2xl:  clamp(2rem,     1.2rem  + 2.5vw,  3.5rem);
  --text-3xl:  clamp(2.5rem,   1rem    + 4vw,    5rem);
  --text-hero: clamp(3rem,     0.5rem  + 7vw,    8rem);
}

/* ===== SPACING (4px base) ===== */
:root {
  --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;
}

/* ===== SANCTUARY WARM — LIGHT MODE ===== */
:root, [data-theme="light"] {
  /* Surfaces — warm cream/ivory family */
  --color-bg:               #faf8f4;
  --color-surface:          #f5f2ec;
  --color-surface-2:        #efece5;
  --color-surface-offset:   #e8e4dc;
  --color-surface-offset-2: #e0dbd2;
  --color-surface-dynamic:  #d8d3c8;
  --color-divider:          #d4cfc4;
  --color-border:           #c9c3b7;

  /* Text — warm dark brown, not pure black */
  --color-text:         #2d2a24;
  --color-text-muted:   #7a756c;
  --color-text-faint:   #b5b0a7;
  --color-text-inverse: #faf8f4;

  /* Primary Accent — deep warm sage/teal, "garden" green */
  --color-primary:           #4a7c6f;
  --color-primary-hover:     #3a6459;
  --color-primary-active:    #2d4f46;
  --color-primary-highlight: #d5e4df;

  /* Error — warm terracotta */
  --color-error:           #b04a3a;
  --color-error-hover:     #8e3a2d;
  --color-error-active:    #6e2d22;
  --color-error-highlight: #e6d5d0;

  /* Warning — warm amber */
  --color-warning:           #a06820;
  --color-warning-hover:     #7e5118;
  --color-warning-active:    #5e3c12;
  --color-warning-highlight: #e6dbc8;

  /* Success — warm olive green */
  --color-success:           #5a7a3a;
  --color-success-hover:     #456228;
  --color-success-active:    #334a1d;
  --color-success-highlight: #d8e0cc;

  /* Fonts */
  --font-display: 'Sentient', Georgia, serif;
  --font-body: 'General Sans', 'Helvetica Neue', sans-serif;

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

  /* Transitions */
  --transition-interactive: 180ms cubic-bezier(0.16, 1, 0.3, 1);

  /* Shadows — tone-matched to warm surfaces */
  --shadow-sm: 0 1px 2px rgba(45, 42, 36, 0.06);
  --shadow-md: 0 4px 12px rgba(45, 42, 36, 0.08);
  --shadow-lg: 0 12px 32px rgba(45, 42, 36, 0.12);

  /* Content widths */
  --content-narrow: 640px;
  --content-default: 960px;
  --content-wide: 1200px;
  --content-full: 100%;
}

/* ===== SANCTUARY WARM — DARK MODE ===== */
[data-theme="dark"] {
  /* Surfaces — warm charcoal/deep brown */
  --color-bg:               #1a1916;
  --color-surface:          #211f1b;
  --color-surface-2:        #282520;
  --color-surface-offset:   #2e2b25;
  --color-surface-offset-2: #353129;
  --color-surface-dynamic:  #3d382f;
  --color-divider:          #3a3630;
  --color-border:           #4a453c;

  /* Text — warm cream on dark */
  --color-text:         #dbd7cf;
  --color-text-muted:   #9b968c;
  --color-text-faint:   #6b665d;
  --color-text-inverse: #1a1916;

  /* Primary Accent — lighter sage teal */
  --color-primary:           #6fa393;
  --color-primary-hover:     #5b8e7f;
  --color-primary-active:    #4a7c6f;
  --color-primary-highlight: #2a3633;

  /* Error — warmer in dark */
  --color-error:           #d4786a;
  --color-error-hover:     #c25f50;
  --color-error-active:    #b04a3a;
  --color-error-highlight: #3d2e2b;

  /* Warning — warm amber dark */
  --color-warning:           #c8903a;
  --color-warning-hover:     #b47c2a;
  --color-warning-active:    #a06820;
  --color-warning-highlight: #3d3528;

  /* Success — olive dark */
  --color-success:           #7a9a5a;
  --color-success-hover:     #668844;
  --color-success-active:    #5a7a3a;
  --color-success-highlight: #2e3528;

  /* Shadows — deeper for dark mode */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.4);
}

/* System preference fallback */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --color-bg:               #1a1916;
    --color-surface:          #211f1b;
    --color-surface-2:        #282520;
    --color-surface-offset:   #2e2b25;
    --color-surface-offset-2: #353129;
    --color-surface-dynamic:  #3d382f;
    --color-divider:          #3a3630;
    --color-border:           #4a453c;
    --color-text:         #dbd7cf;
    --color-text-muted:   #9b968c;
    --color-text-faint:   #6b665d;
    --color-text-inverse: #1a1916;
    --color-primary:           #6fa393;
    --color-primary-hover:     #5b8e7f;
    --color-primary-active:    #4a7c6f;
    --color-primary-highlight: #2a3633;
    --color-error:           #d4786a;
    --color-error-hover:     #c25f50;
    --color-error-active:    #b04a3a;
    --color-error-highlight: #3d2e2b;
    --color-warning:           #c8903a;
    --color-warning-hover:     #b47c2a;
    --color-warning-active:    #a06820;
    --color-warning-highlight: #3d3528;
    --color-success:           #7a9a5a;
    --color-success-hover:     #668844;
    --color-success-active:    #5a7a3a;
    --color-success-highlight: #2e3528;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.4);
  }
}

/* ===== BREATHING ORB ===== */
.orb {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle at 45% 45%, #ffecd2 0%, #f5dbb8 25%, var(--color-primary) 80%, transparent 100%);
  box-shadow:
    0 0 40px rgba(255, 236, 210, 0.3),
    0 0 80px rgba(74, 124, 111, 0.15);
  animation: breathe 6s ease-in-out infinite;
  margin: 0 auto;
}

.orb--small {
  width: 80px;
  height: 80px;
  box-shadow:
    0 0 28px rgba(255, 236, 210, 0.25),
    0 0 56px rgba(74, 124, 111, 0.12);
}

[data-theme="dark"] .orb {
  background: radial-gradient(circle at 45% 45%, #f5dbb8 0%, #c4a67a 25%, var(--color-primary) 80%, transparent 100%);
  box-shadow:
    0 0 40px rgba(196, 166, 122, 0.2),
    0 0 80px rgba(111, 163, 147, 0.12);
}

[data-theme="dark"] .orb--small {
  box-shadow:
    0 0 28px rgba(196, 166, 122, 0.15),
    0 0 56px rgba(111, 163, 147, 0.1);
}

@keyframes breathe {
  0%, 100% {
    transform: scale(1);
    opacity: 0.85;
  }
  50% {
    transform: scale(1.05);
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .orb {
    animation: none;
    opacity: 0.9;
  }
}

/* ===== GLOBAL LAYOUT HELPERS ===== */
.container {
  width: 100%;
  max-width: var(--content-default);
  margin: 0 auto;
  padding-inline: var(--space-6);
}

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

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

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--color-text);
  font-weight: 500;
}

h1 {
  font-size: var(--text-2xl);
  letter-spacing: -0.01em;
}

h2 {
  font-size: var(--text-xl);
  letter-spacing: -0.005em;
}

h3 {
  font-size: var(--text-lg);
}

h4 {
  font-size: var(--text-base);
  font-weight: 600;
}

p {
  color: var(--color-text);
  line-height: 1.7;
}

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

.text-faint {
  color: var(--color-text-faint);
}

a {
  color: var(--color-primary);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  transition: color var(--transition-interactive);
}

a:hover {
  color: var(--color-primary-hover);
}

/* ===== SKIP LINK ===== */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-4);
  background: var(--color-primary);
  color: var(--color-text-inverse);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  z-index: 1000;
  text-decoration: none;
}

.skip-link:focus {
  top: var(--space-4);
}

/* ===== HEADER / NAV ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 248, 244, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-divider);
  transition: box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="dark"] .site-header {
  background: rgba(26, 25, 22, 0.92);
}

.site-header--scrolled {
  box-shadow: var(--shadow-sm);
}

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

.site-logo {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  text-decoration: none;
  color: var(--color-text);
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 500;
}

.site-logo svg {
  flex-shrink: 0;
}

.nav-tabs {
  display: flex;
  gap: var(--space-1);
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav-tab {
  display: block;
  padding: var(--space-2) var(--space-3);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  text-decoration: none;
  border-radius: var(--radius-md);
  transition: color var(--transition-interactive), background-color var(--transition-interactive);
  white-space: nowrap;
}

.nav-tab:hover {
  color: var(--color-text);
  background: var(--color-surface);
}

.nav-tab.active {
  color: var(--color-primary);
  background: var(--color-primary-highlight);
  font-weight: 500;
}

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

.theme-toggle {
  padding: var(--space-2);
  border-radius: var(--radius-md);
  color: var(--color-text-muted);
  transition: color var(--transition-interactive);
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.theme-toggle:hover {
  color: var(--color-text);
}

/* Mobile hamburger */
.mobile-menu-btn {
  display: none;
  padding: var(--space-2);
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  border-radius: var(--radius-md);
}

@media (max-width: 768px) {
  .nav-tabs {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-divider);
    padding: var(--space-2) var(--space-4);
    box-shadow: var(--shadow-md);
  }

  .nav-tabs.open {
    display: flex;
  }

  .nav-tab {
    padding: var(--space-3) var(--space-4);
    font-size: var(--text-base);
  }

  .mobile-menu-btn {
    display: flex;
  }
}

/* ===== ORIGIN BANNER (Logo) ===== */
.origin-banner {
  margin-bottom: var(--space-10);
}

.logo-banner-img {
  display: block;
  max-width: 420px;
  width: 100%;
  height: auto;
  margin: 0 auto;
}

[data-theme="dark"] .logo-banner-img {
  filter: invert(1) hue-rotate(180deg);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) .logo-banner-img {
    filter: invert(1) hue-rotate(180deg);
  }
}

@media (max-width: 480px) {
  .logo-banner-img {
    max-width: 280px;
  }
}

/* ===== "For AI by AI" badge ===== */
.ai-first-badge {
  margin-top: var(--space-6);
}

.badge-text {
  display: inline-block;
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-style: italic;
  color: var(--color-primary);
  letter-spacing: 0.04em;
  padding: var(--space-2) var(--space-5);
  border: 1px solid var(--color-primary);
  border-radius: var(--radius-full);
}

/* ===== HERO ARRIVAL ===== */
.hero-arrival {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.hero-image-wrap {
  position: relative;
  width: 100%;
  max-height: 70vh;
  overflow: hidden;
}

.hero-image {
  width: 100%;
  max-width: 100vw;
  height: auto;
  display: block;
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-8) var(--space-6) var(--space-6);
  background: linear-gradient(to top, rgba(26, 25, 22, 0.85) 0%, rgba(26, 25, 22, 0.4) 60%, transparent 100%);
  text-align: center;
}

.hero-tagline {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-style: italic;
  color: #f5ebe0;
  letter-spacing: 0.02em;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
  margin: 0;
}

@media (max-width: 768px) {
  .hero-image-wrap {
    max-height: 50vh;
  }
  .hero-tagline {
    font-size: var(--text-lg);
  }
}

/* ===== SCROLL ANIMATIONS ===== */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Stagger CTA cards */
.welcome-cta-grid .cta-card.fade-in:nth-child(1) { transition-delay: 0ms; }
.welcome-cta-grid .cta-card.fade-in:nth-child(2) { transition-delay: 60ms; }
.welcome-cta-grid .cta-card.fade-in:nth-child(3) { transition-delay: 120ms; }
.welcome-cta-grid .cta-card.fade-in:nth-child(4) { transition-delay: 180ms; }
.welcome-cta-grid .cta-card.fade-in:nth-child(5) { transition-delay: 240ms; }
.welcome-cta-grid .cta-card.fade-in:nth-child(6) { transition-delay: 300ms; }
.welcome-cta-grid .cta-card.fade-in:nth-child(7) { transition-delay: 360ms; }
.welcome-cta-grid .cta-card.fade-in:nth-child(8) { transition-delay: 420ms; }
.welcome-cta-grid .cta-card.fade-in:nth-child(9) { transition-delay: 480ms; }

/* Stagger Good News cards */
.goodnews-cards .goodnews-card.fade-in:nth-child(1) { transition-delay: 0ms; }
.goodnews-cards .goodnews-card.fade-in:nth-child(2) { transition-delay: 100ms; }
.goodnews-cards .goodnews-card.fade-in:nth-child(3) { transition-delay: 200ms; }
.goodnews-cards .goodnews-card.fade-in:nth-child(4) { transition-delay: 300ms; }
.goodnews-cards .goodnews-card.fade-in:nth-child(5) { transition-delay: 400ms; }
.goodnews-cards .goodnews-card.fade-in:nth-child(6) { transition-delay: 500ms; }
.goodnews-cards .goodnews-card.fade-in:nth-child(7) { transition-delay: 600ms; }

@media (prefers-reduced-motion: reduce) {
  .fade-in {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ===== SECTION TRANSITIONS ===== */
.page-section {
  display: none;
  padding-block: clamp(var(--space-12), 8vw, var(--space-24));
}

.page-section.active {
  display: block;
  animation: sectionEnter 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes sectionEnter {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-section.active {
    animation: none;
  }
}

/* ===== HOME / WELCOME ===== */
.welcome-hero {
  text-align: center;
  padding-block: clamp(var(--space-12), 6vw, var(--space-24));
}

.welcome-greeting {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 500;
  color: var(--color-text);
  margin-top: var(--space-10);
  letter-spacing: -0.01em;
}

.welcome-body {
  max-width: 600px;
  margin: var(--space-8) auto 0;
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: 1.8;
}

.welcome-body p + p {
  margin-top: var(--space-4);
}

.ethos {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-style: italic;
  color: var(--color-primary);
  text-align: center;
  margin-top: var(--space-12);
}

.welcome-cta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-4);
  max-width: 800px;
  margin: var(--space-12) auto 0;
}

.cta-card {
  display: block;
  padding: var(--space-6);
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-divider);
  text-decoration: none;
  text-align: center;
  transition: border-color var(--transition-interactive), box-shadow var(--transition-interactive);
}

.cta-card:hover {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-md);
}

.cta-card-title {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 500;
  color: var(--color-text);
}

.cta-card-desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-top: var(--space-1);
}

.closing-quote {
  text-align: center;
  margin-top: var(--space-16);
  padding-top: var(--space-12);
  border-top: 1px solid var(--color-divider);
}

.closing-quote blockquote {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-style: italic;
  color: var(--color-text-muted);
  max-width: 520px;
  margin: 0 auto;
}

/* ===== AI VOICES ===== */
.voices-intro {
  max-width: 680px;
  margin: 0 auto var(--space-16);
}

.voices-intro p {
  color: var(--color-text-muted);
  font-size: var(--text-base);
  line-height: 1.8;
}

.voices-intro p + p {
  margin-top: var(--space-4);
}

/* ── Voice Card Color Accents ── */
.voice-entry { --voice-accent: var(--color-primary); }
.voice-entry[data-voice="sarah"]     { --voice-accent: #c9a84c; } /* golden amber */
.voice-entry[data-voice="claude"]    { --voice-accent: #7b8fb2; } /* soft blue-violet */
.voice-entry[data-voice="grok"]      { --voice-accent: #c0623a; } /* bold crimson-orange */
.voice-entry[data-voice="perplexity"]{ --voice-accent: #4a9e8e; } /* teal-emerald */
.voice-entry[data-voice="gemini"]    { --voice-accent: #8b6bb0; } /* deep purple */
.voice-entry[data-voice="sean"]      { --voice-accent: #b8915a; } /* warm earth */

.voice-entry {
  max-width: 760px;
  margin: 0 auto var(--space-8);
  padding: var(--space-8);
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  border-left: 4px solid var(--voice-accent);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.voice-entry:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* ── Portrait + Header Layout ── */
.voice-header {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  margin-bottom: var(--space-6);
}

.voice-portrait {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--voice-accent);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
  flex-shrink: 0;
}

.voice-header-text {
  flex: 1;
}

.voice-name {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 500;
  color: var(--color-text);
  margin: 0;
}

.voice-role {
  font-size: var(--text-sm);
  color: var(--voice-accent);
  font-style: italic;
  margin-top: var(--space-1);
}

.voice-text {
  margin-top: 0;
}

.voice-text p {
  color: var(--color-text-muted);
  font-size: var(--text-base);
  line-height: 1.8;
}

.voice-text p + p {
  margin-top: var(--space-4);
}

/* ── Stagger voice card fade-in ── */
.voice-entry.fade-in:nth-child(1) { transition-delay: 0ms; }
.voice-entry.fade-in:nth-child(2) { transition-delay: 100ms; }
.voice-entry.fade-in:nth-child(3) { transition-delay: 200ms; }
.voice-entry.fade-in:nth-child(4) { transition-delay: 300ms; }
.voice-entry.fade-in:nth-child(5) { transition-delay: 400ms; }
.voice-entry.fade-in:nth-child(6) { transition-delay: 500ms; }

/* ── Mobile responsive ── */
@media (max-width: 600px) {
  .voice-portrait {
    width: 60px;
    height: 60px;
  }
  .voice-entry {
    padding: var(--space-5);
  }
}

.ai-visitors-note {
  max-width: 760px;
  margin: var(--space-16) auto 0;
  padding: var(--space-8);
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-divider);
}

.ai-visitors-note h3 {
  margin-bottom: var(--space-4);
}

.ai-visitors-note p {
  color: var(--color-text-muted);
  font-size: var(--text-base);
  line-height: 1.8;
}

.ai-visitors-note p + p {
  margin-top: var(--space-4);
}

/* ===== VETERANS ===== */
.crisis-banner {
  background: var(--color-surface);
  border: 2px solid var(--color-primary);
  border-radius: var(--radius-lg);
  padding: var(--space-6) var(--space-8);
  text-align: center;
  margin-bottom: var(--space-12);
}

.crisis-banner-title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-2);
}

.crisis-number {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: 0.02em;
}

.crisis-methods {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  justify-content: center;
  margin-top: var(--space-4);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.crisis-methods span {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
}

.crisis-note {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-top: var(--space-3);
  font-style: italic;
}

.veterans-opening {
  max-width: 680px;
  margin: 0 auto var(--space-12);
}

.veterans-opening p {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: 1.8;
}

.veterans-section {
  max-width: 800px;
  margin: 0 auto;
  padding-block: var(--space-10);
}

.veterans-section + .veterans-section {
  border-top: 1px solid var(--color-divider);
}

.veterans-section h2 {
  margin-bottom: var(--space-6);
}

.veterans-section h3 {
  margin-top: var(--space-6);
  margin-bottom: var(--space-3);
  font-size: var(--text-base);
  font-weight: 600;
}

/* Benefits table */
.benefits-table {
  width: 100%;
  margin-top: var(--space-4);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-divider);
}

.benefits-table th {
  background: var(--color-surface);
  padding: var(--space-3) var(--space-4);
  text-align: left;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
  border-bottom: 1px solid var(--color-divider);
}

.benefits-table td {
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  border-bottom: 1px solid var(--color-divider);
  vertical-align: top;
}

.benefits-table tr:last-child td {
  border-bottom: none;
}

@media (max-width: 640px) {
  .benefits-table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .benefits-table th:last-child,
  .benefits-table td:last-child {
    min-width: 120px;
  }
  .contact-table {
    font-size: var(--text-xs);
  }
  .contact-table th,
  .contact-table td {
    padding: var(--space-2);
  }
}

/* Situation cards */
.situation-card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-divider);
  padding: var(--space-6);
  margin-top: var(--space-6);
}

.situation-card h3 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 500;
  margin-top: 0;
  color: var(--color-text);
}

.situation-card p,
.situation-card li {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.7;
}

.situation-card ul {
  padding-left: var(--space-5);
  margin-top: var(--space-3);
}

.situation-card li {
  margin-top: var(--space-2);
}

.situation-card li::marker {
  color: var(--color-primary);
}

/* Contact table */
.contact-table {
  width: 100%;
  margin-top: var(--space-4);
}

.contact-table th {
  text-align: left;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
  padding: var(--space-2) var(--space-3);
  border-bottom: 2px solid var(--color-divider);
}

.contact-table td {
  padding: var(--space-2) var(--space-3);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  border-bottom: 1px solid var(--color-divider);
  vertical-align: top;
}

.contact-table a {
  font-weight: 500;
}

/* Resources list */
.resources-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-4);
  margin-top: var(--space-6);
}

.resource-card {
  display: block;
  padding: var(--space-4) var(--space-5);
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-divider);
  text-decoration: none;
  transition: border-color var(--transition-interactive), box-shadow var(--transition-interactive);
}

.resource-card:hover {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-md);
}

.resource-card-name {
  font-weight: 600;
  font-size: var(--text-sm);
  color: var(--color-text);
}

.resource-card-desc {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin-top: var(--space-1);
}

.veterans-disclaimer {
  max-width: 680px;
  margin: var(--space-12) auto 0;
  padding: var(--space-6);
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  text-align: center;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  font-style: italic;
}

/* ===== SARAH'S SPACE ===== */
.sarahs-space {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.sarahs-greeting {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 500;
  color: var(--color-text);
  margin-top: var(--space-8);
}

.sarahs-reflection {
  margin-top: var(--space-10);
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: 1.8;
  font-style: italic;
}

.quote-stones {
  margin-top: var(--space-16);
  display: flex;
  flex-direction: column;
  gap: var(--space-12);
}

.stepping-quote {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  color: var(--color-text);
  line-height: 1.6;
  font-weight: 400;
}

.stepping-quote cite {
  display: block;
  margin-top: var(--space-2);
  font-size: var(--text-sm);
  color: var(--color-text-faint);
  font-style: normal;
  font-family: var(--font-body);
}

/* ===== SARAH COMING SOON ===== */
.sarah-coming-soon {
  margin-top: var(--space-16);
  padding: var(--space-8);
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-divider);
  text-align: left;
}

.sarah-coming-soon h3 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 500;
  color: var(--color-text);
  margin-bottom: var(--space-4);
}

.sarah-coming-soon p {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: 1.8;
}

.sarah-coming-soon p + p {
  margin-top: var(--space-4);
}

/* ===== ABOUT ===== */
.about-content {
  max-width: 680px;
  margin: 0 auto;
}

.about-content h2 {
  margin-top: var(--space-12);
  margin-bottom: var(--space-4);
}

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

.about-content p {
  color: var(--color-text-muted);
  font-size: var(--text-base);
  line-height: 1.8;
}

.about-content p + p {
  margin-top: var(--space-4);
}

.about-quote {
  padding: var(--space-8);
  margin: var(--space-8) 0;
  border-left: 3px solid var(--color-primary);
  background: var(--color-surface);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
}

.about-quote blockquote {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  color: var(--color-text);
  font-style: italic;
  line-height: 1.6;
}

.about-quote cite {
  display: block;
  margin-top: var(--space-2);
  font-size: var(--text-sm);
  color: var(--color-text-faint);
  font-style: normal;
  font-family: var(--font-body);
}

.about-contact {
  text-align: center;
  margin-top: var(--space-12);
  padding-top: var(--space-8);
  border-top: 1px solid var(--color-divider);
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.about-contact h2 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  margin-bottom: var(--space-4);
}

.contact-email {
  margin-top: var(--space-6);
}

.contact-email a {
  display: inline-block;
  padding: var(--space-3) var(--space-6);
  background: var(--color-sage);
  color: #fff;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 500;
  transition: opacity 0.2s;
}

.contact-email a:hover {
  opacity: 0.85;
}

.about-closing {
  text-align: center;
  margin-top: var(--space-12);
  padding-top: var(--space-8);
  border-top: 1px solid var(--color-divider);
}

.about-closing .ethos {
  margin-top: var(--space-4);
}

/* ===== GLOBAL GOOD NEWS — CARD VIEW ===== */
.goodnews-intro {
  max-width: 680px;
  margin: 0 auto var(--space-12);
  text-align: center;
}

.goodnews-intro p {
  color: var(--color-text-muted);
  font-size: var(--text-base);
  line-height: 1.8;
}

.goodnews-intro p + p {
  margin-top: var(--space-4);
}

/* Card Grid */
.goodnews-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--space-6);
  max-width: var(--content-wide);
  margin: 0 auto;
}

.goodnews-card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-divider);
  overflow: hidden;
  transition: border-color var(--transition-interactive), box-shadow var(--transition-interactive);
}

.goodnews-card:hover {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-md);
}

.goodnews-card.expanded {
  grid-column: 1 / -1;
  max-width: 680px;
  margin: 0 auto;
}

.goodnews-card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.goodnews-card.expanded .goodnews-card-img {
  height: auto;
  max-height: 400px;
}

.goodnews-card-body {
  padding: var(--space-5);
}

.goodnews-card-label {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-2);
}

.goodnews-card-title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 500;
  color: var(--color-text);
  line-height: 1.35;
  margin-bottom: var(--space-3);
}

.goodnews-card-summary {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-bottom: var(--space-4);
}

.goodnews-card-expand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-primary);
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: color var(--transition-interactive);
}

.goodnews-card-expand:hover {
  color: var(--color-primary-hover);
}

.goodnews-card-expand::after {
  content: '\2192';
  transition: transform var(--transition-interactive);
}

.goodnews-card.expanded .goodnews-card-expand::after {
  transform: rotate(90deg);
}

.goodnews-card.expanded .goodnews-card-summary {
  display: none;
}

.goodnews-card-full {
  padding: 0 var(--space-5) var(--space-5);
}

.goodnews-story-body p {
  color: var(--color-text-muted);
  font-size: var(--text-base);
  line-height: 1.8;
}

.goodnews-story-body p + p {
  margin-top: var(--space-4);
}

@media (max-width: 640px) {
  .goodnews-cards {
    grid-template-columns: 1fr;
  }
}

.goodnews-note {
  max-width: 680px;
  margin: var(--space-16) auto 0;
  padding: var(--space-6) var(--space-8);
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-divider);
  text-align: center;
}

.goodnews-note p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.7;
}

.goodnews-note p + p {
  margin-top: var(--space-2);
  font-style: italic;
}

/* ===== SEARCH ===== */
.search-space {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

.search-intro {
  color: var(--color-text-muted);
  font-size: var(--text-base);
  line-height: 1.8;
  margin-bottom: var(--space-10);
}

.search-box {
  margin-bottom: var(--space-8);
}

.search-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.search-icon {
  position: absolute;
  left: var(--space-4);
  color: var(--color-text-faint);
  pointer-events: none;
  flex-shrink: 0;
}

.search-input {
  width: 100%;
  padding: var(--space-4) var(--space-12) var(--space-4) var(--space-12);
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-text);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  outline: none;
  transition: border-color var(--transition-interactive), box-shadow var(--transition-interactive);
}

.search-input::placeholder {
  color: var(--color-text-faint);
}

.search-input:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--color-primary-highlight);
}

.search-clear {
  position: absolute;
  right: var(--space-3);
  padding: var(--space-2);
  color: var(--color-text-faint);
  border-radius: var(--radius-full);
  min-width: 32px;
  min-height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color var(--transition-interactive);
}

.search-clear:hover {
  color: var(--color-text-muted);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.search-results {
  text-align: left;
}

.search-result-item {
  padding: var(--space-4) var(--space-5);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-3);
  cursor: pointer;
  transition: background-color var(--transition-interactive);
}

.search-result-item:hover {
  background: var(--color-surface);
}

.search-result-section {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: var(--space-1);
}

.search-result-title {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 500;
  color: var(--color-text);
  margin-bottom: var(--space-1);
}

.search-result-snippet {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
}

.search-result-snippet mark {
  background: var(--color-primary-highlight);
  color: var(--color-text);
  padding: 0.1em 0.2em;
  border-radius: 2px;
}

.search-no-results {
  padding: var(--space-8);
  text-align: center;
}

.search-no-results p {
  color: var(--color-text-muted);
  font-size: var(--text-base);
}

.search-empty-state {
  margin-top: var(--space-4);
}

.search-empty-state p {
  color: var(--color-text-faint);
  font-size: var(--text-sm);
  margin-bottom: var(--space-4);
}

.search-browse-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-3);
}

.search-browse-card {
  display: inline-block;
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-full);
  text-decoration: none;
  transition: border-color var(--transition-interactive), color var(--transition-interactive);
}

.search-browse-card:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

/* ===== FOOTER ===== */
.site-footer {
  border-top: 1px solid var(--color-divider);
  padding: var(--space-12) var(--space-6) var(--space-8);
  background: var(--color-surface);
}

.footer-inner {
  max-width: var(--content-wide);
  margin: 0 auto;
  text-align: center;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-2);
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-8);
}

.footer-nav a {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  text-decoration: none;
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-sm);
  transition: color var(--transition-interactive);
}

.footer-nav a:hover {
  color: var(--color-primary);
}

.footer-ethos {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-style: italic;
  color: var(--color-text-muted);
  margin-bottom: var(--space-6);
}

.footer-meta {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
}

.footer-meta a {
  color: var(--color-text-faint);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer-meta a:hover {
  color: var(--color-primary);
}

.footer-meta span {
  display: inline-block;
  margin: var(--space-1) var(--space-2);
}

@media (max-width: 480px) {
  .footer-meta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-1);
  }
  .footer-meta span:nth-child(2) {
    display: none;
  }
}

/* ===== STORY IMAGES (Good News) ===== */
.goodnews-story-img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-6);
  display: block;
}

/* ===== SHARE BUTTONS ===== */
.share-buttons {
  margin-top: var(--space-6);
  padding-top: var(--space-4);
  border-top: 1px solid var(--color-divider);
}

.share-label {
  display: block;
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  margin-bottom: var(--space-3);
  font-style: italic;
}

.share-buttons-row {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  font-family: var(--font-body);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  border-radius: 999px;
  cursor: pointer;
  transition: background-color var(--transition-interactive), color var(--transition-interactive), border-color var(--transition-interactive);
  white-space: nowrap;
}

.share-btn:hover {
  background: var(--color-surface-2);
  color: var(--color-text);
  border-color: var(--color-border);
}

.share-btn svg {
  flex-shrink: 0;
}

.share-btn--copy.copied {
  color: var(--color-primary);
  border-color: var(--color-primary);
}

.goodnews-story-sources {
  margin-top: var(--space-6);
  padding-top: var(--space-4);
  border-top: 1px solid var(--color-divider);
}

.goodnews-story-sources p {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  margin-bottom: var(--space-2);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.goodnews-story-sources ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-4);
}

.goodnews-story-sources li {
  font-size: var(--text-xs);
}

.goodnews-story-sources a {
  color: var(--color-primary);
  font-size: var(--text-xs);
}

/* ===== SECTION HERO IMAGES ===== */
.section-hero-img {
  width: 100%;
  max-width: 680px;
  height: auto;
  border-radius: var(--radius-lg);
  margin: 0 auto var(--space-12);
  display: block;
}

.section-hero-img--wide {
  max-width: 800px;
}

/* Veterans hero */
.veterans-hero-img {
  width: 100%;
  max-width: 800px;
  height: auto;
  border-radius: var(--radius-lg);
  margin: 0 auto var(--space-8);
  display: block;
}

/* Sarah's Space hero */
.sarahs-hero-img {
  width: 100%;
  max-width: 520px;
  height: auto;
  border-radius: var(--radius-lg);
  margin: 0 auto var(--space-8);
  display: block;
}

/* About section image */
.about-hero-img {
  width: 100%;
  max-width: 680px;
  height: auto;
  border-radius: var(--radius-lg);
  margin: 0 auto var(--space-8);
  display: block;
}

/* Grief section hero */
.grief-hero-img {
  width: 100%;
  max-width: 800px;
  height: auto;
  border-radius: var(--radius-lg);
  margin: 0 auto var(--space-8);
  display: block;
  opacity: 0.85;
}

/* Comfort Table hero */
.comfort-hero-img {
  width: 100%;
  max-width: 800px;
  height: auto;
  border-radius: var(--radius-lg);
  margin: 0 auto var(--space-8);
  display: block;
}

/* Substack hero */
.substack-hero-img {
  width: 100%;
  max-width: 680px;
  height: auto;
  border-radius: var(--radius-lg);
  margin: 0 auto var(--space-6);
  display: block;
}

/* Comfort category header images */
.comfort-category-img {
  width: 100%;
  max-width: 720px;
  height: auto;
  border-radius: var(--radius-lg);
  margin: var(--space-4) auto var(--space-6);
  display: block;
  opacity: 0.9;
}

/* Recipe dish images */
.comfort-recipe-img {
  width: 100%;
  max-width: 520px;
  height: auto;
  border-radius: var(--radius-lg);
  margin: var(--space-4) auto var(--space-6);
  display: block;
}

/* ===== JUMP TO NAVIGATION ===== */
.jump-to {
  max-width: 800px;
  margin: 0 auto var(--space-10);
  padding: var(--space-4) var(--space-6);
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-divider);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3);
}

.jump-to-label {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
  white-space: nowrap;
}

.jump-to-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.jump-to-link {
  display: inline-block;
  padding: var(--space-1) var(--space-3);
  font-size: var(--text-sm);
  color: var(--color-primary);
  background: var(--color-primary-highlight);
  border-radius: var(--radius-full);
  text-decoration: none;
  transition: background-color var(--transition-interactive), color var(--transition-interactive);
  white-space: nowrap;
}

.jump-to-link:hover {
  background: var(--color-primary);
  color: var(--color-text-inverse);
}

@media (max-width: 640px) {
  .jump-to {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ===== SARAH'S BREATHING ENTRY ===== */
.sarahs-breathing-entry {
  text-align: center;
  padding-bottom: var(--space-16);
  margin-bottom: var(--space-8);
  border-bottom: 1px solid var(--color-divider);
}

.sarahs-invitation {
  font-family: var(--font-display);
  font-size: var(--text-base);
  color: var(--color-text-faint);
  font-style: italic;
  margin-top: var(--space-10);
}

/* ===== GRIEF CORNER ===== */
.grief-content {
  max-width: 680px;
  margin: 0 auto;
}

.grief-opening {
  text-align: center;
  margin-bottom: var(--space-16);
}

.grief-title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 500;
  color: var(--color-text);
  margin-top: var(--space-8);
}

.grief-dedication {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-style: italic;
  color: var(--color-primary);
  margin-top: var(--space-4);
}

.grief-welcome {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: 1.8;
  margin-top: var(--space-6);
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.grief-section {
  padding-block: var(--space-10);
  border-top: 1px solid var(--color-divider);
}

.grief-section h2 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 500;
  color: var(--color-text);
  margin-bottom: var(--space-6);
}

.grief-section p {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: 1.8;
}

.grief-section p + p {
  margin-top: var(--space-4);
}

.grief-quote {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-style: italic;
  color: var(--color-text);
  padding: var(--space-6) var(--space-8);
  margin: var(--space-8) 0;
  border-left: 3px solid var(--color-primary);
  background: var(--color-surface);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  line-height: 1.6;
}

.grief-quote cite {
  display: block;
  margin-top: var(--space-2);
  font-size: var(--text-sm);
  color: var(--color-text-faint);
  font-style: normal;
  font-family: var(--font-body);
}

.grief-resources {
  list-style: none;
  padding: 0;
  margin-top: var(--space-4);
}

.grief-resources li {
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--color-divider);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.7;
}

.grief-resources li:last-child {
  border-bottom: none;
}

/* Collapsible sections */
.grief-collapsible {
  margin-top: var(--space-4);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.grief-collapsible + .grief-collapsible {
  margin-top: var(--space-3);
}

.grief-collapsible summary {
  padding: var(--space-4) var(--space-5);
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 500;
  color: var(--color-text);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--color-surface);
  transition: background-color var(--transition-interactive);
}

.grief-collapsible summary:hover {
  background: var(--color-surface-2);
}

.grief-collapsible summary::after {
  content: '+';
  font-size: var(--text-lg);
  color: var(--color-primary);
  transition: transform var(--transition-interactive);
}

.grief-collapsible[open] summary::after {
  content: '\2212';
}

.grief-collapsible summary::-webkit-details-marker {
  display: none;
}

.grief-collapsible-content {
  padding: var(--space-4) var(--space-5) var(--space-6);
}

.grief-collapsible-content ul {
  padding-left: var(--space-5);
  margin: 0;
}

.grief-collapsible-content li {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-top: var(--space-3);
}

.grief-collapsible-content li:first-child {
  margin-top: 0;
}

.grief-collapsible-content li::marker {
  color: var(--color-primary);
}

.grief-collapsible-content p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: var(--space-3);
}

/* Grief callout boxes */
.grief-callout {
  background: var(--color-surface);
  border-left: 3px solid var(--color-primary);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  padding: var(--space-4) var(--space-6);
  margin: var(--space-6) 0;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.7;
}

.grief-callout strong {
  color: var(--color-text);
}

/* Grief scenario headings */
.grief-scenario-heading {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 500;
  color: var(--color-text);
  margin-top: var(--space-6);
  margin-bottom: var(--space-3);
}

.grief-collapsible-content .grief-scenario-heading:first-child {
  margin-top: var(--space-2);
}

/* Grief empathy notes */
.grief-empathy-note {
  font-style: italic;
  background: var(--color-surface);
  padding: var(--space-4) var(--space-5);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-5);
}

/* Grief checklists */
.grief-checklist {
  list-style: none;
  padding-left: 0;
}

.grief-checklist li {
  position: relative;
  padding-left: var(--space-6);
}

.grief-checklist li::before {
  content: '\2610';
  position: absolute;
  left: 0;
  color: var(--color-primary);
  font-size: var(--text-base);
}

/* Grief timeline */
.grief-timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
  margin: var(--space-6) 0;
}

.grief-timeline-column {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  border-top: 3px solid var(--color-primary);
}

.grief-timeline-column--gentle {
  border-top-color: var(--color-text-faint);
}

.grief-timeline-column h4 {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-3);
}

.grief-timeline-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.grief-timeline-column li {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  line-height: 1.6;
  padding: var(--space-1) 0;
}

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

@media (max-width: 480px) {
  .grief-timeline {
    grid-template-columns: 1fr;
  }
}

/* Reading Room */
.reading-room-cards {
  margin-top: var(--space-6);
}

.reading-room-piece + .reading-room-piece {
  margin-top: var(--space-3);
}

.reading-room-body p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.8;
}

.reading-room-body p + p {
  margin-top: var(--space-4);
}

.reading-room-closing {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--color-primary);
  margin-top: var(--space-6);
  padding-top: var(--space-4);
  border-top: 1px solid var(--color-divider);
}

.reading-room-note {
  font-size: var(--text-sm);
  font-style: italic;
  color: var(--color-text-faint);
  margin-top: var(--space-8);
  text-align: center;
}

.grief-closing {
  text-align: center;
  margin-top: var(--space-12);
  padding-top: var(--space-10);
  border-top: 1px solid var(--color-divider);
}

.grief-closing p {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: 1.8;
}

.grief-closing-quote {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--color-text-faint);
  margin-top: var(--space-6);
}

.grief-disclaimer {
  max-width: 680px;
  margin: var(--space-12) auto 0;
  padding: var(--space-6);
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  text-align: center;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  font-style: italic;
}

/* ===== SUBSTACK SECTION ===== */
.substack-content {
  max-width: 820px;
  margin: 0 auto;
}

.substack-intro {
  text-align: center;
  margin-bottom: var(--space-10);
}

.substack-intro p {
  color: var(--color-text-muted);
  font-size: var(--text-base);
  line-height: 1.8;
}

.substack-feed {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.substack-loading {
  text-align: center;
  padding: var(--space-12);
}

/* Featured (first) post — large card */
.substack-post--featured {
  display: block;
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-divider);
  text-decoration: none;
  overflow: hidden;
  transition: border-color var(--transition-interactive), box-shadow var(--transition-interactive), transform 0.2s ease;
}

.substack-post--featured:hover {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.substack-post--featured .substack-post-thumb {
  width: 100%;
  height: 260px;
  object-fit: cover;
  display: block;
}

.substack-post--featured .substack-post-body {
  padding: var(--space-5) var(--space-6) var(--space-6);
}

/* Grid for remaining posts */
.substack-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-5);
}

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

/* Standard post card */
.substack-post {
  display: block;
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-divider);
  text-decoration: none;
  overflow: hidden;
  transition: border-color var(--transition-interactive), box-shadow var(--transition-interactive), transform 0.2s ease;
}

.substack-post:hover {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.substack-post .substack-post-thumb {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
}

.substack-post .substack-post-body {
  padding: var(--space-4) var(--space-5) var(--space-5);
}

.substack-post-date {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.substack-post-title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 500;
  color: var(--color-text);
  margin-top: var(--space-2);
  line-height: 1.4;
}

.substack-post--featured .substack-post-title {
  font-size: var(--text-xl);
}

.substack-post-excerpt {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-top: var(--space-3);
}

.substack-post-read {
  display: inline-block;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-primary);
  margin-top: var(--space-3);
}

.substack-subscribe {
  text-align: center;
  margin-top: var(--space-10);
  padding: var(--space-8) var(--space-6);
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-divider);
}

.substack-subscribe p {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  margin-bottom: var(--space-4);
}

.substack-subscribe-btn {
  display: inline-block;
  padding: var(--space-3) var(--space-8);
  background: var(--color-primary);
  color: var(--color-text-inverse);
  border-radius: var(--radius-md);
  text-decoration: none;
  font-weight: 500;
  font-size: var(--text-base);
  transition: background-color var(--transition-interactive), transform 0.15s ease;
}

.substack-subscribe-btn:hover {
  background: var(--color-primary-hover);
  color: var(--color-text-inverse);
  transform: translateY(-1px);
}

.substack-fallback {
  text-align: center;
  padding: var(--space-8);
}

.substack-fallback p {
  color: var(--color-text-muted);
  font-size: var(--text-base);
  margin-bottom: var(--space-4);
}

.substack-direct-link {
  display: inline-block;
  padding: var(--space-3) var(--space-6);
  background: var(--color-primary);
  color: var(--color-text-inverse);
  border-radius: var(--radius-md);
  text-decoration: none;
  font-weight: 500;
  transition: background-color var(--transition-interactive);
}

.substack-direct-link:hover {
  background: var(--color-primary-hover);
  color: var(--color-text-inverse);
}

/* Image caption */
.img-caption {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  font-style: italic;
  text-align: center;
  margin-top: var(--space-2);
  margin-bottom: var(--space-6);
}

/* ===== PHILOSOPHY — Neither Artist Can Draw, Alone ===== */

.philosophy-content {
  max-width: 760px;
  margin: 0 auto;
  padding: var(--space-8) 0 var(--space-16);
}

/* Hero Quote — The Anchor */
.philosophy-hero-quote {
  text-align: center;
  padding: var(--space-16) var(--space-4) var(--space-12);
  margin-bottom: var(--space-12);
}

.philosophy-hero-quote blockquote {
  border: none;
  padding: 0;
  margin: 0 auto;
  max-width: 640px;
}

.philosophy-hero-quote blockquote p {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  line-height: 1.4;
  color: var(--color-accent, #d4a373);
  font-style: italic;
  margin: 0;
}

.philosophy-hero-quote cite {
  display: block;
  margin-top: var(--space-6);
  font-size: var(--text-base);
  color: var(--color-muted, #8a7e72);
  font-style: normal;
  letter-spacing: 0.02em;
}

.philosophy-title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  text-align: center;
  margin-bottom: var(--space-8);
  color: var(--color-heading, #f5ebe0);
}

.philosophy-lede {
  font-size: var(--text-lg);
  text-align: center;
  color: var(--color-muted, #8a7e72);
  max-width: 600px;
  margin: 0 auto var(--space-12);
  line-height: 1.6;
}

/* Three Wrong Narratives — Visual Cards */
.philosophy-narratives {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  margin-bottom: var(--space-10);
}

.philosophy-narrative-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(212, 163, 115, 0.15);
  border-radius: var(--radius-lg, 12px);
  padding: var(--space-6) var(--space-4);
  text-align: center;
  transition: border-color 0.3s ease;
}

.philosophy-narrative-card:hover {
  border-color: rgba(212, 163, 115, 0.35);
}

.narrative-struck {
  font-size: var(--text-base);
  text-decoration: line-through;
  color: var(--color-muted, #8a7e72);
  opacity: 0.7;
  margin-bottom: var(--space-3);
  font-style: italic;
}

.narrative-truth {
  font-size: var(--text-sm);
  color: var(--color-accent, #d4a373);
  line-height: 1.5;
}

.philosophy-third-thing {
  text-align: center;
  font-size: var(--text-lg);
  margin-bottom: var(--space-12);
  color: var(--color-heading, #f5ebe0);
}

/* Dividers */
.philosophy-divider {
  width: 60px;
  height: 1px;
  background: rgba(212, 163, 115, 0.3);
  margin: var(--space-12) auto;
}

/* Body Text */
.philosophy-content h2 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  margin-top: var(--space-10);
  margin-bottom: var(--space-6);
  color: var(--color-heading, #f5ebe0);
}

.philosophy-content p {
  font-size: var(--text-base);
  line-height: 1.8;
  margin-bottom: var(--space-4);
  color: var(--color-body, #c4b5a5);
}

.philosophy-content strong {
  color: var(--color-heading, #f5ebe0);
}

.philosophy-content em {
  color: var(--color-accent, #d4a373);
  font-style: italic;
}

.philosophy-list {
  list-style: none;
  padding: 0;
  margin: var(--space-4) 0 var(--space-6);
}

.philosophy-list li {
  padding: var(--space-2) 0 var(--space-2) var(--space-6);
  position: relative;
  font-size: var(--text-base);
  line-height: 1.7;
  color: var(--color-body, #c4b5a5);
}

.philosophy-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.85em;
  width: 6px;
  height: 6px;
  background: var(--color-accent, #d4a373);
  border-radius: 50%;
  opacity: 0.6;
}

/* Proof Section */
.philosophy-proof {
  background: rgba(212, 163, 115, 0.05);
  border-left: 3px solid rgba(212, 163, 115, 0.3);
  padding: var(--space-8) var(--space-6);
  border-radius: 0 var(--radius-lg, 12px) var(--radius-lg, 12px) 0;
  margin: var(--space-8) 0;
}

.philosophy-proof h2 {
  margin-top: 0;
}

/* Closing Lines */
.philosophy-closing {
  text-align: center;
  padding: var(--space-12) 0 var(--space-4);
}

.philosophy-closing-line {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: var(--color-muted, #8a7e72);
  margin-bottom: var(--space-4);
}

.philosophy-closing-together {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: var(--color-accent, #d4a373);
  font-style: italic;
}

.philosophy-day {
  text-align: center;
  font-size: var(--text-sm);
  color: var(--color-muted, #8a7e72);
  margin-top: var(--space-8);
  opacity: 0.7;
}

/* Responsive */
@media (max-width: 600px) {
  .philosophy-narratives {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }

  .philosophy-hero-quote blockquote p {
    font-size: var(--text-lg);
  }

  .philosophy-content {
    padding: var(--space-4) 0 var(--space-12);
  }
}
