@font-face { font-family: 'Cormorant Garamond'; font-style: normal; font-weight: 300 700; font-display: swap; src: url('../fonts/cormorant-garamond.woff2') format('woff2'); }
@font-face { font-family: 'Cormorant Garamond'; font-style: italic; font-weight: 300 700; font-display: swap; src: url('../fonts/cormorant-garamond-italic.woff2') format('woff2'); }
@font-face { font-family: 'Playfair Display'; font-style: normal; font-weight: 400 900; font-display: swap; src: url('../fonts/playfair-display.woff2') format('woff2'); }
@font-face { font-family: 'Jost'; font-style: normal; font-weight: 300 700; font-display: swap; src: url('../fonts/jost.woff2') format('woff2'); }
@font-face { font-family: 'DM Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/dm-mono-400.woff2') format('woff2'); }
@font-face { font-family: 'DM Mono'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/dm-mono-500.woff2') format('woff2'); }

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

:root {
  --bg: #edeae4; --card: #f7f5f0; --surface: #f0ede6; --paper: #f2f1ef;
  --border: #dedad2; --border-s: #ccc8be;
  --ink1: #131110; --ink2: #2e2b26; --ink3: #5e5a52;
  --gold: #b5891e; --gold-l: #d4aa3c; --gold-dim: #7a5c12;
  --gold-text: #7a5c12; --gold-pale: #f5eedc; --ribbon: #fef5e6;
  --dark: #17150f;
  --f-serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --f-display: 'Playfair Display', Georgia, serif;
  --f-sans: 'Jost', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --f-mono: 'DM Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
  --pad: 20px;
  --measure: 680px;
  color-scheme: light;
}
html[data-theme="dark"] {
  --bg: #131007; --card: #1e1a12; --surface: #241f14; --paper: #f2f1ef;
  --border: #2a2417; --border-s: #3a3220;
  --ink1: #f2ede0; --ink2: #d8d2c4; --ink3: #a89f8f;
  --gold-text: #d4aa3c; --gold-pale: rgba(181,137,30,.14); --ribbon: #1b170d;
  color-scheme: dark;
}

body {
  background: var(--bg); color: var(--ink2);
  font-family: var(--f-sans); font-size: 16px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body::after { content: ''; position: fixed; inset: 0; z-index: 9999; pointer-events: none; background-image: url("/research/img/grain.svg"); }
html[data-theme="dark"] body::after { filter: invert(1); }

a { color: var(--gold-text); text-decoration: none; }
a:hover { color: var(--ink1); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
img { display: block; max-width: 100%; height: auto; }

.skip { position: absolute; left: -9999px; top: 8px; z-index: 400; background: var(--ink1); color: var(--bg); padding: 10px 14px; font-family: var(--f-mono); font-size: 12px; }
.skip:focus { left: 8px; }

.toprule { height: 2px; background: linear-gradient(90deg, transparent 0%, var(--gold-dim) 20%, var(--gold) 40%, var(--gold-l) 50%, var(--gold) 60%, var(--gold-dim) 80%, transparent 100%); position: fixed; top: 0; left: 0; right: 0; z-index: 300; }

.label { font-family: var(--f-mono); font-size: 12px; font-weight: 400; letter-spacing: .22em; text-transform: uppercase; color: var(--ink3); line-height: 1.5; }
.label-gold { color: var(--gold-text); }
.rule-label { display: flex; align-items: center; gap: 12px; font-family: var(--f-mono); font-size: 12px; letter-spacing: .24em; text-transform: uppercase; color: var(--gold-text); margin-bottom: 18px; }
.rule-label::after { content: ''; flex: 1; height: 1px; background: linear-gradient(90deg, var(--gold-mid, #c9a030), transparent); }

/* ── site header ── */
.site-header { position: sticky; top: 2px; z-index: 200; background: rgba(237,234,228,.92); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); border-bottom: 1px solid var(--border); margin-top: 2px; }
html[data-theme="dark"] .site-header { background: rgba(19,16,7,.86); }
.site-nav { height: 60px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 var(--pad); max-width: 1280px; margin: 0 auto; }
.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; white-space: nowrap; }
.brand span { display: none; }
@media (min-width: 560px) { .brand span { display: inline; } }
.brand img { height: 28px; width: auto; }
.brand span { font-family: var(--f-mono); font-size: 12px; color: var(--gold-text); letter-spacing: .25em; text-transform: uppercase; }
html[data-theme="dark"] .brand img { display: none; }
html[data-theme="dark"] .brand::before { content: '7'; width: 26px; height: 26px; border-radius: 7px; background: linear-gradient(180deg, var(--gold-l), var(--gold)); color: #131007; font-family: var(--f-mono); font-weight: 500; font-size: 14px; display: flex; align-items: center; justify-content: center; }
.nav-links { display: none; list-style: none; gap: 32px; }
.nav-links a { font-family: var(--f-mono); font-size: 12px; color: var(--ink3); letter-spacing: .18em; text-transform: uppercase; padding: 8px 0; border-bottom: 1px solid transparent; }
.nav-links a:hover, .nav-links a[aria-current] { color: var(--ink1); border-bottom-color: var(--gold); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.theme-btn { font-family: var(--f-mono); font-size: 14px; min-width: 44px; height: 44px; background: transparent; color: var(--ink3); border: 1px solid var(--border-s); cursor: pointer; }
.theme-btn:hover { color: var(--gold-text); border-color: var(--gold); }
.nav-cta { font-family: var(--f-mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; padding: 0 14px; height: 44px; display: flex; align-items: center; background: var(--ink1); color: var(--bg); white-space: nowrap; }
.nav-cta:hover { background: var(--gold-dim); color: #f7f5f0; }
html[data-theme="dark"] .nav-cta { background: linear-gradient(180deg, var(--gold-l), var(--gold)); color: #131007; }

/* ── index ── */
.r-head { max-width: 1280px; margin: 0 auto; padding: 48px var(--pad) 32px; border-bottom: 1px solid var(--border); }
.r-head h1 { font-family: var(--f-display); font-weight: 400; font-size: clamp(40px, 9vw, 76px); line-height: 1.04; color: var(--ink1); margin: 14px 0 16px; letter-spacing: -.01em; text-wrap: balance; }
.r-head h1 em { font-style: italic; color: var(--gold-text); }
.r-head p { font-family: var(--f-serif); font-size: 21px; font-weight: 500; line-height: 1.45; color: var(--ink3); max-width: 34em; text-wrap: pretty; }

.r-body { max-width: 1280px; margin: 0 auto; padding: 0 var(--pad) 72px; }
.filter { display: flex; flex-wrap: wrap; gap: 8px; padding: 20px 0; border-bottom: 1px solid var(--border); }
.filter legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.filter input { position: absolute; opacity: 0; pointer-events: none; }
.filter label { font-family: var(--f-mono); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink3); border: 1px solid var(--border-s); min-height: 44px; padding: 0 16px; display: inline-flex; align-items: center; cursor: pointer; }
.filter label:hover { color: var(--ink1); border-color: var(--gold); }
.filter input:checked + label { background: var(--ink1); color: var(--bg); border-color: var(--ink1); }
.filter input:focus-visible + label { outline: 2px solid var(--gold); outline-offset: 2px; }
.filter a { font-family: var(--f-mono); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink3); border: 1px solid var(--border-s); min-height: 44px; padding: 0 16px; display: inline-flex; align-items: center; }
.filter a:hover { color: var(--ink1); border-color: var(--gold); }
.filter a[aria-current] { background: var(--ink1); color: var(--bg); border-color: var(--ink1); }
.empty { font-family: var(--f-serif); font-size: 21px; color: var(--ink3); padding: 48px 0; }
.archive { padding-top: 32px; }

.feature { display: grid; gap: 24px; padding: 32px 0 40px; border-bottom: 1px solid var(--border); }
.feature .thumb, .card .thumb { display: block; background: var(--paper); border: 1px solid var(--border); }
.feature .thumb img, .card .thumb img { width: 100%; aspect-ratio: 1100 / 619; object-fit: cover; }
.post-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; }
.post-meta .dot { width: 3px; height: 3px; background: var(--border-s); border-radius: 50%; }
.feature h2 { font-family: var(--f-display); font-weight: 400; font-size: clamp(30px, 6.4vw, 46px); line-height: 1.12; color: var(--ink1); margin: 14px 0 14px; text-wrap: balance; }
.feature h2 a, .card h3 a { color: inherit; }
.feature h2 a:hover, .card h3 a:hover { color: var(--gold-text); }
.feature .dek, .card .dek { font-family: var(--f-serif); font-weight: 500; font-size: 21px; line-height: 1.45; color: var(--ink2); text-wrap: pretty; }
.read-link { display: inline-flex; align-items: center; gap: 10px; margin-top: 22px; font-family: var(--f-mono); font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-text); min-height: 44px; border-bottom: 1px solid var(--gold); }
.read-link:hover { color: var(--ink1); }

.archive { display: grid; gap: 0; }
.card { display: grid; gap: 16px; padding: 28px 0; border-bottom: 1px solid var(--border); }
.card h3 { font-family: var(--f-display); font-weight: 400; font-size: 26px; line-height: 1.2; color: var(--ink1); margin: 10px 0 8px; }

.pref { margin-top: 14px; font-family: var(--f-mono); font-size: 12px; letter-spacing: .08em; }
.pref a { color: var(--gold-text); border-bottom: 1px solid var(--gold); display: inline-flex; align-items: center; min-height: 44px; }
.pref a:hover { color: var(--ink1); }
.follow { display: grid; gap: 14px; margin-top: 48px; padding: 24px; background: var(--card); border: 1px solid var(--border); }
.post-by { margin-top: 18px; }
.follow .read-link { margin-top: 0; }
.follow p { font-family: var(--f-serif); font-size: 20px; font-weight: 500; line-height: 1.45; color: var(--ink2); }

/* ── article ── */
.a-head { max-width: 1280px; margin: 0 auto; padding: 40px var(--pad) 0; }
.a-head-inner { max-width: 880px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; }
.crumbs a { color: var(--gold-text); }
.a-head h1 { font-family: var(--f-display); font-weight: 400; font-size: clamp(36px, 8.4vw, 64px); line-height: 1.06; color: var(--ink1); margin: 18px 0 18px; letter-spacing: -.01em; text-wrap: balance; }
.a-head .dek { font-family: var(--f-serif); font-style: italic; font-weight: 500; font-size: clamp(22px, 4.6vw, 28px); line-height: 1.35; color: var(--ink3); max-width: 30em; text-wrap: pretty; }
.byline { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; margin-top: 26px; padding: 16px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.byline .who { font-family: var(--f-sans); font-size: 16px; font-weight: 500; color: var(--ink1); }
.byline .who a { color: inherit; border-bottom: 1px solid var(--border-s); }

.ribbon { margin-top: 0; border-left: 1px solid var(--border); border-right: 1px solid var(--border); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); background: var(--ribbon); border-bottom: 1px solid var(--border); }
.ribbon > div { padding: 12px 14px; border-right: 1px solid var(--border-s); border-top: 1px solid var(--border-s); }
.ribbon > div:nth-child(2n) { border-right: none; }
.ribbon > div:nth-child(-n+2) { border-top: none; }
.ribbon dt { font-family: var(--f-mono); font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--ink3); }
.ribbon dd { font-family: var(--f-mono); font-size: 18px; font-weight: 500; color: var(--ink1); }
.ribbon dd.lo { color: #8a3a12; }
html[data-theme="dark"] .ribbon dd.lo { color: #e39a6a; }
.ribbon-note { grid-column: 1 / -1; font-family: var(--f-mono); font-size: 12px; color: var(--ink3); padding: 10px 14px; border-top: 1px solid var(--border-s); letter-spacing: .02em; }

.a-layout { max-width: 1280px; margin: 0 auto; padding: 0 var(--pad); }
.toc { margin: 28px 0 0; border: 1px solid var(--border); background: var(--card); }
.toc summary { list-style: none; cursor: pointer; min-height: 48px; display: flex; align-items: center; justify-content: space-between; padding: 0 16px; font-family: var(--f-mono); font-size: 12px; letter-spacing: .22em; text-transform: uppercase; color: var(--gold-text); }
.toc summary::-webkit-details-marker { display: none; }
.toc summary::after { content: '+'; font-size: 18px; color: var(--ink3); }
.toc[open] summary::after { content: '\2212'; }
.toc ol { list-style: none; counter-reset: s; padding: 0 16px 12px; }
.toc li { counter-increment: s; border-top: 1px solid var(--border); }
.toc a { display: grid; grid-template-columns: 32px 1fr; gap: 6px; padding: 12px 0; font-family: var(--f-sans); font-size: 15px; line-height: 1.4; color: var(--ink2); }
.toc a::before { content: counter(s, decimal-leading-zero); font-family: var(--f-mono); font-size: 12px; color: var(--gold-text); padding-top: 2px; }
.toc a:hover { color: var(--gold-text); }

.prose { max-width: var(--measure); padding: 36px 0 0; }
.prose > p, .prose li { font-family: var(--f-serif); font-weight: 500; font-size: 21px; line-height: 1.58; color: var(--ink2); text-wrap: pretty; hanging-punctuation: first; }
.prose > p + p { margin-top: 1em; }
.prose > p:first-of-type::first-line { font-variant-caps: all-small-caps; letter-spacing: .04em; color: var(--ink1); }
.prose strong { font-weight: 700; color: var(--ink1); }
.prose h2 { font-family: var(--f-display); font-weight: 700; font-size: clamp(26px, 5.6vw, 32px); line-height: 1.2; color: var(--ink1); margin: 56px 0 20px; scroll-margin-top: 150px; text-wrap: balance; }
.prose h2.rule-label, .a-end h2.rule-label { font-family: var(--f-mono); font-weight: 400; font-size: 12px; line-height: 1.5; margin: 0 0 12px; letter-spacing: .24em; }
.table-box td .bar i.w99 { width: 99%; } .table-box td .bar i.w97 { width: 97%; } .table-box td .bar i.w76 { width: 76%; } .table-box td .bar i.w66 { width: 66%; }
.prose h2 .n { display: block; font-family: var(--f-mono); font-weight: 400; font-size: 12px; letter-spacing: .24em; color: var(--gold-text); margin-bottom: 10px; }
.prose a { color: var(--gold-text); border-bottom: 1px solid var(--gold); }
.prose a:hover { color: var(--ink1); }

.thesis { margin: 0 0 8px; padding: 22px 20px 22px 22px; background: var(--card); border: 1px solid var(--border); border-left: 3px solid var(--gold); }
.thesis p { font-family: var(--f-serif); font-weight: 500; font-size: 21px; line-height: 1.5; color: var(--ink1); text-wrap: pretty; }

.stat { margin: 32px 0; display: grid; grid-template-columns: minmax(0, 1fr); border: 1px solid var(--border); background: var(--card); }
.stat > div { padding: 18px 20px; }
.stat > div + div { border-top: 1px solid var(--border); }
.stat .big { font-family: var(--f-serif); font-weight: 600; font-size: 52px; line-height: 1; color: var(--gold-text); letter-spacing: -.01em; }
.stat .what { font-family: var(--f-sans); font-size: 16px; font-weight: 500; color: var(--ink1); margin-top: 10px; line-height: 1.4; }
.stat .ctx { font-family: var(--f-mono); font-size: 12px; color: var(--ink3); margin-top: 6px; line-height: 1.6; letter-spacing: .02em; }

.table-box { margin: 32px 0; border: 1px solid var(--border); background: var(--card); }
.table-box .rule-label { margin: 0; padding: 14px 16px; border-bottom: 1px solid var(--border); }
.table-box table { width: 100%; border-collapse: collapse; }
.table-box th, .table-box td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--border); vertical-align: baseline; }
.table-box tr:last-child td, .table-box tr:last-child th { border-bottom: none; }
.table-box th[scope="row"] { font-family: var(--f-sans); font-weight: 500; font-size: 16px; color: var(--ink1); line-height: 1.35; }
.table-box th[scope="row"] small { display: block; font-family: var(--f-mono); font-weight: 400; font-size: 12px; color: var(--ink3); letter-spacing: .08em; margin-top: 4px; }
.table-box td { font-family: var(--f-mono); font-size: 18px; font-weight: 500; color: var(--ink1); text-align: right; white-space: nowrap; }
.table-box td .bar { display: block; height: 4px; margin-top: 8px; background: var(--border); }
.table-box td .bar i { display: block; height: 100%; background: var(--gold); margin-left: auto; }
.table-box td meter { display: block; width: 100%; height: 4px; margin-top: 8px; -webkit-appearance: none; appearance: none; border: none; background: var(--border); }
.table-box td meter::-webkit-meter-bar { background: var(--border); border: none; border-radius: 0; height: 4px; }
.table-box td meter::-webkit-meter-optimum-value { background: var(--gold); border-radius: 0; }
.table-box td meter::-moz-meter-bar { background: var(--gold); }
.prose blockquote { margin: 36px 0; padding: 4px 0 4px 22px; border-left: 2px solid var(--gold); }
.prose blockquote p { font-family: var(--f-display); font-style: italic; font-size: 26px; line-height: 1.35; color: var(--ink1); }
.prose blockquote footer { margin-top: 10px; font-family: var(--f-mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink3); }
.table-box caption { caption-side: bottom; text-align: left; font-family: var(--f-mono); font-size: 12px; color: var(--ink3); padding: 12px 16px 14px; border-top: 1px solid var(--border); line-height: 1.6; }

figure.chart { margin: 36px 0; }
figure.chart .frame { display: block; position: relative; background: var(--paper); border: 1px solid var(--border); cursor: zoom-in; }
figure.chart .frame:hover { border-color: var(--gold); }
.zoom-hint { position: absolute; right: 8px; bottom: 8px; display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 0 10px; background: #131110; color: #f7f5f0; font-family: var(--f-mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; pointer-events: none; }
.zoom-hint::before { content: '\2922'; font-size: 14px; letter-spacing: 0; }
@media (min-width: 720px) { .zoom-hint { display: none; } }
html.zoom-open, html.zoom-open body { overflow: hidden; }
.zoom-dlg { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: none; background: #f2f1ef; color: #131110; overflow: hidden; }
.zoom-dlg[open] { display: flex; flex-direction: column; }
.zoom-dlg::backdrop { background: rgba(19,16,7,.8); }
.zoom-bar { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 56px; padding: 0 6px 0 16px; border-bottom: 1px solid #dedad2; background: #f7f5f0; }
.zoom-tip { font-family: var(--f-mono); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: #5e5a52; }
.zoom-close { width: 44px; height: 44px; border: 1px solid #ccc8be; background: transparent; color: #131110; font-size: 24px; line-height: 1; cursor: pointer; }
.zoom-close:hover { border-color: #b5891e; color: #7a5c12; }
.zoom-scroll { flex: 1; min-height: 0; display: flex; overflow: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; touch-action: pan-x pan-y pinch-zoom; }
.zoom-scroll img { flex: none; margin: auto; max-width: none; width: auto; height: auto; }
.zoom-scroll:focus-visible { outline: 2px solid #b5891e; outline-offset: -2px; }
html[data-theme="dark"] figure.chart .frame { border-color: #3a3220; box-shadow: 0 0 0 1px rgba(212,170,60,.12); }
figure.chart figcaption { display: grid; gap: 6px; padding: 14px 2px 0; }
figure.chart .cap { font-family: var(--f-serif); font-weight: 500; font-size: 19px; line-height: 1.45; color: var(--ink2); text-wrap: pretty; }
figure.chart .cap b { font-family: var(--f-mono); font-weight: 500; font-size: 12px; letter-spacing: .2em; color: var(--gold-text); margin-right: 8px; }
figure.chart .src { font-family: var(--f-mono); font-size: 12px; color: var(--ink3); letter-spacing: .02em; }

.watch { margin: 36px 0; border: 1px solid var(--border); border-top: 2px solid var(--gold); background: var(--card); padding: 18px 20px 6px; }
.watch .rule-label { margin-bottom: 6px; }
.watch ol { list-style: none; }
.watch li { display: grid; gap: 4px; padding: 14px 0; border-top: 1px solid var(--border); font-family: var(--f-sans); font-size: 16px; line-height: 1.45; color: var(--ink2); }
.watch li:first-child { border-top: none; }
.watch li .when { font-family: var(--f-mono); font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-text); }

.a-end { max-width: var(--measure); padding: 48px 0 72px; display: grid; gap: 28px; }
.endmark { display: flex; align-items: center; gap: 12px; color: var(--gold); font-family: var(--f-mono); font-size: 12px; }
.endmark::before, .endmark::after { content: ''; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--gold), transparent); }

.notice { padding: 18px 20px; background: var(--surface); border: 1px solid var(--border); }
.notice p { font-family: var(--f-sans); font-size: 14px; line-height: 1.6; color: var(--ink2); }
.notice p + p { margin-top: 8px; }
.notice a { color: var(--gold-text); border-bottom: 1px solid var(--gold); }

.subscribe { border: 1px solid var(--border); background: var(--card); }
.subscribe > .rule-label { padding: 18px 20px 0; margin-bottom: 8px; }
.subscribe > p { padding: 0 20px 18px; font-family: var(--f-serif); font-weight: 500; font-size: 20px; line-height: 1.45; color: var(--ink1); }
.plans { display: grid; grid-template-columns: minmax(0, 1fr); border-top: 1px solid var(--border); }
.plan { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 4px 16px; padding: 16px 20px; min-height: 64px; border-top: 1px solid var(--border); color: var(--ink1); }
.plan:first-child { border-top: none; }
.plan:hover { background: var(--gold-pale); color: var(--ink1); }
.plan .pn { font-family: var(--f-serif); font-weight: 600; font-size: 22px; line-height: 1.1; }
.plan .pd { grid-column: 1; font-family: var(--f-mono); font-size: 12px; color: var(--ink3); letter-spacing: .04em; }
.plan .pp { grid-row: 1 / span 2; grid-column: 2; font-family: var(--f-mono); font-size: 14px; font-weight: 500; color: var(--gold-text); text-align: right; white-space: nowrap; }

.author { display: grid; grid-template-columns: 56px 1fr; gap: 16px; align-items: start; padding-top: 4px; }
.author .mono { width: 56px; height: 56px; border: 1px solid var(--gold); display: flex; align-items: center; justify-content: center; font-family: var(--f-display); font-size: 24px; color: var(--gold-text); background: var(--card); }
.author .name { font-family: var(--f-sans); font-size: 17px; font-weight: 500; color: var(--ink1); }
.author p { font-family: var(--f-sans); font-size: 15px; line-height: 1.55; color: var(--ink2); margin-top: 4px; }
.author .links { display: flex; flex-wrap: wrap; gap: 4px 18px; margin-top: 8px; }
.author .links a { font-family: var(--f-mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; min-height: 32px; display: inline-flex; align-items: center; }

.related { border-top: 1px solid var(--border); padding-top: 24px; }
.related .grid { display: grid; gap: 20px; }
.related .card { padding: 0; border: none; }

/* ── footer ── */
.site-footer { border-top: 1px solid var(--border); background: var(--bg); }
.site-footer .in { max-width: 1280px; margin: 0 auto; padding: 32px var(--pad) 40px; display: grid; gap: 20px; }
.f-brand { display: flex; align-items: center; gap: 16px; }
.f-brand strong { font-family: var(--f-mono); font-weight: 400; font-size: 12px; letter-spacing: .25em; text-transform: uppercase; color: var(--gold-text); }
.f-social { display: flex; gap: 8px; }
.f-social a { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; color: var(--ink3); border: 1px solid var(--border-s); }
.f-social a:hover { color: var(--gold-text); border-color: var(--gold); }
.f-social svg { width: 16px; height: 16px; fill: currentColor; }
.f-links { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 22px; }
.f-links a { font-family: var(--f-mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink3); min-height: 36px; display: inline-flex; align-items: center; }
.f-links a:hover, .f-links a[aria-current] { color: var(--ink1); }
.f-copy { font-family: var(--f-mono); font-size: 12px; color: var(--ink3); }

@media (min-width: 720px) {
  :root { --pad: 40px; }
  .ribbon { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .ribbon > div { border-top: none; }
  .ribbon > div:nth-child(2n) { border-right: 1px solid var(--border-s); }
  .ribbon > div:nth-child(4) { border-right: none; }
  .stat { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat.stat-1 { grid-template-columns: minmax(0, 1fr); }
  .stat.stat-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ribbon.ribbon-1, .ribbon.ribbon-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ribbon.ribbon-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .stat > div + div { border-top: none; border-left: 1px solid var(--border); }
  .plans { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .plan { grid-template-columns: 1fr; border-top: none; border-left: 1px solid var(--border); align-content: start; }
  .plan:first-child { border-left: none; }
  .plan .pp { grid-row: auto; grid-column: 1; text-align: left; margin-top: 8px; }
  .related .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
  .card { grid-template-columns: 280px 1fr; gap: 28px; align-items: start; }
  .follow { grid-template-columns: 1fr auto; align-items: center; }
}
@media (min-width: 980px) {
  :root { --pad: 56px; }
  .nav-links { display: flex; }
  .nav-cta { padding: 0 20px; }
  .r-head { padding-top: 72px; padding-bottom: 44px; }
  .feature { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 48px; align-items: center; padding: 48px 0 56px; }
  .a-head { padding-top: 64px; }
  .a-layout { display: grid; grid-template-columns: 220px minmax(0, var(--measure)); gap: 72px; justify-content: center; }
  .a-layout > .rail { position: relative; }
  .toc { position: sticky; top: 96px; margin-top: 44px; background: transparent; border: none; border-top: 2px solid var(--gold); }
  .toc summary { pointer-events: none; padding: 12px 0 4px; min-height: 0; }
  .toc summary::after { display: none; }
  .toc ol { padding: 0; }
  .toc a { font-size: 14px; }
  .a-head .a-head-inner { margin-left: calc(220px + 72px); }
  .a-head { max-width: calc(220px + 72px + var(--measure) + 2 * var(--pad)); }
  .a-layout { max-width: calc(220px + 72px + var(--measure) + 2 * var(--pad)); }
  .prose > p { font-size: 22px; }
  .site-footer .in { grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 16px 32px; }
  .f-links { justify-content: flex-end; gap: 4px 20px; }
  .f-copy { grid-column: 1 / -1; padding-top: 16px; border-top: 1px solid var(--border); }
}
@media (min-width: 980px) and (max-width: 1120px) {
  .a-layout { grid-template-columns: minmax(0, var(--measure)); }
  .a-layout > .rail { display: none; }
  .a-head .a-head-inner { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media print {
  .site-header, .toprule, .toc, .subscribe, .site-footer, body::after { display: none !important; }
  body { background: #fff; color: #000; }
}

/* ── reader refinements ── */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 310; pointer-events: none; }
.progress i { display: block; height: 100%; width: 100%; background: var(--gold); transform-origin: 0 50%; transform: scaleX(0); }
.prose > p:first-child::first-letter { float: left; font-family: var(--f-display); font-weight: 400; font-size: 4.2em; line-height: .82; margin: .06em .1em 0 0; color: var(--gold-text); }
.prose > p:first-child::first-line { font-variant-caps: normal; letter-spacing: 0; }
.prose > ul, .prose > ol { margin: 1em 0; padding: 0; list-style: none; border-top: 1px solid var(--border); }
.prose > ul > li, .prose > ol > li { font-family: var(--f-serif); font-weight: 500; font-size: 21px; line-height: 1.5; color: var(--ink2); padding: 12px 0 12px 26px; border-bottom: 1px solid var(--border); position: relative; }
.prose > ul > li::before { content: ''; position: absolute; left: 4px; top: 1.05em; width: 7px; height: 7px; background: var(--gold); transform: rotate(45deg); }
.prose > ol { counter-reset: li; }
.prose > ol > li { counter-increment: li; }
.prose > ol > li::before { content: counter(li, decimal-leading-zero); position: absolute; left: 0; top: 16px; font-family: var(--f-mono); font-size: 12px; color: var(--gold-text); }
.prose li strong { font-weight: 700; color: var(--ink1); }
.prose h3 { font-family: var(--f-sans); font-weight: 500; font-size: 20px; line-height: 1.35; color: var(--ink1); margin: 40px 0 12px; }
.prose > p em, .prose li em { font-style: italic; }
.prose hr { border: none; height: 1px; margin: 48px auto; width: 120px; background: linear-gradient(90deg, transparent, var(--gold), transparent); }
.prose > blockquote { margin: 40px 0; padding: 4px 0 4px 24px; border-left: 3px solid var(--gold); }
.prose > blockquote p, .prose > blockquote { font-family: var(--f-display); font-style: italic; font-size: clamp(24px, 4.6vw, 30px); line-height: 1.3; color: var(--ink1); text-wrap: balance; }
.prose figure.chart .cap { font-size: 18px; }
.share { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 20px; }
.share a { color: var(--gold-text); min-height: 44px; display: inline-flex; align-items: center; border-bottom: 1px solid transparent; }
.share a:hover { color: var(--ink1); border-bottom-color: var(--gold); }
@media (max-width: 480px) { .share > span:first-child { flex-basis: 100%; } }
.nav-cta .arr { margin-left: .5em; }
.nav-cta .cta-short { display: none; }
@media (max-width: 420px) {
  .brand img { height: 26px; }
  .nav-actions { gap: 6px; }
  .nav-cta { padding: 0 10px; letter-spacing: 1px; }
  .nav-cta .cta-full { display: none; }
  .nav-cta .cta-short { display: inline; }
}
.share .copy-link { font: inherit; letter-spacing: inherit; text-transform: inherit; color: var(--gold-text); background: none; border: 0; border-bottom: 1px solid transparent; padding: 0; min-height: 44px; display: inline-flex; align-items: center; cursor: pointer; }
.share .copy-link[hidden] { display: none; }
.share .copy-link:hover { color: var(--ink1); border-bottom-color: var(--gold); }
.share .copy-link:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.share .copy-link.ok { color: var(--ink1); }
@media (min-width: 1120px) {
  .prose figure.chart { margin-left: -48px; margin-right: -48px; }
  .prose figure.chart figcaption { padding-left: 48px; padding-right: 48px; }
}
@media print { .progress, .share { display: none !important; } }

.r-tools { display: grid; }
.search { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; padding: 24px 0 8px; }
.search label { font-family: var(--f-mono); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink3); }
.search-row { display: flex; gap: 8px; max-width: 560px; }
.search input { flex: 1; min-width: 0; min-height: 48px; padding: 0 14px; font-family: var(--f-sans); font-size: 16px; color: var(--ink1); background: var(--card); border: 1px solid var(--border-s); border-radius: 0; -webkit-appearance: none; appearance: none; }
.search input::placeholder { color: var(--ink3); }
.search input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(181,137,30,.18); }
.search button { flex: none; min-height: 48px; padding: 0 18px; font-family: var(--f-mono); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; background: var(--ink1); color: var(--bg); border: 1px solid var(--ink1); border-radius: 0; cursor: pointer; }
.search button:hover { background: var(--gold-dim); border-color: var(--gold-dim); color: #f7f5f0; }
.search button:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.r-count { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; padding: 24px 0 0; }
.r-count a { color: var(--gold-text); min-height: 44px; display: inline-flex; align-items: center; }
.empty p { text-wrap: pretty; }
.empty .empty-sub { font-size: 18px; margin-top: 8px; }
.empty .read-link { margin-top: 16px; }
.pager { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; padding: 28px 0; border-bottom: 1px solid var(--border); }
.pager a { color: var(--gold-text); min-height: 44px; display: inline-flex; align-items: center; }
.pager a:hover { color: var(--ink1); }
.pager a[rel="next"] { justify-self: end; }
.page-body { max-width: 760px; margin: 0 auto; padding: 32px var(--pad) 72px; }
.page-body section + section { margin-top: 40px; }
.bio-slot { border: 1px dashed var(--gold); background: var(--gold-pale); padding: 16px 20px; }

html[data-lang="fr"] .L[lang="en"], html:not([data-lang="fr"]) .L[lang="fr"] { display: none !important; }

/* ── Header aligned with the homepage (same proportions as protocol7.ai) ── */
.site-nav { height: 62px; }
.brand img { height: 34px; }
.brand span { font-size: 10px; letter-spacing: 3px; }
.nav-links a { font-size: 10px; letter-spacing: 2px; }
.theme-btn { border-radius: 8px; font-size: 11px; }
.nav-cta { border-radius: 8px; font-size: 10px; letter-spacing: 2px; }
.r-head .rule-label { font-size: 11px; letter-spacing: .3em; }
.r-head p { font-family: var(--f-sans); font-weight: 300; font-size: 17px; line-height: 1.75; }
@media (min-width: 980px) {
  .nav-links { gap: 40px; }
  .nav-actions .theme-btn { height: 30px; min-width: 40px; padding: 0 12px; }
  .nav-cta { height: 38px; padding: 0 22px; }
}
/* Below 980 px the links move to a second row instead of disappearing. */
@media (max-width: 979px) {
  .site-nav { flex-wrap: wrap; height: auto; padding-top: 8px; row-gap: 0; }
  .nav-links { display: flex; order: 3; width: calc(100% + 2 * var(--pad)); margin: 8px calc(-1 * var(--pad)) 0; padding: 0 var(--pad); justify-content: center; gap: 22px; border-top: 1px solid var(--border); overflow-x: auto; }
  .nav-links a { min-height: 40px; display: inline-flex; align-items: center; white-space: nowrap; }
}

/* ── End of article, "More research": cards stacked (image on top, text below), two clean columns ── */
.related .card { grid-template-columns: minmax(0, 1fr); gap: 14px; align-content: start; }
.related .card .thumb img { aspect-ratio: 16 / 9; }
.related .card h3 { font-size: 22px; line-height: 1.25; margin: 6px 0 6px; text-wrap: balance; }
.related .card .dek { font-size: 17px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.related .card .post-meta { flex-wrap: wrap; }
.related > .read-link { margin-top: 28px; }