/* ===================================================================
   Siham's Birthday — The Saturday Reading Group & Pirsig Chautauqua
   =================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@500;600;700;800&family=Newsreader:ital,opsz,wght@0,6..72,400;0,6..72,600;1,6..72,400;1,6..72,600&family=Plus+Jakarta+Sans:wght@400;500;600;700&family=Space+Mono:ital,wght@0,400;0,700;1,400&display=swap');

:root {
  /* Night Chautauqua Theme (Default) */
  --bg-primary: #0a0e17;
  --bg-secondary: #131b2c;
  --bg-card: rgba(23, 32, 51, 0.75);
  --bg-card-hover: rgba(30, 42, 66, 0.88);
  --bg-glass: rgba(255, 255, 255, 0.04);
  --border-subtle: rgba(245, 158, 11, 0.18);
  --border-strong: rgba(245, 158, 11, 0.4);
  
  --text-main: #f1f5f9;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --text-quote: #fef3c7;
  
  --accent-gold: #f59e0b;
  --accent-gold-light: #fbbf24;
  --accent-gold-dark: #b45309;
  --accent-amber-glow: rgba(245, 158, 11, 0.28);
  --accent-emerald: #10b981;
  --accent-terracotta: #ea580c;
  
  --font-serif-title: 'Cinzel', Georgia, serif;
  --font-serif-body: 'Newsreader', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-mono: 'Space Mono', monospace;
  
  --shadow-warm: 0 12px 36px -8px rgba(0, 0, 0, 0.5), 0 0 24px -4px var(--accent-amber-glow);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-pill: 9999px;
  
  --transition-smooth: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="parchment"] {
  --bg-primary: #fcf9f2;
  --bg-secondary: #f4eee2;
  --bg-card: rgba(255, 255, 255, 0.85);
  --bg-card-hover: #ffffff;
  --bg-glass: rgba(0, 0, 0, 0.03);
  --border-subtle: rgba(180, 83, 9, 0.2);
  --border-strong: rgba(180, 83, 9, 0.45);
  
  --text-main: #1c1917;
  --text-muted: #57534e;
  --text-dim: #78716c;
  --text-quote: #292524;
  
  --accent-gold: #b45309;
  --accent-gold-light: #d97706;
  --accent-gold-dark: #78350f;
  --accent-amber-glow: rgba(180, 83, 9, 0.15);
  --accent-emerald: #047857;
  --accent-terracotta: #c2410c;
  
  --shadow-warm: 0 12px 30px -8px rgba(120, 53, 15, 0.12), 0 0 18px -4px rgba(180, 83, 9, 0.08);
}

/* Reset & Global */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  background-color: var(--bg-primary);
  color: var(--text-main);
  font-family: var(--font-sans);
  line-height: 1.65;
  overflow-x: hidden;
  position: relative;
  transition: background-color 0.4s ease, color 0.4s ease;
  min-height: 100vh;
}

/* Subtle Vintage Grain & Ambient Canvas */
#ambient-particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 1;
}

.grain-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.035;
  background-image: radial-gradient(var(--text-main) 1px, transparent 1px);
  background-size: 24px 24px;
  z-index: 2;
}

/* Layout Container */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 5;
}

/* Top Navigation Bar */
.top-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(10, 14, 23, 0.75);
  border-bottom: 1px solid var(--border-subtle);
  transition: background 0.3s ease;
}

[data-theme="parchment"] .top-nav {
  background: rgba(252, 249, 242, 0.85);
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 0;
  gap: 1rem;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-icon {
  font-size: 1.4rem;
  filter: drop-shadow(0 0 6px var(--accent-amber-glow));
}

.brand-title {
  font-family: var(--font-serif-title);
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--text-main);
  text-transform: uppercase;
}

.brand-sub {
  font-size: 0.75rem;
  font-family: var(--font-mono);
  color: var(--accent-gold);
  display: block;
  letter-spacing: 0.03em;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.nav-btn {
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  transition: var(--transition-smooth);
}

.nav-btn:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent-gold);
  transform: translateY(-1px);
  color: var(--accent-gold-light);
}

.nav-btn-primary {
  background: linear-gradient(135deg, var(--accent-gold) 0%, var(--accent-gold-dark) 100%);
  color: #fff !important;
  border: none;
  box-shadow: 0 4px 14px var(--accent-amber-glow);
}

.nav-btn-primary:hover {
  filter: brightness(1.1);
  transform: translateY(-1.5px);
}

/* ===================================================================
   HERO SECTION
   =================================================================== */
.hero-section {
  padding: 4.5rem 0 3.5rem;
  text-align: center;
  position: relative;
}

.hero-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 1rem;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  color: var(--accent-gold-light);
  margin-bottom: 1.5rem;
  text-transform: uppercase;
}

.hero-title {
  font-family: var(--font-serif-title);
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin-bottom: 1.25rem;
  color: var(--text-main);
}

.hero-title .highlight-name {
  background: linear-gradient(135deg, #fbbf24 20%, #f59e0b 60%, #ea580c 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  position: relative;
}

.hero-subtitle {
  font-family: var(--font-serif-body);
  font-size: clamp(1.15rem, 2.5vw, 1.45rem);
  font-style: italic;
  color: var(--text-muted);
  max-width: 720px;
  margin: 0 auto 2.2rem;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.btn-hero {
  padding: 0.85rem 1.85rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-pill);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  transition: var(--transition-smooth);
  text-decoration: none;
}

.btn-hero-primary {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #0b0f19;
  border: none;
  font-weight: 700;
  box-shadow: 0 8px 24px -4px rgba(245, 158, 11, 0.4);
}

.btn-hero-primary:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 12px 28px -4px rgba(245, 158, 11, 0.55);
}

.btn-hero-secondary {
  background: var(--bg-card);
  color: var(--text-main);
  border: 1px solid var(--border-subtle);
}

.btn-hero-secondary:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent-gold);
  transform: translateY(-2px);
}

/* Dispatch Banner / Vintage Dispatch Strip */
.dispatch-strip {
  background: linear-gradient(90deg, transparent, var(--bg-card), transparent);
  border-top: 1px dashed var(--border-subtle);
  border-bottom: 1px dashed var(--border-subtle);
  padding: 1rem 0;
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text-muted);
}

.dispatch-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.dispatch-item strong {
  color: var(--accent-gold);
}

/* ===================================================================
   SECTION: THE SATURDAY CIRCLE (Warm Letter from the Club)
   =================================================================== */
.section {
  padding: 4.5rem 0;
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 3rem;
}

.section-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent-gold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
  display: block;
}

.section-title {
  font-family: var(--font-serif-title);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  color: var(--text-main);
  line-height: 1.25;
  margin-bottom: 0.8rem;
}

.section-desc {
  font-family: var(--font-serif-body);
  font-size: 1.12rem;
  color: var(--text-muted);
}

/* Vintage Letter Box */
.letter-box {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 5vw, 3.5rem);
  box-shadow: var(--shadow-warm);
  position: relative;
  overflow: hidden;
}

.letter-box::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #f59e0b, #ea580c, #10b981, #f59e0b);
}

.letter-stamp {
  position: absolute;
  top: 1.8rem;
  right: 2rem;
  width: 90px;
  height: 90px;
  border: 2px dashed var(--accent-gold);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  transform: rotate(12deg);
  opacity: 0.8;
  pointer-events: none;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: var(--accent-gold);
  text-transform: uppercase;
  line-height: 1.1;
  padding: 0.2rem;
}

.letter-salutation {
  font-family: var(--font-serif-title);
  font-size: 1.6rem;
  color: var(--text-main);
  margin-bottom: 1.5rem;
}

.letter-body {
  font-family: var(--font-serif-body);
  font-size: 1.15rem;
  line-height: 1.85;
  color: var(--text-main);
}

.letter-body p {
  margin-bottom: 1.35rem;
}

.letter-signoff {
  margin-top: 2.5rem;
  font-family: var(--font-serif-body);
  font-size: 1.25rem;
  font-style: italic;
  color: var(--accent-gold-light);
  border-top: 1px solid var(--border-subtle);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 1rem;
}

.signoff-note {
  font-size: 0.9rem;
  font-family: var(--font-mono);
  font-style: normal;
  color: var(--text-dim);
}

/* ===================================================================
   SECTION: THE CHAUTAUQUA & PIRSIG'S MOTORCYCLE DIAL
   =================================================================== */
.motorcycle-vista {
  margin-bottom: 3.5rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-warm);
  border: 1px solid var(--border-strong);
  background: var(--bg-card);
  position: relative;
}

.vista-svg {
  width: 100%;
  height: auto;
  display: block;
}

.vista-caption {
  padding: 0.75rem 1.25rem;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--accent-gold);
  background: rgba(0, 0, 0, 0.3);
  border-top: 1px solid var(--border-subtle);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.pirsig-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3.5rem;
}

.pirsig-pill {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  position: relative;
  transition: var(--transition-smooth);
}

.pirsig-pill:hover {
  transform: translateY(-4px);
  border-color: var(--accent-gold);
  box-shadow: 0 10px 25px -5px var(--accent-amber-glow);
}

.pillar-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
  display: inline-block;
}

.pillar-title {
  font-family: var(--font-serif-title);
  font-size: 1.15rem;
  color: var(--text-main);
  margin-bottom: 0.5rem;
}

.pillar-concept {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent-gold);
  text-transform: uppercase;
  margin-bottom: 0.8rem;
  display: block;
}

.pillar-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Interactive Quote Flip Deck */
.quote-deck-container {
  max-width: 820px;
  margin: 0 auto;
}

.quote-card {
  background: linear-gradient(145deg, var(--bg-card) 0%, rgba(15, 23, 42, 0.92) 100%);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 4vw, 3rem);
  box-shadow: var(--shadow-warm);
  position: relative;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.quote-card.fading {
  opacity: 0.25;
  transform: scale(0.98);
}

.quote-meta-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 0.75rem;
}

.book-tag {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--accent-gold);
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.quote-index-badge {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  background: var(--bg-glass);
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
}

.quote-text {
  font-family: var(--font-serif-body);
  font-size: clamp(1.2rem, 2.5vw, 1.45rem);
  line-height: 1.7;
  color: var(--text-quote);
  margin-bottom: 1.75rem;
  font-style: italic;
}

.quote-divider {
  height: 1px;
  background: linear-gradient(90deg, var(--accent-gold), transparent);
  margin-bottom: 1.25rem;
}

.quote-insight-box {
  background: rgba(245, 158, 11, 0.08);
  border-left: 3px solid var(--accent-gold);
  padding: 0.9rem 1.2rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin-bottom: 1.8rem;
}

.quote-insight-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent-gold-light);
  text-transform: uppercase;
  display: block;
  margin-bottom: 0.25rem;
}

.quote-insight-text {
  font-size: 0.95rem;
  color: var(--text-main);
  line-height: 1.55;
}

.quote-nav-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.quote-btn {
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  padding: 0.6rem 1.2rem;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition-smooth);
}

.quote-btn:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent-gold);
  color: var(--accent-gold-light);
}

/* ===================================================================
   SECTION: WISHES BOARD (Saturday Circle Notes)
   =================================================================== */
.wishes-board-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.wishes-count-pill {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-muted);
}

.wishes-action-group {
  display: flex;
  gap: 0.75rem;
}

.wishes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.75rem;
}

.wish-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  transition: var(--transition-smooth);
}

.wish-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-gold);
  box-shadow: var(--shadow-warm);
}

.wish-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.2rem;
  gap: 0.75rem;
}

.wish-author-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.wish-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-gold), var(--accent-terracotta));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif-title);
  font-weight: 700;
  font-size: 1.1rem;
  box-shadow: 0 2px 8px var(--accent-amber-glow);
}

.wish-author {
  font-family: var(--font-serif-title);
  font-size: 1.05rem;
  color: var(--text-main);
  line-height: 1.2;
}

.wish-role {
  font-size: 0.78rem;
  color: var(--text-muted);
  display: block;
}

.wish-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 0.2rem 0.55rem;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  color: var(--accent-gold-light);
  white-space: nowrap;
}

.wish-message {
  font-family: var(--font-serif-body);
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-main);
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.wish-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border-subtle);
  padding-top: 0.85rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-dim);
}

.wish-badge {
  color: var(--accent-gold);
}

/* ===================================================================
   SECTION: BIRTHDAY RITUAL (Candle & Cake)
   =================================================================== */
.ritual-container {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: clamp(2.5rem, 5vw, 3.5rem);
  box-shadow: var(--shadow-warm);
  position: relative;
}

/* Interactive Candle Illustration */
.cake-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 2rem 0;
  position: relative;
}

.candle-wrapper {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
}

.candle-flame {
  width: 24px;
  height: 38px;
  background: radial-gradient(ellipse at bottom, #fff 0%, #fef08a 35%, #f59e0b 70%, #ea580c 100%);
  border-radius: 50% 50% 35% 35% / 60% 60% 40% 40%;
  box-shadow: 0 0 20px #f59e0b, 0 0 45px rgba(245, 158, 11, 0.7), 0 0 70px rgba(234, 88, 12, 0.4);
  animation: flicker 1.8s infinite ease-in-out alternate;
  transform-origin: bottom center;
  transition: opacity 0.3s ease, transform 0.3s ease;
  margin-bottom: 2px;
}

.candle-flame.extinguished {
  opacity: 0;
  transform: scale(0.2) translateY(-10px);
  pointer-events: none;
}

@keyframes flicker {
  0% { transform: scale(1) rotate(-1deg); }
  25% { transform: scale(1.04, 0.98) rotate(1.5deg); }
  50% { transform: scale(0.96, 1.05) rotate(-2deg); }
  75% { transform: scale(1.02, 0.96) rotate(1deg); }
  100% { transform: scale(0.98, 1.02) rotate(-0.5deg); }
}

.candle-wick {
  width: 3px;
  height: 10px;
  background: #334155;
  border-radius: 2px;
}

.candle-smoke {
  position: absolute;
  top: -20px;
  width: 10px;
  height: 10px;
  background: rgba(200, 200, 200, 0.5);
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
  filter: blur(4px);
}

.candle-smoke.active {
  animation: smokeRise 1.8s forwards ease-out;
}

@keyframes smokeRise {
  0% {
    opacity: 0.8;
    transform: translateY(0) scale(1);
  }
  50% {
    opacity: 0.5;
    transform: translateY(-25px) translateX(8px) scale(2.5);
  }
  100% {
    opacity: 0;
    transform: translateY(-55px) translateX(-12px) scale(4);
  }
}

.candle-body {
  width: 18px;
  height: 60px;
  background: repeating-linear-gradient(
    45deg,
    #f59e0b,
    #f59e0b 8px,
    #d97706 8px,
    #d97706 16px
  );
  border-radius: 4px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.cake-body {
  width: 220px;
  height: 70px;
  background: linear-gradient(180deg, #475569 0%, #1e293b 100%);
  border-radius: 18px 18px 8px 8px;
  position: relative;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
  border-top: 4px solid #f59e0b;
  display: flex;
  align-items: center;
  justify-content: center;
}

[data-theme="parchment"] .cake-body {
  background: linear-gradient(180deg, #e2e8f0 0%, #cbd5e1 100%);
  border-top-color: #b45309;
}

.cake-icing {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 12px;
  background: #f8fafc;
  border-radius: 18px 18px 0 0;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.cake-label {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  color: var(--accent-gold-light);
  font-weight: 700;
  text-transform: uppercase;
}

.cake-plate {
  width: 270px;
  height: 14px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  margin-top: -6px;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

/* Birthday Toast Message */
.birthday-toast {
  display: none;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.15) 0%, rgba(234, 88, 12, 0.1) 100%);
  border: 1px solid var(--accent-gold);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  margin-top: 2rem;
  animation: slideToast 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.birthday-toast.show {
  display: block;
}

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

.toast-title {
  font-family: var(--font-serif-title);
  font-size: 1.45rem;
  color: var(--accent-gold-light);
  margin-bottom: 0.6rem;
}

.toast-p {
  font-family: var(--font-serif-body);
  font-size: 1.15rem;
  color: var(--text-main);
  line-height: 1.7;
}

/* ===================================================================
   SECTION: KEEPSAKE BOOKMARK
   =================================================================== */
.keepsake-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  gap: 2rem;
}

.bookmark-preview {
  width: 280px;
  height: 520px;
  background: #fdfaf3;
  color: #1e293b;
  border-radius: 6px;
  box-shadow: 0 16px 40px -10px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(0, 0, 0, 0.08);
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 2.2rem 1.6rem;
  border: 4px double #b45309;
}

.bookmark-tassel {
  position: absolute;
  top: -30px;
  left: 50%;
  transform: translateX(-50%);
  width: 14px;
  height: 38px;
  background: #b45309;
  border-radius: 4px 4px 0 0;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.bookmark-tassel::after {
  content: "";
  position: absolute;
  bottom: -15px;
  left: -4px;
  width: 22px;
  height: 18px;
  background: repeating-linear-gradient(90deg, #b45309, #b45309 2px, #d97706 2px, #d97706 4px);
  border-radius: 0 0 3px 3px;
}

.bookmark-header {
  text-align: center;
  border-bottom: 1px dashed #b45309;
  padding-bottom: 1rem;
}

.bookmark-group-name {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  color: #78350f;
  text-transform: uppercase;
  margin-bottom: 0.2rem;
}

.bookmark-recipient {
  font-family: var(--font-serif-title);
  font-size: 1.45rem;
  color: #1c1917;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.bookmark-body {
  text-align: center;
  padding: 1rem 0;
}

.bookmark-quote {
  font-family: var(--font-serif-body);
  font-size: 0.98rem;
  font-style: italic;
  line-height: 1.65;
  color: #292524;
  margin-bottom: 0.75rem;
}

.bookmark-source {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: #b45309;
  font-weight: 700;
  text-transform: uppercase;
}

.bookmark-footer {
  text-align: center;
  border-top: 1px dashed #b45309;
  padding-top: 1rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: #78716c;
}

.bookmark-year {
  font-weight: 700;
  color: #b45309;
  display: block;
  font-size: 0.85rem;
  margin-top: 0.2rem;
}

.keepsake-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.toast-pill {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(50px);
  background: var(--accent-gold);
  color: #0b0f19;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.6rem 1.4rem;
  border-radius: var(--radius-pill);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 9999;
}

.toast-pill.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ===================================================================
   MODAL: ADD A WISH
   =================================================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-dialog {
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  max-width: 520px;
  width: 100%;
  padding: 2.2rem;
  box-shadow: var(--shadow-warm);
  transform: translateY(20px);
  transition: transform 0.25s ease;
}

.modal-overlay.active .modal-dialog {
  transform: translateY(0);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 0.8rem;
}

.modal-title {
  font-family: var(--font-serif-title);
  font-size: 1.35rem;
  color: var(--text-main);
}

.modal-close-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
  padding: 0.2rem;
}

.modal-close-btn:hover {
  color: var(--text-main);
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--accent-gold-light);
  margin-bottom: 0.4rem;
  text-transform: uppercase;
}

.form-input, .form-textarea, .form-select {
  width: 100%;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  padding: 0.75rem 1rem;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  transition: var(--transition-smooth);
}

[data-theme="parchment"] .form-input,
[data-theme="parchment"] .form-textarea,
[data-theme="parchment"] .form-select {
  background: #ffffff;
}

.form-input:focus, .form-textarea:focus, .form-select:focus {
  outline: none;
  border-color: var(--accent-gold);
  box-shadow: 0 0 0 3px var(--accent-amber-glow);
}

.form-textarea {
  min-height: 110px;
  resize: vertical;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

/* ===================================================================
   FOOTER
   =================================================================== */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  padding: 4rem 0 3rem;
  margin-top: 5rem;
  text-align: center;
  background: rgba(0, 0, 0, 0.15);
}

.footer-quote {
  font-family: var(--font-serif-body);
  font-style: italic;
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 650px;
  margin: 0 auto 1.5rem;
}

.footer-signature {
  font-family: var(--font-serif-title);
  font-size: 1.1rem;
  color: var(--accent-gold-light);
  margin-bottom: 0.5rem;
}

.footer-sub {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-dim);
}

/* ===================================================================
   PRINT STYLESHEET (Optimized for bookmark cutout!)
   =================================================================== */
@media print {
  body {
    background: #ffffff !important;
    color: #000000 !important;
  }

  .top-nav,
  .hero-section,
  #saturday-circle,
  #pirsig-philosophy,
  #birthday-ritual,
  #wishes-board,
  .site-footer,
  .grain-overlay,
  #ambient-particles,
  .keepsake-actions,
  .toast-pill,
  .modal-overlay,
  .section-header,
  .section-eyebrow,
  .section-title,
  .section-desc {
    display: none !important;
  }

  #keepsake-bookmark {
    padding: 0 !important;
    margin: 0 auto !important;
    display: block !important;
  }

  .bookmark-preview {
    margin: 40px auto !important;
    box-shadow: none !important;
    border: 3px double #000 !important;
    background: #fff !important;
    page-break-inside: avoid;
  }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .nav-wrapper {
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
  }

  .letter-stamp {
    position: static;
    margin: 0 auto 1.5rem;
    transform: none;
  }

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