/* Palette unchanged from v2; every literal color now lives here. */
:root {
  --bg: #f7f7f4;
  --surface: #ffffff;
  --text: #111111;
  --text-2: #3d3d39;       /* body copy on pages, mission */
  --text-3: #4e4e49;       /* decks */
  --muted: #6d6d68;
  --line: #dadad4;
  --accent: #b21f24;
  --accent-on-dark: #ff8d91;
  --img-bg: #deded7;
  --img-bg-2: #c8c8c1;
  --img-label: #7a7a74;
  --dark: #151515;         /* standard rail */
  --dark-2: #111;          /* footer */
  --on-dark: #c8c8c2;
  --on-dark-2: #bcbcb5;

  --serif: Georgia, 'Times New Roman', serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --max: 1240px;
  --gutter: 20px;
  --topbar-h: 46px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--sans); line-height: 1.55; -webkit-text-size-adjust: 100%; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
img { max-width: 100%; height: auto; display: block; }

.wrap { width: min(100% - var(--gutter) * 2, var(--max)); margin-inline: auto; }
.skip { position: absolute; left: -9999px; top: 0; z-index: 100; background: var(--text); color: var(--surface); padding: 10px 14px; font-weight: 700; }
.skip:focus { left: 0; color: var(--surface); }

/* Chrome */
.topbar { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid var(--line); background: rgb(247 247 244 / .96); backdrop-filter: blur(12px); }
.topbar .wrap { min-height: var(--topbar-h); display: flex; align-items: center; font-size: 13px; color: var(--muted); letter-spacing: .02em; }
.masthead { padding: 34px 0 24px; border-bottom: 1px solid var(--line); }
.brand { font-family: var(--serif); font-size: clamp(52px, 8vw, 104px); line-height: .85; font-weight: 900; letter-spacing: -.055em; }
.brand span { color: var(--accent); }
.nav { border-bottom: 1px solid var(--line); background: var(--surface); }
.nav ul { list-style: none; padding: 0; margin: 0; display: flex; align-items: center; gap: 26px; min-height: 52px; overflow-x: auto; scrollbar-width: none; font-size: 14px; font-weight: 800; white-space: nowrap; }
.nav [aria-current="page"] { color: var(--accent); }

.footer { padding: 40px 0 60px; background: var(--dark-2); color: #fff; }
.footer .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer .brand { font-size: 48px; }
.footer p, .footer a { color: var(--on-dark-2); font-size: 14px; }
.footer a:hover { color: #fff; }
.footer h2 { margin: 0 0 12px; font-size: 12px; text-transform: uppercase; letter-spacing: .12em; }
.footer ul { padding: 0; margin: 0; list-style: none; display: grid; gap: 8px; }

/* Shared story atoms */
.eyebrow { color: var(--accent); font-size: 12px; font-weight: 900; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 8px; }
a.eyebrow { display: inline-block; }
.meta { color: var(--muted); font-size: 12px; font-weight: 700; }
.thumb { display: block; aspect-ratio: 16 / 9; background: var(--img-bg); overflow: hidden; margin-bottom: 18px; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb-empty { width: 100%; height: 100%; display: grid; place-items: center; background: linear-gradient(135deg, var(--img-bg), var(--img-bg-2)); color: var(--img-label); font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.story h2, .story h3 { font-family: var(--serif); line-height: 1.05; }
.story p { color: var(--muted); margin: 0 0 10px; font-size: 14px; }

/* Home */
.home { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 34px; align-items: start; }
.home > div { min-width: 0; }
.section { padding: 34px 0; border-bottom: 1px solid var(--line); }
.kicker { margin: 0 0 20px; font-size: 13px; text-transform: uppercase; letter-spacing: .14em; }

.hero { display: grid; grid-template-columns: 1.65fr .9fr; gap: 30px; }
.hero-main { border-right: 1px solid var(--line); padding-right: 30px; }
.hero-main h1 { font-family: var(--serif); font-size: clamp(34px, 5vw, 64px); line-height: .98; letter-spacing: -.035em; margin: 0 0 14px; }
.deck { color: var(--text-3); font-size: 18px; max-width: 850px; margin: 0 0 16px; }

.side { display: grid; gap: 22px; align-content: start; }
.side .story { padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.side .story:last-child { border-bottom: 0; padding-bottom: 0; }
.side h3 { font-size: 24px; margin: 6px 0 9px; }
.side .story p { margin-bottom: 8px; }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.grid .story { min-width: 0; }
.grid .thumb { aspect-ratio: 4 / 3; margin-bottom: 14px; }
.grid h3 { font-size: 27px; line-height: 1.04; margin: 6px 0 10px; }

.list .story { display: grid; grid-template-columns: 1fr 220px; gap: 24px; padding: 22px 0; border-top: 1px solid var(--line); }
.list .story:first-child { border-top: 0; padding-top: 0; }
.list .story h2, .list .story h3 { font-size: 29px; margin: 5px 0 9px; }
.list .story p { font-size: inherit; }
.list .thumb { aspect-ratio: 4 / 3; margin: 0; }

.mission { display: grid; grid-template-columns: .75fr 1.25fr; gap: 46px; align-items: start; }
.mission h2 { font-family: var(--serif); font-size: clamp(38px, 5vw, 68px); line-height: .95; margin: 0; }
.mission div { font-size: 18px; color: var(--text-2); }
.mission strong { color: var(--text); }

.rail { align-self: stretch; background: var(--dark); color: #fff; } /* full-height column, as in v2 */
.rail-box { position: sticky; top: var(--topbar-h); padding: 28px 24px 32px; } /* v2's sticky never engaged (min-height:100%); this one does */
.rail-box .eyebrow { color: var(--accent-on-dark); }
.rail-box h2 { font-family: var(--serif); font-size: 29px; line-height: 1.05; margin: 7px 0 10px; }
.rail-box p { color: var(--on-dark); font-size: 14px; margin: 0; }

/* Article + static pages */
.page, .article { width: min(100% - var(--gutter) * 2, 900px); margin-inline: auto; padding: 58px 0 80px; }
.article { max-width: 860px; padding: 52px 0 90px; }
.page h1, .article h1 { font-family: var(--serif); font-size: clamp(44px, 7vw, 78px); line-height: .96; letter-spacing: -.04em; margin: 0 0 24px; }
.article h1 { font-size: clamp(46px, 7vw, 82px); margin: 8px 0 18px; }
.page .eyebrow { margin-bottom: 10px; }
.page h2 { font-family: var(--serif); font-size: 34px; margin: 42px 0 12px; }
.page p, .page li { font-size: 18px; color: var(--text-2); }
.page strong { color: var(--text); }
.article .deck { font-size: 22px; margin: 0 0 18px; }
.article .meta { margin-bottom: 18px; }
.article-body { margin-top: 34px; font-family: var(--serif); font-size: 20px; line-height: 1.72; }
.article-body p { margin: 0 0 1.4em; }
.article-body a, .source a, .page p a { text-decoration: underline; text-underline-offset: 3px; }
.source { border-left: 4px solid var(--accent); padding: 14px 18px; background: var(--surface); margin: 30px 0; font-family: var(--sans); font-size: 14px; }
.empty { color: var(--muted); }

/* Article gallery: one photo per view, swipe or arrows */
.gallery { margin: 30px 0 0; }
.track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none; }
.track::-webkit-scrollbar { display: none; }
.track:focus-visible { outline-offset: 4px; }
.slide { flex: 0 0 100%; margin: 0; scroll-snap-align: start; }
.slide img, .gallery > .slide img { width: 100%; aspect-ratio: 3 / 2; object-fit: contain; background: var(--dark); }
.slide figcaption { padding: 10px 0 0; color: var(--muted); font-size: 14px; line-height: 1.45; }
.credit { font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
.gallery-nav { display: flex; align-items: center; justify-content: flex-end; gap: 12px; margin-top: 10px; font-size: 13px; font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; }
.gallery-nav button { width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid var(--line); background: var(--surface); color: var(--text); font: 400 22px/1 var(--serif); cursor: pointer; }
.gallery-nav button:hover:not(:disabled) { border-color: var(--accent); color: var(--accent); }
.gallery-nav button:disabled { opacity: .35; cursor: default; }

@media (max-width: 900px) {
  .home, .hero, .mission, .footer .wrap { grid-template-columns: 1fr; }
  .hero-main { border-right: 0; padding-right: 0; }
  .grid { grid-template-columns: 1fr 1fr; }
  .rail-box { position: static; }
}
@media (max-width: 620px) {
  :root { --gutter: 12px; }
  .topbar { display: none; } /* only held the tagline, which was already hidden here */
  .grid, .list .story { grid-template-columns: 1fr; }
  .list .thumb { order: -1; }
  .brand { font-size: 58px; }
}
