/* ============================================================
   FEIG FAMILY ARCHIVE — Shared profile page styles
   ============================================================
   Used by every /p/<slug>.html generated by tools/build_profile.py.
   
   Generated from Bobby preview's inline CSS, v5.06 → v5.07.
   Maintain by editing this file directly; do not regenerate.
   ============================================================ */

:root {
  --paper: #FBF7EC; --paper-light: #FFFFFF; --paper-section: #F6F0E0;
  --paper-shadow: #EFE5CB;
  --ink: #1F1A14; --ink-soft: #4F4234; --ink-fade: #8C7D66;
  --maroon: #8A322A; --maroon-dark: #6B231B; --maroon-soft: #A8564D;
  --gold: #AE8636; --gold-soft: #D1AB5F;
  --rule: #D4C3A0; --rule-soft: #E8DCBF;
  --memoriam: #8A322A; --living: #567E42;
  --sepia-shadow: rgba(31, 26, 20, 0.08);
}
* { box-sizing: border-box; margin: 0; padding: 0; }

/* ============ PAPER GRAIN — subtle ink/paper texture on the whole page ============
   An SVG turbulence noise filter rendered to a fixed background. ~3% opacity.
   The single biggest "this is printed" signal. */


/* Old-style figures on dates & numbers throughout — proper print typography */
body {
  font-feature-settings: "onum" 1, "kern" 1, "liga" 1, "calt" 1;
}

/* ============ HEBREW TYPOGRAPHY — real Hebrew faces instead of Lora's fallback ============
   Frank Ruhl Libre is the modern descendant of the classic Hebrew newspaper face;
   David Libre is the formal display face used for memorial and sacred contexts.
   Both fonts have Latin glyphs but we want them used only for Hebrew, so we
   apply via :lang(he) and direct dir="rtl" selectors. */
[lang="he"], [dir="rtl"],
.hero-hebrew,
.matz-hebrew, .bmi-grid [dir="rtl"] {
  font-family: 'Frank Ruhl Libre', 'David Libre', 'Lora', serif;
  font-feature-settings: "kern" 1, "calt" 1;
  letter-spacing: 0;
}
/* Display Hebrew (the big sacred-name moments) gets David Libre */
.hero-hebrew, .hebrew-display {
  font-family: 'David Libre', 'Frank Ruhl Libre', serif;
  font-weight: 500;
}

/* ============ PHOTOGRAPHY SEPIA UNIFICATION ============
   All portraits get a unified warm-sepia treatment. Different source images
   currently range from grayscale to cool to neutral — this brings them into
   one visual world. Excludes the memorial-panel close-ups (raw documentary). */
.person-portrait img,
.hero-portrait img,
.bobby-redesign-portrait img {
  filter: sepia(0.35) saturate(0.85) contrast(1.02) brightness(1.01);
  transition: filter 0.6s ease, transform 700ms cubic-bezier(.21,.62,.41,1);
}
.person-tile:hover .person-portrait img {
  filter: sepia(0.20) saturate(0.95) contrast(1.04) brightness(1.03);
}

/* ============ DROP CAPS — illuminated initials on chapter openings ============
   First letter of each chapter's first paragraph becomes a 3.5em ornament. */

/* Subtle gold underline beneath the drop cap, like a printer's flourish */
.story-inner .chapter-head + p {
  position: relative;
}


/* Drop the float on mobile so it doesn't break tight columns */
@media (max-width: 500px) {
  
}

body {
  font-family: 'Lora', Georgia, serif;
  color: var(--ink); background: var(--paper);
  line-height: 1.6; font-size: 16.5px;
  -webkit-font-smoothing: antialiased;
}

/* ============ PREVIEW NOTICE ============ */





/* ============ BREADCRUMB ============ */
.crumbs {
  max-width: 820px; margin: 0 auto;
  padding: 18px 22px 0;
  font-family: 'Cormorant SC', serif; font-size: 11px;
  letter-spacing: 2px; color: var(--ink-fade);
}
.crumbs a {
  color: var(--maroon); text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 150ms ease;
}
.crumbs a:hover { border-bottom-color: var(--maroon-soft); }
.crumbs .sep { color: var(--gold); margin: 0 8px; }

/* ============ READING PROGRESS BAR — fixed at top, fills as you scroll ============ */



/* ============ END-PAPER / COLOPHON at bottom of page ============ */
.colophon {
  background: var(--paper-section);
  padding: 60px 22px 48px;
  border-top: 1px solid var(--rule);
  position: relative;
}
.colophon-inner {
  max-width: 620px; margin: 0 auto;
  text-align: center;
}
.colophon-seal {
  width: 48px; height: 48px;
  margin: 0 auto 24px;
  border-radius: 50%;
  border: 1.5px solid var(--gold);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  color: var(--maroon);
  font-size: 22px;
  letter-spacing: -0.02em;
  position: relative;
  background: var(--paper);
  box-shadow: 0 0 0 4px var(--paper-section), 0 0 0 5px rgba(174,134,54,0.25);
}
.colophon-seal::before {
  content: '';
  position: absolute; inset: -2px;
  border: 1px dashed var(--gold);
  border-radius: 50%;
  opacity: 0.5;
}
.colophon-text {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--ink-soft);
  margin-bottom: 16px;
}
.colophon-text strong {
  font-style: normal; font-weight: 500;
  color: var(--ink);
}
.colophon-sources {
  font-family: 'Cormorant SC', serif;
  font-size: 9.5px;
  letter-spacing: 2.2px;
  color: var(--ink-fade);
  margin-top: 20px;
  line-height: 1.8;
}
.colophon-sources span { color: var(--gold); margin: 0 6px; }

/* ============ SCROLL-DRIVEN DARKENING — at the 1944 rupture chapter ============
   The chapter II ("The rupture — May 1944") gets a subtly darker background
   tint when scrolled into view. CSS-only animation timeline (modern browsers)
   with fallback to standard styling on older. */
@supports (animation-timeline: view()) {
  .story-section .rupture-zone {
    background: var(--paper-light);
    animation: rupture-darken linear;
    animation-timeline: view();
    animation-range: entry 30% cover 50%;
  }
  @keyframes rupture-darken {
    0%   { background: var(--paper-light); }
    100% { background: #F4ECDF; }
  }
}

/* ============ MARGINALIA — small side notes on desktop, inline on mobile ============ */
.story-inner {
  position: relative;
}
/* Paragraphs containing marginalia become positioning contexts */
.story-inner p:has(.marginalia) {
  position: relative;
}
.marginalia {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-fade);
}
@media (min-width: 1100px) {
  .marginalia {
    position: absolute;
    top: 4px;
    right: -210px;
    width: 180px;
    padding-left: 14px;
    border-left: 1px solid var(--rule);
  }
  .marginalia[data-side="left"] {
    right: auto;
    left: -210px;
    border-left: none;
    border-right: 1px solid var(--rule);
    padding-left: 0; padding-right: 14px;
    text-align: right;
  }
}
@media (max-width: 1099px) {
  .marginalia {
    display: block;
    margin: 16px 0;
    padding: 10px 14px;
    background: rgba(174, 134, 54, 0.05);
    border-left: 2px solid var(--gold);
  }
}

/* ============ SMART PULL-QUOTES — light parallax on scroll ============
   Pullquotes gently shift opacity/transform as they enter the viewport. */
@supports (animation-timeline: view()) {
  .pullquote {
    opacity: 0.55;
    transform: translateY(8px);
    animation: pq-in linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 80%;
  }
  @keyframes pq-in {
    to { opacity: 1; transform: translateY(0); }
  }
}

/* ============ YEAR SCRUBBER ============
   A horizontal timeline scrubber below the family-math.
   Drag the dot, the page shows what year you're reading about. */
.year-scrub {
  background: var(--paper);
  padding: 8px 22px 50px;
}
.year-scrub-inner {
  max-width: 640px; margin: 0 auto;
  text-align: center;
}
.year-scrub-label {
  font-family: 'Cormorant SC', serif;
  font-size: 10.5px;
  letter-spacing: 3px;
  color: var(--gold);
  margin-bottom: 18px;
  font-weight: 600;
}
.year-scrub-display {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(28px, 4vw, 38px);
  color: var(--maroon);
  font-weight: 500;
  margin-bottom: 4px;
  letter-spacing: -0.01em;
  font-feature-settings: "onum" 1;
}
.year-scrub-age {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 17px;
  color: var(--ink-soft);
  margin-bottom: 2px;
  min-height: 24px;
  transition: opacity 0.25s ease;
}
.year-scrub-where {
  font-family: 'Cormorant Garamond', serif;
  font-size: 15px;
  color: var(--ink);
  margin-bottom: 20px;
  min-height: 22px;
  transition: opacity 0.25s ease;
}
.year-scrub-bar {
  position: relative;
  height: 38px;
  margin: 0 12px;
}
.year-scrub-rail {
  position: absolute;
  top: 50%; left: 0; right: 0;
  height: 2px;
  background: var(--rule);
  transform: translateY(-50%);
  border-radius: 1px;
}
.year-scrub-rail-fill {
  position: absolute;
  top: 0; left: 0; height: 100%;
  background: linear-gradient(90deg, var(--gold), var(--maroon));
  width: 0%;
  border-radius: 1px;
}
.year-scrub-tick {
  position: absolute;
  top: 50%;
  width: 8px; height: 8px;
  background: var(--rule);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.year-scrub-tick.is-rupture { background: var(--maroon); width: 12px; height: 12px; }
.year-scrub-tick-label {
  position: absolute;
  top: calc(100% + 6px); left: 50%;
  transform: translateX(-50%);
  font-family: 'Cormorant SC', serif;
  font-size: 8.5px;
  letter-spacing: 1.5px;
  color: var(--ink-fade);
  white-space: nowrap;
  pointer-events: none;
}
.year-scrub-handle {
  position: absolute;
  top: 50%; left: 0;
  width: 22px; height: 22px;
  background: var(--paper-light);
  border: 3px solid var(--maroon);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  cursor: grab;
  box-shadow: 0 4px 10px rgba(31,26,20,0.18);
  z-index: 2;
  transition: transform 0.1s ease, box-shadow 0.2s ease;
  font-feature-settings: "onum" 1;
}
.year-scrub-handle:hover {
  box-shadow: 0 4px 14px rgba(138, 50, 42, 0.4);
}
.year-scrub-handle:active { cursor: grabbing; }
.year-scrub-input {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  opacity: 0;
  cursor: grab;
  z-index: 3;
}
.year-scrub-input:active { cursor: grabbing; }

/* ============ HERO — magazine-cover treatment ============
   Bigger portrait, larger Hebrew name in David Libre as the visual centerpiece,
   dates as a printed dedication. Feels like opening a book. */
.hero {
  background: var(--paper-section);
  padding: 70px 22px 70px;
  text-align: center;
  border-bottom: 1px solid var(--rule-soft);
  position: relative;
  overflow: hidden;
}
/* Subtle warm radial glow centered on the portrait */
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 50% 60% at 50% 35%,
    rgba(174, 134, 54, 0.10), transparent 60%);
  pointer-events: none;
}
.hero > * { position: relative; z-index: 1; }

.hero-eyebrow {
  font-family: 'Cormorant SC', serif;
  font-size: 10.5px; letter-spacing: 4px;
  color: var(--gold);
  margin-bottom: 24px;
  font-weight: 600;
}

.hero-portrait {
  width: 200px; height: 200px; border-radius: 50%;
  margin: 0 auto 28px;
  overflow: hidden;
  border: 5px solid var(--paper-light);
  box-shadow:
    0 0 0 2px var(--gold),
    0 0 0 10px rgba(174, 134, 54, 0.10),
    0 18px 42px rgba(31, 26, 20, 0.20);
  background: var(--paper-light);
  position: relative;
}
.hero-portrait img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}

/* When the portrait is just initials (no image), center them in the circle */
.hero-portrait.is-initials {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  font-size: 64px;
  color: var(--ink-soft);
  letter-spacing: 0.04em;
  background: linear-gradient(160deg, var(--paper-light) 0%, var(--paper) 100%);
  /* a subtle inner ring so the empty circle still feels deliberate */
}

.hero h1 {
  font-family: 'Cormorant Garamond', serif; font-weight: 500;
  font-size: clamp(38px, 6vw, 56px);
  color: var(--ink); line-height: 1.0;
  margin-bottom: 16px;
  letter-spacing: -0.012em;
}

.hero-hebrew {
  font-family: 'David Libre', 'Frank Ruhl Libre', serif;
  font-weight: 500;
  font-size: clamp(26px, 3.4vw, 34px);
  color: var(--maroon);
  margin-bottom: 30px;
  direction: rtl;
  line-height: 1.4;
  letter-spacing: 0;
}

.hero-dates {
  display: inline-flex; flex-direction: column; align-items: center;
  gap: 14px;
  font-family: 'Cormorant Garamond', serif;
  color: var(--ink);
  font-variant-numeric: oldstyle-nums;
  margin: 0 auto;
}
.hero-dates .date-line {
  display: flex;
  align-items: baseline;
  gap: 14px;
  justify-content: center;
}
.hero-dates .date-label {
  font-family: 'Cormorant SC', serif;
  font-size: 10.5px;
  letter-spacing: 3.5px;
  color: var(--gold);
  font-weight: 600;
  min-width: 56px;
  text-align: right;
}
.hero-dates .date-value {
  font-family: 'Cormorant Garamond', serif;
  font-size: 17.5px;
  color: var(--ink);
  letter-spacing: 0;
  font-weight: 400;
}
.hero-dates .date-value .place {
  color: var(--ink-soft);
  font-style: italic;
}
.hero-dates .date-value .heb {
  font-family: 'David Libre', 'Frank Ruhl Libre', serif;
  color: var(--maroon);
  font-style: normal;
  margin-left: 6px;
}
.hero-dates .sep {
  color: var(--gold); font-size: 13px; letter-spacing: 0;
  opacity: 0.8;
}

@media (max-width: 520px) {
  .hero-dates .date-line { flex-direction: column; gap: 2px; }
  .hero-dates .date-label { text-align: center; min-width: 0; }
}

.hero-badge {
  display: inline-block; margin-top: 22px;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic; font-size: 14px;
  color: var(--ink-fade);
  background: none;
  padding: 0;
  border: none;
  letter-spacing: 0;
  text-transform: none;
}
.hero-badge::before {
  content: '— '; color: var(--gold); margin-right: 4px;
}
.hero-badge::after {
  content: ' —'; color: var(--gold); margin-left: 4px;
}

/* ============ WARM INTRO (Option A) ============ */
.warm-intro {
  background: var(--paper-light);
  padding: 48px 22px 52px;
  border-bottom: 1px solid var(--rule-soft);
}
.warm-intro-inner {
  max-width: 680px; margin: 0 auto;
  font-family: 'Cormorant Garamond', serif;
  color: var(--ink);
}
.warm-intro-opener {
  font-size: clamp(23px, 3.2vw, 30px);
  font-style: italic; color: var(--maroon);
  line-height: 1.35; margin-bottom: 26px;
  text-align: center;
}
.warm-intro-inner p:not(.warm-intro-opener) {
  font-size: 19.5px; line-height: 1.68;
  margin-bottom: 18px; color: var(--ink);
}
.warm-intro-inner p strong { font-weight: 600; color: var(--maroon); }
.warm-intro-inner p:last-child { margin-bottom: 0; }
@media (max-width: 600px) {
  .warm-intro { padding: 36px 20px 40px; }
  .warm-intro-inner p:not(.warm-intro-opener) { font-size: 17.5px; }
}

/* ============ FACT PANELS ============ */
.fact-panels {
  background: var(--paper);
  padding: 56px 22px 48px;
}
.fact-panels-inner {
  max-width: 920px; margin: 0 auto;
}
.fact-panels-head {
  text-align: center; margin-bottom: 36px;
}
.section-eyebrow {
  font-family: 'Cormorant SC', serif; font-size: 11px;
  letter-spacing: 3px; color: var(--gold);
  margin-bottom: 10px;
}
.section-title {
  font-family: 'Cormorant Garamond', serif; font-weight: 500;
  font-size: clamp(24px, 3.2vw, 30px); color: var(--ink);
  margin-bottom: 8px;
}
.section-sub {
  font-family: 'Cormorant Garamond', serif; font-style: italic;
  font-size: 16px; color: var(--ink-soft);
  max-width: 560px; margin: 0 auto;
}

/* ============ FACT PANELS (v5.07: lighter chrome) ============ */
.fact-panel {
  background: var(--paper-light);
  border: 1px solid var(--rule-soft);
  margin-bottom: 28px;
  box-shadow: 0 1px 6px rgba(31, 26, 20, 0.04);
  border-radius: 2px;
}
/* Header: quiet eyebrow inline above the rows. No background band. */
.fact-panel-head {
  padding: 18px 24px 4px;
  display: flex;
  align-items: baseline;
  gap: 10px;
  border-bottom: none;
  background: transparent;
}
.fact-panel-head .glyph {
  display: none;
}
.fact-panel-head .title {
  font-family: 'Cormorant SC', serif;
  font-size: 11px;
  letter-spacing: 3px;
  color: var(--gold);
  font-weight: 600;
  text-transform: uppercase;
}
.fact-panel-head::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--rule-soft);
  align-self: center;
  margin-left: 4px;
}
.fact-panel-body {
  padding: 6px 24px 20px;
  display: grid;
  grid-template-columns: 1fr;
}
@media (min-width: 680px) {
  .fact-panel-body { grid-template-columns: 1fr 1fr; column-gap: 36px; }
}
.fact-row {
  padding: 13px 0;
  border-bottom: 1px solid var(--rule-soft);
  position: relative;
}
.fact-row:last-child { border-bottom: none; }
@media (min-width: 680px) {
  /* On 2-col, the last row in each column also drops its border */
  .fact-row:nth-last-child(-n+2):nth-child(even),
  .fact-row:nth-last-child(1) { border-bottom: none; }
}
.fact-row .label {
  font-family: 'Cormorant SC', serif;
  font-size: 9.5px;
  letter-spacing: 2.2px;
  color: var(--ink-fade);
  margin-bottom: 5px;
  text-transform: uppercase;
  font-weight: 500;
}
.fact-row .value {
  font-family: 'Cormorant Garamond', serif;
  font-size: 17px;
  color: var(--ink);
  line-height: 1.45;
  font-weight: 500;
}
.fact-row .value em {
  font-style: italic;
  color: var(--ink-soft);
  font-weight: 400;
  font-size: 0.95em;
}
/* Empty rows: read as "research target" not "missing fact" */
.fact-row.is-empty {
  background:
    repeating-linear-gradient(
      135deg,
      transparent 0px,
      transparent 6px,
      rgba(174, 134, 54, 0.025) 6px,
      rgba(174, 134, 54, 0.025) 7px
    );
}
.fact-row.is-empty .label {
  color: var(--gold);
}
.fact-row.is-empty .value {
  font-style: italic;
  color: var(--ink-fade);
  font-size: 14.5px;
  font-weight: 400;
}
.fact-row.is-empty .value::after {
  content: ' +';
  font-style: normal;
  color: var(--maroon);
  font-weight: 600;
}

/* ============ DOCUMENTS ============ */
.docs-section {
  background: var(--paper-light);
  padding: 56px 22px 52px;
  border-top: 1px solid var(--rule-soft);
  border-bottom: 1px solid var(--rule-soft);
}
.docs-inner {
  max-width: 920px; margin: 0 auto;
}
.docs-grid {
  display: grid; gap: 14px;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  margin-top: 32px;
}
.doc-card {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-left: 4px solid var(--rule);
  padding: 16px 18px;
  display: flex; flex-direction: column; gap: 6px;
  text-decoration: none; color: var(--ink);
}
.doc-card.is-empty {
  border-left-style: dashed; border-left-color: var(--rule);
  background: var(--paper);
}
.doc-card.is-filled {
  border-left-color: var(--gold); background: var(--paper-light);
}
.doc-card .doc-name {
  font-family: 'Cormorant SC', serif; font-size: 11px;
  letter-spacing: 2px; color: var(--ink); font-weight: 600;
}
.doc-card .doc-state {
  font-family: 'Cormorant Garamond', serif; font-style: italic;
  font-size: 14.5px; color: var(--ink-fade);
}
.doc-card.is-filled .doc-state { color: var(--ink-soft); font-style: normal; }
.doc-card .doc-hint {
  font-size: 12.5px; color: var(--ink-fade);
  font-family: 'Cormorant Garamond', serif; line-height: 1.4;
}
.doc-card .doc-contribute {
  font-family: 'Cormorant SC', serif; font-size: 10.5px;
  letter-spacing: 2px; color: var(--maroon);
  margin-top: 6px;
  display: inline-block;
}

/* ============ HER PEOPLE ============ */
.people-section {
  background: var(--paper);
  padding: 56px 22px 56px;
}
.people-inner {
  max-width: 920px; margin: 0 auto;
}
.people-group {
  margin-bottom: 30px;
}
.people-group:last-child { margin-bottom: 0; }
.people-group-head {
  font-family: 'Cormorant SC', serif; font-size: 11px;
  letter-spacing: 2.5px; color: var(--gold);
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--rule-soft);
}
.people-cards {
  display: grid; gap: 12px;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}
.person-card {
  background: var(--paper-light);
  border: 1px solid var(--rule);
  padding: 14px 16px;
  text-decoration: none;
  color: var(--ink);
  display: flex; flex-direction: column; gap: 4px;
  transition: border-color 150ms ease, transform 150ms ease;
}
.person-card:hover {
  border-color: var(--gold);
  transform: translateY(-1px);
}
.person-card.is-memoriam {
  /* maroon dot on portrait is sufficient; no left border line */
}
.person-card .pc-name {
  font-family: 'Cormorant Garamond', serif; font-weight: 600;
  font-size: 17px; color: var(--ink);
}
.person-card .pc-nick {
  font-family: 'Cormorant Garamond', serif; font-style: italic;
  font-size: 14px; color: var(--ink-soft);
}
.person-card .pc-dates {
  font-family: 'Cormorant SC', serif; font-size: 10px;
  letter-spacing: 1.5px; color: var(--ink-fade);
  margin-top: 4px;
}
.person-card.is-memoriam .pc-dates { color: var(--maroon); }

/* ============ THE STORY (long narrative) ============ */
.story-section {
  background: var(--paper-light);
  padding: 60px 22px 60px;
  border-top: 1px solid var(--rule-soft);
  border-bottom: 1px solid var(--rule-soft);
}
.story-inner {
  max-width: 680px; margin: 0 auto;
}
.story-inner h3 {
  font-family: 'Cormorant Garamond', serif; font-weight: 500;
  font-size: 22px; color: var(--ink);
  margin: 28px 0 14px;
}
.story-inner h3:first-child { margin-top: 0; }
.story-inner p {
  font-family: 'Cormorant Garamond', serif;
  font-size: 18.5px; line-height: 1.7;
  color: var(--ink); margin-bottom: 18px;
}
.story-inner p strong { font-weight: 600; color: var(--maroon); }
.story-inner em { font-style: italic; color: var(--ink-soft); }
.story-divider {
  text-align: center; color: var(--gold);
  margin: 32px 0; font-size: 14px; letter-spacing: 12px;
}

/* ============ MATZEIVAH ============ */
.matzeivah-section {
  background: var(--paper-section);
  padding: 60px 22px 60px;
}
.matzeivah-inner {
  max-width: 760px; margin: 0 auto;
}
.matzeivah-card {
  background: var(--paper-light);
  border: 1px solid var(--rule);
  border-top: 4px solid var(--maroon);
  padding: 32px 28px;
  box-shadow: 0 4px 20px var(--sepia-shadow);
  margin-top: 28px;
}
.matz-hebrew {
  direction: rtl; text-align: right;
  font-family: 'Lora', serif; font-size: 19px;
  color: var(--ink); line-height: 1.85;
  padding: 18px 0;
  border-top: 1px solid var(--rule-soft);
  border-bottom: 1px solid var(--rule-soft);
  margin-bottom: 18px;
}
.matz-english {
  font-family: 'Cormorant Garamond', serif; font-style: italic;
  font-size: 17px; color: var(--ink-soft);
  line-height: 1.6;
}
.matz-english strong {
  font-style: normal; font-weight: 600; color: var(--ink);
}
.matz-acrostic-note {
  margin-top: 18px;
  padding: 14px 18px;
  background: var(--paper-section);
  border-left: 3px solid var(--gold);
  font-family: 'Cormorant Garamond', serif; font-style: italic;
  font-size: 14.5px; color: var(--ink-soft);
}

/* ============ SOURCES ============ */
.sources-section {
  background: var(--paper);
  padding: 50px 22px 50px;
}
.sources-inner {
  max-width: 760px; margin: 0 auto;
}
.sources-list {
  margin-top: 32px;
  list-style: none;
  padding: 0;
}
.sources-list li {
  padding: 14px 0;
  border-bottom: 1px solid var(--rule-soft);
  font-family: 'Cormorant Garamond', serif;
  font-size: 16.5px;
  color: var(--ink);
  line-height: 1.55;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.sources-list li:last-child { border-bottom: none; }
.sources-list .src-icon {
  flex-shrink: 0;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--paper-section);
  color: var(--gold);
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--rule-soft);
  margin-top: 1px;
}
.sources-list .src-icon svg {
  width: 17px; height: 17px;
  stroke-width: 1.6;
}
.sources-list .src-body {
  flex: 1;
  min-width: 0;
}
.sources-list .src-kind {
  font-family: 'Cormorant SC', serif;
  font-size: 9.5px;
  letter-spacing: 2px;
  color: var(--ink-fade);
  text-transform: uppercase;
  margin-bottom: 2px;
  display: block;
}
/* Open-question style: tinted icon + maroon kind label */
.sources-list li.is-gap .src-icon {
  background: #F4E6E2;
  border-color: #E8C8C2;
  color: var(--maroon);
}
.sources-list li.is-gap .src-kind {
  color: var(--maroon);
  font-weight: 600;
}

/* ============ CONTRIBUTE CTA ============ */
.contribute-cta {
  background: var(--paper-section);
  padding: 36px 22px;
  text-align: center;
  border-top: 1px solid var(--rule-soft);
  border-bottom: 1px solid var(--rule-soft);
}
.contribute-cta p {
  font-family: 'Cormorant Garamond', serif; font-style: italic;
  font-size: 17px; color: var(--ink-soft);
  max-width: 540px; margin: 0 auto 14px; line-height: 1.5;
}
.contribute-cta a {
  display: inline-block;
  font-family: 'Cormorant SC', serif; font-size: 11px;
  letter-spacing: 2.5px; color: var(--paper-light);
  background: var(--maroon);
  padding: 12px 24px; text-decoration: none;
  border: 1px solid var(--maroon-dark);
}
.contribute-cta a:hover { background: var(--maroon-dark); }

/* ============ FOOTER ============ */
.profile-footer {
  background: var(--paper);
  padding: 30px 22px 50px;
  text-align: center;
  font-family: 'Cormorant SC', serif; font-size: 10.5px;
  letter-spacing: 2.5px; color: var(--ink-fade);
}
.profile-footer a {
  color: var(--maroon); text-decoration: none;
  margin: 0 12px;
}

/* ============ MATZEIVAH JUMP CARD (under hero) ============ */
.matz-jump-row {
  background: var(--paper);
  padding: 26px 22px;
  text-align: center;
  border-bottom: 1px solid var(--rule-soft);
}
.matz-jump-link {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 22px;
  background: var(--paper-light);
  color: var(--ink);
  text-decoration: none;
  border: 1px solid var(--rule);
  border-bottom: 3px solid var(--maroon);
  font-family: 'Cormorant SC', serif; font-size: 11px;
  letter-spacing: 2.5px; font-weight: 600;
  transition: transform 150ms ease, background 150ms ease;
}
.matz-jump-link:hover {
  background: var(--paper-section);
  transform: translateY(-1px);
}
.matz-jump-link .dot {
  width: 7px; height: 7px; background: var(--maroon);
  border-radius: 50%; display: inline-block;
}
.matz-jump-link .heb {
  font-family: 'Lora', serif; font-size: 13px;
  color: var(--maroon); letter-spacing: 0;
}
.matz-jump-sub {
  margin-top: 8px;
  font-family: 'Cormorant Garamond', serif; font-style: italic;
  font-size: 13px; color: var(--ink-fade);
}

@media print {
  
}

/* ===========================================================
   v5.07 — section redesigns
   =========================================================== */

/* --- Paper Trail (Documents) redesigned: warm tile cards --- */
.docs-section .docs-grid {
  margin-top: 36px;
}
.doc-card {
  position: relative;
  background: var(--paper-light);
  border: 1px solid var(--rule);
  border-left: none;
  padding: 22px 22px 18px;
  display: flex; flex-direction: column; gap: 8px;
  text-decoration: none; color: var(--ink);
  overflow: hidden;
  transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
  opacity: 0;
  transform: translateY(8px);
  animation: doc-card-in 600ms cubic-bezier(.21,.62,.41,1) forwards;
}
.doc-card:nth-child(1) { animation-delay: 0ms; }
.doc-card:nth-child(2) { animation-delay: 80ms; }
.doc-card:nth-child(3) { animation-delay: 160ms; }
.doc-card:nth-child(4) { animation-delay: 240ms; }
.doc-card:nth-child(5) { animation-delay: 320ms; }
.doc-card:nth-child(6) { animation-delay: 400ms; }
@keyframes doc-card-in {
  to { opacity: 1; transform: translateY(0); }
}
.doc-card.is-empty {
  background: var(--paper);
  border-left: 1px solid var(--rule);
  border-left-style: solid;
}
.doc-card.is-empty::before {
  /* removed AI-looking diagonal hatch; left as no-op for spec stability */
  content: none;
}
.doc-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px var(--sepia-shadow);
  border-color: var(--gold);
}
.doc-card .doc-icon {
  width: 38px; height: 38px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--paper-section);
  color: var(--gold);
  margin-bottom: 4px;
  border: 1px solid var(--rule);
}
.doc-card.is-filled .doc-icon {
  background: var(--gold);
  color: var(--paper-light);
  border-color: var(--gold);
}
.doc-card .doc-name {
  font-family: 'Cormorant Garamond', serif; font-weight: 600;
  font-size: 18px; color: var(--ink);
  letter-spacing: 0;
}
.doc-card .doc-state {
  font-family: 'Cormorant Garamond', serif; font-style: italic;
  font-size: 13.5px; color: var(--ink-fade);
}
.doc-card.is-filled .doc-state {
  color: var(--living); font-style: normal;
}
.doc-card .doc-hint {
  font-size: 13px; color: var(--ink-fade);
  font-family: 'Cormorant Garamond', serif; line-height: 1.5;
  margin-top: 2px;
}
.doc-card .doc-contribute {
  font-family: 'Cormorant SC', serif; font-size: 10.5px;
  letter-spacing: 2px; color: var(--maroon);
  margin-top: 8px;
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 600;
}
.doc-card .doc-contribute .arrow {
  transition: transform 200ms ease;
}
.doc-card:hover .doc-contribute .arrow {
  transform: translateX(3px);
}

/* --- Her Family (people) redesigned v3: Walker-style portrait nodes --- */
.people-section {
  padding: 80px 22px 88px;
  background: var(--paper);
  position: relative;
  overflow: hidden;
}
/* subtle warm watermark on background */
.people-section::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 40% at 20% 0%, rgba(174, 134, 54, 0.04), transparent 60%),
    radial-gradient(ellipse 50% 35% at 85% 100%, rgba(138, 50, 42, 0.03), transparent 60%);
  pointer-events: none;
}
.people-inner { position: relative; z-index: 1; max-width: 920px; margin: 0 auto; }

/* Soft vertical pedigree line connecting the generations */
.people-inner::before {
  content: '';
  position: absolute;
  left: 50%; top: 100px; bottom: 100px;
  width: 1px;
  background: linear-gradient(180deg,
    transparent 0%,
    var(--rule) 8%,
    var(--rule) 92%,
    transparent 100%);
  z-index: 0;
}

.people-group {
  margin-bottom: 56px;
  position: relative;
  z-index: 1;
}
.people-group:last-child { margin-bottom: 0; }

/* Generation badge — shows "ELDERS · GENERATION 7" / "BOBBY'S ROW · GEN 8" etc. */
.people-group-head {
  text-align: center;
  margin-bottom: 36px;
  position: relative;
}
.people-group-head .pg-label {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  font-size: 19px;
  letter-spacing: 0.5px;
  color: var(--ink);
  display: inline-block;
  padding: 4px 26px;
  background: var(--paper);
  position: relative; z-index: 1;
  text-transform: none;
}
.people-group-head .pg-sub {
  display: block;
  font-family: 'Cormorant SC', serif;
  font-style: normal;
  font-size: 10px;
  letter-spacing: 2.5px;
  color: var(--gold);
  margin-top: 6px;
  text-transform: uppercase;
  font-weight: 600;
}
.people-group-head::before {
  content: '';
  position: absolute; left: 0; right: 0; top: 14px;
  height: 1px; background: var(--rule-soft);
  z-index: 0;
}

/* === GENERATIONAL DIFFERENTIATION === */

/* Elders (parents): larger portraits, more presence, set apart with subtle warm halo */
.people-group--elders .person-tile { width: 200px; }
.people-group--elders .person-portrait {
  width: 140px; height: 140px;
  border-width: 4px;
}
.people-group--elders .pt-name { font-size: 19px; }
.people-group--elders .person-tile {
  filter: drop-shadow(0 4px 18px rgba(174, 134, 54, 0.10));
}

/* Bobby's own row: Bobby is centered, in gold "YOU ARE HERE" treatment, brothers flank her */
.people-group--herself { position: relative; }
.people-group--herself .person-tile.is-bobby .person-portrait {
  border-color: var(--gold);
  border-width: 4px;
  width: 132px; height: 132px;
  box-shadow:
    0 0 0 4px var(--paper-light),
    0 0 0 8px rgba(174, 134, 54, 0.18),
    0 12px 30px rgba(31, 26, 20, 0.16);
}
.people-group--herself .person-tile.is-bobby .pt-name {
  font-size: 19px;
  color: var(--maroon);
}
.people-group--herself .person-tile.is-bobby .status-pill {
  background: var(--gold);
  color: var(--paper-light);
  top: 116px;
}
.people-group--herself .person-tile.is-bobby {
  width: 188px;
}

/* Spouse: marriage glyph rendered inline with the label, no overlay */
.people-group--spouse {
  position: relative;
  margin-top: 22px;
}
/* The spouse group doesn't use the horizontal-line divider —
   the ⚭ wedding glyph (inline in the label) is the visual break. */
.people-group--spouse .people-group-head::before {
  display: none;
}
.people-group--spouse .people-group-head .pg-label {
  font-size: 18px;
  color: var(--ink-fade);
}
.people-group--spouse .people-group-head .pg-glyph {
  color: var(--gold);
  font-size: 20px;
  margin-right: 8px;
  vertical-align: -0.06em;
}

/* Children: smaller, descending feel */
.people-group--children .person-tile { width: 156px; }
.people-group--children .person-portrait {
  width: 100px; height: 100px;
  border-width: 2.5px;
}
.people-group--children .person-tile .status-pill {
  top: 84px;
  font-size: 8px;
}
.people-group--children .pt-name { font-size: 16px; }

/* Per-portrait relationship role badge — shows FATHER, MOTHER, BROTHER, etc.
   under each portrait so the family tree is unambiguous. */
.person-tile .role-tag {
  display: block;
  font-family: 'Cormorant SC', serif;
  font-size: 9px;
  letter-spacing: 2.5px;
  color: var(--gold);
  font-weight: 600;
  text-transform: uppercase;
  margin-top: 12px;
  margin-bottom: 6px;
  text-align: center;
}
.person-tile.is-bobby .role-tag {
  color: var(--maroon);
  font-size: 10px;
}

/* Portrait nodes — Walker-style: bigger portraits, status pill on portrait, centered captions */
.people-tiles {
  display: flex; flex-wrap: wrap;
  gap: 34px 24px;
  justify-content: center;
  align-items: flex-start;
}

.person-tile {
  position: relative;
  display: flex; flex-direction: column;
  align-items: center;
  width: 172px;
  text-decoration: none;
  color: var(--ink);
  padding: 6px 4px 12px;
  opacity: 0;
  transform: translateY(14px);
  animation: tile-in 700ms cubic-bezier(.21,.62,.41,1) forwards;
}
@keyframes tile-in {
  to { opacity: 1; transform: translateY(0); }
}
.people-tiles .person-tile:nth-child(1) { animation-delay: 40ms; }
.people-tiles .person-tile:nth-child(2) { animation-delay: 140ms; }
.people-tiles .person-tile:nth-child(3) { animation-delay: 240ms; }
.people-tiles .person-tile:nth-child(4) { animation-delay: 340ms; }
.people-tiles .person-tile:nth-child(5) { animation-delay: 440ms; }
.people-tiles .person-tile:nth-child(6) { animation-delay: 540ms; }

.person-portrait {
  position: relative;
  width: 116px; height: 116px;
  border-radius: 50%;
  overflow: visible;
  background: var(--paper-section);
  border: 3px solid var(--gold);
  margin-bottom: 24px;
  transition: border-color 0.4s ease, box-shadow 0.4s ease, transform 0.45s cubic-bezier(.21,.62,.41,1);
  box-shadow:
    0 0 0 4px var(--paper-light),
    0 8px 22px rgba(31, 26, 20, 0.10);
}
.person-portrait img,
.person-portrait picture {
  position: relative;
  z-index: 2;
  width: 100%; height: 100%;
  border-radius: 50%;
  display: block;
  overflow: hidden;
}
.person-portrait img {
  object-fit: cover;
  transition: transform 700ms cubic-bezier(.21,.62,.41,1);
}

/* Hover: lift + scale + ripple ring (Walker-language) */
.person-portrait::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  opacity: 0;
  pointer-events: none;
  z-index: 3;
  transition: opacity 0.4s ease, transform 0.6s ease;
}
.person-tile:hover .person-portrait {
  transform: translateY(-3px);
  border-color: var(--maroon-soft);
  box-shadow:
    0 0 0 4px var(--paper-light),
    0 0 0 6px rgba(174, 134, 54, 0.18),
    0 14px 30px rgba(31, 26, 20, 0.16);
}
.person-tile:hover .person-portrait::after {
  opacity: 0.6;
  transform: scale(1.18);
  border-color: var(--maroon-soft);
}
.person-tile:hover .person-portrait img {
  transform: scale(1.05);
}

.person-tile.is-memoriam .person-portrait {
  border-color: var(--maroon);
}
.person-tile.is-memoriam:hover .person-portrait::after {
  border-color: var(--maroon);
}

/* Memoriam portraits: subtle warm-gray treatment + sepia (still respectful, distinguishable) */
.person-tile.is-memoriam .person-portrait img {
  filter: sepia(0.30) saturate(0.78) contrast(1.02);
}

/* Initials fallback — elegant single letter, NOT mechanical "E·W" */
.person-portrait.is-initials {
  display: flex; align-items: center; justify-content: center;
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  font-size: 52px;
  color: var(--ink-fade);
  background:
    radial-gradient(circle at 30% 30%,
      var(--paper-light) 0%,
      var(--paper-section) 100%);
  letter-spacing: 0;
  overflow: hidden;
}
.person-tile.is-memoriam .person-portrait.is-initials {
  color: var(--maroon-soft);
  background:
    radial-gradient(circle at 30% 30%,
      #FBF6F4 0%,
      #F0E4E0 100%);
}

/* Status pill embedded on the portrait — Walker-style */
.person-tile .status-pill {
  position: absolute;
  top: 100px;  /* portrait is 116px tall + 3px border on each side; pill straddles the bottom edge */
  left: 50%;
  transform: translateX(-50%);
  font-family: 'Cormorant SC', serif;
  font-size: 8.5px;
  letter-spacing: 1.5px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 100px;
  color: var(--paper-light);
  background: var(--ink-fade);
  z-index: 5;
  white-space: nowrap;
  border: 1.5px solid var(--paper);
  box-shadow: 0 2px 6px rgba(31, 26, 20, 0.22);
}
.person-tile .status-pill.living   { background: var(--living); }
.person-tile .status-pill.memoriam { background: var(--maroon); }
.person-tile .status-pill.you      { background: var(--gold); color: var(--paper-light); }

/* Hover: name shifts to maroon (Walker-language) */
.person-tile .pt-name {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  font-size: 17.5px;
  color: var(--ink);
  text-align: center;
  line-height: 1.2;
  margin-top: 6px;
  margin-bottom: 4px;
  letter-spacing: -0.005em;
  transition: color 0.25s ease;
}
.person-tile:hover .pt-name {
  color: var(--maroon);
}
.person-tile .pt-nick {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 13.5px;
  color: var(--ink-soft);
  text-align: center;
  line-height: 1.4;
  margin-bottom: 6px;
  padding: 0 4px;
}
.person-tile .pt-dates {
  font-family: 'Cormorant SC', serif;
  font-size: 9.5px;
  letter-spacing: 1.6px;
  color: var(--ink-fade);
  text-align: center;
  line-height: 1.5;
  margin-top: 2px;
}
.person-tile.is-memoriam .pt-dates {
  color: var(--maroon);
}

/* The "joined" couple group — Lipot & Regina, then Laci alone with optional pairing chip */
.couple-frame {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px;
  background: var(--paper-section);
  border: 1px solid var(--rule);
  border-radius: 20px;
  font-family: 'Cormorant SC', serif;
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--ink-soft);
  margin-top: 12px;
}
.couple-frame .heart {
  color: var(--gold);
}

@media (max-width: 600px) {
  .people-tiles { gap: 22px 14px; }
  .person-tile { width: 138px; }
  .person-portrait { width: 102px; height: 102px; }
}

/* --- Names in Stone (matzeivah-style, no left border) --- */
.names-in-stone-section {
  background: var(--paper);
  padding: 60px 22px 80px;
  border-top: 1px solid var(--rule-soft);
  position: relative;
}
/* Soft warm radial behind the inscription — like light through a chapel window */
.names-in-stone-section::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 50% 35% at 50% 30%,
    rgba(174, 134, 54, 0.06),
    transparent 70%);
  pointer-events: none;
}
.names-in-stone-card {
  max-width: 740px;
  margin: 40px auto 0;
  /* Warm paper-section background — color is back, like a printed memorial page */
  background: var(--paper-section);
  border: none;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.5) inset,
    0 8px 28px rgba(31, 26, 20, 0.08);
  padding: 48px 44px 40px;
  position: relative;
  z-index: 1;
}
/* Inset gold hairline frame — like an illuminated manuscript page */
.names-in-stone-card::before {
  content: '';
  position: absolute;
  top: 14px; left: 14px; right: 14px; bottom: 14px;
  border: 1px solid var(--gold);
  opacity: 0.4;
  pointer-events: none;
}
/* Gold corner ornaments — four small ◆ glyphs at the inset frame corners */
.names-in-stone-card::after {
  content: '';
  position: absolute; inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle 4px at 14px 14px, var(--gold) 60%, transparent 62%),
    radial-gradient(circle 4px at calc(100% - 14px) 14px, var(--gold) 60%, transparent 62%),
    radial-gradient(circle 4px at 14px calc(100% - 14px), var(--gold) 60%, transparent 62%),
    radial-gradient(circle 4px at calc(100% - 14px) calc(100% - 14px), var(--gold) 60%, transparent 62%);
  opacity: 0.7;
}
.names-in-stone-card h3 {
  display: none;
}
.names-in-stone-card .nis-sub {
  display: none;
}
/* Printer's flower ornament inside the frame, before the names */
.names-in-stone-card > ul {
  list-style: none;
  padding: 0;
  margin: 0;
  position: relative;
}
.names-in-stone-card > ul::before {
  content: '◆';
  display: block;
  text-align: center;
  color: var(--gold);
  font-size: 12px;
  letter-spacing: 6px;
  margin-bottom: 22px;
  opacity: 0.65;
}
.names-in-stone-card > ul > li {
  padding: 18px 4px;
  border-bottom: 1px dotted var(--rule);
  font-family: 'Cormorant Garamond', serif;
  font-size: 17px;
  color: var(--ink);
  line-height: 1.55;
}
.names-in-stone-card > ul > li:first-child { border-top: 1px solid var(--rule); }
.names-in-stone-card > ul > li:last-child { border-bottom: 1px solid var(--rule); }
.names-in-stone-card > ul > li strong {
  font-weight: 600;
  color: var(--maroon);
  font-size: 18px;
  display: block;
  margin-bottom: 4px;
  font-family: 'Cormorant Garamond', serif;
}
.names-in-stone-card > ul > li.three-brothers {
  background: rgba(138, 50, 42, 0.04);
  padding: 22px 24px;
  margin: 6px -12px;
  border-radius: 2px;
}
.names-in-stone-card > ul > li.three-brothers > strong {
  text-align: center;
  font-size: 14px;
  font-family: 'Cormorant SC', serif;
  letter-spacing: 2.5px;
  color: var(--maroon);
  margin-bottom: 14px;
}
.names-in-stone-card ul ul {
  margin-top: 0; padding-left: 0;
  list-style: none;
}
.names-in-stone-card ul ul li {
  padding: 5px 0;
  font-size: 15.5px;
  color: var(--ink-soft);
  text-align: center;
  font-style: italic;
}
.names-in-stone-card ul ul li a {
  font-style: normal;
}
.names-in-stone-card a {
  color: var(--maroon);
  text-decoration: none;
  border-bottom: 1px dotted var(--maroon-soft);
}
.names-in-stone-card a:hover {
  border-bottom-style: solid;
}
.names-in-stone-card .nis-note {
  margin-top: 28px;
  padding-top: 0;
  border-top: none;
  text-align: center;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 13.5px;
  color: var(--ink-fade);
}

/* --- Matzeivah photo at top (before inscription) --- */
.matz-hero-photo {
  max-width: 480px; margin: 0 auto 28px;
  background: var(--paper-light);
  padding: 14px;
  border: 1px solid var(--rule);
  box-shadow: 0 4px 18px var(--sepia-shadow);
}
.matz-hero-photo img {
  display: block; width: 100%; height: auto;
}
.matz-hero-photo figcaption {
  margin-top: 10px;
  font-family: 'Cormorant Garamond', serif; font-style: italic;
  font-size: 13px; color: var(--ink-fade); text-align: center;
}

/* --- The Longer Story v2: chapter cards + pull-quotes + journey strip --- */
.story-section {
  position: relative;
  overflow: hidden;
}
.story-section::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 50% 30% at 80% 5%, rgba(174, 134, 54, 0.05), transparent 60%),
    radial-gradient(ellipse 60% 35% at 0% 100%, rgba(138, 50, 42, 0.03), transparent 60%);
  pointer-events: none;
}
.story-inner { position: relative; z-index: 1; }

/* The Journey strip — small visual map */
.journey-strip {
  max-width: 720px; margin: 24px auto 36px;
  padding: 22px 18px;
  background: var(--paper);
  border: 1px solid var(--rule-soft);
  box-shadow: 0 1px 8px var(--sepia-shadow);
}
.journey-label {
  font-family: 'Cormorant SC', serif; font-size: 10px;
  letter-spacing: 2.5px; color: var(--gold);
  text-align: center;
  margin-bottom: 14px;
}
.journey-stops {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 0 4px;
}
.journey-stop {
  display: flex; flex-direction: column;
  align-items: center; text-align: center;
  flex: 1 1 0;
  min-width: 60px;
  padding: 0 4px;
}
.journey-stop .js-dot {
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--paper-light);
  border: 2px solid var(--gold);
  margin-bottom: 6px;
  box-shadow: 0 2px 6px rgba(31,26,20,0.12);
  position: relative;
}
.journey-stop.is-rupture .js-dot {
  background: var(--maroon); border-color: var(--maroon);
}
.journey-stop.is-survived .js-dot {
  background: var(--gold);
}
.journey-stop .js-year {
  font-family: 'Cormorant SC', serif; font-size: 9.5px;
  letter-spacing: 1.5px; color: var(--ink-fade);
  margin-bottom: 1px;
}
.journey-stop .js-place {
  font-family: 'Cormorant Garamond', serif; font-style: italic;
  font-size: 12.5px; color: var(--ink-soft);
  line-height: 1.2;
}
.journey-link {
  flex: 0 0 auto;
  align-self: flex-start;
  margin-top: 5px;
  color: var(--rule);
  font-size: 13px;
}

/* Chapter cards inside story */
.story-chapter {
  margin-bottom: 40px;
}
.story-chapter:last-of-type { margin-bottom: 24px; }
.chapter-head {
  display: flex; align-items: baseline; gap: 14px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--rule-soft);
}
.chapter-head .glyph {
  width: 36px; height: 36px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--paper-section);
  border: 1px solid var(--rule);
  display: flex; align-items: center; justify-content: center;
  color: var(--gold);
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600; font-size: 16px;
  transform: translateY(2px);
}
.chapter-head .ch-title {
  font-family: 'Cormorant Garamond', serif; font-weight: 500;
  font-size: 26px; color: var(--ink);
  line-height: 1.1;
  margin: 0;
  flex: 1;
}
.chapter-head .ch-years {
  font-family: 'Cormorant SC', serif; font-size: 10.5px;
  letter-spacing: 2px; color: var(--gold);
  flex-shrink: 0;
  align-self: center;
}

/* Location marker on chapter heads (v5.07) */
.chapter-head .ch-location {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: 'Cormorant SC', serif;
  font-size: 10px;
  letter-spacing: 1.8px;
  color: var(--maroon);
  font-weight: 600;
  margin-left: 4px;
  white-space: nowrap;
  flex-shrink: 0;
}
.chapter-head .ch-location::before {
  content: '';
  width: 11px; height: 11px;
  background-color: var(--maroon);
  /* SVG pin glyph as CSS mask */
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='currentColor'><path d='M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 9.5a2.5 2.5 0 1 1 0-5 2.5 2.5 0 0 1 0 5z'/></svg>") no-repeat center/contain;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='currentColor'><path d='M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 9.5a2.5 2.5 0 1 1 0-5 2.5 2.5 0 0 1 0 5z'/></svg>") no-repeat center/contain;
  flex-shrink: 0;
  margin-top: -1px;
}
@media (max-width: 640px) {
  /* Stack the chapter head metadata on mobile */
  .chapter-head {
    flex-wrap: wrap;
  }
  .chapter-head .ch-title { flex-basis: 100%; }
  .chapter-head .ch-location,
  .chapter-head .ch-years {
    flex-basis: auto;
  }
}

.story-inner h3 {
  /* legacy h3, kept for compatibility */
  font-family: 'Cormorant Garamond', serif; font-weight: 500;
  font-size: 22px; color: var(--ink);
  margin: 28px 0 14px;
}

/* Pull-quote: a real designed element, not just italic text */
.pullquote {
  margin: 28px 0;
  padding: 26px 28px 24px;
  background: var(--paper-section);
  position: relative;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 20px;
  line-height: 1.5;
  color: var(--ink);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.pullquote::before {
  content: '\201C';
  position: absolute;
  top: -2px; left: 14px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 64px;
  line-height: 1;
  color: var(--gold);
  opacity: 0.4;
}
.pullquote .pq-attribution {
  display: block;
  margin-top: 12px;
  font-style: normal;
  font-family: 'Cormorant SC', serif;
  font-size: 10.5px;
  letter-spacing: 2.5px;
  color: var(--ink-fade);
}
.pullquote.is-spoken {
  background: var(--paper-light);
  border-top-color: var(--maroon);
  border-bottom: 1px solid var(--rule-soft);
}
.pullquote.is-spoken::before {
  color: var(--maroon); opacity: 0.4;
}

/* Inline detail block — short factual interludes */
.detail-block {
  margin: 22px 0;
  padding: 16px 20px;
  background: var(--paper);
  border-left: 3px solid var(--gold);
  font-family: 'Cormorant Garamond', serif;
  font-size: 15px; line-height: 1.55;
  color: var(--ink-soft);
}
.detail-block strong { color: var(--ink); font-weight: 600; }
.detail-block .db-label {
  display: block;
  font-family: 'Cormorant SC', serif; font-size: 10px;
  letter-spacing: 2px; color: var(--gold);
  margin-bottom: 6px;
}

/* Ornament divider */
.story-divider {
  text-align: center; color: var(--gold);
  margin: 36px 0; font-size: 14px; letter-spacing: 16px;
  opacity: 0.65;
}

/* ============ FAMILY MATH — handwritten chronicle, not a dashboard ============
   The numbers of Bobby's life rendered as a single italic serif paragraph,
   with the numbers themselves slightly larger and in maroon (or green for survival).
   Feels like a sentence in a hand-bound family book, not a stat dashboard. */
.family-math {
  background: var(--paper);
  padding: 50px 22px 38px;
  position: relative;
}
.family-math-inner {
  max-width: 740px; margin: 0 auto;
  position: relative;
  padding: 0 8px;
}
/* Soft top + bottom hairlines, like a passage set apart in a printed book */
.family-math-inner::before,
.family-math-inner::after {
  content: '◆';
  display: block;
  text-align: center;
  color: var(--gold);
  font-size: 11px;
  letter-spacing: 5px;
  opacity: 0.7;
}
.family-math-inner::before { margin-bottom: 28px; }
.family-math-inner::after  { margin-top: 28px; }

.family-math-prose {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 22px;
  line-height: 1.55;
  text-align: center;
  color: var(--ink);
  letter-spacing: -0.005em;
  opacity: 0;
  transform: translateY(8px);
  animation: fm-prose-in 900ms cubic-bezier(.21,.62,.41,1) 200ms forwards;
}
@keyframes fm-prose-in {
  to { opacity: 1; transform: translateY(0); }
}
.family-math-prose .fmn {
  font-style: normal;
  font-weight: 500;
  color: var(--maroon);
  font-size: 1.18em;
  letter-spacing: -0.01em;
}
.family-math-prose .fmn.survived {
  color: var(--living);
}
.family-math-prose .fm-em {
  font-style: italic;
  color: var(--ink-soft);
}
.fm-footnote {
  margin: 24px auto 0;
  text-align: center;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 14.5px;
  color: var(--ink-fade);
  max-width: 600px;
  opacity: 0;
  animation: fm-prose-in 900ms cubic-bezier(.21,.62,.41,1) 1000ms forwards;
}
@media (max-width: 600px) {
  .family-math-prose { font-size: 19px; }
  .family-math-prose .fmn { font-size: 1.14em; }
}
