/* Data Sharing with GDPR — one stylesheet for every page.
   Ivory paper, deep forest ink, and a restrained brass accent. */

:root {
  --paper: #f6f2ea;
  --paper-2: #efe9dd;
  --card: #fbf9f4;
  --ink: #14231f;
  --ink-2: #1d332d;
  --ink-3: #2a443c;
  --text: #2b3531;
  --muted: #69716b;
  --line: #e0d8c8;
  --line-strong: #cdc2ab;
  --brass: #9c7a43;
  --brass-2: #c6a66c;
  --brass-3: #e3cf9f;
  --on-ink: #f2ede2;
  --on-ink-muted: #aab5ad;
  --display: "Cormorant Garamond", "Cormorant", Garamond, "Times New Roman", serif;
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --wrap: 1180px;
  --gutter: 48px;
  --radius: 3px;
  --header-h: 84px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 24px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--text);
  font: 400 16px/1.7 var(--sans); font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 4px; }
::selection { background: var(--brass-3); color: var(--ink); }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 4px; border-radius: 2px; }
h1, h2, h3 { color: var(--ink); margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }

.wrap { width: min(var(--wrap), calc(100% - var(--gutter) * 2)); margin-inline: auto; }
.skip { position: fixed; left: 16px; top: -80px; z-index: 50; background: var(--ink); color: var(--on-ink); padding: 10px 16px; border-radius: var(--radius); }
.skip:focus { top: 12px; }

/* ---------- Type primitives ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font: 600 11px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--brass);
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.display { font: 500 clamp(44px, 6.4vw, 92px)/.98 var(--display); letter-spacing: -.02em; }
.display em, .h2 em, .page-title em { font-style: italic; color: var(--brass); }
.h2 { font: 500 clamp(34px, 4vw, 52px)/1.06 var(--display); letter-spacing: -.015em; }
.h3 { font: 500 26px/1.15 var(--display); letter-spacing: -.005em; }
.lede { font-size: 17px; line-height: 1.75; color: var(--muted); max-width: 56ch; }
.small-caps { font: 600 10.5px/1.4 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }

/* ---------- Buttons & links ---------- */
.button {
  display: inline-flex; align-items: center; gap: 14px; min-height: 48px; padding: 0 24px;
  background: var(--ink); color: var(--on-ink); border: 1px solid var(--ink); border-radius: var(--radius);
  font: 500 14px/1 var(--sans); letter-spacing: .01em; text-decoration: none; cursor: pointer;
  transition: background .25s, color .25s, border-color .25s;
}
.button:hover { background: var(--ink-3); border-color: var(--ink-3); }
.button.ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.button.ghost:hover { border-color: var(--ink); }
.button.brass { background: var(--brass-2); border-color: var(--brass-2); color: var(--ink); }
.button.brass:hover { background: var(--brass-3); border-color: var(--brass-3); }
.arrow-link {
  display: inline-flex; align-items: center; gap: 10px; font: 500 14px/1.3 var(--sans);
  color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line-strong); padding-bottom: 4px;
  transition: border-color .25s, gap .25s;
}
.arrow-link:hover { border-color: var(--ink); gap: 14px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--ink); }
.brand-mark { width: 38px; height: 38px; flex: none; }
.brand-name { font: 500 21px/1 var(--display); letter-spacing: -.005em; white-space: nowrap; }
.brand-name em { font-style: italic; color: var(--brass); }
.nav-links { display: flex; align-items: center; gap: 34px; font: 500 13.5px/1 var(--sans); }
.nav-links a { text-decoration: none; color: var(--text); position: relative; padding: 8px 0; }
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--brass);
  transform: scaleX(0); transform-origin: left; transition: transform .3s;
}
.nav-links a:hover::after, .nav-links a[aria-current]::after { transform: scaleX(1); }
.nav-links a[aria-current] { color: var(--ink); }
.nav-links .nav-repo { border: 1px solid var(--line-strong); padding: 10px 16px; border-radius: var(--radius); }
.nav-links .nav-repo::after { display: none; }
.nav-links .nav-repo:hover { border-color: var(--ink); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--on-ink-muted); margin-top: 0; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 48px; padding: 72px 0 56px; border-bottom: 1px solid #ffffff17; }
.site-footer .brand { color: var(--on-ink); }
.site-footer .brand-name em { color: var(--brass-2); }
.footer-about { margin-top: 20px; font-size: 14px; line-height: 1.75; max-width: 38ch; }
.footer-col h2 { font: 600 10.5px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--brass-2); margin-bottom: 20px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; font-size: 14px; }
.footer-col a { text-decoration: none; color: var(--on-ink); opacity: .85; }
.footer-col a:hover { opacity: 1; text-decoration: underline; text-decoration-color: var(--brass-2); }
.footer-bottom { display: flex; justify-content: space-between; gap: 24px; padding: 24px 0 30px; font-size: 12.5px; }
.footer-bottom a { color: var(--on-ink); text-decoration: none; }

/* ---------- Sections ---------- */
.section { padding: 120px 0; }
.section + .section { border-top: 1px solid var(--line); }
.section-tint { background: var(--paper-2); border-block: 1px solid var(--line); }
.section-tint + .section { border-top: 0; }
.section-flush { padding-top: 56px; }
.chapter-top { padding-bottom: 72px; }
.footnote { margin-top: 32px; }
.section-head { display: grid; grid-template-columns: 1fr minmax(0, 400px); align-items: end; gap: 48px; margin-bottom: 56px; }
.section-head .h2 { margin-top: 20px; }
.section-head > p { color: var(--muted); font-size: 15.5px; }

/* ---------- Home: hero ---------- */
.hero { display: grid; grid-template-columns: 1.15fr .85fr; gap: 72px; align-items: center; padding: 88px 0 104px; }
.hero .display { margin: 28px 0 28px; }
.hero-sub { font: italic 400 clamp(22px, 2.2vw, 28px)/1.35 var(--display); color: var(--ink-2); max-width: 30ch; }
.hero .lede { margin-top: 22px; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 28px; margin-top: 40px; }
.hero-note { display: flex; align-items: center; gap: 10px; margin-top: 44px; font-size: 13px; color: var(--muted); }
.pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--brass); box-shadow: 0 0 0 4px #9c7a4322; flex: none; }

.cover-stage { position: relative; display: grid; place-items: center; padding: 24px 0 48px; }
.cover-stage::before {
  content: ""; position: absolute; inset: 6% 4% 14%; border: 1px solid var(--line-strong); border-radius: 50%;
}
.cover {
  position: relative; width: min(340px, 100%); aspect-ratio: 2 / 3; padding: 40px 34px 30px 44px;
  display: flex; flex-direction: column; align-items: center; text-align: center; color: var(--on-ink);
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E"),
    linear-gradient(90deg, #0000 0 4%, #ffffff0d 4.6%, #0000 6.5%),
    radial-gradient(110% 70% at 70% 8%, #2c4b42 0%, #0000 62%),
    linear-gradient(165deg, #1d3630 0%, #142722 55%, #0f1d19 100%);
  border-radius: 2px 5px 5px 2px; transform: rotate(-4deg);
  box-shadow: inset 7px 0 9px -6px #000c, inset -1px 0 0 #ffffff14, 0 1px 2px #0003, 26px 36px 60px -20px #14231f70, 6px 8px 18px -10px #14231f40;
}
.cover::before {
  content: ""; position: absolute; inset: 16px 16px 16px 26px; pointer-events: none;
  border: 1px solid #c6a66c66; outline: 1px solid #c6a66c2e; outline-offset: 4px;
}
.cover::after {
  content: ""; position: absolute; top: 5px; bottom: 5px; right: -7px; width: 7px; border-radius: 0 3px 3px 0;
  background: repeating-linear-gradient(90deg, #f3eee2 0 1px, #ddd5c3 1px 2px); box-shadow: 2px 2px 6px #14231f30;
}
.cover > * { position: relative; }
.cover-kicker { font: 600 8px/1 var(--sans); letter-spacing: .32em; white-space: nowrap; text-transform: uppercase; color: var(--brass-2); }
.cover-title { font: 500 47px/.94 var(--display); letter-spacing: -.012em; margin-top: 30px; color: #f4efe3; }
.cover-title em { display: block; margin-top: 4px; font-size: 1.12em; color: var(--brass-2); background: linear-gradient(180deg, #e7d3a1, #b8955a 70%, #d9bf86); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.cover-rule { display: flex; align-items: center; gap: 8px; margin: 18px 0 14px; color: var(--brass-2); }
.cover-rule::before, .cover-rule::after { content: ""; width: 34px; height: 1px; background: currentColor; opacity: .7; }
.cover-rule span { width: 5px; height: 5px; border: 1px solid currentColor; transform: rotate(45deg); }
.cover-sub { font: italic 400 14.5px/1.4 var(--display); color: #d3d9d1; max-width: 23ch; }
.cover-art { margin: auto 0; width: 74%; height: auto; }
.cover-authors { font: 500 13px/1.45 var(--display); letter-spacing: .02em; color: #e2ddd0; }
.cover-authors span { color: var(--brass-2); padding: 0 4px; }
.cover-caption { position: absolute; bottom: 0; font: 600 10px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }

.pillars { display: grid; grid-template-columns: repeat(4, 1fr); border-block: 1px solid var(--line); }
.pillar { padding: 30px 28px 30px 0; display: flex; gap: 16px; align-items: baseline; }
.pillar + .pillar { padding-left: 28px; border-left: 1px solid var(--line); }
.pillar b { font: italic 500 22px/1 var(--display); color: var(--brass); }
.pillar span { font: 500 14px/1.4 var(--sans); color: var(--ink); }

/* ---------- Home: about ---------- */
.about { display: grid; grid-template-columns: .9fr 1.1fr; gap: 96px; align-items: start; }
.about .h2 { margin-top: 20px; }
.about-copy p { font-size: 17px; line-height: 1.8; color: var(--muted); }
.about-copy p + p { margin-top: 20px; }
.about-copy .first { font: 400 25px/1.5 var(--display); color: var(--ink); }
.audience { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 36px; }
.tag { display: inline-flex; padding: 7px 14px; border: 1px solid var(--line-strong); border-radius: 999px; font-size: 12.5px; color: var(--ink-2); background: var(--card); }

/* ---------- Home: chapters ---------- */
.notice { display: flex; gap: 14px; align-items: baseline; padding: 18px 22px; background: var(--card); border: 1px solid var(--line); border-left: 2px solid var(--brass); font-size: 14px; color: var(--muted); margin-bottom: 40px; }
.notice strong { color: var(--ink); font-weight: 600; }
.chapter-list { border-top: 1px solid var(--line-strong); }
.chapter-row {
  display: grid; grid-template-columns: 84px 1fr auto 40px; gap: 24px; align-items: center; padding: 30px 0;
  border-bottom: 1px solid var(--line-strong); text-decoration: none; color: inherit; transition: background .25s, padding .25s;
}
.chapter-num { font: italic 500 30px/1 var(--display); color: var(--brass); }
.chapter-text { display: grid; gap: 6px; }
.chapter-title { font: 500 26px/1.15 var(--display); color: var(--ink); }
.chapter-sum { font-size: 14px; line-height: 1.6; color: var(--muted); max-width: 70ch; }
.status { font: 600 10px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); padding: 8px 12px; border: 1px solid var(--line-strong); border-radius: 999px; white-space: nowrap; }
.status.live { color: var(--ink); background: var(--brass-3); border-color: var(--brass-3); }
.row-arrow { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--line-strong); border-radius: 50%; color: var(--ink); transition: background .25s, color .25s, border-color .25s, transform .25s; }
.chapter-row:hover .chapter-title { color: var(--ink-3); }
.chapter-row:hover .row-arrow { background: var(--ink); border-color: var(--ink); color: var(--on-ink); transform: translateX(4px); }
.chapter-links { display: grid; gap: 10px; margin-top: 24px; max-width: 420px; }
.chapter-links a { display: flex; justify-content: space-between; gap: 18px; padding: 14px 18px; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--card); text-decoration: none; font-size: 14px; color: var(--ink); transition: border-color .2s; }
.chapter-links a:hover { border-color: var(--brass); }
.chapter-links a span { color: var(--brass); }

/* ---------- Chapter page ---------- */
.chapter-layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: 96px; align-items: start; }
.chapter-h2 { margin-top: 20px; }
.topic-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-strong); }
.topic-list li { display: grid; grid-template-columns: 48px 1fr; gap: 16px; padding: 22px 0; border-bottom: 1px solid var(--line); font: 400 22px/1.4 var(--display); color: var(--ink); }
.topic-list li span { font: italic 500 18px/1.6 var(--display); color: var(--brass); }
.empty-panel { display: flex; gap: 16px; align-items: baseline; padding: 32px; background: var(--card); border: 1px dashed var(--line-strong); border-radius: var(--radius); }
.empty-panel strong { font: 500 22px/1.3 var(--display); color: var(--ink); }
.empty-panel p { margin-top: 6px; color: var(--muted); font-size: 14.5px; }
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; padding: 0 0 120px; }
.pager-link { display: grid; gap: 10px; padding: 28px 32px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); text-decoration: none; transition: border-color .25s; }
.pager-link:hover { border-color: var(--brass-2); }
.pager-link b { font: 500 24px/1.2 var(--display); color: var(--ink); }
.pager-link.next { text-align: right; }
.fact-link { font: 500 26px/1.1 var(--display); color: var(--ink); text-decoration-color: var(--brass-2); }
.soon { font-size: 13.5px; font-style: italic; color: var(--muted); }

/* ---------- Cards (resources) ---------- */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  position: relative; display: flex; flex-direction: column; min-height: 320px; padding: 32px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: inherit;
  transition: border-color .3s, transform .3s, box-shadow .3s;
}
.card:hover { border-color: var(--brass-2); transform: translateY(-3px); box-shadow: 0 22px 40px -28px #14231f55; }
.card-meta { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.card-num { font: italic 500 46px/1 var(--display); color: var(--line-strong); transition: color .3s; }
.card:hover .card-num { color: var(--brass-2); }
.card .h3 { margin: 36px 0 12px; }
.card p { font-size: 14.5px; color: var(--muted); }
.card-foot { margin-top: auto; padding-top: 28px; display: flex; justify-content: space-between; align-items: center; font: 500 13.5px/1 var(--sans); color: var(--ink); }
.card-foot span:last-child { color: var(--brass); transition: transform .3s; }
.card:hover .card-foot span:last-child { transform: translateX(4px); }
.card-type { font: 600 10px/1.4 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--brass); }

/* ---------- Authors ---------- */
.author-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; border-top: 1px solid var(--line-strong); }
.author-card { padding: 32px 24px 8px 0; text-decoration: none; color: inherit; }
.author-card + .author-card { padding-left: 24px; border-left: 1px solid var(--line); }
.monogram {
  display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%;
  background: var(--ink); color: var(--brass-3); font: italic 500 24px/1 var(--display); margin-bottom: 24px;
  box-shadow: 0 0 0 1px var(--paper), 0 0 0 2px var(--line-strong);
}
.author-card h3 { font: 500 22px/1.15 var(--display); margin-bottom: 8px; }
.author-card p { font-size: 13px; line-height: 1.6; color: var(--muted); }
.author-card:hover h3 { text-decoration: underline; text-decoration-color: var(--brass-2); text-underline-offset: 5px; }

.profiles { display: grid; gap: 0; border-top: 1px solid var(--line-strong); }
.profile { display: grid; grid-template-columns: 300px 1fr; gap: 72px; padding: 56px 0; border-bottom: 1px solid var(--line-strong); }
.profile .monogram { width: 84px; height: 84px; font-size: 32px; }
.profile h2 { font: 500 36px/1.08 var(--display); letter-spacing: -.01em; }
.profile-role { margin-top: 12px; font-weight: 600; font-size: 14px; color: var(--ink); }
.profile-aff { margin-top: 4px; font-size: 14px; color: var(--muted); }
.profile-bio p { font-size: 16.5px; line-height: 1.8; color: var(--text); max-width: 64ch; }
.profile-bio p + p { margin-top: 18px; }
.profile-bio p:first-child { font: 400 22px/1.55 var(--display); color: var(--ink); }
.profile-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line); }
.profile-meta .tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.profile-meta .sources { display: flex; flex-wrap: wrap; gap: 24px; align-items: end; }

/* ---------- Inner page hero ---------- */
.page-hero { padding: 56px 0 72px; border-bottom: 1px solid var(--line); }
.crumbs { display: flex; flex-wrap: wrap; gap: 10px; font-size: 13px; color: var(--muted); margin-bottom: 56px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.crumbs span[aria-hidden] { color: var(--line-strong); }
.page-hero-grid { display: grid; grid-template-columns: 1fr auto; gap: 48px; align-items: end; }
.page-title { font: 500 clamp(42px, 5.4vw, 76px)/1 var(--display); letter-spacing: -.02em; margin: 24px 0 24px; }
.page-hero .lede { max-width: 62ch; }
.page-facts { display: grid; gap: 16px; min-width: 220px; padding-left: 32px; border-left: 1px solid var(--line-strong); }
.page-facts div { display: grid; gap: 4px; }
.page-facts b { font: 500 26px/1 var(--display); color: var(--ink); }

/* ---------- Guide layout ---------- */
.guide { display: grid; grid-template-columns: 260px 1fr; gap: 72px; padding: 64px 0 120px; }
.guide-aside { position: sticky; top: calc(var(--header-h) + 32px); align-self: start; max-height: calc(100vh - var(--header-h) - 64px); overflow: auto; }
.search { position: relative; margin-bottom: 32px; }
.search input {
  width: 100%; height: 46px; padding: 0 14px 0 40px; font: 400 14px var(--sans); color: var(--ink);
  background: var(--card); border: 1px solid var(--line-strong); border-radius: var(--radius); outline: none; transition: border-color .2s, box-shadow .2s;
}
.search input:focus { border-color: var(--brass); box-shadow: 0 0 0 3px #9c7a4320; }
.search svg { position: absolute; left: 14px; top: 50%; width: 16px; height: 16px; transform: translateY(-50%); color: var(--muted); }
.toc ol { list-style: none; margin: 14px 0 0; padding: 0; counter-reset: toc; border-left: 1px solid var(--line); }
.toc li { counter-increment: toc; }
.toc a { display: flex; gap: 12px; padding: 7px 0 7px 16px; margin-left: -1px; border-left: 1px solid transparent; font-size: 13.5px; line-height: 1.4; color: var(--muted); text-decoration: none; transition: color .2s, border-color .2s; }
.toc a::before { content: counter(toc, decimal-leading-zero); font: italic 500 14px/1.3 var(--display); color: var(--brass); }
.toc a:hover, .toc a.active { color: var(--ink); border-left-color: var(--brass); }
.toc li[hidden] { display: none; }
.guide-tools { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line); }
.guide-main { min-width: 0; }
.g-section { padding: 0 0 56px; margin-bottom: 56px; border-bottom: 1px solid var(--line); }
.g-section:last-of-type { border-bottom: 0; margin-bottom: 0; }
.g-head { display: flex; align-items: baseline; gap: 20px; margin-bottom: 28px; }
.g-num { font: italic 500 22px/1 var(--display); color: var(--brass); min-width: 32px; }
.g-head h2 { font: 500 36px/1.1 var(--display); letter-spacing: -.01em; }
.g-items { display: grid; gap: 16px; padding-left: 52px; }
.g-item { padding: 24px 28px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.g-label { font: 600 10.5px/1.4 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--brass); margin-bottom: 8px; }
.g-item h3 { font: 600 16px/1.4 var(--sans); margin-bottom: 4px; }
.g-item p { color: var(--text); font-size: 15.5px; }
.g-items.compact { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g-items.compact p { color: var(--muted); font-size: 14.5px; }
.example { margin-top: 16px; padding: 14px 18px; background: var(--paper-2); border-left: 2px solid var(--brass-2); font: italic 400 18px/1.5 var(--display); color: var(--ink-2); }
.example b { display: block; font: 600 10px/1.4 var(--sans); font-style: normal; letter-spacing: .18em; text-transform: uppercase; color: var(--brass); margin-bottom: 4px; }
.ref { display: inline-block; margin-top: 14px; font-size: 12px; color: var(--muted); padding: 4px 10px; border: 1px solid var(--line-strong); border-radius: 999px; }
.no-results { padding: 40px; border: 1px dashed var(--line-strong); text-align: center; color: var(--muted); }

/* ---------- Figure page ---------- */
.figure-wrap { padding: 64px 0 120px; }
.figure { margin: 0; padding: clamp(12px, 3vw, 40px); background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 30px 60px -40px #14231f55; }
.figure img { width: 100%; height: auto; }
.figure figcaption { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }

/* ---------- Closing band ---------- */
.closing { background: var(--ink); color: var(--on-ink); border-radius: var(--radius); padding: 72px; display: grid; grid-template-columns: 1fr auto; gap: 48px; align-items: center; position: relative; overflow: hidden; }
.closing::after { content: ""; position: absolute; right: -120px; top: -120px; width: 360px; height: 360px; border: 1px solid #c6a66c33; border-radius: 50%; box-shadow: 0 0 0 40px #c6a66c0d; }
.closing .h2 { color: var(--on-ink); }
.closing p { margin-top: 14px; color: var(--on-ink-muted); max-width: 52ch; }
.closing .eyebrow { color: var(--brass-2); }
.closing-wrap { padding: 0 0 120px; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .hero { gap: 40px; }
  .author-grid { grid-template-columns: repeat(3, 1fr); }
  .author-card:nth-child(4) { padding-left: 0; border-left: 0; }
  .author-card:nth-child(n+4) { border-top: 1px solid var(--line); }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-top > :first-child { grid-column: 1 / -1; }
  .guide { grid-template-columns: 220px 1fr; gap: 48px; }
  .g-items { padding-left: 0; }
  .g-items.compact { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  :root { --gutter: 28px; --header-h: 72px; }
  .nav-links { gap: 22px; }
  .hero { grid-template-columns: 1fr; padding: 56px 0 72px; }
  .cover-stage { max-width: 420px; margin-inline: auto; width: 100%; }
  .pillars { grid-template-columns: 1fr 1fr; }
  .pillar:nth-child(3) { padding-left: 0; border-left: 0; }
  .pillar:nth-child(n+3) { border-top: 1px solid var(--line); }
  .section { padding: 88px 0; }
  .section-head, .about, .page-hero-grid { grid-template-columns: 1fr; gap: 24px; }
  .about { gap: 32px; }
  .chapter-layout { grid-template-columns: 1fr; gap: 32px; }
  .profile { grid-template-columns: 1fr; gap: 28px; }
  .page-facts { grid-auto-flow: column; justify-content: start; gap: 40px; padding: 24px 0 0; border-left: 0; border-top: 1px solid var(--line-strong); }
  .guide { grid-template-columns: 1fr; gap: 32px; padding-top: 40px; }
  .guide-aside { position: static; max-height: none; overflow: visible; }
  .toc { display: none; }
  .guide-tools { display: none; }
  .closing { grid-template-columns: 1fr; padding: 48px 36px; }
}
@media (max-width: 640px) {
  :root { --gutter: 16px; }
  body { font-size: 15.5px; }
  .site-header .nav { height: auto; flex-wrap: wrap; gap: 4px 16px; padding: 14px 0 0; }
  .site-header .nav-links { width: 100%; gap: 20px; overflow-x: auto; scrollbar-width: none; padding-bottom: 6px; font-size: 13px; }
  .site-header .nav-links::-webkit-scrollbar { display: none; }
  .site-header .nav-links a { white-space: nowrap; }
  .nav-links .nav-repo { padding: 8px 0; border: 0; }
  .brand-name { font-size: 19px; }
  .brand-mark { width: 32px; height: 32px; }
  .hero .display { font-size: 50px; }
  .cover { width: min(290px, 100%); padding: 32px 26px 24px 36px; transform: rotate(-2.5deg); }
  .cover-title { font-size: 39px; margin-top: 24px; }
  .cover-kicker { letter-spacing: .22em; font-size: 7.5px; }
  .cover-sub { font-size: 13px; }
  .cover-authors { font-size: 11.5px; }
  .pillars { grid-template-columns: 1fr; }
  .pillar, .pillar + .pillar { padding: 18px 0; border-left: 0; }
  .pillar + .pillar { border-top: 1px solid var(--line); }
  .section { padding: 72px 0; }
  .section-head { margin-bottom: 36px; }
  .chapter-row { grid-template-columns: 40px 1fr 32px; gap: 10px 14px; padding: 22px 0; align-items: start; }
  .chapter-num { font-size: 24px; }
  .chapter-title { font-size: 22px; }
  .chapter-sum { font-size: 13.5px; }
  .status { grid-column: 2; grid-row: 2; justify-self: start; }
  .row-arrow { grid-column: 3; grid-row: 1; width: 32px; height: 32px; }
  .topic-list li { font-size: 19px; grid-template-columns: 36px 1fr; }
  .pager { grid-template-columns: 1fr; padding-bottom: 72px; }
  .pager-link { padding: 22px; }
  .pager-link b { font-size: 21px; }
  .card-grid { grid-template-columns: 1fr; }
  .card { min-height: 0; padding: 26px; }
  .author-grid { grid-template-columns: 1fr 1fr; }
  .author-card, .author-card + .author-card { padding: 26px 16px 22px 0; border-left: 0; border-top: 1px solid var(--line); }
  .author-card:nth-child(even) { padding-left: 16px; border-left: 1px solid var(--line); }
  .author-card:nth-child(-n+2) { border-top: 0; }
  .profile h2 { font-size: 32px; }
  .page-hero { padding: 36px 0 48px; }
  .crumbs { margin-bottom: 32px; }
  .page-facts { gap: 28px; }
  .g-head h2 { font-size: 30px; }
  .g-head { gap: 14px; }
  .g-item { padding: 20px; }
  .closing { padding: 40px 24px; }
  .closing-wrap { padding-bottom: 72px; }
  .footer-top { grid-template-columns: 1fr; gap: 36px; padding: 56px 0 40px; }
  .footer-bottom { flex-direction: column; gap: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
@media print {
  .site-header, .site-footer, .guide-aside, .crumbs, .closing-wrap, .skip { display: none !important; }
  body { background: #fff; }
  .guide { display: block; padding: 0; }
  .g-section { break-inside: avoid-page; }
  .g-item, .example { break-inside: avoid; }
  .page-hero { padding: 0 0 24px; }
}
