/* Legacy Odyssey Book Styles — Extracted from original HTML template */

:root {
  --cream: #F8F2E6;
  --ivory: #FFFCF5;
  --gold: #B8935A;
  --gold-light: #D4B483;
  --gold-dark: #8C6A35;
  --ink: #1E1812;
  --ink-mid: #4A3F32;
  --ink-light: #9C8B78;
  --sage: #7A9E7E;
  --rose: #C17F7F;
  --blush: #EDD9D0;
  --dusty-blue: #8BA7BC;
  --nav-width: 240px;
}

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

body {
  font-family: 'Jost', sans-serif;
  background: var(--cream);
  color: var(--ink);
  min-height: 100vh;
  overflow-x: hidden;
}

/* ===================== APP SHELL ===================== */
#app {
  min-height: 100vh;
}

/* ===================== SIDEBAR NAV ===================== */
#sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--nav-width);
  height: 100vh;
  background: var(--ink);
  z-index: 100;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  transition: transform 0.3s ease;
}

.sidebar-header {
  padding: 2rem 1.5rem 1.5rem;
  border-bottom: 1px solid rgba(184,147,90,0.2);
}

.sidebar-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

.sidebar-child-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.35rem;
  font-weight: 400;
  color: var(--cream);
  line-height: 1.2;
  font-style: italic;
}

.sidebar-tagline {
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-light);
  margin-top: 0.35rem;
}

.sidebar-nav {
  padding: 1rem 0;
  flex: 1;
}

.nav-section-label {
  font-size: 0.58rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(156,139,120,0.5);
  padding: 1rem 1.5rem 0.4rem;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 1.5rem;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
  text-decoration: none;
}

.nav-item:hover { background: rgba(184,147,90,0.08); }

.nav-item.active {
  background: rgba(184,147,90,0.12);
}

.nav-item.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--gold);
}

.nav-icon {
  font-size: 0.95rem;
  width: 20px;
  text-align: center;
  opacity: 0.8;
}

.nav-label {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: var(--ink-light);
  font-weight: 400;
  transition: color 0.2s;
}

.nav-item.active .nav-label,
.nav-item:hover .nav-label { color: var(--cream); }

.nav-item.locked .nav-label { color: rgba(156,139,120,0.4); }
.nav-item.locked .nav-icon { opacity: 0.3; }

.sidebar-footer {
  padding: 1.2rem 1.5rem;
  border-top: 1px solid rgba(184,147,90,0.15);
}

.sidebar-footer p {
  font-size: 0.62rem;
  color: rgba(156,139,120,0.4);
  letter-spacing: 0.05em;
  line-height: 1.6;
}

.sidebar-footer span { color: var(--gold); opacity: 0.6; }

/* ===================== MAIN CONTENT ===================== */
#main-content {
  margin-left: var(--nav-width);
  min-height: 100vh;
  transition: margin-left 0.3s;
}

.page-section {
  display: none;
  min-height: 100vh;
  animation: fadeIn 0.5s ease;
}

.page-section.active { display: block; }

/* ===================== MOBILE HEADER ===================== */
.mobile-header {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 56px;
  background: var(--ink);
  z-index: 200;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.2rem;
  border-bottom: 1px solid rgba(184,147,90,0.2);
}

.mobile-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem;
  color: var(--cream);
  font-style: italic;
}

.hamburger {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--gold);
  transition: all 0.3s;
}

/* ===================== PAGE STYLES ===================== */

/* --- WELCOME PAGE --- */
.welcome-hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  position: relative;
  overflow: hidden;
}

.welcome-photo-half {
  position: relative;
  background: var(--ink);
  overflow: hidden;
}

.welcome-photo-half img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.75;
  transition: opacity 0.5s;
}

.welcome-photo-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, transparent 60%, var(--cream) 100%);
}

.welcome-text-half {
  background: var(--cream);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 4rem 4rem 4rem 3rem;
  position: relative;
}

.welcome-eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.5rem;
}

.welcome-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.5rem, 4vw, 4rem);
  font-weight: 300;
  line-height: 1.1;
  color: var(--ink);
  margin-bottom: 0.75rem;
}

.welcome-name em {
  font-style: italic;
  color: var(--gold-dark);
}

.welcome-meaning {
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  color: var(--ink-light);
  font-style: italic;
  margin-bottom: 2rem;
}

.welcome-divider {
  width: 50px;
  height: 1px;
  background: var(--gold);
  margin-bottom: 2rem;
}

.vital-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
  margin-bottom: 2.5rem;
}

.stat-label {
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-light);
  margin-bottom: 0.25rem;
}

.stat-value {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--ink);
}

.welcome-quote {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.25rem;
  font-style: italic;
  color: var(--ink-mid);
  line-height: 1.6;
  border-left: 2px solid var(--gold);
  padding-left: 1.25rem;
}

.welcome-quote cite {
  display: block;
  font-style: normal;
  font-family: 'Jost', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-light);
  margin-top: 0.75rem;
}

/* --- GENERAL PAGE LAYOUT --- */
.page-header {
  background: var(--ink);
  padding: 4rem 4rem 3rem;
  position: relative;
  overflow: hidden;
}

.page-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold), transparent);
}

.page-header-eyebrow {
  font-size: 0.68rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}

.page-header-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 300;
  color: var(--cream);
  line-height: 1.1;
}

.page-header-title em { font-style: italic; color: var(--gold-light); }

.page-header-sub {
  font-size: 0.82rem;
  color: var(--ink-light);
  margin-top: 0.75rem;
  letter-spacing: 0.05em;
  line-height: 1.6;
}

.page-body {
  padding: 3rem 4rem;
  max-width: 900px;
}

/* --- BEFORE YOU ARRIVED --- */
.before-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
}

.before-card {
  background: var(--ivory);
  border: 1px solid rgba(184,147,90,0.2);
  border-radius: 2px;
  overflow: hidden;
}

.before-card-photo {
  height: 220px;
  background: var(--blush);
  overflow: hidden;
  position: relative;
}

.before-card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.before-card-photo .photo-label {
  position: absolute;
  bottom: 0.75rem;
  left: 0.75rem;
  background: rgba(30,24,18,0.7);
  color: var(--cream);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.3rem 0.6rem;
  border-radius: 1px;
}

.before-card-body {
  padding: 1.5rem;
}

.before-card-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 0.6rem;
}

.before-card-text {
  font-size: 0.85rem;
  line-height: 1.8;
  color: var(--ink-mid);
}

.checklist {
  background: var(--ivory);
  border: 1px solid rgba(184,147,90,0.2);
  border-radius: 2px;
  padding: 2rem;
  margin-bottom: 2rem;
}

.checklist-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem;
  margin-bottom: 1.25rem;
  color: var(--ink);
}

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

.check-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.8rem;
  color: var(--ink-mid);
}

.check-icon {
  width: 16px;
  height: 16px;
  border: 1.5px solid var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6rem;
  color: var(--gold);
  flex-shrink: 0;
}

/* --- BIRTH STORY --- */
.birth-stats-bar {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  background: var(--ink);
  border-bottom: 1px solid rgba(184,147,90,0.2);
}

.birth-stat {
  padding: 1.5rem 1.2rem;
  text-align: center;
  border-right: 1px solid rgba(184,147,90,0.15);
}

.birth-stat:last-child { border-right: none; }

.birth-stat-label {
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-light);
  margin-bottom: 0.4rem;
}

.birth-stat-value {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  color: var(--gold-light);
}

.birth-perspectives {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.perspective {
  padding: 3rem;
  position: relative;
}

.perspective:first-child {
  background: var(--ivory);
  border-right: 1px solid rgba(184,147,90,0.2);
}

.perspective:last-child { background: var(--cream); }

.perspective-who {
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}

.perspective-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.8rem;
  font-weight: 300;
  color: var(--ink);
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.perspective-text {
  font-size: 0.88rem;
  line-height: 1.9;
  color: var(--ink-mid);
}

.perspective-photo {
  margin-top: 2rem;
  height: 250px;
  border-radius: 2px;
  overflow: hidden;
}

.perspective-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* --- MONTHS --- */
.months-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  padding: 3rem 4rem;
}

.month-card {
  background: var(--ivory);
  border: 1px solid rgba(184,147,90,0.2);
  border-radius: 2px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.25s;
}

.month-card:hover {
  border-color: var(--gold);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(30,24,18,0.1);
}

.month-card.active {
  border-color: var(--gold);
  box-shadow: 0 0 0 2px rgba(184,147,90,0.3);
}

.month-photo {
  height: 160px;
  background: var(--blush);
  overflow: hidden;
  position: relative;
}

.month-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}

.month-card:hover .month-photo img { transform: scale(1.04); }

.month-number-badge {
  position: absolute;
  top: 0.6rem;
  left: 0.6rem;
  background: var(--ink);
  color: var(--gold-light);
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem;
  padding: 0.2rem 0.5rem;
  border-radius: 1px;
}

.month-card-body {
  padding: 1rem;
}

.month-label {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.25rem;
}

.month-highlight {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem;
  color: var(--ink);
  line-height: 1.4;
}

.month-stats {
  display: flex;
  gap: 1rem;
  margin-top: 0.5rem;
}

.month-stat-sm {
  font-size: 0.68rem;
  color: var(--ink-light);
}

/* Month Detail Modal */
.month-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(30,24,18,0.85);
  backdrop-filter: blur(4px);
  align-items: center;
  justify-content: center;
}

.month-modal.open { display: flex; }

.month-modal-inner {
  background: var(--ivory);
  max-width: 640px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  border-radius: 2px;
  animation: fadeUp 0.3s ease;
}

.month-modal-photo {
  height: 300px;
  overflow: hidden;
}

.month-modal-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.month-modal-body {
  padding: 2rem;
}

.month-modal-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2rem;
  font-weight: 300;
  color: var(--ink);
  margin-bottom: 0.5rem;
}

.month-modal-stats {
  display: flex;
  gap: 2rem;
  padding: 1rem 0;
  border-top: 1px solid rgba(184,147,90,0.2);
  border-bottom: 1px solid rgba(184,147,90,0.2);
  margin: 1rem 0;
}

.month-modal-stat-label {
  font-size: 0.62rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-light);
}

.month-modal-stat-value {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  color: var(--gold-dark);
}

.month-modal-text {
  font-size: 0.88rem;
  line-height: 1.9;
  color: var(--ink-mid);
}

.month-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  color: var(--cream);
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
  padding: 0.25rem;
}

/* --- FAMILY PAGE --- */
.family-intro {
  padding: 3rem 4rem 1rem;
}

.family-tree-label {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.8rem;
  font-weight: 300;
  color: var(--ink);
  margin-bottom: 0.75rem;
}

.family-tree-sub {
  font-size: 0.85rem;
  color: var(--ink-light);
  line-height: 1.7;
  max-width: 540px;
}

.family-section-title {
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  padding: 0 4rem;
  margin: 2rem 0 1.2rem;
}

.family-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  padding: 0 4rem 3rem;
}

.family-card {
  background: var(--ivory);
  border: 1px solid rgba(184,147,90,0.2);
  border-radius: 2px;
  overflow: hidden;
  transition: all 0.25s;
  cursor: pointer;
}

.family-card:hover {
  border-color: var(--gold);
  transform: translateY(-2px);
}

.family-photo {
  height: 260px;
  background: var(--blush);
  overflow: hidden;
}

.family-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
}

.family-photo.placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}

.family-card-body {
  padding: 1.25rem;
}

.family-card-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 0.2rem;
}

.family-card-relation {
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}

.family-card-bio {
  font-size: 0.8rem;
  line-height: 1.75;
  color: var(--ink-mid);
}

/* --- FIRSTS PAGE --- */
.firsts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
  padding: 3rem 4rem;
}

.first-card {
  background: var(--ivory);
  border: 1px solid rgba(184,147,90,0.15);
  border-radius: 2px;
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
  transition: border-color 0.2s;
}

.first-card:hover { border-color: rgba(184,147,90,0.5); }

.first-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: var(--gold);
  opacity: 0.4;
}

.first-emoji { font-size: 1.8rem; margin-bottom: 0.75rem; }

.first-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 0.4rem;
}

.first-date {
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

.first-note {
  font-size: 0.8rem;
  line-height: 1.7;
  color: var(--ink-mid);
}

/* --- HOLIDAYS PAGE --- */
.holidays-list {
  padding: 3rem 4rem;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.holiday-card {
  display: grid;
  grid-template-columns: 300px 1fr;
  background: var(--ivory);
  border: 1px solid rgba(184,147,90,0.2);
  border-radius: 2px;
  overflow: hidden;
}

.holiday-card.reverse { grid-template-columns: 1fr 300px; }

.holiday-photo {
  height: 260px;
  background: var(--blush);
  overflow: hidden;
}

.holiday-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.holiday-card.reverse .holiday-photo { order: 2; }

.holiday-body {
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.holiday-eyebrow {
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}

.holiday-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.8rem;
  font-weight: 300;
  color: var(--ink);
  margin-bottom: 1rem;
  line-height: 1.2;
}

.holiday-text {
  font-size: 0.85rem;
  line-height: 1.85;
  color: var(--ink-mid);
}

/* --- LETTERS PAGE --- */
.letters-container {
  padding: 3rem 4rem;
}

.letter-card {
  background: var(--ivory);
  border: 1px solid rgba(184,147,90,0.2);
  border-radius: 2px;
  padding: 3rem;
  margin-bottom: 2rem;
  position: relative;
}

.letter-card::before {
  content: '\201C';
  position: absolute;
  top: 1rem;
  left: 2rem;
  font-family: 'Cormorant Garamond', serif;
  font-size: 5rem;
  color: var(--gold);
  opacity: 0.15;
  line-height: 1;
}

.letter-from {
  font-size: 0.68rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.25rem;
}

.letter-salutation {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  font-style: italic;
  color: var(--ink);
  margin-bottom: 1.25rem;
}

.letter-body {
  font-size: 0.9rem;
  line-height: 2;
  color: var(--ink-mid);
}

.letter-signature {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem;
  font-style: italic;
  color: var(--ink-mid);
  margin-top: 1.5rem;
}

.letter-date {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--ink-light);
  margin-top: 0.25rem;
}

/* --- RECIPES PAGE --- */
.recipes-intro {
  padding: 3rem 4rem 1rem;
}

.recipes-intro-text {
  font-size: 0.88rem;
  line-height: 1.9;
  color: var(--ink-mid);
  max-width: 600px;
}

.recipe-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  padding: 0 4rem 3rem;
}

.recipe-card {
  background: var(--ivory);
  border: 1px solid rgba(184,147,90,0.2);
  border-radius: 2px;
  overflow: hidden;
}

.recipe-photo {
  height: 200px;
  background: var(--blush);
  overflow: hidden;
}

.recipe-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.recipe-body {
  padding: 1.75rem;
}

.recipe-from {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

.recipe-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 0.75rem;
}

.recipe-desc {
  font-size: 0.82rem;
  line-height: 1.8;
  color: var(--ink-mid);
  margin-bottom: 1.25rem;
}

.recipe-ingredients {
  border-top: 1px solid rgba(184,147,90,0.2);
  padding-top: 1rem;
}

.recipe-ing-title {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-light);
  margin-bottom: 0.6rem;
}

.recipe-ing-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.recipe-ing-list li {
  font-size: 0.75rem;
  background: var(--blush);
  padding: 0.2rem 0.6rem;
  border-radius: 1px;
  color: var(--ink-mid);
}

/* --- FAMILY MEMBER DETAIL --- */
#family-detail {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 400;
  background: var(--cream);
  overflow-y: auto;
  animation: fadeIn 0.35s ease;
}

#family-detail.open { display: block; }

.fdetail-hero {
  position: relative;
  height: 420px;
  background: var(--ink);
  overflow: hidden;
}

#fdetail-img-wrap {
  position: absolute;
  inset: 0;
}

.fdetail-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
  opacity: 0.65;
}

.fdetail-hero-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 8rem;
  opacity: 0.25;
}

.fdetail-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--ink) 0%, transparent 60%);
}

.fdetail-hero-text {
  position: absolute;
  bottom: 2.5rem;
  left: 4rem;
}

.fdetail-relation {
  font-size: 0.68rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

.fdetail-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 300;
  color: var(--cream);
  line-height: 1.1;
}

.fdetail-name em { font-style: italic; color: var(--gold-light); }

.fdetail-back {
  position: absolute;
  top: 1.5rem;
  left: 2rem;
  background: rgba(30,24,18,0.6);
  border: 1px solid rgba(184,147,90,0.3);
  color: var(--gold-light);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 0.6rem 1rem;
  cursor: pointer;
  border-radius: 2px;
  transition: all 0.2s;
  backdrop-filter: blur(4px);
}

.fdetail-back:hover { background: var(--gold); color: var(--ink); }

.fdetail-body {
  max-width: 800px;
  margin: 0 auto;
  padding: 3rem 4rem;
}

.fdetail-meta {
  display: flex;
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(184,147,90,0.2);
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.fdetail-meta-label {
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-light);
  margin-bottom: 0.25rem;
}

.fdetail-meta-value {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.05rem;
  color: var(--ink);
}

.fdetail-story-label {
  font-size: 0.68rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}

.fdetail-story {
  font-size: 0.92rem;
  line-height: 2;
  color: var(--ink-mid);
  margin-bottom: 2rem;
}

.fdetail-quote {
  background: var(--ivory);
  border-left: 3px solid var(--gold);
  padding: 1.5rem 2rem;
  margin: 2rem 0;
  border-radius: 0 2px 2px 0;
}

.fdetail-quote p {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.25rem;
  font-style: italic;
  color: var(--ink-mid);
  line-height: 1.7;
}

.fdetail-quote cite {
  display: block;
  font-family: 'Jost', sans-serif;
  font-style: normal;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-light);
  margin-top: 0.75rem;
}

.fdetail-photos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}

.fdetail-photo-item {
  aspect-ratio: 1;
  border-radius: 2px;
  overflow: hidden;
  background: var(--blush);
}

.fdetail-photo-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.fdetail-photo-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  opacity: 0.4;
}

/* --- VAULT PAGE --- */
.vault-page {
  min-height: 100vh;
  background: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem;
  position: relative;
  overflow: hidden;
}

.vault-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.08;
}

.vault-content {
  position: relative;
  text-align: center;
  max-width: 540px;
}

.vault-icon {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  opacity: 0.6;
}

.vault-eyebrow {
  font-size: 0.68rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.25rem;
}

.vault-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 300;
  color: var(--cream);
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

.vault-title em { font-style: italic; color: var(--gold-light); }

.vault-text {
  font-size: 0.88rem;
  line-height: 1.9;
  color: var(--ink-light);
  margin-bottom: 2.5rem;
}

.vault-countdown {
  background: rgba(255,252,245,0.04);
  border: 1px solid rgba(184,147,90,0.25);
  border-radius: 2px;
  padding: 2rem;
  margin-bottom: 2rem;
}

.vault-countdown-label {
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--ink-light);
  margin-bottom: 1.25rem;
}

.countdown-digits {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
}

.countdown-unit { text-align: center; }

.countdown-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.5rem;
  color: var(--gold-light);
  line-height: 1;
  display: block;
}

.countdown-unit-label {
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-light);
  margin-top: 0.35rem;
}

.vault-seal {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(156,139,120,0.5);
}

/* ===================== IMAGE LIGHTBOX ===================== */
.book-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(8px);
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
  animation: fadeIn 0.2s ease;
}

.book-lightbox.open {
  display: flex;
}

.book-lightbox img {
  max-width: 92vw;
  max-height: 92vh;
  object-fit: contain;
  border-radius: 2px;
  box-shadow: 0 8px 48px rgba(0, 0, 0, 0.5);
  cursor: default;
}

.book-lightbox-close {
  position: absolute;
  top: 1.25rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.8);
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
  padding: 0.5rem;
  transition: color 0.2s;
  z-index: 1001;
}

.book-lightbox-close:hover {
  color: #fff;
}

/* Make book images clickable for lightbox */
.before-card-photo img,
.perspective-photo img,
.month-modal-photo img,
.holiday-photo img,
.recipe-photo img,
.fdetail-photo-item img {
  cursor: zoom-in;
}

/* ===================== ANIMATIONS ===================== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 900px) {
  :root { --nav-width: 0px; }

  #sidebar {
    transform: translateX(-240px);
    width: 240px;
  }

  #sidebar.open {
    transform: translateX(0);
  }

  #main-content { margin-left: 0; padding-top: 56px; }

  .mobile-header { display: flex; }

  .welcome-hero { grid-template-columns: 1fr; }
  .welcome-photo-half { height: 280px; }
  .welcome-text-half { padding: 2rem; }
  .welcome-photo-overlay { background: linear-gradient(to bottom, transparent 60%, var(--cream) 100%); }

  .page-header { padding: 2rem; }
  .page-body { padding: 2rem; }
  .birth-stats-bar { grid-template-columns: repeat(3, 1fr); }
  .birth-perspectives { grid-template-columns: 1fr; }
  .months-grid { grid-template-columns: repeat(2, 1fr); padding: 2rem; }
  .before-grid { grid-template-columns: 1fr; }
  .family-cards { grid-template-columns: repeat(2, 1fr); padding: 0 2rem 2rem; }
  .family-section-title { padding: 0 2rem; }
  .firsts-grid { grid-template-columns: repeat(2, 1fr); padding: 2rem; }
  .holidays-list { padding: 2rem; }
  .holiday-card { grid-template-columns: 1fr; }
  .holiday-card.reverse { grid-template-columns: 1fr; }
  .holiday-card.reverse .holiday-photo { order: 0; }
  .letters-container { padding: 2rem; }
  .recipes-intro { padding: 2rem 2rem 1rem; }
  .recipe-cards { grid-template-columns: 1fr; padding: 0 2rem 2rem; }
  .checklist-grid { grid-template-columns: repeat(2, 1fr); }
  .family-intro { padding: 2rem 2rem 1rem; }
  .vault-page { padding: 2rem; }

  .fdetail-hero { height: 320px; }
  .fdetail-hero-text { left: 1.5rem; bottom: 1.5rem; }
  .fdetail-body { padding: 2rem; }
  .fdetail-photos { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .vital-stats { grid-template-columns: 1fr 1fr; }
  .birth-stats-bar { grid-template-columns: repeat(2, 1fr); }
  .family-cards { grid-template-columns: 1fr; }
  .firsts-grid { grid-template-columns: 1fr; }
  .checklist-grid { grid-template-columns: 1fr; }
  .months-grid { grid-template-columns: 1fr 1fr; }
  .countdown-digits { gap: 1rem; }
}

/* Overlay for mobile nav */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 99;
}

.nav-overlay.open { display: block; }
