/* Twelve Holdings: one stylesheet for every public page (templates/site/).
   The membership app keeps its own style.css. */

:root {
  --bg: #f5f4f0;
  --band: #e2e1dc;          /* the brand gray behind the [12] mark */
  --card: #fcfbf8;
  --ink: #0b0b0a;
  --ink-2: #34332f;
  --muted: #67655e;
  --faint: #949288;
  --line: #d8d6cf;
  --line-2: #b9b6ad;
  --accent: #9c4f2a;
  --sans: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --serif: "Source Serif 4", Georgia, serif;
  --max: 1240px;
  --gut: clamp(16px, 4vw, 48px);
  --hd: 68px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); scroll-behavior: smooth; scroll-padding-top: calc(var(--hd) + 16px); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16.5px/1.6 var(--sans); font-optical-sizing: auto; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 500; }
p { margin: 0; }
::selection { background: var(--ink); color: var(--bg); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }

.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--gut)); margin: 0 auto; padding: 0 var(--gut); }
.sr, .hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -48px; z-index: 100; background: var(--ink); color: var(--bg); padding: 10px 14px; text-decoration: none; font-size: 14px; }
.skip:focus { top: 12px; }

/* ---------- type ---------- */
.eyebrow { font-size: 12.5px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.lede { font-size: clamp(18px, 1.55vw, 21px); line-height: 1.5; color: var(--ink-2); }
.sec-lede { margin-top: 18px; font-size: 18px; line-height: 1.55; color: var(--muted); max-width: 46ch; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: .5em; min-height: 44px; padding: 0 18px; border: 1px solid var(--line-2); border-radius: 999px; background: transparent; color: var(--ink); font: 500 15px/1 var(--sans); text-decoration: none; white-space: nowrap; cursor: pointer; transition: background .2s, border-color .2s, color .2s; }
.btn:hover { border-color: var(--ink); }
.btn-dark { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.btn-dark:hover { background: #2a2925; border-color: #2a2925; }
.btn[disabled] { opacity: .6; cursor: progress; }

/* ---------- brand mark ---------- */
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.mark { font: 500 19px/1 var(--sans); letter-spacing: -.02em; font-variant-numeric: lining-nums; }
.mark i { font-style: normal; font-weight: 200; }
.word { font: 500 17px/1 var(--sans); letter-spacing: -.01em; }

/* ---------- header ---------- */
.hd { position: sticky; top: 0; z-index: 50; height: var(--hd); border-bottom: 1px solid transparent; transition: border-color .25s; }
/* The blur sits on a layer behind the header, not on the header itself, so the
   mobile menu (a fixed child) still paints solid in Chrome. */
.hd::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(245, 244, 240, .86); -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px); transition: background .25s; }
.home .hd::before { background: rgba(226, 225, 220, .86); }
.home .hd.past::before { background: rgba(245, 244, 240, .86); }
.hd.solid { border-color: var(--line); }
.hd-in { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nav { display: flex; align-items: center; gap: clamp(18px, 2.6vw, 34px); }
.nav a { font-size: 15px; font-weight: 450; color: var(--ink-2); text-decoration: none; transition: color .2s; }
.nav a:hover, .nav a[aria-current] { color: var(--ink); }
.nav a[aria-current] { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }
.nav .nav-cta { padding: 9px 16px; border: 1px solid var(--line-2); border-radius: 999px; color: var(--ink); }
.nav .nav-cta:hover { border-color: var(--ink); }
.menu { display: none; width: 44px; height: 44px; margin-right: -10px; border: 0; background: none; cursor: pointer; color: var(--ink); }
.menu-bars, .menu-bars::before { display: block; width: 20px; height: 1.5px; margin: 0 auto; background: currentColor; position: relative; transition: transform .2s; }
.menu-bars::before { content: ""; position: absolute; top: 6px; }
.menu-bars { transform: translateY(-3px); }
.menu[aria-expanded="true"] .menu-bars { transform: rotate(45deg); }
.menu[aria-expanded="true"] .menu-bars::before { top: 0; transform: rotate(-90deg); }

/* ---------- hero (home) ---------- */
.hero { background: var(--band); padding: clamp(56px, 9vw, 120px) 0 0; }
.hero h1 { margin-top: 22px; max-width: 13ch; font-size: clamp(44px, 7.2vw, 104px); line-height: .98; letter-spacing: -.045em; font-weight: 500; }
.hero-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 28px 64px; margin-top: clamp(28px, 4vw, 48px); }
.hero-row .lede { max-width: 54ch; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }
.index { list-style: none; margin: clamp(56px, 8vw, 104px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line-2); }
.index li + li { border-left: 1px solid var(--line-2); }
.index a { display: flex; flex-direction: column; gap: 8px; height: 100%; padding: 22px 22px 30px; text-decoration: none; transition: background .2s; }
.index li:first-child a { padding-left: 0; }
.index a:hover { background: rgba(11, 11, 10, .035); }
.index li:first-child a:hover { background: none; }
.ix { font-size: 12.5px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-variant-numeric: tabular-nums; }
.ix-name { margin-top: 10px; font-size: 20px; font-weight: 500; letter-spacing: -.015em; line-height: 1.2; }
.ix-line { font-size: 15px; line-height: 1.45; color: var(--muted); }
.index a:hover .ix-name { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }

/* ---------- sections ---------- */
.sec { padding: clamp(72px, 10vw, 136px) 0; }
.sec-band { background: var(--band); }
.sec h2 { font-size: clamp(32px, 4.2vw, 54px); line-height: 1.04; letter-spacing: -.035em; max-width: 16ch; margin-top: 16px; }
.sec-head { margin-bottom: clamp(40px, 6vw, 72px); }
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 40px clamp(40px, 7vw, 112px); align-items: start; }

/* ---------- project rows ---------- */
.proj { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 40px clamp(40px, 7vw, 112px); align-items: center; padding: clamp(48px, 6vw, 80px) 0; border-top: 1px solid var(--line); scroll-margin-top: var(--hd); }
.proj:last-child { padding-bottom: 0; }
.proj:nth-of-type(even) .proj-text { order: 2; }
.proj-tag { font-size: 12.5px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-variant-numeric: tabular-nums; }
.proj h3 { margin-top: 14px; font-size: clamp(30px, 3.2vw, 42px); line-height: 1.05; letter-spacing: -.03em; }
.proj-line { margin-top: 8px; font-size: 18px; color: var(--muted); }
.proj-sum { margin-top: 22px; font-size: 17px; line-height: 1.6; color: var(--ink-2); max-width: 52ch; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; margin: 28px 0 0; }
.facts div { padding: 12px 0; border-top: 1px solid var(--line); }
.facts dt { font-size: 12.5px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
.facts dd { margin: 4px 0 0; font-size: 15.5px; line-height: 1.4; }
.notice { margin-top: 22px; padding-left: 14px; border-left: 2px solid var(--line-2); font-size: 14px; line-height: 1.55; color: var(--muted); max-width: 56ch; }
.proj-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }

.proj-vis { position: relative; min-height: 380px; border-radius: 20px; background: var(--band); display: grid; place-items: center; padding: clamp(24px, 4vw, 48px); overflow: hidden; }

/* research: a sheet of paper */
.paper { width: 100%; max-width: 440px; background: var(--card); border: 1px solid var(--line); border-radius: 6px; box-shadow: 0 1px 2px rgba(20, 18, 12, .05), 0 22px 50px rgba(20, 18, 12, .09); padding: 26px 28px 10px; }
.paper-head { display: flex; justify-content: space-between; padding-bottom: 14px; border-bottom: 1px solid var(--ink); font-size: 12px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.paper-item { display: flex; flex-direction: column; gap: 6px; padding: 18px 0; text-decoration: none; }
.paper-item + .paper-item { border-top: 1px solid var(--line); }
.paper-item time { font-size: 13px; color: var(--faint); }
.paper-item strong { font: 500 18px/1.3 var(--serif); letter-spacing: -.005em; }
.paper-item.lead strong { font-size: 25px; line-height: 1.18; }
.paper-item span { font: 400 15.5px/1.5 var(--serif); color: var(--muted); }
.paper-item:hover strong { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }

/* lifecharts: a price card */
.vis-lifecharts { background: #efe6da; }
.lc { width: 100%; max-width: 400px; background: #fffcf7; color: #2a221d; border-radius: 26px; padding: 26px 26px 20px; box-shadow: 0 2px 6px rgba(40, 22, 8, .06), 0 30px 70px rgba(40, 22, 8, .14); }
.lc-tick { font-size: 14px; font-weight: 600; letter-spacing: .02em; color: #8c7f75; }
.lc-price { margin-top: 6px; font-size: 36px; font-weight: 600; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.lc-move { margin-top: 2px; font-size: 15px; font-weight: 500; color: #0f9d7a; font-variant-numeric: tabular-nums; }
.lc svg { width: 100%; height: 150px; margin-top: 20px; overflow: visible; }
.lc-line { fill: none; stroke: #0f9d7a; stroke-width: 2.25; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.lc-area { fill: url(#lcfill); }
.lc-ath { stroke: #c9bcae; stroke-width: 1; stroke-dasharray: 3 4; vector-effect: non-scaling-stroke; }
.lc-foot { display: flex; justify-content: space-between; margin-top: 12px; padding-top: 10px; border-top: 1px solid #ece2d6; font-size: 12.5px; color: #8c7f75; }

/* global wind: an engineering drawing */
.vawt { width: 100%; max-width: 380px; height: auto; }
.vawt .g { stroke: rgba(11, 11, 10, .07); stroke-width: 1; }
.vawt .ground { stroke: var(--ink); stroke-width: 1.5; }
.vawt .mast { stroke: var(--ink); stroke-width: 3; }
.vawt .strut { stroke: var(--ink); stroke-width: 2; }
.vawt .part { fill: var(--bg); stroke: var(--ink); stroke-width: 1.5; }
.vawt .blade { fill: var(--ink); }
.vawt .blade.back { fill: var(--faint); }
.vawt .dim { stroke: var(--muted); stroke-width: 1; }
.vawt .t { font: 500 10px/1 var(--sans); letter-spacing: .1em; fill: var(--muted); }
.vawt .t.end { text-anchor: end; }

/* fund: a quiet dark panel */
.vis-fund { background: var(--ink); color: var(--band); place-items: stretch; }
.fund { display: flex; flex-direction: column; justify-content: space-between; gap: 40px; width: 100%; }
.fund-mark { font-size: clamp(34px, 4vw, 52px); font-weight: 500; letter-spacing: -.035em; }
.fund-mark i { font-style: normal; font-weight: 200; color: #8a887f; }
.fund-line { font-size: clamp(22px, 2.3vw, 30px); line-height: 1.2; letter-spacing: -.02em; max-width: 16ch; }
.fund-foot { padding-top: 16px; border-top: 1px solid rgba(226, 225, 220, .2); font-size: 12.5px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: #8a887f; }

/* ---------- philanthropy ---------- */
.sec-rule { padding-top: 0; }
.sec-rule > .wrap { padding-top: clamp(72px, 10vw, 136px); background: linear-gradient(var(--line), var(--line)) var(--gut) 0 / calc(100% - 2 * var(--gut)) 1px no-repeat; }
.give { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.give-card { display: flex; flex-direction: column; padding: clamp(26px, 3vw, 40px); border-radius: 20px; background: var(--card); border: 1px solid var(--line); }
.give-stat { margin-top: 18px; font-size: clamp(38px, 4.6vw, 60px); font-weight: 500; line-height: 1; letter-spacing: -.045em; font-variant-numeric: tabular-nums; }
.give-card h3 { margin-top: 22px; font-size: 21px; line-height: 1.3; letter-spacing: -.02em; }
.give-body { margin-top: 10px; font-size: 16px; line-height: 1.6; color: var(--muted); max-width: 48ch; }
.give-partners { margin-top: auto; padding-top: 26px; }
.give-label { padding-top: 14px; border-top: 1px solid var(--line); font-size: 12.5px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); }
.give-partners ul { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.give-partners li { padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; color: var(--ink-2); }

/* ---------- about ---------- */
.about-body p { font-size: clamp(18px, 1.55vw, 21px); line-height: 1.55; color: var(--ink-2); }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 24px; margin: 40px 0 0; }
.stats div { padding-top: 14px; border-top: 1px solid var(--line-2); }
.stats dt { font-size: 12.5px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.stats dd { margin: 8px 0 0; font-size: clamp(26px, 2.6vw, 34px); font-weight: 500; letter-spacing: -.03em; }

/* ---------- contact + forms ---------- */
.mail { margin-top: 28px; font-size: 18px; }
.mail a { text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 5px; text-decoration-thickness: 1px; }
.mail a:hover { text-decoration-color: var(--ink); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field span { font-size: 14px; font-weight: 500; color: var(--ink-2); }
.field em { font-style: normal; font-weight: 400; color: var(--faint); }
.field input, .field select, .field textarea { width: 100%; min-height: 48px; padding: 12px 14px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--card); color: var(--ink); font: 400 16px/1.4 var(--sans); transition: border-color .2s, box-shadow .2s; -webkit-appearance: none; appearance: none; }
.field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2367655e' stroke-width='1.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; }
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(11, 11, 10, .08); }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; margin-top: 22px; }
.form-note { font-size: 14px; color: var(--muted); }
.form-note a { color: var(--muted); }
.form-status { margin-top: 12px; font-size: 14.5px; color: var(--accent); }
.form-status:empty { display: none; }
.thanks h3 { font-size: 26px; letter-spacing: -.02em; }
.thanks h3:focus { outline: none; }
.thanks p { margin-top: 10px; color: var(--muted); }
.form-fallback { font-size: 18px; }

/* ---------- page heads (inner pages) ---------- */
.page-head { padding: clamp(56px, 8vw, 104px) 0 clamp(40px, 6vw, 72px); border-bottom: 1px solid var(--line); }
.page-head h1 { margin-top: 18px; max-width: 16ch; font-size: clamp(40px, 6vw, 80px); line-height: 1; letter-spacing: -.045em; }
.page-head .lede { margin-top: 24px; max-width: 56ch; }
.page-head .actions { margin-top: 32px; }

/* ---------- research page ---------- */
.posts { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.post-row { display: grid; grid-template-columns: 180px minmax(0, 1fr) auto; gap: 8px 40px; align-items: baseline; padding: 28px 0; border-bottom: 1px solid var(--line); }
.post-row time { font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; }
.post-row h3 { font: 500 clamp(22px, 2.2vw, 28px)/1.2 var(--serif); letter-spacing: -.01em; }
.post-row h3 a { text-decoration: none; }
.post-row h3 a:hover { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.post-row p { margin-top: 8px; font: 400 17px/1.5 var(--serif); color: var(--muted); max-width: 62ch; }
.post-links { display: flex; gap: 18px; font-size: 14.5px; white-space: nowrap; }
.post-links a { color: var(--ink-2); text-underline-offset: 4px; text-decoration-color: var(--line-2); }
.post-links a:hover { text-decoration-color: var(--ink); }
.more { margin-top: 28px; font-size: 15px; }
.more a { text-underline-offset: 4px; }

.feature { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 32px clamp(40px, 6vw, 96px); align-items: center; padding: clamp(32px, 5vw, 64px); border-radius: 20px; background: var(--ink); color: var(--band); }
.feature .eyebrow { color: #8a887f; }
.feature h2 { color: #f5f4f0; max-width: 14ch; }
.feature h2 em { font-style: normal; font-weight: 300; color: #a9a79e; }
.feature p.lede { margin-top: 22px; color: #c9c7bf; }
.feature .actions { margin-top: 30px; }
.feature .btn { color: var(--band); border-color: rgba(226, 225, 220, .3); }
.feature .btn:hover { border-color: var(--band); }
.feature .btn-dark { background: var(--band); color: var(--ink); border-color: var(--band); }
.feature .btn-dark:hover { background: #fff; border-color: #fff; }
.toc-mini { list-style: none; margin: 0; padding: 0; counter-reset: part; }
.toc-mini li { border-top: 1px solid rgba(226, 225, 220, .16); }
.toc-mini li:last-child { border-bottom: 1px solid rgba(226, 225, 220, .16); }
.toc-mini a { display: grid; grid-template-columns: 40px 1fr; gap: 12px; padding: 14px 0; color: #e2e1dc; text-decoration: none; font-size: 16px; }
.toc-mini a:hover { color: #fff; }
.toc-mini .n { color: #8a887f; font-variant-numeric: tabular-nums; font-size: 14px; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--ink); }
.steps li { padding: 22px 22px 8px 0; }
.steps li + li { padding-left: 22px; border-left: 1px solid var(--line); }
.steps .n { font-size: 12.5px; font-weight: 500; letter-spacing: .1em; color: var(--muted); font-variant-numeric: tabular-nums; }
.steps h3 { margin-top: 12px; font-size: 22px; letter-spacing: -.02em; }
.steps p { margin-top: 10px; font-size: 15.5px; color: var(--muted); }

.themes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.theme { padding: 28px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); }
.theme h3 { margin-top: 12px; font-size: 22px; line-height: 1.25; letter-spacing: -.02em; }
.theme p { margin-top: 12px; font-size: 15.5px; color: var(--muted); }
.tags { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.tags li { padding: 5px 10px; border: 1px solid var(--line); border-radius: 999px; font-size: 13px; color: var(--ink-2); }
.theme a { display: inline-block; margin-top: 18px; font-size: 15px; text-underline-offset: 4px; }

.disclaimer { margin-top: clamp(48px, 6vw, 72px); padding-top: 20px; border-top: 1px solid var(--line); font-size: 13.5px; line-height: 1.6; color: var(--muted); max-width: 90ch; }

/* ---------- long-form reading (posts, essay, legal) ---------- */
.article { padding: clamp(48px, 7vw, 96px) 0 clamp(64px, 8vw, 112px); }
.measure { max-width: 700px; margin: 0 auto; }
.article-head .meta { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 14px; color: var(--muted); }
.article-head h1 { margin-top: 18px; font: 500 clamp(36px, 5vw, 56px)/1.08 var(--serif); letter-spacing: -.02em; }
.article-head .dek { margin-top: 18px; font: 400 clamp(19px, 1.8vw, 22px)/1.5 var(--serif); color: var(--muted); }
.article-head .actions { margin-top: 26px; }
.article-head { padding-bottom: 32px; margin-bottom: 40px; border-bottom: 1px solid var(--line); }

.prose { font: 400 clamp(18px, 1.3vw, 19.5px)/1.72 var(--serif); color: var(--ink-2); }
.prose > * + * { margin-top: 1.1em; }
.prose p, .prose ul, .prose ol { margin-bottom: 0; }
.prose h2, .prose h3, .prose h4 { font-family: var(--sans); color: var(--ink); letter-spacing: -.02em; line-height: 1.25; }
.prose h2 { font-size: 1.45em; margin-top: 2em; }
.prose h3 { font-size: 1.25em; margin-top: 1.8em; }
.prose h4 { font-size: 1.05em; margin-top: 1.6em; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose a { color: var(--ink); text-decoration-color: var(--line-2); text-underline-offset: 3px; text-decoration-thickness: 1px; }
.prose a:hover { text-decoration-color: var(--ink); }
.prose blockquote { margin-left: 0; margin-right: 0; padding-left: 20px; border-left: 2px solid var(--ink); color: var(--ink); }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.4em 0; }
.prose img { width: 100%; height: auto; border-radius: 4px; }
.prose figure { margin: 2em 0; }
.prose picture, .prose .image-link { display: block; }
.prose figcaption, .prose .image-caption { margin-top: 10px; font: 400 14px/1.5 var(--sans); color: var(--muted); }
.prose table { width: 100%; border-collapse: collapse; font: 400 15px/1.4 var(--sans); font-variant-numeric: tabular-nums; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; padding: 10px 14px 10px 0; border-bottom: 1px solid var(--line); }

.post-end { margin-top: 64px; padding: 32px; border-radius: 16px; background: var(--band); }
.post-end h2 { margin-top: 10px; font-size: 26px; letter-spacing: -.02em; }
.post-end p { margin-top: 10px; color: var(--ink-2); }
.post-end .actions { margin-top: 22px; align-items: center; }
.post-end .actions > a:not(.btn) { font-size: 15px; color: var(--ink-2); text-underline-offset: 4px; }
.back { margin-top: 40px; font-size: 15px; }
.back a { text-decoration: none; color: var(--muted); }
.back a:hover { color: var(--ink); }

/* essay */
.essay-head { padding: clamp(56px, 8vw, 104px) 0 clamp(36px, 5vw, 56px); background: var(--band); }
.essay-head h1 { margin-top: 18px; font: 500 clamp(40px, 6.4vw, 88px)/1 var(--serif); letter-spacing: -.03em; max-width: 15ch; }
.essay-head .sub { margin-top: 14px; font: italic 400 clamp(22px, 2.6vw, 34px)/1.15 var(--serif); color: var(--ink-2); }
.essay-head .meta { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 24px; font-size: 14.5px; color: var(--muted); }
.essay-head .actions { margin-top: 28px; }
.rail { border-bottom: 1px solid var(--line); background: var(--band); overflow-x: auto; scrollbar-width: none; }
.rail::-webkit-scrollbar { display: none; }
.rail ol { list-style: none; margin: 0 auto; padding: 0 var(--gut); display: flex; gap: 28px; max-width: calc(var(--max) + 2 * var(--gut)); }
.rail a { display: block; padding: 14px 0; text-decoration: none; color: var(--muted); border-bottom: 2px solid transparent; white-space: nowrap; font-size: 14.5px; }
.rail a:hover { color: var(--ink); }
.rail a[aria-current] { color: var(--ink); border-color: var(--ink); }
.rail .n { margin-right: 8px; color: var(--faint); font-variant-numeric: tabular-nums; }
.prose .opener::first-letter { float: left; font: 500 4.1em/.8 var(--serif); margin: .07em .09em 0 0; color: var(--ink); }
sup.fn { font-size: .62em; line-height: 0; vertical-align: super; margin-left: 1px; }
sup.fn a { font-family: var(--sans); font-weight: 600; color: var(--accent); text-decoration: none; padding: 0 1px; }
.front-matter { border-left: 2px solid var(--ink); padding: 2px 0 2px 20px; margin: 0 0 2.6em; }
.front-matter .fm-label { font: 500 12.5px/1.2 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 0 0 12px; }
.front-matter p { font: italic 400 16.5px/1.6 var(--serif); color: var(--muted); margin: 0 0 .8em; }
.cited h3 { margin-top: 1.8em; }
.cited p { font-size: 16px; line-height: 1.55; padding-left: 1.6em; text-indent: -1.6em; margin: 0 0 .75em; color: var(--muted); }
.closing { margin-top: 3em; padding-top: 1.6em; border-top: 1px solid var(--line); }
.closing p { font: italic 400 16.5px/1.6 var(--serif); color: var(--muted); margin: 0 0 .8em; }
.closing .dedication-line { color: var(--ink); }
.series { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 3.2em; }
.series a { display: block; padding: 18px 20px; border: 1px solid var(--line); border-radius: 12px; text-decoration: none; transition: border-color .2s; }
.series a:hover { border-color: var(--ink); }
.series .next { grid-column: 2; text-align: right; }
.series .k { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.series .t { font: 500 19px/1.25 var(--serif); }
.notes { margin-top: 4em; padding-top: 2em; border-top: 1px solid var(--line); }
.notes ol { margin: 16px 0 0; padding-left: 2.2em; font: 400 15px/1.6 var(--serif); color: var(--muted); }
.notes li { margin: 0 0 .8em; padding-left: .3em; scroll-margin-top: calc(var(--hd) + 24px); border-radius: 2px; transition: background .6s; }
.notes li::marker { color: var(--accent); font: 600 13px var(--sans); }
.notes li:target { background: rgba(156, 79, 42, .1); color: var(--ink); }
.notes a { color: var(--ink-2); word-break: break-word; text-underline-offset: 2px; }
.pop { position: absolute; z-index: 60; max-width: min(380px, calc(100vw - 32px)); padding: 14px 16px; background: var(--card); border: 1px solid var(--line-2); border-radius: 10px; box-shadow: 0 18px 40px rgba(20, 18, 12, .14); font: 400 14.5px/1.55 var(--serif); color: var(--ink-2); opacity: 0; transform: translateY(4px); transition: opacity .15s, transform .15s; pointer-events: none; }
.pop.on { opacity: 1; transform: none; pointer-events: auto; }
.pop b { color: var(--accent); margin-right: 6px; font-family: var(--sans); }
.pop a { word-break: break-word; }
.contents { padding: clamp(56px, 7vw, 96px) 0; border-top: 1px solid var(--line); }
.toc { list-style: none; margin: 32px 0 0; padding: 0; border-top: 1px solid var(--ink); }
.toc li { border-bottom: 1px solid var(--line); }
.toc a { display: grid; grid-template-columns: 56px minmax(0, 1fr) minmax(0, 1.3fr); gap: 8px 32px; align-items: baseline; padding: 24px 0; text-decoration: none; }
.toc .tn { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.toc .tt { font: 500 clamp(21px, 2vw, 27px)/1.2 var(--serif); letter-spacing: -.01em; }
.toc .td { font-size: 15.5px; color: var(--muted); }
.toc .td sup { display: none; }
.toc a:hover .tt { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.origin { margin-top: 40px; font-size: 14.5px; color: var(--muted); }

/* legal */
.legal h2 { font: 500 22px/1.3 var(--sans); letter-spacing: -.015em; color: var(--ink); margin-top: 2.2em; }
.legal h2:first-child { margin-top: 0; }

/* not found */
.nf { padding: clamp(80px, 14vw, 180px) 0; }
.nf h1 { margin-top: 18px; font-size: clamp(40px, 6vw, 72px); letter-spacing: -.045em; line-height: 1; }
.nf p { margin-top: 20px; color: var(--muted); font-size: 18px; }
.nf .actions { margin-top: 32px; }

/* ---------- footer ---------- */
.ft { background: var(--band); padding: clamp(56px, 7vw, 88px) 0 32px; }
.ft-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 40px 64px; }
.ft-brand p { margin-top: 18px; max-width: 30ch; color: var(--muted); font-size: 15.5px; }
.ft-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.ft h2 { font-size: 12.5px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.ft ul { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 10px; }
.ft ul a { font-size: 15px; text-decoration: none; color: var(--ink-2); overflow-wrap: anywhere; }
.ft ul a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.ft-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 32px; margin-top: clamp(48px, 6vw, 72px); padding-top: 20px; border-top: 1px solid var(--line-2); font-size: 13.5px; color: var(--muted); }
.ft-bottom a { color: var(--muted); text-underline-offset: 3px; }

/* ---------- responsive ---------- */
@media (max-width: 1020px) {
  .index { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .index li:nth-child(3) { border-left: 0; }
  .index li:nth-child(3) a { padding-left: 0; }
  .index li:nth-child(n+3) { border-top: 1px solid var(--line-2); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps li:nth-child(3) { border-left: 0; padding-left: 0; }
  .ft-top { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .hero-row, .split, .proj, .feature { grid-template-columns: 1fr; }
  .proj:nth-of-type(even) .proj-text { order: 0; }
  .proj-vis { min-height: 320px; }
  .post-row { grid-template-columns: 1fr; }
  .themes, .give { grid-template-columns: 1fr; }
  .toc a { grid-template-columns: 40px minmax(0, 1fr); }
  .toc .td { grid-column: 2; }
}
@media (max-width: 720px) {
  :root { --hd: 60px; }
  .menu { display: block; }
  .nav { position: fixed; top: var(--hd); left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--gut) 24px; background: var(--bg); border-bottom: 1px solid var(--line); transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .2s, transform .2s, visibility .2s; }
  .home .nav { background: var(--band); }
  .nav.open { transform: none; opacity: 1; visibility: visible; }
  .nav a { padding: 14px 0; font-size: 17px; border-bottom: 1px solid var(--line); }
  .nav a[aria-current] { text-decoration: none; }
  .nav .nav-cta { margin-top: 16px; border-bottom: 1px solid var(--line-2); text-align: center; }
  .facts, .form-grid { grid-template-columns: 1fr; }
  .stats dd { font-size: 24px; }
  .ft-cols { grid-template-columns: 1fr 1fr; }
  .series { grid-template-columns: 1fr; }
  .series .next { grid-column: 1; }
}
@media (max-width: 520px) {
  .index, .steps { grid-template-columns: 1fr; }
  .index li + li, .steps li + li { border-left: 0; border-top: 1px solid var(--line-2); }
  .index a, .steps li + li { padding-left: 0; }
  .index a { padding: 18px 0 22px; }
  .proj-vis { min-height: 0; padding: 22px; border-radius: 16px; }
  .paper { padding: 20px 20px 6px; }
  .ft-cols { grid-template-columns: 1fr; }
}
