@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url(../fonts/geist.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Geist Mono';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url(../fonts/geist-mono.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Biohack: the longevity wire. Cool lab-white light theme, near-black dark theme, electric mint + indigo accents. */
:root {
  --bg: #f4f5f7; --paper: #ffffff; --ink: #0b0d12; --ink-2: #2b303b; --muted: #646c79; --line: #e0e3e9; --line-2: #eceef2;
  --accent: #05866a; --accent-2: #4b55d6; --accent-ink: #ffffff; --accent-soft: #e2f5ef; --signal: #f04a24; --gold: #a66f00;
  --glow: transparent; --header-bg: rgba(244, 245, 247, .82);
  --shadow: 0 1px 0 rgba(11, 13, 18, .04), 0 14px 34px -20px rgba(11, 13, 18, .28);
  --radius: 14px; --radius-sm: 10px;
  --display: 'Geist', system-ui, -apple-system, 'Segoe UI', sans-serif; --sans: 'Geist', system-ui, -apple-system, 'Segoe UI', sans-serif; --mono: 'Geist Mono', ui-monospace, 'Cascadia Mono', monospace;
  --w: 1240px;
  --ev-green: #0a7d5f; --ev-green-bg: #dff4ec; --ev-blue: #2856c7; --ev-blue-bg: #e3eafb; --ev-amber: #96600a; --ev-amber-bg: #f8edd7;
  --ev-violet: #6a3fd0; --ev-violet-bg: #ece5fb; --ev-grey: #555c67; --ev-grey-bg: #eceef1; --ev-coral: #c23d1d; --ev-coral-bg: #fbe5de;
  color-scheme: light;
}
[data-theme="dark"] {
  --bg: #07080b; --paper: #0e1015; --ink: #eef1f6; --ink-2: #c3c9d3; --muted: #838b98; --line: #1d212a; --line-2: #14171e;
  --accent: #2ee6b6; --accent-2: #8c94ff; --accent-ink: #03130e; --accent-soft: rgba(46, 230, 182, .1); --signal: #ff5f3d; --gold: #f2c14e;
  --glow: rgba(46, 230, 182, .07); --header-bg: rgba(7, 8, 11, .78);
  --shadow: 0 1px 0 rgba(255, 255, 255, .03) inset, 0 18px 40px -24px rgba(0, 0, 0, .9);
  --ev-green: #4ee8b9; --ev-green-bg: rgba(46, 230, 182, .11); --ev-blue: #8fb1ff; --ev-blue-bg: rgba(110, 145, 255, .13); --ev-amber: #f5c15b; --ev-amber-bg: rgba(245, 193, 91, .12);
  --ev-violet: #b8a2ff; --ev-violet-bg: rgba(160, 130, 255, .14); --ev-grey: #a9b0bb; --ev-grey-bg: rgba(169, 176, 187, .11); --ev-coral: #ff8f73; --ev-coral-bg: rgba(255, 110, 80, .13);
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 130px; }
body { margin: 0; background: radial-gradient(1100px 520px at 78% -8%, var(--glow), transparent 70%), radial-gradient(900px 420px at -5% 0%, color-mix(in srgb, var(--accent-2) 7%, transparent), transparent 70%) no-repeat, var(--bg); color: var(--ink); font: 400 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; font-feature-settings: 'ss01', 'cv11'; }
[data-theme="light"] body { background: var(--bg); }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--bg); padding: 8px 14px; border-radius: 8px; z-index: 99; }
.skip-link:focus { left: 12px; }
.mono { font-family: var(--mono); letter-spacing: .02em; }
.small { font-size: .8rem; }
.muted { color: var(--muted); }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font: 600 .7rem/1 var(--mono); letter-spacing: .12em; color: var(--muted); text-transform: uppercase; }
.dot { color: var(--line); margin: 0 6px; }
em { font-style: italic; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; letter-spacing: -.025em; margin: 0; line-height: 1.15; }
h3 { letter-spacing: -.012em; line-height: 1.25; }
.grad { background: linear-gradient(92deg, var(--accent) 0%, var(--accent-2) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 40; background: var(--header-bg); backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid var(--line); }
.header-inner { max-width: var(--w); margin: 0 auto; padding: 12px 24px; display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand-mark { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; background: var(--ink); color: var(--bg); }
[data-theme="dark"] .brand-mark { background: var(--paper); color: var(--ink); border: 1px solid var(--line); }
.brand-word { font: 700 1.45rem/1 var(--display); letter-spacing: -.045em; }
.brand-dot { color: var(--accent); }
.brand-tag { font: 500 .66rem/1.2 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); border-left: 1px solid var(--line); padding-left: 10px; margin-left: 2px; max-width: 90px; }
#main-nav { display: flex; gap: 4px; margin-left: auto; }
#main-nav a { padding: 8px 12px; border-radius: 999px; font-size: .9rem; font-weight: 500; color: var(--ink-2); }
#main-nav a:hover { background: var(--paper); color: var(--ink); }
#main-nav a[aria-current="page"] { background: var(--ink); color: var(--bg); }
.header-actions { display: flex; gap: 6px; }
.icon-button { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 999px; border: 1px solid var(--line); background: var(--paper); }
.icon-button:hover { border-color: var(--ink); }
.mobile-menu { display: none; }

/* Live wire bar + ticker */
.wire-bar { border-top: 1px solid var(--line-2); display: flex; align-items: center; max-width: var(--w); margin: 0 auto; padding: 0 24px; gap: 18px; height: 38px; font-size: .78rem; }
.wire-status { display: flex; align-items: center; gap: 9px; white-space: nowrap; }
.wire-status .mono { font-weight: 600; font-size: .7rem; letter-spacing: .14em; color: var(--signal); }
.wire-meta { color: var(--muted); }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--signal); box-shadow: 0 0 0 0 color-mix(in srgb, var(--signal) 60%, transparent); animation: pulse 2s infinite; flex-shrink: 0; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--signal) 55%, transparent); } 70% { box-shadow: 0 0 0 7px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.ticker { overflow: hidden; flex: 1; mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); border-left: 1px solid var(--line); padding-left: 14px; }
.ticker-track { display: inline-flex; gap: 18px; white-space: nowrap; animation: ticker 70s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker a { color: var(--ink-2); }
.ticker a:hover { color: var(--accent); }
.ticker .mono { color: var(--muted); font-size: .72rem; margin-right: 4px; }
.tick-sep { color: var(--accent); font-size: .6rem; }
@keyframes ticker { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker-track, .live-dot { animation: none; } html { scroll-behavior: auto; } }

/* Labels */
.card-kicker { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.cat { font: 600 .7rem/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.cat:hover { text-decoration: underline; text-underline-offset: 3px; }
.ev { display: inline-flex; align-items: center; gap: 6px; font: 600 .68rem/1 var(--sans); padding: 5px 8px 5px 7px; border-radius: 999px; white-space: nowrap; color: var(--c); background: var(--b); }
.ev i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.ev.sm { font-size: .63rem; padding: 4px 7px 4px 6px; }
.ev.lg { font-size: .8rem; padding: 7px 12px 7px 10px; }
.ev-green { --c: var(--ev-green); --b: var(--ev-green-bg); } .ev-blue { --c: var(--ev-blue); --b: var(--ev-blue-bg); } .ev-amber { --c: var(--ev-amber); --b: var(--ev-amber-bg); }
.ev-violet { --c: var(--ev-violet); --b: var(--ev-violet-bg); } .ev-grey { --c: var(--ev-grey); --b: var(--ev-grey-bg); } .ev-coral { --c: var(--ev-coral); --b: var(--ev-coral-bg); }
.development { font-size: .64rem; font-weight: 600; letter-spacing: .1em; color: var(--ink-2); background: var(--paper); border: 1px solid var(--line); padding: 4px 7px; border-radius: 5px; }

/* Buttons and links */
.button { display: inline-flex; align-items: center; gap: 8px; padding: 11px 18px; border-radius: 999px; background: var(--ink); color: var(--bg); border: 1px solid var(--ink); font-weight: 600; font-size: .9rem; }
.button:hover { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.button-outline { background: transparent; color: var(--ink); border-color: var(--line); padding: 9px 15px; }
.button-outline:hover { border-color: var(--ink); background: var(--paper); color: var(--ink); }
.text-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: .88rem; color: var(--accent); }
.text-link:hover { gap: 9px; }

/* Home */
main { display: block; }
.home, .collection-page, .article-page, .person-page, .simple-page { max-width: var(--w); margin: 0 auto; padding: 0 24px; }
.masthead { position: relative; display: grid; grid-template-columns: 1.15fr 1fr; gap: 48px; align-items: end; padding: 54px 0 34px; border-bottom: 1px solid var(--line); }
.masthead::before { content: ''; position: absolute; inset: 0 -24px; z-index: -1; background-image: radial-gradient(circle at 1px 1px, color-mix(in srgb, var(--ink) 11%, transparent) 1px, transparent 0); background-size: 22px 22px; -webkit-mask-image: linear-gradient(180deg, transparent, #000 30%, #000 60%, transparent); mask-image: linear-gradient(180deg, transparent, #000 30%, #000 60%, transparent); pointer-events: none; }
.masthead h1 { font-size: clamp(2.6rem, 5.6vw, 4.5rem); font-weight: 650; letter-spacing: -.05em; line-height: 1.02; margin-top: 16px; }
.masthead p { color: var(--ink-2); font-size: 1.06rem; max-width: 520px; margin: 0 0 6px; }
.front { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); gap: 36px; padding: 34px 0; }
.story-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s, border-color .2s; }
.story-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--ink) 25%, var(--line)); }
.card-image { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--line-2); }
.card-image img, .img-fallback { width: 100%; height: 100%; object-fit: cover; }
.img-fallback { display: grid; place-items: center; color: var(--muted); background: repeating-linear-gradient(135deg, var(--line-2) 0 12px, var(--paper) 12px 24px); }
.illus-dot { position: absolute; left: 10px; bottom: 10px; font: 600 .56rem/1 var(--mono); letter-spacing: .14em; color: #fff; background: rgba(10, 20, 15, .55); backdrop-filter: blur(6px); padding: 4px 6px; border-radius: 4px; }
.card-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.story-card h3 { font-size: 1.24rem; line-height: 1.2; }
.story-card h3 a:hover { color: var(--accent); }
.story-card p { margin: 0; color: var(--ink-2); font-size: .93rem; }
.card-meta { margin-top: auto; display: flex; align-items: center; color: var(--muted); font-size: .78rem; }
.story-card.big .card-body { padding: 24px 28px 26px; gap: 12px; }
.story-card.big h3 { font-size: clamp(1.7rem, 3vw, 2.3rem); letter-spacing: -.035em; line-height: 1.1; }
.story-card.big p { font-size: 1.05rem; }
.just-in { border-top: 3px solid var(--ink); padding-top: 14px; display: flex; flex-direction: column; }
.rail-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.just-in .rail-head { justify-content: flex-start; }
.just-item { padding: 14px 0; border-bottom: 1px solid var(--line); }
.just-meta { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 7px; }
.just-meta time { font-size: .72rem; color: var(--signal); font-weight: 600; }
.just-item h3 { font-size: 1.06rem; line-height: 1.22; }
.just-item h3 a:hover { color: var(--accent); }
.just-cat { display: block; font: 500 .7rem/1 var(--mono); color: var(--muted); margin-top: 7px; letter-spacing: .04em; }
.just-in .text-link { margin-top: 16px; }
.topic-strip { display: flex; flex-wrap: wrap; gap: 8px; padding: 4px 0 26px; border-bottom: 1px solid var(--line); }
.topic-strip a { display: inline-flex; align-items: center; gap: 9px; white-space: nowrap; padding: 9px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); font-size: .87rem; font-weight: 500; }
.topic-strip a:hover { border-color: var(--accent); color: var(--accent); }
.topic-strip b { font-size: .68rem; color: var(--muted); background: var(--bg); border-radius: 999px; padding: 2px 7px; }

/* The wire */
.wire-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 44px; padding: 40px 0 20px; align-items: start; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.section-heading h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-top: 10px; font-weight: 600; letter-spacing: -.035em; }
.filter-bar { display: flex; flex-direction: column; gap: 12px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips button { border: 1px solid var(--line); background: transparent; border-radius: 999px; padding: 6px 12px; font-size: .8rem; font-weight: 500; color: var(--ink-2); }
.chips button:hover { border-color: var(--ink); }
.chips button[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.filter-tools { display: flex; gap: 8px; }
.search-box, .select-box { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: var(--paper); border-radius: 10px; padding: 0 12px; height: 40px; color: var(--muted); }
.search-box { flex: 1; }
.search-box input { border: 0; background: transparent; outline: 0; flex: 1; min-width: 0; color: var(--ink); font-size: .9rem; }
.select-box select { border: 0; background: transparent; outline: 0; font-size: .86rem; color: var(--ink); }
.search-box:focus-within, .select-box:focus-within { border-color: var(--accent); }
.river-day { padding-top: 22px; }
.day-label { display: flex; justify-content: space-between; align-items: center; font: 600 .7rem/1 var(--mono); letter-spacing: .12em; color: var(--ink); padding-bottom: 10px; border-bottom: 2px solid var(--ink); }
.day-label span { color: var(--muted); font-weight: 500; }
.river-item { display: grid; grid-template-columns: 64px minmax(0, 1fr) 148px; gap: 18px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.river-item[hidden], .river-day[hidden] { display: none; }
.river-time { display: flex; flex-direction: column; gap: 2px; padding-top: 2px; }
.river-time .mono { font-weight: 600; font-size: .92rem; }
.river-time small { font: 500 .6rem/1 var(--mono); letter-spacing: .1em; color: var(--muted); }
.river-main h3 { font-size: 1.26rem; line-height: 1.25; margin: 9px 0 6px; letter-spacing: -.02em; }
.river-main h3 a:hover { color: var(--accent); }
.river-main p { margin: 0; color: var(--ink-2); font-size: .93rem; }
.river-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; }
.river-foot .muted { margin-left: auto; }
.river-thumb { display: block; aspect-ratio: 4 / 3; border-radius: var(--radius-sm); overflow: hidden; background: var(--line-2); align-self: start; }
.river-thumb img, .river-thumb .img-fallback { width: 100%; height: 100%; object-fit: cover; }
.river-flat .river-item:first-child { border-top: 1px solid var(--line); }
.person-chip { display: inline-flex; align-items: center; gap: 6px; font-size: .76rem; font-weight: 500; padding: 3px 9px 3px 3px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); }
.person-chip:hover { border-color: var(--accent); }
.thread-chip { display: inline-flex; align-items: center; gap: 5px; font-size: .74rem; font-weight: 600; color: var(--accent); }
.avatar { width: var(--s, 44px); height: var(--s, 44px); border-radius: 50%; object-fit: cover; flex-shrink: 0; background: var(--line-2); }
img.avatar { width: auto; aspect-ratio: 1; object-fit: cover; }
.person-chip .avatar { width: 22px; height: 22px; --s: 22px; font-size: .52rem; }
.avatar-initials { width: var(--s, 44px); height: var(--s, 44px); flex: 0 0 var(--s, 44px); display: inline-grid; place-items: center; font: 600 calc(var(--s, 44px) * .36)/1 var(--display); color: var(--accent); background: var(--accent-soft); }
.empty-state { text-align: center; padding: 50px 20px; }
.empty-state h3 { font-size: 1.4rem; margin-bottom: 6px; }

/* Side rail */
.side-rail { position: sticky; top: 130px; display: flex; flex-direction: column; gap: 22px; }
.rail-box { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.rail-box .rail-head a { display: inline-flex; align-items: center; gap: 4px; color: var(--accent); font-weight: 600; }
.rail-person { display: flex; align-items: center; gap: 12px; padding: 9px 0; border-top: 1px solid var(--line-2); }
.rail-person:first-of-type { border-top: 0; }
.rail-person img.avatar { height: 40px; }
.rail-person > span:not(.avatar) { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.rail-person strong { font-size: .92rem; }
.rail-person small { color: var(--muted); font-size: .76rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rail-person b { font-size: .7rem; color: var(--accent); background: var(--accent-soft); padding: 3px 8px; border-radius: 999px; }
.rail-person:hover strong { color: var(--accent); }
.rail-thread { display: flex; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line-2); }
.rail-thread:first-of-type { border-top: 0; }
.rail-thread span:last-child { display: flex; flex-direction: column; gap: 2px; }
.rail-thread strong { font-size: .88rem; line-height: 1.3; }
.rail-thread small { color: var(--muted); font-size: .76rem; }
.rail-thread:hover strong { color: var(--accent); }
.thread-icon { color: var(--accent); flex-shrink: 0; padding-top: 2px; }
.key-row { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 8px 0; border-top: 1px solid var(--line-2); }
.key-row:first-of-type { border-top: 0; }
.key-row small { color: var(--muted); font-size: .75rem; line-height: 1.4; }

/* By topic + principles */
.by-topic { padding: 50px 0 10px; border-top: 1px solid var(--line); margin-top: 30px; }
.topic-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.topic-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; gap: 10px; }
.topic-title { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.topic-title h2, .topic-title h3 { font-size: 1.3rem; }
.topic-title:hover { color: var(--accent); }
.topic-card p { margin: 0; color: var(--muted); font-size: .88rem; }
.topic-card ul { list-style: none; margin: 6px 0 0; padding: 0; }
.topic-card li { display: flex; flex-direction: column; gap: 3px; padding: 10px 0; border-top: 1px solid var(--line-2); font-size: .92rem; font-weight: 500; line-height: 1.3; }
.topic-card li a:hover { color: var(--accent); }
.topic-card li time { color: var(--muted); font-size: .7rem; }
.principles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin: 50px 0 70px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--paper); }
.principle { padding: 26px 24px; border-left: 1px solid var(--line); }
.principle:first-child { border-left: 0; }
.principle .mono { color: var(--accent); font-size: .74rem; font-weight: 600; }
.principle h3 { font-size: 1.25rem; margin: 12px 0 8px; }
.principle p { margin: 0; color: var(--muted); font-size: .88rem; }

/* Article */
#reading-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; background: var(--accent); transform: scaleX(0); transform-origin: 0 50%; z-index: 60; }
.breadcrumbs { display: flex; gap: 8px; color: var(--muted); font-size: .82rem; padding: 26px 0 0; }
.breadcrumbs a:hover { color: var(--accent); }
.article-header { max-width: 880px; padding: 26px 0 30px; }
.article-header h1 { font-size: clamp(2.1rem, 4.6vw, 3.5rem); letter-spacing: -.045em; line-height: 1.06; margin: 18px 0 18px; font-weight: 650; }
.article-deck { font-size: 1.18rem; color: var(--ink-2); margin: 0; line-height: 1.5; }
.article-byline { display: flex; align-items: center; gap: 12px; margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.desk-mark { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--ink); color: var(--bg); }
.article-byline > div:nth-child(2) { display: flex; flex-direction: column; font-size: .84rem; }
.article-byline span { color: var(--muted); }
.article-byline span a { color: var(--accent); font-weight: 600; }
.article-actions { margin-left: auto; }
.article-cover { margin: 0 0 40px; }
.article-cover img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius); background: var(--line-2); }
figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; padding-top: 10px; font-size: .8rem; color: var(--muted); }
.credit { font: 500 .68rem/1.4 var(--mono); letter-spacing: .02em; }
.credit a:hover { color: var(--accent); }
.credit.illus { color: var(--gold); letter-spacing: .12em; text-transform: uppercase; }
.reading-layout { display: grid; grid-template-columns: 200px minmax(0, 720px) 300px; gap: 44px; justify-content: space-between; align-items: start; }
.toc { position: sticky; top: 130px; display: flex; flex-direction: column; gap: 2px; }
.toc .eyebrow { margin-bottom: 10px; }
.toc a { display: flex; gap: 10px; font-size: .82rem; color: var(--muted); padding: 6px 0; line-height: 1.3; border-bottom: 1px solid var(--line-2); }
.toc a .mono { font-size: .68rem; color: var(--accent); padding-top: 2px; }
.toc a:hover { color: var(--ink); }
.article-rail { position: sticky; top: 130px; }
.glance-mobile { display: none; }
.glance { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; display: flex; flex-direction: column; gap: 16px; }
.glance-ev { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.glance-ev p { margin: 0; font-size: .84rem; color: var(--ink-2); line-height: 1.45; }
.facts { margin: 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.facts div { display: grid; grid-template-columns: 96px 1fr; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line-2); }
.facts dt { font: 500 .68rem/1.5 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.facts dd { margin: 0; font-size: .86rem; font-weight: 600; line-height: 1.4; }
.glance-people, .glance-thread { display: flex; flex-direction: column; gap: 6px; }
.glance-thread a { display: inline-flex; gap: 6px; align-items: center; font-weight: 600; font-size: .9rem; color: var(--accent); }
.glance-thread small { color: var(--muted); font-size: .76rem; }
.tldr { background: var(--accent-soft); border-left: 3px solid var(--accent); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; padding: 18px 22px; margin-bottom: 30px; }
.tldr p { margin: 8px 0 0; font-size: 1.02rem; line-height: 1.55; font-weight: 500; }
.article-prose { font-size: 1.075rem; line-height: 1.78; color: var(--ink-2); }
.article-prose > p:first-child { font-size: 1.16rem; color: var(--ink); }
.article-prose p { margin: 0 0 1.25em; }
.article-prose h2 { font-size: 1.7rem; margin: 1.9em 0 .6em; letter-spacing: -.02em; }
.article-prose h3 { font-size: 1.25rem; margin: 1.5em 0 .5em; }
.article-prose ul, .article-prose ol { padding-left: 1.3em; margin: 0 0 1.3em; }
.article-prose li { margin-bottom: .45em; }
.article-prose li::marker { color: var(--accent); }
.article-prose strong { font-weight: 650; }
.article-prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.article-prose blockquote { margin: 1.6em 0; padding: 4px 0 4px 22px; border-left: 3px solid var(--accent); font: 500 1.22rem/1.5 var(--display); letter-spacing: -.01em; color: var(--ink-2); }
.cite { font: 600 .62rem/1 var(--mono); margin-left: 1px; vertical-align: super; }
.cite a { display: inline-block; min-width: 16px; padding: 2px 4px; text-align: center; color: var(--accent) !important; background: var(--accent-soft); border-radius: 4px; text-decoration: none !important; }
.cite a:hover { background: var(--accent); color: var(--accent-ink) !important; }
.table-wrap { overflow-x: auto; margin: 0 0 1.5em; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.article-prose table { border-collapse: collapse; width: 100%; font-size: .9rem; line-height: 1.45; }
.article-prose th, .article-prose td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line-2); vertical-align: top; }
.article-prose th { font: 600 .7rem/1.3 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); background: var(--paper); }
.media-figure { margin: 2em 0; }
.media-figure img { border-radius: var(--radius-sm); width: 100%; background: var(--line-2); }
.media-figure img[height] { max-height: 680px; width: auto; max-width: 100%; margin: 0 auto; }
.video-embed { margin: 2em 0; }
.video-facade, .video-frame { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; padding: 0; border-radius: var(--radius-sm); overflow: hidden; background: #000; }
.video-facade img { width: 100%; height: 100%; object-fit: cover; opacity: .85; transition: opacity .2s; }
.video-facade:hover img { opacity: 1; }
.play-badge { position: absolute; inset: 0; margin: auto; width: 68px; height: 68px; border-radius: 50%; display: grid; place-items: center; background: var(--signal); color: #fff; box-shadow: 0 8px 30px rgba(0, 0, 0, .35); transition: transform .2s; }
.video-facade:hover .play-badge { transform: scale(1.07); }
.play-badge svg { margin-left: 3px; }
.video-label { position: absolute; left: 12px; top: 12px; font-size: .62rem; font-weight: 600; letter-spacing: .14em; color: #fff; background: rgba(0, 0, 0, .55); padding: 4px 7px; border-radius: 4px; }
.video-embed figcaption { flex-direction: column; align-items: flex-start; gap: 2px; }
.video-embed figcaption strong { color: var(--ink); font-size: .9rem; }
.video-embed figcaption a { color: var(--accent); font-weight: 600; display: inline-flex; gap: 4px; align-items: center; margin-top: 4px; }
.faq { margin-top: 44px; }
.faq h2 { font-size: 1.6rem; margin-bottom: 14px; }
.faq-item { border-top: 1px solid var(--line); }
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-item summary { cursor: pointer; list-style: none; padding: 16px 30px 16px 0; font-weight: 600; position: relative; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; position: absolute; right: 4px; top: 12px; font: 400 1.4rem/1 var(--sans); color: var(--accent); }
.faq-item[open] summary::after { content: '–'; }
.faq-item p { margin: 0 0 18px; color: var(--ink-2); }
.sources { margin-top: 48px; padding: 24px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.sources h2 { font-size: 1.4rem; }
.sources > p { margin: 6px 0 16px; }
.sources ol { list-style: none; margin: 0; padding: 0; }
.sources li { display: flex; gap: 14px; padding: 12px 0; border-top: 1px solid var(--line-2); scroll-margin-top: 140px; }
.sources li:target { background: var(--accent-soft); margin: 0 -12px; padding: 12px; border-radius: 8px; }
.src-n { font-weight: 600; color: var(--accent); font-size: .8rem; min-width: 18px; padding-top: 2px; }
.sources li > div { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.sources li a { font-weight: 600; font-size: .93rem; line-height: 1.35; overflow-wrap: anywhere; }
.sources li a:hover { color: var(--accent); }
.sources li a svg { display: inline; vertical-align: -1px; color: var(--muted); }
.sources small { color: var(--muted); font-size: .78rem; }
.src-kind { align-self: flex-start; font: 600 .58rem/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; padding: 3px 6px; border-radius: 4px; color: var(--ev-grey); background: var(--ev-grey-bg); }
.kind-primary { color: var(--ev-green); background: var(--ev-green-bg); }
.kind-registry { color: var(--ev-blue); background: var(--ev-blue-bg); }
.kind-company { color: var(--ev-amber); background: var(--ev-amber-bg); }
.sources.compact { max-width: 760px; margin-bottom: 60px; }
.disclaimer { margin: 26px 0 0; font-size: .84rem; color: var(--muted); padding: 14px 16px; border: 1px dashed var(--line); border-radius: var(--radius-sm); }
.disclaimer strong { color: var(--ink); }
.related { padding: 60px 0 70px; margin-top: 60px; border-top: 1px solid var(--line); }
.story-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 20px; }

/* Collections, people, threads */
.collection-page { padding-bottom: 80px; }
.collection-page > h1, .person-header h1, .simple-page > h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); font-weight: 650; letter-spacing: -.05em; line-height: 1.04; margin: 14px 0 16px; }
.collection-page > .eyebrow, .simple-page > .eyebrow { margin-top: 44px; }
.back-link { display: inline-block; margin-top: 26px; font-size: .84rem; color: var(--muted); }
.back-link + .eyebrow { margin-top: 24px; }
.back-link:hover { color: var(--accent); }
.collection-deck { max-width: 720px; color: var(--ink-2); font-size: 1.08rem; margin: 0 0 36px; }
.people-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.person-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 20px; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; transition: border-color .2s, transform .2s; }
.person-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.person-card img.avatar { height: 84px; margin-bottom: 10px; }
.person-card .avatar-initials { margin-bottom: 10px; }
.person-card strong { font: 600 1.2rem/1.2 var(--display); }
.person-card small { color: var(--muted); font-size: .82rem; line-height: 1.35; }
.person-card b { margin-top: auto; padding-top: 10px; color: var(--accent); }
.focus { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 6px; }
.focus i { font-style: normal; font-size: .7rem; padding: 3px 8px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line-2); color: var(--ink-2); }
.person-header { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 44px; padding: 30px 0 46px; border-bottom: 1px solid var(--line); align-items: start; }
.person-photo { margin: 0; }
.person-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); background: var(--line-2); }
.person-photo .avatar-initials { width: 100%; height: auto; aspect-ratio: 4 / 5; border-radius: var(--radius); font-size: 4rem; }
.person-role { font: 500 .9rem/1.4 var(--mono); color: var(--accent); margin: 0 0 16px; }
.person-header .focus { margin: 18px 0; }
.follow-links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 18px 0; }
.follow-links .eyebrow { width: 100%; }
.follow-links a { display: inline-flex; align-items: center; gap: 5px; padding: 7px 13px; border: 1px solid var(--line); border-radius: 999px; font-size: .85rem; font-weight: 600; background: var(--paper); }
.follow-links a:hover { border-color: var(--accent); color: var(--accent); }
.watch { display: flex; flex-direction: column; gap: 8px; padding: 16px 18px; border-radius: var(--radius-sm); background: var(--paper); border: 1px solid var(--line); margin: 0; font-size: .95rem; }
.person-stories { padding: 40px 0 20px; max-width: 900px; }
.thread-list { display: flex; flex-direction: column; gap: 10px; max-width: 900px; }
.thread-card { display: flex; align-items: center; gap: 16px; padding: 18px 20px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.thread-card:hover { border-color: var(--accent); }
.thread-card > div { display: flex; flex-direction: column; gap: 6px; flex: 1; }
.thread-card strong { font: 600 1.2rem/1.25 var(--display); }
.thread-card small { color: var(--muted); }
.timeline { list-style: none; padding: 0; margin: 0; max-width: 820px; border-left: 2px solid var(--line); }
.timeline li { position: relative; display: grid; grid-template-columns: 120px 1fr; gap: 20px; padding: 0 0 34px 26px; }
.timeline li::before { content: ''; position: absolute; left: -7px; top: 4px; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--bg); }
.tl-date { font-size: .78rem; font-weight: 600; padding-top: 2px; }
.tl-body { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.tl-body h3 { width: 100%; font-size: 1.35rem; margin-top: 4px; }
.tl-body h3 a:hover { color: var(--accent); }
.tl-body p { margin: 0; color: var(--ink-2); }
.simple-page { max-width: 820px; padding-bottom: 80px; }
.simple-page .lead { font-size: 1.22rem; color: var(--ink-2); }
.label-table { display: grid; gap: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--paper); margin-bottom: 1.5em; }
.label-table div { display: grid; grid-template-columns: 150px 1fr; gap: 16px; align-items: center; padding: 12px 16px; border-top: 1px solid var(--line-2); }
.label-table div:first-child { border-top: 0; }
.label-table p { margin: 0; font-size: .92rem; color: var(--ink-2); }

/* Footer */
.site-footer { background: var(--ink); color: var(--bg); margin-top: 40px; }
[data-theme="dark"] .site-footer { background: #040507; color: var(--ink); border-top: 1px solid var(--line); }
.footer-top { max-width: var(--w); margin: 0 auto; padding: 56px 24px 40px; display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 40px; }
.site-footer .brand-mark { background: var(--bg); color: var(--ink); }
[data-theme="dark"] .site-footer .brand-mark { background: var(--paper); color: var(--ink); }
.site-footer p { color: color-mix(in srgb, currentColor 70%, transparent); font-size: .88rem; max-width: 340px; }
.site-footer .eyebrow { color: color-mix(in srgb, currentColor 55%, transparent); margin-bottom: 14px; }
.footer-top > div:not(.footer-brand):not(.footer-note) { display: flex; flex-direction: column; gap: 9px; font-size: .9rem; }
.footer-top a:hover { color: var(--accent); }
[data-theme="light"] .site-footer a:hover { color: #6fe0ac; }
.footer-note { border: 1px solid color-mix(in srgb, currentColor 18%, transparent); border-radius: var(--radius); padding: 18px; }
.footer-note p { margin: 0; font-size: .82rem; }
.footer-bottom { max-width: var(--w); margin: 0 auto; padding: 18px 24px 26px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .76rem; color: color-mix(in srgb, currentColor 55%, transparent); border-top: 1px solid color-mix(in srgb, currentColor 14%, transparent); }
#toast { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); background: var(--ink); color: var(--bg); padding: 10px 18px; border-radius: 999px; font-size: .86rem; z-index: 80; }

/* Responsive */
@media (max-width: 1180px) {
  .reading-layout { grid-template-columns: minmax(0, 1fr) 290px; }
  .toc { display: none; }
}
@media (max-width: 1020px) {
  .brand-tag { display: none; }
  .wire-layout { grid-template-columns: 1fr; }
  .side-rail { position: static; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
  .front { grid-template-columns: 1fr; }
  .principles { grid-template-columns: 1fr 1fr; }
  .principle:nth-child(3) { border-left: 0; }
  .principle:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .mobile-menu { display: grid; }
  #main-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; background: var(--bg); border-bottom: 1px solid var(--line); padding: 10px 16px 16px; }
  .nav-open #main-nav { display: flex; }
  .header-actions { margin-left: auto; }
  .reading-layout { grid-template-columns: 1fr; }
  .article-rail { display: none; }
  .glance-mobile { display: block; margin-bottom: 30px; }
  .masthead { grid-template-columns: 1fr; gap: 18px; padding-top: 38px; }
  .person-header { grid-template-columns: 1fr; }
  .person-photo { max-width: 260px; }
}
@media (max-width: 640px) {
  .header-inner, .wire-bar, .home, .collection-page, .article-page, .person-page, .simple-page { padding-left: 16px; padding-right: 16px; }
  .wire-meta { display: none; }
  .river-item { grid-template-columns: minmax(0, 1fr) 92px; gap: 12px; }
  .river-time { grid-column: 1 / -1; flex-direction: row; gap: 6px; align-items: baseline; }
  .river-main h3 { font-size: 1.12rem; }
  .river-main p { display: none; }
  .river-foot .muted { margin-left: 0; }
  .filter-tools { flex-direction: column; }
  .principles { grid-template-columns: 1fr; }
  .principle { border-left: 0 !important; border-top: 1px solid var(--line); }
  .principle:first-child { border-top: 0; }
  .footer-top { grid-template-columns: 1fr; }
  .article-actions { margin-left: 0; }
  .timeline li { grid-template-columns: 1fr; gap: 6px; }
  .label-table div { grid-template-columns: 1fr; gap: 6px; }
  .story-card.big .card-body { padding: 18px; }
}
