/* The OM Legacy Project design system
   Palette: rich royal blue and cream. Deep navy ink, royal blue accent, cream ground, a brass pop for eyebrows and hairlines. Chosen by Grant 2026-09-22 over a sage/cream option.
   Type: Cormorant Garamond (display, wordmark), Source Sans 3 (text). No eye, iris, or ribbon motifs anywhere. */
:root {
  --ground: #f3f1ea;
  --surface: #faf8f2;
  --surface-2: #e6e4dc;
  --line: #d6d3c8;
  --ink: #121d3a;
  --ink-2: #37426a;
  --muted: #6f778e;
  --accent: #2440a8;
  --accent-ink: #faf8f2;
  --accent-soft: #dde3f5;
  --tint: #2b3f8f;
  --tint-ink: #f3f1ea;
  --gold: #c9a86a;
  --pop: #c9a86a;
  --pop-soft: #f1e7d2;
  --pop-light: #e9dcc0;
  --ink-rgb: 18, 29, 58;
  --scrim: rgba(18, 29, 58, 0.55);
  --focus: #2440a8;
  --radius: 4px;
  --measure: 66ch;
  --font-display: "Cormorant Garamond", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --font-text: "Source Sans 3", "Source Sans Pro", "Helvetica Neue", Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --ground: #0d1426; --surface: #131c33; --surface-2: #1b2542; --line: #2a3556;
    --ink: #eef0f5; --ink-2: #c3cadf; --muted: #8d97b3; --accent: #9db3ee; --accent-ink: #0d1426;
    --accent-soft: #1f2c52; --tint: #1b2545; --tint-ink: #eef0f5; --gold: #d9be86; --pop: #d9be86; --pop-soft: #3a3323; --ink-rgb: 13, 20, 38; --scrim: rgba(8, 12, 24, 0.62); --focus: #9db3ee;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --ground: #0d1426; --surface: #131c33; --surface-2: #1b2542; --line: #2a3556;
  --ink: #eef0f5; --ink-2: #c3cadf; --muted: #8d97b3; --accent: #9db3ee; --accent-ink: #0d1426;
  --accent-soft: #1f2c52; --tint: #1b2545; --tint-ink: #eef0f5; --gold: #d9be86; --pop: #d9be86; --pop-soft: #3a3323; --ink-rgb: 13, 20, 38; --scrim: rgba(8, 12, 24, 0.62); --focus: #9db3ee;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--ground); color: var(--ink);
  font-family: var(--font-text); font-size: 1.0625rem; line-height: 1.6;
  font-feature-settings: "kern", "liga";
}
img { max-width: 100%; height: auto; display: block; }
[hidden] { display: none !important; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 0.15em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 500; line-height: 1.1; margin: 0; text-wrap: balance; letter-spacing: -0.005em; }
h1 { font-size: clamp(2.4rem, 1.6rem + 3.2vw, 4.25rem); }
h2 { font-size: clamp(1.8rem, 1.3rem + 1.8vw, 2.75rem); }
h3 { font-size: clamp(1.35rem, 1.15rem + 0.8vw, 1.75rem); }
p { margin: 0; }
.eyebrow { font-family: var(--font-text); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--pop); }
.dates { font-family: var(--font-display); font-size: 1.25rem; font-style: italic; color: var(--ink-2); font-variant-numeric: oldstyle-nums; }
.dates { display: grid; gap: 0.15rem; }
.date-row { display: flex; gap: 0.75rem; align-items: baseline; }
.date-label { font-family: var(--font-text); font-style: normal; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--pop); min-width: 3.2rem; }
.lede { font-size: 1.25rem; line-height: 1.55; color: var(--ink-2); max-width: 38em; }
.wrap { width: min(1180px, 100% - 2 * clamp(16px, 4vw, 40px)); margin-inline: auto; }
.narrow { max-width: var(--measure); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.85rem 1.4rem; border-radius: 999px; font-weight: 600; font-size: 0.82rem; letter-spacing: 0.1em; text-transform: uppercase; text-decoration: none; border: 1.5px solid transparent; transition: background-color .15s, color .15s, border-color .15s; cursor: pointer; font-family: inherit; line-height: 1.2; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { filter: brightness(1.08); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-light { background: #f6f1e4; color: #111; border-color: #f6f1e4; }
.btn-light:hover { background: #fffaf0; color: #111; }
.btn-outline-light { background: rgba(0,0,0,0.25); color: #fff; border-color: rgba(255,255,255,0.9); }
.btn-outline-light:hover { border-color: #fff; }

/* Header */
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: var(--ink); color: #fbf7f0; border-bottom: 1px solid rgba(251,247,240,0.12); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 0.9rem; text-decoration: none; color: #fbf7f0; }
.brand-mark { width: 38px; height: 38px; flex: none; color: #f3f1ea; display: block; }
@media (max-width: 760px) { .brand-mark { width: 32px; height: 32px; } }
.brand-text { font-family: "Manrope", "Inter", "Helvetica Neue", Arial, sans-serif; font-weight: 700; font-size: 1.02rem; letter-spacing: 0.16em; text-transform: uppercase; line-height: 1; color: #fbf7f0; white-space: nowrap; }
@media (max-width: 760px) { .brand-text { font-size: 0.9rem; letter-spacing: 0.14em; } }
.brand-sub { display: inline-block; font-family: var(--font-text); font-size: 0.66rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(251,247,240,0.62); margin-left: 0.1rem; padding-left: 0.9rem; border-left: 1px solid rgba(251,247,240,0.3); line-height: 1; }
.nav { display: flex; align-items: center; gap: clamp(0.75rem, 2vw, 1.6rem); }
.nav a { color: rgba(251,247,240,0.82); text-decoration: none; font-weight: 600; font-size: 0.95rem; padding: 0.35rem 0; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { color: #fbf7f0; border-bottom-color: var(--pop); }
.nav .btn { padding: 0.6rem 1.1rem; border-bottom: 0; font-size: 0.78rem; }
.btn-give { background: #f6f1e4; color: #111; border-bottom: 0; border-color: #f6f1e4; }
.btn-give:hover { background: #fffaf0; color: #111; }
.nav a.btn-give { background: #d97757; color: #111; border-color: #d97757; }
.nav a.btn-give:hover { background: #c96a4b; color: #111; border-color: #c96a4b; }
.heart { display: inline-block; width: 15px; height: 15px; background: #111; margin-right: 0.15em; flex: none; animation: heartbeat 1.6s ease-in-out infinite; transform-origin: center;
  clip-path: path("M7.5 13.1S3.3 10.4 1.7 7.9C.2 5.7 1 3.1 3.4 2.6c1.4-.3 2.7.3 4.1 1.8 1.4-1.5 2.7-2.1 4.1-1.8 2.4.5 3.2 3.1 1.7 5.3-1.6 2.5-5.8 5.2-5.8 5.2z"); }
@keyframes heartbeat { 0%, 100% { transform: scale(1); } 14% { transform: scale(1.22); } 28% { transform: scale(1); } 42% { transform: scale(1.16); } 60% { transform: scale(1); } }
.nav-toggle { display: none; background: none; border: 1.5px solid rgba(251,247,240,0.5); border-radius: 999px; padding: 0.45rem 0.85rem; font: inherit; font-weight: 600; color: #fbf7f0; }
@media (max-width: 1080px) { .brand-sub { display: none; } }
@media (max-width: 760px) {
  .nav-toggle { display: inline-block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0; background: #121d3a; box-shadow: 0 12px 24px rgba(0,0,0,0.25); border-bottom: 1px solid rgba(251,247,240,0.15); padding: 0.5rem clamp(16px, 4vw, 40px) 1rem; }
  .nav.open { display: flex; }
  .nav a { padding: 0.75rem 0; border-bottom: 1px solid rgba(251,247,240,0.15); }
  .nav .btn { margin-top: 0.75rem; justify-content: center; }
}

/* Page sections */
.section { padding-block: clamp(3rem, 7vw, 6rem); }
.section-tight { padding-block: clamp(2rem, 4vw, 3.5rem); }
.statement-section { padding-bottom: clamp(1.5rem, 3.5vw, 3rem); }
.recent-section { padding-top: clamp(1rem, 2vw, 1.75rem); }
.section-head { display: grid; gap: 0.6rem; margin-bottom: clamp(1.5rem, 3vw, 2.5rem); }
.section-head p { color: var(--ink-2); max-width: 52ch; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

/* Home hero */
.hero { position: relative; isolation: isolate; color: #fff; overflow: hidden; }
.hero picture, .hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 40%; z-index: -2; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgba(var(--ink-rgb),0.82) 0%, rgba(var(--ink-rgb),0.55) 45%, rgba(var(--ink-rgb),0.15) 100%); }
.hero .wrap { padding-block: clamp(4.5rem, 12vw, 9rem); }
.hero-copy { max-width: 34rem; display: grid; gap: 1.25rem; }
.hero-copy .eyebrow { color: var(--pop-light); }
.hero-copy h1 { color: #fff; font-weight: 500; }
.hero-copy p { color: rgba(255,255,255,0.86); font-size: 1.15rem; max-width: 30em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 0.5rem; }
.photo-credit { position: absolute; right: 12px; bottom: 8px; font-size: 0.7rem; color: rgba(255,255,255,0.65); }
.photo-credit a { color: inherit; }

/* Tribute cards */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: clamp(1rem, 2.5vw, 1.75rem); }
.card-grid-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (max-width: 900px) { .card-grid-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .card-grid-5 .tcard:nth-child(n+4) { display: none; } }
@media (max-width: 560px) { .card-grid, .card-grid-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.9rem; } .card-grid-5 .tcard:nth-child(n+3) { display: none; } .card-grid-5 .tcard:nth-child(n+3) { display: none; } .tcard h3 { font-size: 1.1rem; } }
.tcard { display: grid; gap: 0.6rem; text-decoration: none; color: inherit; }
.tcard-media { aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--radius); background: var(--surface-2); position: relative; }
.tcard-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; transition: transform .35s ease; }
.tcard:hover .tcard-media img { transform: scale(1.03); }
.tcard-mono { width: 100%; height: 100%; display: grid; place-items: center; font-family: var(--font-display); font-size: 3rem; color: var(--accent); background: linear-gradient(160deg, var(--pop-soft), var(--accent-soft)); }
.tcard h3 { font-size: 1.3rem; font-weight: 600; }
.tcard .tdates { font-size: 0.9rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.tcard:hover h3 { color: var(--accent); }

/* Index controls */
.controls { display: flex; flex-wrap: wrap; gap: 0.75rem 1.25rem; align-items: center; justify-content: space-between; margin-bottom: 1.75rem; padding-bottom: 1.25rem; border-bottom: 1px solid var(--line); }
.search { display: flex; align-items: center; gap: 0.5rem; flex: 1 1 260px; max-width: 420px; }
.search input { width: 100%; padding: 0.7rem 1rem; border: 1.5px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink); font: inherit; font-size: 1rem; }
.search input::placeholder { color: var(--muted); }
.seg { display: inline-flex; border: 1.5px solid var(--line); border-radius: 999px; overflow: hidden; }
.seg button { background: transparent; border: 0; padding: 0.55rem 1rem; font: inherit; font-weight: 600; font-size: 0.9rem; color: var(--ink-2); cursor: pointer; }
.seg button[aria-pressed="true"], .seg button[aria-selected="true"] { background: var(--accent); color: var(--accent-ink); }
.count { color: var(--muted); font-size: 0.9rem; }
.letter-head { grid-column: 1 / -1; font-family: var(--font-display); font-size: 1.6rem; color: var(--muted); border-bottom: 1px solid var(--line); padding-bottom: 0.25rem; margin-top: 1rem; }
.empty { grid-column: 1 / -1; color: var(--muted); padding: 2rem 0; }

/* Story page: photo left, name and dates beside it, sticky give panel right */
.story-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 380px); gap: clamp(2rem, 5vw, 5rem); align-items: start; margin-top: 1.25rem; }
.story-main { display: grid; gap: clamp(2rem, 4vw, 3rem); min-width: 0; }
.story-head { display: grid; grid-template-columns: minmax(180px, 300px) minmax(0, 1fr); gap: clamp(1.5rem, 3vw, 2.5rem); align-items: start; }
.story-head .lead-photo { max-width: none; justify-self: start; width: 100%; margin: 0; }
.story-head.no-photo { grid-template-columns: minmax(0, 1fr); }
.story-head.no-photo .tribute-title { max-width: var(--measure); padding-bottom: 1.5rem; border-bottom: 1px solid var(--line); }
.story-main .prose { max-width: 86ch; }
.gallery-2 { column-count: 2; margin-top: 0; }
@media (max-width: 960px) { .story-layout { grid-template-columns: 1fr; } .give-panel { position: static; } }
@media (max-width: 600px) { .story-head { grid-template-columns: 1fr; } .story-head .lead-photo { max-width: 320px; } .gallery-2 { column-count: 1; } }
.heart-light { background: var(--accent-ink); }
.give-panel .btn-primary { gap: 0.6rem; }

/* Tribute page */
.tribute-hero { padding-block: clamp(2.5rem, 6vw, 5rem) clamp(1.5rem, 3vw, 2.5rem); }
.tribute-hero .split { align-items: start; grid-template-columns: 1.15fr 0.85fr; }
@media (max-width: 860px) { .tribute-hero .split { grid-template-columns: 1fr; } }
.tribute-title { display: grid; gap: 1rem; }
.tribute-title h1 { font-weight: 500; }
.lead-photo { border-radius: var(--radius); overflow: hidden; background: var(--surface-2); box-shadow: 0 30px 60px -40px rgba(18,40,44,0.5); }
.lead-photo img { width: 100%; height: auto; }
.lead-photo.portrait { max-width: 420px; justify-self: end; }
@media (max-width: 860px) { .lead-photo.portrait { justify-self: start; } }
.tribute-body { display: grid; grid-template-columns: minmax(0, var(--measure)) minmax(240px, 320px); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
@media (max-width: 960px) { .tribute-body { grid-template-columns: 1fr; } }
.prose { display: grid; gap: 1.15rem; font-size: 1.1rem; line-height: 1.7; }
.prose h2, .prose h3 { margin-top: 1.25rem; }
.prose blockquote { margin: 0.5rem 0; padding-left: 1.25rem; border-left: 2px solid var(--gold); color: var(--ink-2); font-family: var(--font-display); font-size: 1.3rem; line-height: 1.45; }
.prose a { word-break: break-word; }
.prose .byline { font-family: var(--font-display); font-style: italic; color: var(--muted); font-size: 1.05rem; }
.give-panel { position: sticky; top: calc(84px + env(safe-area-inset-top, 0px)); display: grid; gap: 0.9rem; padding: 1.5rem; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.give-panel h3 { font-weight: 600; }
.give-panel p { color: var(--ink-2); font-size: 0.98rem; }
.give-panel .btn { justify-content: center; }
.give-panel small { color: var(--muted); font-size: 0.82rem; line-height: 1.45; }
.gallery { column-count: 3; column-gap: 1rem; margin-top: clamp(2rem, 5vw, 4rem); }
@media (max-width: 900px) { .gallery { column-count: 2; } }
@media (max-width: 520px) { .gallery { column-count: 1; } }
.gallery figure { margin: 0 0 1rem; break-inside: avoid; border-radius: var(--radius); overflow: hidden; background: var(--surface-2); }
.gallery figcaption { font-size: 0.85rem; color: var(--muted); padding: 0.4rem 0.6rem; }
.video-card { display: flex; gap: 1rem; align-items: center; padding: 1rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); text-decoration: none; color: inherit; margin-top: 1.5rem; }
.video-card .play { width: 44px; height: 44px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; flex: none; font-size: 0.9rem; }
.video-card strong { display: block; font-weight: 600; }
.video-card span { color: var(--muted); font-size: 0.9rem; }
.pager { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-top: clamp(2rem, 5vw, 4rem); padding-top: 1.5rem; border-top: 1px solid var(--line); }
.pager a { text-decoration: none; color: var(--ink-2); display: grid; gap: 0.15rem; }
.pager a strong { font-family: var(--font-display); font-size: 1.3rem; color: var(--ink); font-weight: 600; }
.pager a:hover strong { color: var(--accent); }
.pager .next { text-align: right; margin-left: auto; }
.breadcrumb { font-size: 0.9rem; color: var(--muted); }
.breadcrumb a { color: var(--ink-2); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent); }

/* Documents and audio on story pages */
.doc-list, .audio-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; }
.doc-list a { display: flex; gap: 0.9rem; align-items: flex-start; padding: 0.9rem 1rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); text-decoration: none; color: var(--ink); font-size: 1rem; line-height: 1.45; }
.doc-list a:hover { border-color: var(--accent); }
.doc-icon { flex: none; font-family: var(--font-text); font-size: 0.68rem; font-weight: 600; letter-spacing: 0.1em; color: var(--accent); border: 1px solid var(--accent); border-radius: 3px; padding: 0.15rem 0.4rem; margin-top: 0.15rem; }
.audio-list li { display: grid; grid-template-columns: minmax(140px, 200px) minmax(0, 1fr); gap: 1rem; align-items: center; padding: 0.6rem 0; border-bottom: 1px solid var(--line); }
.audio-list audio { width: 100%; height: 40px; }
.audio-label { font-weight: 600; font-size: 1rem; }
@media (max-width: 560px) { .audio-list li { grid-template-columns: 1fr; gap: 0.35rem; } }

/* Feature rows */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.5rem, 3vw, 2.5rem); }
@media (max-width: 760px) { .features { grid-template-columns: 1fr; } }
.feature { display: grid; gap: 0.5rem; padding-top: 1.25rem; border-top: 2px solid var(--line); }
.feature h3 { font-weight: 600; }
.feature p { color: var(--ink-2); }
.feature .num { font-family: var(--font-display); font-size: 1.1rem; color: var(--gold); font-style: italic; }

/* Faces band */
.faces { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
@media (max-width: 640px) { .faces { grid-template-columns: 1fr; } }
.faces figure { margin: 0; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius); background: var(--surface-2); }
.faces img { width: 100%; height: 100%; object-fit: cover; }

/* Give band */
.band { position: relative; isolation: isolate; color: #fff; overflow: hidden; border-radius: var(--radius); }
.band img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.band::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(var(--ink-rgb),0.85), rgba(var(--ink-rgb),0.35)); }
.band-inner { padding: clamp(2.5rem, 6vw, 5rem) clamp(1.5rem, 5vw, 4rem); display: grid; gap: 1rem; max-width: 36rem; }
.band-inner h2 { color: #fff; }
.band-inner p { color: rgba(255,255,255,0.86); font-size: 1.1rem; }
.band-inner .band-tag { font-family: var(--font-display); font-style: italic; font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem); color: #fff; margin-top: -0.25rem; }

/* Give page */
.paths { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1rem, 2.5vw, 2rem); }
@media (max-width: 760px) { .paths { grid-template-columns: 1fr; } }
.path { display: grid; gap: 0.75rem; align-content: start; padding: clamp(1.5rem, 3vw, 2.25rem); border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: inherit; transition: border-color .15s, transform .15s; }
.path:hover { border-color: var(--accent); transform: translateY(-2px); }
.path h2 { font-weight: 600; }
.path p { color: var(--ink-2); }
.path .btn { justify-self: start; margin-top: 0.5rem; }
.fund-results { list-style: none; margin: 0.75rem 0 0; padding: 0; display: grid; gap: 0.35rem; }
.fund-results li { display: flex; justify-content: space-between; gap: 1rem; padding: 0.5rem 0; border-bottom: 1px solid var(--line); font-size: 0.98rem; }
.fund-results a { font-weight: 600; text-decoration: none; }
.fund-results span { color: var(--muted); font-size: 0.85rem; white-space: nowrap; }
.hero-search { max-width: 34rem; display: flex; gap: 0.5rem; }
.hero-search input { flex: 1; padding: 0.95rem 1.25rem; border-radius: 999px; border: 1.5px solid rgba(255,255,255,0.5); background: #f6f1e4; color: #111; caret-color: #111; font: inherit; font-size: 1.05rem; }
.hero-search input::placeholder { color: #5a5a5a; }
.give-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 460px); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
@media (max-width: 900px) { .give-grid { grid-template-columns: 1fr; } }
.embed-fallback { margin-top: 0.75rem; font-size: 0.85rem; color: var(--muted); }
.embed-box { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: 1rem; min-height: 320px; }
.embed-placeholder { display: grid; gap: 0.75rem; padding: 1.5rem; text-align: center; color: var(--ink-2); border: 1.5px dashed var(--line); border-radius: var(--radius); min-height: 300px; align-content: center; }
.embed-placeholder strong { font-family: var(--font-display); font-size: 1.5rem; color: var(--ink); }
.ways { display: grid; gap: 1.5rem; }
.way { display: grid; gap: 0.35rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--line); }
.way h3 { font-weight: 600; font-size: 1.35rem; }
.way p { color: var(--ink-2); }
.address { font-style: normal; line-height: 1.5; }
.fineprint { font-size: 0.88rem; color: var(--muted); line-height: 1.5; }

/* Steps (create page) */
.steps { display: grid; gap: 1.5rem; counter-reset: step; }
.step { display: grid; grid-template-columns: 3rem 1fr; gap: 1rem; align-items: start; }
.step::before { counter-increment: step; content: counter(step); font-family: var(--font-display); font-size: 2rem; color: var(--gold); line-height: 1; }
.step h3 { font-weight: 600; font-size: 1.3rem; }
.step p { color: var(--ink-2); }
.checklist { display: grid; gap: 0.5rem; padding-left: 1.2rem; color: var(--ink-2); }
.callout { padding: 1.25rem 1.5rem; border-radius: var(--radius); background: var(--pop-soft); color: var(--ink); display: grid; gap: 0.5rem; }
.callout code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.95em; user-select: all; }

/* Memoriam list */
.name-columns { column-count: 3; column-gap: 2.5rem; }
@media (max-width: 860px) { .name-columns { column-count: 2; } }
@media (max-width: 520px) { .name-columns { column-count: 1; } }
.name-columns li { break-inside: avoid; padding: 0.3rem 0; border-bottom: 1px solid var(--line); list-style: none; color: var(--ink-2); }
.name-columns ul { margin: 0; padding: 0; }

/* Footer */
.site-footer { background: var(--ink); color: #fbf7f0; margin-top: clamp(3rem, 7vw, 6rem); }
.site-footer .wrap { padding-block: 3rem 2.5rem; display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; }
@media (max-width: 760px) { .site-footer .wrap { grid-template-columns: 1fr; } }
.site-footer h4 { font-family: var(--font-text); font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--pop); margin-bottom: 0.75rem; }
.site-footer p, .site-footer li { color: rgba(251,247,240,0.78); font-size: 0.95rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.35rem; }
.site-footer a { color: rgba(251,247,240,0.85); text-decoration: none; }
.site-footer a:hover { color: #fbf7f0; text-decoration: underline; }
.legal { grid-column: 1 / -1; padding-top: 1.5rem; border-top: 1px solid rgba(251,247,240,0.15); font-size: 0.85rem; color: rgba(251,247,240,0.6); display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; justify-content: space-between; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }

/* Portrait mosaic hero */
.mosaic-hero { position: relative; isolation: isolate; overflow: hidden; background: var(--ink); }
.mosaic-hero .hero-actions .btn-outline-light { border-color: rgba(243,236,223,0.6); }
.mosaic { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 3px; opacity: 0.92; }
.mosaic > * { display: block; position: relative; aspect-ratio: 1; min-width: 0; overflow: hidden; background: var(--surface-2); margin: 0; }
.mosaic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%; filter: saturate(0.8) sepia(0.08); transition: transform .4s ease, filter .3s ease; }
.mosaic a:hover img { transform: scale(1.06); filter: saturate(1); }
.mosaic .stock img { object-position: 50% 30%; }
@media (max-width: 1000px) { .mosaic { grid-template-columns: repeat(8, minmax(0, 1fr)); } .mosaic > *:nth-child(n+41) { display: none; } }
@media (max-width: 560px) { .mosaic { grid-template-columns: repeat(6, minmax(0, 1fr)); } .mosaic > *:nth-child(n+25) { display: none; } }
.mosaic-copy { position: absolute; inset: 0; display: grid; align-items: center; pointer-events: none; }
.mosaic-copy .wrap { pointer-events: none; }
.mosaic-panel { pointer-events: auto; max-width: 31rem; padding: clamp(1.5rem, 3vw, 2.4rem); background: rgba(var(--ink-rgb), 0.9); backdrop-filter: blur(6px); color: #fff; display: grid; gap: 1rem; border-radius: var(--radius); }
.mosaic-panel .eyebrow { color: var(--pop-light); }
.band .eyebrow { color: var(--pop-light); }
.mosaic-panel h1 { color: #fff; font-size: clamp(2.4rem, 1.4rem + 3.2vw, 4rem); }
.mosaic-panel p { color: rgba(255,255,255,0.88); font-size: 1.1rem; }
@media (max-width: 760px) { .mosaic-copy { position: static; } .mosaic-panel { max-width: none; border-radius: 0; background: var(--ink); } }
/* Stats band */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.5rem; padding: clamp(1.5rem, 3vw, 2.5rem) 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stat { display: grid; gap: 0.25rem; }
.stat strong { font-family: var(--font-display); font-size: clamp(1.7rem, 1.3rem + 1.2vw, 2.4rem); font-weight: 500; line-height: 1; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.stat span { color: var(--muted); font-size: 0.95rem; }
.stats-note { margin-top: 1.25rem; font-family: var(--font-display); font-size: 1.2rem; line-height: 1.45; color: var(--ink-2); max-width: 60ch; }
.stats-note em { color: var(--ink); }
/* Roles line and warrior story sections */
.roles { font-family: var(--font-display); font-size: 1.3rem; color: var(--ink-2); font-style: italic; }
.story-nav { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; font-size: 0.9rem; margin-bottom: 1rem; }
.story-nav a { color: var(--ink-2); text-decoration: none; border-bottom: 1px solid var(--line); }
.story-nav a:hover { color: var(--accent); border-color: var(--accent); }
/* Wisdom cards */
.wisdom { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: clamp(1rem, 2.5vw, 1.75rem); }
.wisdom blockquote { margin: 0; padding: 1.5rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); display: grid; gap: 0.9rem; }
.wisdom blockquote p { font-family: var(--font-display); font-size: 1.35rem; line-height: 1.4; color: var(--ink); }
.wisdom cite { font-style: normal; font-size: 0.9rem; color: var(--muted); }
.wisdom cite a { color: var(--ink-2); }
.resources { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; }
.resources a { display: grid; gap: 0.3rem; padding: 1.1rem 1.25rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); text-decoration: none; color: inherit; }
.resources a:hover { border-color: var(--accent); }
.resources strong { font-weight: 600; }
.resources span { color: var(--muted); font-size: 0.9rem; }

/* Sage color blocks, statements, italic emphasis (reference: soft editorial layouts) */
h1 em, h2 em, h3 em, .statement em { font-style: italic; font-weight: 500; }
.bg-tint { background: var(--tint); color: var(--tint-ink); }
.bg-tint h2, .bg-tint h3, .bg-tint p, .bg-tint .feature p, .bg-tint .feature h3 { color: var(--tint-ink); }
.bg-tint .eyebrow { color: var(--pop-light); }
.bg-tint .feature { border-top-color: rgba(251,247,240,0.35); }
.bg-tint .feature .num { color: var(--pop-light); }
.bg-tint .btn-ghost { color: var(--tint-ink); border-color: rgba(251,247,240,0.6); }
.bg-tint .btn-ghost:hover { border-color: #fbf7f0; color: #fbf7f0; }
.bg-tint .btn-primary { background: #f6f1e4; color: #111; border-color: #f6f1e4; }
.bg-tint .btn-primary:hover { background: #fffaf0; color: #111; filter: none; }
.statement { text-align: center; display: grid; gap: 1.25rem; justify-items: center; }
.statement h2 { font-size: clamp(1.8rem, 1.1rem + 2.3vw, 3.1rem); max-width: 26ch; }
.statement h2.two-lines { max-width: none; text-wrap: initial; font-size: clamp(1.7rem, 1rem + 2.1vw, 2.9rem); }
.two-lines span { display: block; text-wrap: balance; }
.statement p { max-width: 58ch; color: var(--ink-2); }
.trio { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 0.75rem 1.25rem; margin-top: 0.5rem; }
.trio span { font-family: var(--font-display); font-style: italic; font-size: 1.25rem; color: var(--ink-2); }
.trio i { font-style: normal; color: var(--pop); font-size: 1.1rem; }
@media (max-width: 560px) { .trio i { display: none; } .trio { flex-direction: column; gap: 0.35rem; } }

/* Header and footer use the deep ink of the active palette; in dark mode keep them deep rather than inverted */
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .site-header, :root:not([data-theme="light"]) .site-footer, :root:not([data-theme="light"]) .mosaic-hero, :root:not([data-theme="light"]) .mosaic-panel { background: var(--surface-2); } }
:root[data-theme="dark"] .site-header, :root[data-theme="dark"] .site-footer, :root[data-theme="dark"] .mosaic-hero, :root[data-theme="dark"] .mosaic-panel { background: var(--surface-2); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .nav { background: var(--surface-2); } }
:root[data-theme="dark"] .nav { background: var(--surface-2); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .mosaic-panel { background: rgba(0,0,0,0.55); } }

/* Photo viewer */
.zoomable { display: block; width: 100%; padding: 0; margin: 0; border: 0; background: none; cursor: zoom-in; font: inherit; color: inherit; }
.zoomable img { display: block; width: 100%; height: auto; }
.zoomable:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(8, 12, 24, 0.94); display: grid; grid-template-columns: 64px minmax(0, 1fr) 64px; align-items: center; }
.lightbox[hidden] { display: none !important; }
.lb-stage { grid-column: 2; margin: 0; display: grid; gap: 0.75rem; justify-items: center; align-content: center; height: 100vh; padding: 56px 0 24px; box-sizing: border-box; }
.lb-stage img { max-width: 100%; max-height: calc(100vh - 110px); width: auto; height: auto; object-fit: contain; box-shadow: 0 30px 80px rgba(0,0,0,0.5); }
.lb-stage figcaption { color: rgba(255,255,255,0.8); font-size: 0.95rem; text-align: center; max-width: 60ch; }
.lb-close, .lb-prev, .lb-next { background: none; border: 0; color: #fff; cursor: pointer; font-family: var(--font-display); line-height: 1; padding: 0.5rem; opacity: 0.85; }
.lb-close:hover, .lb-prev:hover, .lb-next:hover { opacity: 1; }
.lb-close { position: absolute; top: 10px; right: 14px; font-size: 2.6rem; }
.lb-prev, .lb-next { font-size: 3.5rem; grid-row: 1; align-self: center; justify-self: center; }
.lb-prev { grid-column: 1; } .lb-next { grid-column: 3; }
@media (max-width: 600px) { .lightbox { grid-template-columns: 0 1fr 0; } .lb-prev, .lb-next { position: absolute; bottom: 10px; font-size: 3rem; } .lb-prev { left: 18px; } .lb-next { right: 18px; } .lb-stage { padding: 56px 12px 64px; } .lb-stage img { max-height: calc(100vh - 130px); } }

/* Create a Warrior Story: steps row and intake form */
.steps-row { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem; }
@media (max-width: 960px) { .steps-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .steps-row { grid-template-columns: 1fr; } }
.form-shell { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: clamp(1.25rem, 3vw, 2.5rem); }
.form-intro { display: grid; gap: 0.75rem; max-width: 60ch; }
.form-intro h2 { font-size: clamp(1.6rem, 1.1rem + 1.6vw, 2.4rem); }
.form-intro p { color: var(--ink-2); }
.form-embed { min-height: 400px; background: #fff; color: #1a1a1a; border-radius: 12px; padding: clamp(0.75rem, 2vw, 1.5rem); }
.form-embed .embed-fallback { color: #555; }
.form-embed iframe { display: block; width: 100%; border: 0; }
.fineprint { font-size: 0.85rem; color: var(--muted); }
