/* Zelnick Research: an open, editorial place for ideas. */
:root {
  color-scheme: dark;
  --bg: #10191c;
  --bg-deep: #0c1417;
  --surface: #142024;
  --surface-hover: #19262a;
  --text: #ebe7dc;
  --muted: #a4ada9;
  --faint: #788783;
  --accent: #c4ab7c;
  --accent-strong: #e0c89c;
  --line: #344044;
  --line-soft: #273438;
  --code-comment: #81958e;
  --code-string: #b6cfaa;
  --code-keyword: #c6b5e0;
  --code-number: #deb88a;
  --code-function: #a8ced5;
  --serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  --site-width: 1320px;
  --gutter: 48px;
  --ease: cubic-bezier(.22,.61,.36,1);
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f1eee5;
  --bg-deep: #e9e5db;
  --surface: #eae7de;
  --surface-hover: #e2dfd4;
  --text: #23332e;
  --muted: #59675e;
  --faint: #5d695d;
  --accent: #9b5337;
  --accent-strong: #813d25;
  --line: #c5c8ba;
  --line-soft: #d8dacd;
  --code-comment: #596c57;
  --code-string: #486b47;
  --code-keyword: #76518e;
  --code-number: #914b24;
  --code-function: #306975;
}

* { box-sizing: border-box; }
html { min-width: 0; scroll-behavior: smooth; scroll-padding-top: 28px; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--sans); font-size: 15px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; }
button, select, a { -webkit-tap-highlight-color: transparent; }
button, select { cursor: pointer; }
button, a { touch-action: manipulation; }
button { color: inherit; }
button:disabled { cursor: not-allowed; opacity: .48; }
a { color: inherit; text-decoration: none; text-underline-offset: .22em; }
a:hover { color: var(--accent-strong); }
button, a, input, select { transition: color 160ms, background-color 160ms, border-color 160ms; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
::selection { color: var(--bg); background: var(--accent-strong); }
img, svg { max-width: 100%; }
img { height: auto; }
svg { vertical-align: middle; }
button svg, a svg { width: 18px; height: 18px; flex: 0 0 auto; }
button { border: 0; background: transparent; }
h1, h2, h3, h4, p { margin-top: 0; }
h1, h2, h3, h4 { font-weight: 400; }
ul, ol { padding-left: 1.3em; }
small { font-size: 12px; }
code, pre, kbd { font-family: var(--mono); }
code { font-size: .9em; }
hr { border: 0; border-top: 1px solid var(--line); margin: 32px 0; }
[hidden] { display: none !important; }
.container, .site-header, .site-footer { width: min(var(--site-width), calc(100% - var(--gutter) * 2)); margin-inline: auto; }
.container .container { width: 100%; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: 10px; left: 16px; z-index: 100; padding: 12px 18px; background: var(--text); color: var(--bg); transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }
.eyebrow, .featured-label { color: var(--accent); font-size: 10px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; }
.eyebrow { margin-bottom: 22px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 42px; padding: 10px 18px; border: 1px solid var(--line); background: transparent; color: var(--text); font-size: 13px; white-space: nowrap; }
.button:hover { background: var(--surface-hover); border-color: var(--accent); color: var(--accent-strong); }
.button.primary { background: var(--accent); color: var(--bg-deep); border-color: var(--accent); }
.text-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 6px 0; color: var(--accent); font-size: 13px; }
.text-button:hover { color: var(--accent-strong); }
.icon-button { display: inline-grid; place-items: center; width: 40px; height: 40px; flex: 0 0 auto; color: var(--muted); padding: 8px; border-radius: 50%; }
.icon-button:hover { color: var(--accent); background: var(--surface-hover); }
.icon-button svg { width: 19px; height: 19px; }

/* A compact masthead keeps attention on the work. */
.site-header { display: flex; align-items: center; justify-content: space-between; min-height: 104px; gap: 30px; border-bottom: 1px solid var(--line-soft); }
.brand { display: inline-flex; align-items: center; gap: 13px; color: var(--text); flex-shrink: 0; }
.brand:hover { color: var(--text); }
.brand-mark { width: 37px; height: 27px; display: inline-grid; place-items: center; color: var(--accent); }
.brand-mark svg { width: 38px; height: 31px; }
.brand-name { font-family: var(--serif); font-size: 25px; letter-spacing: -.04em; line-height: 1; }
.brand-kicker { font-family: var(--mono); font-size: 9px; letter-spacing: .17em; color: var(--muted); margin-left: 11px; padding-left: 20px; border-left: 1px solid var(--line); }
.header-nav { display: flex; align-items: center; gap: 32px; margin-left: auto; }
.nav-link { position: relative; display: inline-flex; align-items: center; min-height: 44px; font-size: 12px; color: var(--muted); }
.nav-link[aria-current="page"], .nav-link[data-active="true"] { color: var(--text); }
.nav-link[aria-current="page"]::after, .nav-link[data-active="true"]::after { content: ""; position: absolute; height: 1px; background: var(--accent); bottom: 4px; left: 0; right: 0; }
.header-actions { display: flex; gap: 6px; align-items: center; border-left: 1px solid var(--line); padding-left: 24px; }
.menu-toggle { display: none; }
.mobile-nav { display: none; }

/* Collection */
.collection-hero { position: relative; min-height: 315px; display: flex; flex-direction: column; justify-content: center; padding: 31px 0; isolation: isolate; }
.collection-hero > .eyebrow { margin-bottom: 14px; }
.hero-title { position: relative; z-index: 1; max-width: 790px; margin: 0 0 18px; font-family: var(--serif); font-size: clamp(48px, 4.9vw, 70px); line-height: 1.05; letter-spacing: -.044em; font-weight: 400; text-wrap: balance; }
.hero-title em { font-weight: 400; color: var(--accent); }
.hero-description { position: relative; z-index: 1; max-width: 490px; color: var(--muted); font-size: 14px; line-height: 1.8; margin-bottom: 0; }
.hero-art { position: absolute; z-index: -1; right: -36px; top: 0; width: 52%; max-width: 670px; height: 325px; object-fit: contain; opacity: .92; pointer-events: none; }
div.hero-art { display: grid; align-items: center; }
div.hero-art img { width: 100%; }
[data-theme="light"] .hero-art { opacity: .85; filter: saturate(.58) brightness(.72); }
.discovery { display: flex; align-items: center; flex-wrap: wrap; gap: 16px 28px; padding: 22px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.search-field { position: relative; display: flex; align-items: center; gap: 10px; min-width: 180px; flex: 1 1 250px; max-width: 300px; }
.search-input { width: 100%; height: 38px; border: 0; border-bottom: 1px solid transparent; outline: none; color: var(--text); background: transparent; font-size: 13px; padding: 8px 25px 8px 0; }
.search-input::placeholder { color: var(--muted); opacity: 1; }
.search-input:focus { border-color: var(--accent); }
.search-icon { width: 17px; height: 17px; color: var(--muted); flex: 0 0 auto; }
.search-field > .search-icon:first-child { order: -1; }
.search-field > svg:last-child { position: absolute; right: 0; }
.subject-tabs { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.subject-tabs button, .subject-tabs a { display: inline-flex; align-items: center; position: relative; padding: 9px 0; min-height: 38px; color: var(--muted); font-size: 12px; white-space: nowrap; }
.subject-tabs [aria-selected="true"], .subject-tabs [aria-pressed="true"], .subject-tabs [data-active="true"] { color: var(--accent); }
.subject-tabs [aria-selected="true"]::after, .subject-tabs [aria-pressed="true"]::after, .subject-tabs [data-active="true"]::after { content: ""; position: absolute; height: 1px; left: 0; right: 0; bottom: 3px; background: var(--accent); }
.filter-select { max-width: 180px; min-height: 38px; border: 0; border-left: 1px solid var(--line); border-radius: 0; color: var(--muted); background: var(--bg); font-size: 11px; padding: 6px 18px 6px 16px; }
.filter-select:last-child { margin-left: auto; color: var(--accent); }
.filter-select option { background: var(--bg); color: var(--text); }
.results-meta { display: flex; justify-content: space-between; align-items: center; gap: 18px; margin: 18px 0 4px; color: var(--muted); font-size: 11px; letter-spacing: .04em; }
.results-meta p { margin: 0; }
.results-meta strong { color: var(--text); font-weight: 400; }
.active-filters { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.active-filters button { color: var(--accent); font-size: 11px; }
.featured-work { position: relative; padding: 32px 0 36px; border-bottom: 1px solid var(--line); }
.featured-label { margin-bottom: 13px; display: flex; align-items: center; gap: 11px; }
.featured-label::before { content: ""; width: 25px; height: 1px; background: var(--accent); }
.featured-title { max-width: 900px; font-family: var(--serif); font-size: clamp(31px, 3.2vw, 44px); line-height: 1.15; letter-spacing: -.027em; margin: 0 0 13px; }
.featured-title a { display: inline; }
.work-summary { color: var(--muted); font-size: 13px; line-height: 1.7; max-width: 700px; margin-bottom: 19px; }
.work-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 15px; color: var(--muted); font-size: 11px; line-height: 1.7; }
.work-meta > span + span:not(:empty)::before { content: "·"; margin-right: 15px; color: var(--faint); }
.format-links { display: inline-flex; flex-wrap: wrap; gap: 13px; color: var(--accent); font-family: var(--mono); font-size: 11px; letter-spacing: .015em; }
.format-links a { display: inline-flex; align-items: center; min-height: 28px; }
.work-actions { display: flex; align-items: center; gap: 24px; margin-top: 22px; color: var(--accent); font-size: 12px; }
.work-actions a { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; }
.featured-work .work-actions { position: absolute; right: 0; bottom: 29px; margin-top: 0; }
.research-list { margin: 0; padding: 3px 0 0; list-style: none; }
.research-row { display: grid; grid-template-columns: 36px minmax(0, 1fr) 240px 24px; align-items: center; gap: 22px; padding: 25px 0; border-bottom: 1px solid var(--line-soft); transition: background 180ms; }
.research-row:last-child { border-bottom-color: var(--line); }
.research-number { align-self: start; padding-top: 7px; font-family: var(--mono); font-size: 11px; letter-spacing: .1em; color: var(--accent); }
.research-body { min-width: 0; }
.research-title { font-family: var(--serif); font-size: clamp(23px, 2.12vw, 29px); line-height: 1.2; letter-spacing: -.02em; margin: 0 0 7px; }
.research-body p, .research-body .work-summary { max-width: 630px; font-size: 12px; line-height: 1.6; color: var(--muted); margin: 0; }
.research-details { display: flex; flex-direction: column; gap: 9px; color: var(--muted); font-size: 11px; }
.research-details > span { display: block; }
.research-details .work-meta { font-size: 11px; gap: 6px; }
.research-details .work-meta > span + span::before { margin-right: 6px; }
.research-open { display: inline-grid; place-items: center; min-width: 28px; min-height: 40px; color: var(--accent); font-size: 23px; transition: transform 180ms var(--ease); }
.research-row:hover .research-open { transform: translate(3px,-3px); }
.research-row:hover .research-title { color: var(--accent-strong); }

/* Research detail and reading */
.page-heading { position: relative; padding: 42px 0 26px; }
.breadcrumb { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; color: var(--muted); font-size: 11px; margin: 0 0 35px; }
.breadcrumb a { color: var(--accent); min-height: 28px; display: inline-flex; align-items: center; }
.project-title { max-width: 950px; font-family: var(--serif); font-size: clamp(39px, 4.7vw, 65px); letter-spacing: -.04em; line-height: 1.08; margin: 0 0 20px; text-wrap: balance; }
.project-summary { max-width: 800px; color: var(--muted); font-family: var(--serif); font-size: 21px; font-style: italic; line-height: 1.55; margin-bottom: 23px; }
.project-meta { display: flex; gap: 12px 18px; align-items: center; flex-wrap: wrap; color: var(--muted); font-size: 11px; }
.project-meta > span { display: inline-flex; align-items: center; gap: 8px; }
.project-meta select { color: var(--accent); background: transparent; border: 1px solid var(--line); padding: 5px 9px; font-size: 11px; min-height: 32px; }
.project-meta option { background: var(--bg); }
.project-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 24px; margin-top: 22px; color: var(--accent); font-size: 12px; }
.project-actions a, .project-actions button { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 5px 0; color: var(--accent); }
.project-actions .button { padding-inline: 14px; }
.project-tabs { display: flex; align-items: center; gap: 32px; border-bottom: 1px solid var(--line); margin: 3px 0 36px; }
.project-tabs a, .project-tabs button { position: relative; display: inline-flex; align-items: center; gap: 7px; min-height: 55px; padding: 15px 0; font-size: 12px; color: var(--muted); white-space: nowrap; }
.project-tabs small { font-family: var(--mono); font-size: 11px; opacity: .7; }
.project-tabs [aria-selected="true"], .project-tabs [aria-current="page"], .project-tabs [data-active="true"] { color: var(--accent); }
.project-tabs [aria-selected="true"]::after, .project-tabs [aria-current="page"]::after, .project-tabs [data-active="true"]::after { content: ""; position: absolute; height: 2px; bottom: -1px; left: 0; right: 0; background: var(--accent); }
.reader-layout { display: grid; grid-template-columns: 180px minmax(0,780px); gap: 64px; padding: 8px 0 54px; align-items: start; }
.toc { position: sticky; top: 30px; color: var(--muted); font-size: 11px; padding-top: 9px; }
.toc::before { content: ""; display: block; width: 27px; height: 1px; background: var(--accent); margin-bottom: 22px; }
.toc h2, .toc h3 { font-family: var(--sans); text-transform: uppercase; letter-spacing: .13em; font-size: 11px; font-weight: 500; margin-bottom: 17px; }
.toc ul, .toc ol { list-style: none; margin: 0; padding: 0; }
.toc a { display: block; padding: 7px 0; }
.toc a[aria-current="location"] { color: var(--accent); }
.article-body { max-width: 780px; color: var(--text); font-size: 16px; line-height: 1.9; overflow-wrap: anywhere; }
.article-body p { margin-bottom: 22px; }
.article-body h2 { position: relative; font-family: var(--serif); font-size: 34px; letter-spacing: -.025em; line-height: 1.2; margin: 48px 0 20px; padding-top: 17px; }
.article-body h2::before { content: ""; position: absolute; top: 0; left: 0; width: 30px; height: 1px; background: var(--accent); }
.article-body > h2:first-child, .article-body > section:first-child > h2:first-child { margin-top: 0; }
.article-body h3 { font-family: var(--serif); font-size: 25px; letter-spacing: -.02em; line-height: 1.3; margin: 33px 0 13px; }
.article-body h4 { font-size: 17px; font-weight: 600; margin: 25px 0 10px; }
.article-body a { color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; }
.article-body li { padding-left: 4px; margin-bottom: 8px; }
.article-body blockquote { border-left: 2px solid var(--accent); padding: 2px 0 2px 24px; margin: 30px 0; font-family: var(--serif); font-size: 22px; color: var(--muted); }
.article-body pre { font-size: 12px; line-height: 1.8; overflow-x: auto; padding: 22px; background: var(--bg-deep); border: 1px solid var(--line-soft); }
.article-body :not(pre) > code { color: var(--accent); background: var(--surface); padding: .1em .3em; }
.article-body math[display="block"], .article-body .equation { font-size: 1.25em; margin: 30px 0; padding: 15px 5px; overflow-x: auto; max-width: 100%; }
.article-body figure { margin: 30px 0; }
.article-body figcaption { color: var(--muted); font-size: 12px; line-height: 1.6; margin-top: 10px; }
.article-body table { width: 100%; border-collapse: collapse; margin: 24px 0; font-size: 13px; }
.article-body td, .article-body th { padding: 12px; text-align: left; border-bottom: 1px solid var(--line); }
.article-body th { font-weight: 500; color: var(--muted); }
.article-actions { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 12px; color: var(--accent); }
.scope-note { margin: 30px 0; padding: 17px 0 17px 21px; border-left: 1px solid var(--accent); color: var(--muted); font-size: 12px; line-height: 1.8; }
.scope-note p:last-child { margin-bottom: 0; }

/* Source files stay close to the work, with an intentionally quiet editor. */
.files-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 38px; align-items: start; padding-bottom: 46px; }
.file-sidebar { border-right: 1px solid var(--line); padding-right: 27px; min-height: 400px; }
.file-sidebar h2 { font-family: var(--serif); font-size: 25px; line-height: 1.2; letter-spacing: -.02em; margin-bottom: 17px; }
.file-sidebar > p { color: var(--muted); font-size: 11px; }
.file-search { display: block; width: 100%; min-height: 37px; margin-bottom: 19px; padding: 7px 0; background: transparent; border: 0; border-bottom: 1px solid var(--line); color: var(--text); font-size: 11px; border-radius: 0; }
.file-search::placeholder { color: var(--muted); }
.file-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 4px; }
.file-option { position: relative; display: flex; align-items: center; gap: 9px; width: 100%; min-height: 38px; padding: 8px 10px; text-align: left; font-family: var(--mono); font-size: 11px; color: var(--muted); overflow-wrap: anywhere; }
.file-option svg { width: 14px; height: 14px; color: var(--accent); flex-shrink: 0; }
.file-option:hover { color: var(--text); background: var(--surface); }
.file-option[aria-current="true"], .file-option[aria-selected="true"], .file-option[aria-current="page"], .file-option[data-active="true"] { color: var(--text); background: var(--surface); }
.file-option[aria-current="true"]::before, .file-option[aria-selected="true"]::before, .file-option[aria-current="page"]::before, .file-option[data-active="true"]::before { content: ""; position: absolute; left: 0; top: 9px; bottom: 9px; width: 2px; background: var(--accent); }
.file-content { min-width: 0; }
.file-content > h2 { font-family: var(--serif); font-size: 33px; letter-spacing: -.025em; margin-bottom: 8px; overflow-wrap: anywhere; }
.file-content .work-meta { margin-bottom: 17px; }
.file-toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; padding: 0 0 18px; border-bottom: 1px solid var(--line-soft); margin-bottom: 23px; font-size: 11px; color: var(--muted); }
.file-toolbar > span:first-child { margin-right: auto; }
.file-toolbar a, .file-toolbar button { display: inline-flex; align-items: center; gap: 7px; min-height: 34px; color: var(--accent); font-size: 11px; padding: 4px 0; }
.source-code { display: block; font-family: var(--mono); font-size: 12px; line-height: 1.9; margin: 0; padding: 12px 0 24px; background: transparent; overflow: auto; max-width: 100%; max-height: 650px; white-space: pre; tab-size: 4; color: var(--text); scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
.source-code > code { font: inherit; display: block; min-width: max-content; }
.code-line { display: flex; min-width: max-content; min-height: 23px; }
.line-number { display: inline-block; width: 42px; padding-right: 17px; text-align: right; color: var(--faint); user-select: none; flex-shrink: 0; font-size: 11px; }
.line-content { padding-right: 20px; }
.token-comment { color: var(--code-comment); }
.token-string { color: var(--code-string); }
.token-keyword { color: var(--code-keyword); }
.token-number { color: var(--code-number); }
.token-function { color: var(--code-function); }
.file-content iframe, .file-content object, .file-content embed { width: 100%; height: 680px; border: 1px solid var(--line); background: var(--surface); }
.notebook-cell { padding: 18px 0; border-bottom: 1px solid var(--line-soft); }
.notebook-cell pre { overflow-x: auto; margin: 10px 0; background: var(--bg-deep); padding: 15px; font-size: 12px; }
.notebook-cell .output, .notebook-output { color: var(--muted); font-family: var(--mono); font-size: 12px; }

/* Release history, sources, and the surrounding collection. */
.version-layout { display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 70px; padding: 5px 0 48px; }
.version-layout > aside { font-size: 12px; line-height: 1.8; color: var(--muted); border-left: 1px solid var(--line); padding-left: 28px; }
.version-layout h2, .reference-list h2, .about-content h2, .series-entry h2 { font-family: var(--serif); font-size: 31px; letter-spacing: -.02em; line-height: 1.2; margin-bottom: 20px; }
.version-layout > aside h2, .version-layout > aside h3 { font-size: 22px; font-family: var(--serif); color: var(--text); }
.version-list { list-style: none; padding: 0; margin: 0; }
.version-entry { position: relative; padding: 5px 0 30px 30px; border-left: 1px solid var(--line); margin-left: 5px; }
.version-entry:last-child { padding-bottom: 5px; border-left-color: transparent; }
.version-dot { position: absolute; left: -4px; top: 10px; width: 7px; height: 7px; background: var(--accent); border-radius: 50%; }
.version-entry h2, .version-entry h3 { font-family: var(--serif); font-size: 26px; margin-bottom: 8px; letter-spacing: -.02em; }
.version-entry p, .version-entry time { font-size: 11px; color: var(--muted); }
.version-entry ul { color: var(--muted); font-size: 13px; line-height: 1.8; padding-left: 17px; margin: 16px 0; }
.version-entry li { padding-left: 3px; margin-bottom: 5px; }
.version-entry .current, .version-entry .badge { font-family: var(--sans); font-size: 11px; color: var(--accent); letter-spacing: .08em; text-transform: uppercase; padding-left: 12px; vertical-align: middle; }
.version-actions { display: flex; gap: 22px; flex-wrap: wrap; color: var(--accent); font-size: 11px; }
.version-actions a { min-height: 32px; display: inline-flex; align-items: center; gap: 6px; }
.reference-list { list-style: none; counter-reset: refs; margin: 0; padding: 0 0 42px; max-width: 960px; }
.reference-list li { position: relative; counter-increment: refs; padding: 25px 0 25px 43px; border-bottom: 1px solid var(--line-soft); }
.reference-list li::before { content: "[" counter(refs) "]"; position: absolute; left: 0; top: 28px; font-family: var(--mono); font-size: 11px; color: var(--accent); }
.reference-list h3 { font-family: var(--serif); font-size: 24px; margin-bottom: 9px; }
.reference-list a { color: var(--accent); overflow-wrap: anywhere; }
.reference-list p { margin: 0 0 7px; color: var(--muted); font-size: 12px; }
.reference-list small { color: var(--faint); }
.series-list { padding-bottom: 30px; }
.series-entry { border-top: 1px solid var(--line); padding: 30px 0; }
.series-entry > p { max-width: 680px; color: var(--muted); font-size: 14px; }
.series-entry ul { list-style: none; margin: 17px 0 0; padding: 0; }
.series-entry li { padding: 13px 0; border-bottom: 1px solid var(--line-soft); }
.series-entry li a { display: flex; justify-content: space-between; gap: 20px; font-family: var(--serif); font-size: 23px; }
.series-entry li small { font-family: var(--sans); font-size: 11px; color: var(--muted); align-self: center; }
.about-content { max-width: 760px; margin: 0 0 65px; font-size: 16px; line-height: 1.9; }
.about-content h2 { margin-top: 36px; }
.about-content p { color: var(--muted); }
.about-content a { color: var(--accent); text-decoration: underline; }
.about-content li { margin-bottom: 10px; color: var(--muted); }

/* Citation dialog uses the same quiet hierarchy as the page. */
.citation-dialog { position: fixed; width: min(620px, calc(100% - 36px)); max-height: calc(100dvh - 60px); overflow-y: auto; padding: 31px; color: var(--text); background: var(--bg); border: 1px solid var(--line); box-shadow: 0 28px 100px #0006; }
.citation-dialog::backdrop { background: #071011b8; backdrop-filter: blur(5px); }
.dialog-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.dialog-header h2 { font-family: var(--serif); font-size: 33px; letter-spacing: -.03em; margin: 0; }
.dialog-header .icon-button { margin-right: -7px; }
.citation-dialog > p { color: var(--muted); font-size: 12px; }
.citation-tabs { display: flex; gap: 27px; border-bottom: 1px solid var(--line); margin: 20px 0; }
.citation-tabs button { position: relative; padding: 12px 0; min-height: 43px; color: var(--muted); font-size: 12px; }
.citation-tabs [aria-selected="true"], .citation-tabs [data-active="true"] { color: var(--accent); }
.citation-tabs [aria-selected="true"]::after, .citation-tabs [data-active="true"]::after { content: ""; position: absolute; bottom: -1px; left: 0; right: 0; height: 2px; background: var(--accent); }
.citation-content { padding: 18px 0; min-height: 145px; color: var(--muted); font-size: 14px; line-height: 1.8; overflow-wrap: anywhere; }
pre.citation-content, .citation-content pre { font-family: var(--mono); font-size: 11px; line-height: 1.9; white-space: pre-wrap; margin: 0; }
.citation-content a { color: var(--accent); }
.dialog-actions { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 13px; padding-top: 20px; border-top: 1px solid var(--line); }
.dialog-actions a { color: var(--accent); font-size: 11px; }
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 150; max-width: calc(100% - 32px); padding: 12px 20px; background: var(--text); color: var(--bg); box-shadow: 0 8px 30px #0003; font-size: 12px; text-align: center; }

/* Footer and exceptional states. */
.site-footer { margin-top: 45px; padding: 27px 0 32px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: flex-start; gap: 25px; font-size: 11px; color: var(--muted); }
.site-footer p { margin: 0 0 7px; }
.footer-links { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; color: var(--accent); }
.footer-links a { display: inline-flex; align-items: center; min-height: 28px; gap: 7px; }
.demo-note { color: var(--faint); font-size: 11px; line-height: 1.7; letter-spacing: .015em; }
.work-meta .demo-note, .project-meta .demo-note { color: var(--accent); font-size: 11px; letter-spacing: .04em; }
.empty-state, .error-state, .loading-state { min-height: 290px; padding: 70px 0; text-align: center; color: var(--muted); }
.empty-state h2, .error-state h1, .loading-state h1 { color: var(--text); font-family: var(--serif); font-size: 38px; letter-spacing: -.03em; margin-bottom: 15px; }
.empty-state p, .error-state p { max-width: 440px; margin: 0 auto 23px; font-size: 13px; }
.loading-state p { font-family: var(--serif); font-size: 24px; }
body > noscript { display: block; width: min(760px, 90%); margin: 40px auto; }

@media (min-width: 1500px) {
  .collection-hero { min-height: 335px; }
  .hero-art { right: -55px; height: 350px; top: 1px; }
}
@media (max-width: 1150px) {
  :root { --gutter: 36px; }
  .site-header { min-height: 92px; }
  .hero-title { max-width: 650px; }
  .hero-art { right: -24px; width: 48%; opacity: .67; }
  .collection-hero { min-height: 330px; }
  .discovery { gap: 10px 22px; }
  .search-field { max-width: none; flex-basis: 240px; }
  .subject-tabs { gap: 17px; }
  .filter-select { padding-left: 12px; }
  .filter-select:last-child { margin-left: 0; }
  .research-row { grid-template-columns: 28px minmax(0,1fr) 190px 22px; gap: 18px; }
  .reader-layout { grid-template-columns: 155px minmax(0,1fr); gap: 38px; }
  .files-layout { grid-template-columns: 190px minmax(0,1fr); gap: 27px; }
  .file-sidebar { padding-right: 20px; }
  .version-layout { grid-template-columns: minmax(0,1fr) 235px; gap: 35px; }
}
@media (max-width: 850px) {
  :root { --gutter: 28px; }
  .brand-kicker { display: none; }
  .header-nav { gap: 24px; }
  .header-actions { padding-left: 18px; }
  .collection-hero { min-height: 315px; padding-block: 43px; }
  .hero-title { max-width: 650px; font-size: 57px; }
  .hero-art { right: -20px; width: 48%; top: 48px; height: 240px; opacity: .3; }
  .hero-description { max-width: 440px; }
  .search-field { flex-basis: 100%; max-width: none; }
  .discovery { padding: 15px 0; gap: 12px 18px; }
  .subject-tabs { flex: 1 1 100%; gap: 21px; }
  .filter-select { padding-left: 0; border-left: 0; min-height: 32px; }
  .filter-select:last-child { margin-left: auto; }
  .featured-work { padding: 28px 0; }
  .featured-work .work-actions { position: static; margin-top: 17px; }
  .research-row { grid-template-columns: 25px minmax(0,1fr) 24px; gap: 15px; padding: 23px 0; }
  .research-details { grid-column: 2; grid-row: 2; flex-direction: row; align-items: center; gap: 15px; margin-top: -4px; }
  .research-open { grid-column: 3; grid-row: 1 / span 2; align-self: center; }
  .research-title { font-size: 27px; }
  .research-details .format-links { gap: 10px; }
  .reader-layout { grid-template-columns: 1fr; gap: 30px; padding-top: 0; }
  .toc { position: static; padding: 0 0 19px; border-bottom: 1px solid var(--line-soft); }
  .toc::before { display: none; }
  .toc h2, .toc h3 { margin-bottom: 10px; }
  .toc ul, .toc ol { display: flex; gap: 20px; flex-wrap: wrap; }
  .toc a { padding: 3px 0; }
  .article-body { max-width: 100%; }
  .files-layout { grid-template-columns: 170px minmax(0,1fr); gap: 22px; }
  .file-sidebar { padding-right: 15px; }
  .file-option { font-size: 11px; padding-left: 7px; }
  .file-sidebar h2 { font-size: 23px; }
  .file-content > h2 { font-size: 29px; }
  .version-layout { display: block; }
  .version-layout > aside { border-left: 0; border-top: 1px solid var(--line); padding: 24px 0 0; margin-top: 30px; }
}
@media (max-width: 600px) {
  :root { --gutter: 22px; }
  body { font-size: 14px; }
  .site-header { min-height: 80px; gap: 16px; }
  .brand { gap: 9px; }
  .brand-name { font-size: 24px; }
  .brand-mark { width: 29px; }
  .brand-mark svg { width: 30px; }
  .header-nav { display: none; }
  .header-actions { padding-left: 0; border: 0; gap: 3px; margin-left: auto; }
  .menu-toggle { display: inline-grid; }
  .mobile-nav:not([hidden]) { display: flex; flex-direction: column; gap: 4px; width: min(var(--site-width),calc(100% - var(--gutter)*2)); margin: 0 auto; padding: 12px 0 18px; border-bottom: 1px solid var(--line); }
  .mobile-nav .nav-link { min-height: 44px; width: fit-content; }
  .collection-hero { min-height: 365px; padding: 40px 0 42px; justify-content: start; }
  .collection-hero > .eyebrow { font-size: 11px; margin-bottom: 21px; }
  .hero-title { font-size: clamp(43px, 10.3vw, 61px); max-width: 440px; line-height: 1.03; letter-spacing: -.04em; margin-bottom: 22px; }
  .hero-description { max-width: 340px; font-size: 13px; line-height: 1.8; }
  .hero-art { width: 66%; height: 190px; right: -18px; top: auto; bottom: -10px; opacity: .32; }
  .discovery { padding-block: 12px; gap: 8px 15px; }
  .search-field { flex-basis: 100%; }
  .search-input { min-height: 44px; font-size: 13px; }
  .subject-tabs { flex-wrap: nowrap; overflow-x: auto; gap: 23px; padding: 0 0 4px; scrollbar-width: none; max-width: 100%; }
  .subject-tabs::-webkit-scrollbar { display: none; }
  .subject-tabs button, .subject-tabs a { min-height: 42px; font-size: 11px; }
  .filter-select { max-width: 47%; min-height: 40px; font-size: 11px; }
  .results-meta { font-size: 11px; margin-block: 16px 3px; align-items: flex-start; }
  .featured-label { font-size: 11px; letter-spacing: .16em; margin-bottom: 12px; }
  .featured-title { font-size: 33px; line-height: 1.13; max-width: 440px; }
  .work-summary { font-size: 12px; margin-bottom: 16px; }
  .work-meta { font-size: 11px; gap: 6px 10px; }
  .work-meta > span + span:not(:empty)::before { margin-right: 10px; }
  .format-links { font-size: 11px; gap: 11px; }
  .work-actions { gap: 22px; font-size: 11px; }
  .research-row { grid-template-columns: 22px minmax(0,1fr) 19px; gap: 12px; padding: 23px 0; }
  .research-number { font-size: 11px; padding-top: 5px; }
  .research-title { font-size: 25px; line-height: 1.15; }
  .research-body p, .research-body .work-summary { font-size: 11px; line-height: 1.7; }
  .research-details { flex-wrap: wrap; gap: 3px 13px; font-size: 11px; }
  .research-details .work-meta { font-size: 11px; }
  .research-open { font-size: 21px; min-width: 20px; }
  .page-heading { padding: 25px 0 16px; }
  .breadcrumb { font-size: 11px; gap: 7px; margin-bottom: 26px; }
  .project-title { font-size: 43px; letter-spacing: -.04em; line-height: 1.07; margin-bottom: 16px; }
  .project-summary { font-size: 18px; line-height: 1.5; margin-bottom: 20px; }
  .project-meta { font-size: 11px; gap: 10px 13px; }
  .project-meta select { min-height: 40px; }
  .project-actions { margin-top: 16px; gap: 18px; font-size: 11px; }
  .project-actions a, .project-actions button { min-height: 42px; }
  .project-tabs { gap: 25px; margin-bottom: 26px; overflow-x: auto; scrollbar-width: none; }
  .project-tabs a, .project-tabs button { font-size: 11px; min-height: 51px; }
  .project-tabs small { font-size: 11px; }
  .toc { padding-bottom: 17px; }
  .toc ul, .toc ol { gap: 5px 18px; }
  .toc a { min-height: 32px; }
  .article-body { font-size: 15px; line-height: 1.9; }
  .article-body h2 { font-size: 31px; margin-top: 38px; }
  .article-body h3 { font-size: 24px; }
  .article-body p { margin-bottom: 20px; }
  .article-body blockquote { font-size: 20px; padding-left: 18px; }
  .article-body pre { padding: 16px; font-size: 11px; }
  .reader-layout { padding-bottom: 20px; }
  .files-layout { display: block; }
  .file-sidebar { min-height: 0; border: 0; border-bottom: 1px solid var(--line); padding: 0 0 20px; margin-bottom: 24px; }
  .file-sidebar h2 { margin-bottom: 10px; }
  .file-search { font-size: 12px; min-height: 42px; margin-bottom: 12px; }
  .file-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 4px 8px; max-height: 192px; overflow-y: auto; scrollbar-width: thin; }
  .file-option { min-height: 40px; font-size: 11px; padding: 8px; gap: 7px; }
  .file-content > h2 { font-size: 29px; }
  .file-toolbar { gap: 8px 17px; margin-bottom: 10px; padding-bottom: 14px; }
  .file-toolbar a, .file-toolbar button { min-height: 40px; font-size: 11px; }
  .file-toolbar > span:first-child { flex-basis: 100%; }
  .source-code { font-size: 11px; max-height: 550px; margin-inline: 0; }
  .line-number { width: 28px; padding-right: 11px; font-size: 11px; }
  .line-content { padding-right: 15px; }
  .file-content iframe, .file-content object, .file-content embed { height: 530px; }
  .version-entry { padding-left: 23px; }
  .reference-list li { padding-left: 32px; }
  .reference-list h3 { font-size: 23px; }
  .series-entry li a { font-size: 23px; }
  .series-entry li small { font-size: 11px; }
  .about-content { font-size: 15px; margin-bottom: 35px; }
  .citation-dialog { padding: 23px; max-height: calc(100dvh - 36px); }
  .dialog-header h2 { font-size: 29px; }
  .citation-content { font-size: 13px; }
  .site-footer { margin-top: 30px; padding: 24px 0 26px; flex-direction: column; gap: 17px; font-size: 11px; }
  .footer-links { gap: 20px; }
  .demo-note { font-size: 11px; }
}
@media (max-width: 370px) {
  :root { --gutter: 18px; }
  .brand-name { font-size: 21px; }
  .brand-mark { width: 25px; }
  .icon-button { width: 36px; }
  .hero-title { font-size: 42px; }
  .hero-description { max-width: 280px; }
  .hero-art { width: 70%; opacity: .23; }
  .featured-title { font-size: 30px; }
  .project-title { font-size: 37px; }
  .project-tabs { gap: 19px; }
  .research-row { gap: 9px; }
  .research-title { font-size: 23px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
@media print {
  :root { --bg:#fff; --text:#111; --muted:#444; --accent:#333; --line:#ccc; --line-soft:#ddd; }
  .site-header, .site-footer, .project-tabs, .project-actions, .toc, .hero-art, .skip-link, .toast { display: none !important; }
  .container { width: 100%; }
  .reader-layout { display: block; }
  .article-body { max-width: none; }
  .article-body a { color: #111; }
  .project-title { font-size: 35px; }
  .page-heading { padding-top: 0; }
}

/* Final component integration: source-controlled application markup. */
.ui-icon { display: inline-block; width: 18px; height: 18px; flex: 0 0 auto; }
.brand-name { display: inline-flex; align-items: baseline; gap: 10px; }
.brand-slash { color: var(--faint); font-size: 22px; font-weight: 400; }
.brand-name .brand-kicker { margin: 0; padding: 0; border: 0; font-size: 9px; letter-spacing: .16em; }
.hero-copy { position: relative; z-index: 1; max-width: 740px; }
.hero-copy .eyebrow { margin-bottom: 14px; }
.hero-note { color: var(--faint); font-size: 11px; margin: 12px 0 0; }
.discovery { gap: 10px 23px; padding: 18px 0 13px; }
.discovery-top { display: contents; }
.discovery-top .search-field { order: 1; flex: 1 1 250px; max-width: 320px; }
.subject-tabs { order: 2; gap: 20px; }
.filter-label { display: inline-flex; align-items: center; gap: 3px; order: 3; color: var(--muted); font-size: 11px; }
.filter-label:last-child { margin-left: auto; }
.filter-label .filter-select { max-width: 170px; padding-left: 8px; border-left: 0; }
.filter-label[for="research-type"] { padding-left: 15px; border-left: 1px solid var(--line); }
.discovery .results-meta { order: 4; flex-basis: 100%; margin: 2px 0 0; min-height: 23px; }
.clear-filters { font-size: 11px; min-height: 26px; }
.collection-label { color: var(--faint); }
.featured-work { display: grid; grid-template-columns: minmax(0,1fr) 205px; gap: 50px; padding: 30px 0; }
.featured-work .work-actions { position: static; right: auto; bottom: auto; margin-top: 16px; flex-wrap: wrap; gap: 8px 22px; }
.featured-title { font-size: clamp(31px, 3.1vw, 43px); }
.featured-annotation { align-self: center; padding-left: 28px; border-left: 1px solid var(--line); }
.annotation-label { display: block; color: var(--faint); font-size: 10px; letter-spacing: .09em; text-transform: uppercase; margin-bottom: 14px; }
.featured-annotation p { font-family: var(--serif); font-size: 23px; font-style: italic; line-height: 1.35; margin-bottom: 17px; color: var(--muted); }
.featured-annotation a { display: inline-flex; align-items: center; gap: 7px; color: var(--accent); font-size: 11px; }
.featured-label > span { margin-left: 4px; color: var(--faint); font-family: var(--mono); font-weight: 400; }
.format-links { align-items: center; gap: 8px; }
.format-dot { color: var(--faint); }
.demo-label { color: var(--accent); font-size: 11px; }
.research-body .work-meta { margin-top: 9px; }
.research-date { color: var(--faint); font-size: 11px; }
.research-open.icon-button { width: 32px; height: 42px; padding: 4px; }
.series-preview { display: grid; grid-template-columns: 235px minmax(0,1fr); gap: 4px 32px; padding: 36px 0 9px; }
.series-preview h2 { grid-column: 1; font-family: var(--serif); font-size: 29px; line-height: 1.2; letter-spacing: -.025em; margin: 0; }
.series-preview > p { grid-column: 1; color: var(--muted); font-size: 11px; line-height: 1.8; margin: 0; }
.series-links { grid-column: 2; grid-row: 1 / span 2; display: flex; gap: 18px 30px; flex-wrap: wrap; align-items: center; }
.series-links a { display: inline-flex; align-items: center; gap: 10px; min-height: 40px; font-size: 12px; color: var(--accent); }
.project-heading-main { display: grid; grid-template-columns: minmax(0,1fr) 260px; align-items: center; gap: 25px; }
.project-heading-main > div { min-width: 0; }
.project-heading-main .eyebrow { margin-bottom: 17px; }
.project-art { width: 100%; opacity: .68; }
[data-theme="light"] .project-art, [data-theme="light"] .about-art { filter: saturate(.58) brightness(.72); }
.project-navigation { display: flex; align-items: end; justify-content: space-between; flex-wrap: wrap; gap: 10px 25px; border-bottom: 1px solid var(--line); margin-top: 22px; }
.project-navigation .project-tabs { border: 0; margin: 0; }
.project-navigation .project-actions { margin: 0 0 6px; gap: 21px; }
.version-selector { display: inline-flex; align-items: center; }
.version-selector .filter-select { border: 0; min-height: 36px; padding-left: 0; font-size: 11px; }
.version-notice { border-left: 1px solid var(--accent); padding: 7px 0 7px 16px; font-size: 12px; color: var(--muted); margin: 22px 0 0; }
.version-notice a { color: var(--accent); }
.tab-count { color: var(--faint); font-size: 11px; font-family: var(--mono); }
.reader-layout { grid-template-columns: 145px minmax(0,740px) minmax(125px,1fr); gap: 37px; }
.reader-main { min-width: 0; }
.toc-details summary { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 36px; cursor: pointer; color: var(--text); font-size: 11px; list-style: none; margin-bottom: 8px; }
.toc-details summary::-webkit-details-marker { display: none; }
.toc-details summary .ui-icon { width: 13px; height: 13px; color: var(--faint); transform: rotate(-90deg); }
.toc-details[open] summary .ui-icon { transform: rotate(0); }
.toc-details nav { display: flex; flex-direction: column; }
.toc-details nav a { font-size: 11px; line-height: 1.6; padding: 7px 0; }
.article-colophon { position: sticky; top: 30px; padding: 10px 0 0 22px; border-left: 1px solid var(--line-soft); font-size: 11px; color: var(--muted); }
.article-colophon .eyebrow { margin-bottom: 17px; font-size: 9px; }
.article-colophon > p { line-height: 1.9; }
.article-colophon > p span { color: var(--faint); }
.article-colophon > a, .article-colophon > button { display: flex; align-items: center; justify-content: start; gap: 5px; color: var(--accent); min-height: 35px; font-size: 11px; }
.article-colophon .ui-icon { width: 14px; height: 14px; }
.colophon-series { margin-top: 24px; }
.colophon-series a { display: block; color: var(--accent); }
.article-actions { display: block; padding-top: 24px; }
.article-actions h2 { font-family: var(--serif); font-size: 28px; line-height: 1.25; letter-spacing: -.025em; margin: 0 0 12px; color: var(--text); }
.article-actions > p:not(.eyebrow) { color: var(--muted); font-size: 12px; }
.article-actions .eyebrow { margin-bottom: 15px; }
.article-actions .work-actions { margin-top: 13px; flex-wrap: wrap; }
.related-work { margin-top: 35px; padding-top: 25px; border-top: 1px solid var(--line-soft); }
.related-work .eyebrow { margin-bottom: 13px; }
.related-work > a { display: flex; align-items: center; justify-content: space-between; gap: 16px; font-family: var(--serif); font-size: 24px; line-height: 1.3; padding: 10px 0; }
.related-work .ui-icon { color: var(--accent); }
.file-sidebar-heading h2 span { font-family: var(--mono); color: var(--faint); font-size: 11px; vertical-align: middle; padding-left: 4px; }
.collapse-files { display: none; }
.file-search.search-field { display: flex; max-width: none; padding: 0; height: auto; gap: 9px; }
.file-search .ui-icon { width: 15px; height: 15px; color: var(--muted); }
.file-search .search-input { min-height: 38px; font-size: 11px; padding-right: 0; }
.file-folder { display: flex; align-items: center; gap: 7px; padding: 14px 7px 4px; color: var(--muted); font-family: var(--mono); font-size: 10px; overflow-wrap: anywhere; }
.file-folder .ui-icon { width: 14px; height: 14px; color: var(--accent); }
.file-list-item.nested { padding-left: 13px; }
.file-header h2 { font-family: var(--serif); font-size: 34px; line-height: 1.2; letter-spacing: -.025em; overflow-wrap: anywhere; margin: 0 0 10px; }
.file-header > .eyebrow { margin-bottom: 11px; }
.file-path { color: var(--muted); font-family: var(--mono); font-size: 11px; overflow-wrap: anywhere; margin-bottom: 14px; }
.file-path span { color: var(--faint); font-family: var(--sans); }
.file-tools { display: flex; align-items: center; gap: 19px; flex-wrap: wrap; margin-left: auto; }
.file-toolbar { align-items: center; }
.preview-tabs { display: flex; gap: 20px; }
.preview-tabs a { color: var(--muted); position: relative; min-height: 37px; }
.preview-tabs a[data-active="true"] { color: var(--accent); }
.preview-tabs a[data-active="true"]::after { content: ""; position: absolute; height: 1px; background: var(--accent); bottom: 0; left: 0; right: 0; }
.companion-link { font-size: 11px; color: var(--accent); margin: -7px 0 18px; }
.companion-link a { display: inline-flex; gap: 8px; align-items: center; min-height: 32px; }
.file-colophon { border-top: 1px solid var(--line-soft); padding-top: 17px; margin-top: 25px; display: flex; flex-wrap: wrap; gap: 12px 22px; align-items: center; font-size: 11px; color: var(--faint); }
.file-colophon a { display: inline-flex; align-items: center; gap: 7px; color: var(--accent); min-height: 32px; }
.file-bundle { border-top: 1px solid var(--line-soft); padding-top: 16px; margin-top: 22px; }
.file-bundle a { font-size: 11px; text-align: left; line-height: 1.6; white-space: normal; justify-content: start; }
.file-empty { color: var(--muted); font-size: 11px; padding: 16px 0; }
.pdf-fallback { font-size: 11px; color: var(--muted); margin: 15px 0; }
.pdf-fallback a { color: var(--accent); text-decoration: underline; }
.file-focused { grid-template-columns: minmax(0,1fr); }
.file-focused .file-sidebar { display: none; }
.file-focused .source-code { max-height: 80vh; }
.notebook-output { overflow: auto; padding: 14px; background: var(--surface); }
.section-title { font-family: var(--serif); font-size: 38px; line-height: 1.1; letter-spacing: -.025em; margin-bottom: 18px; }
.section-title em { color: var(--accent); font-weight: 400; }
.section-description { color: var(--muted); font-size: 13px; line-height: 1.8; margin-bottom: 28px; }
.version-entry-heading { display: flex; align-items: center; gap: 13px; flex-wrap: wrap; }
.version-entry-heading h3 { margin-bottom: 0; }
.version-entry-heading + time { display: block; margin-top: 8px; }
.version-current, .version-selected { font-size: 10px; color: var(--accent); letter-spacing: .04em; }
.version-selected { color: var(--faint); }
.version-citation .permalink { display: block; font-family: var(--mono); font-size: 10px; overflow-wrap: anywhere; color: var(--accent); line-height: 1.8; }
.version-citation .work-actions { flex-direction: column; align-items: start; gap: 3px; margin-top: 15px; }
.version-citation h3 { margin-top: 28px; }
.citation-subtitle { display: block; margin-top: 12px; color: var(--muted); font-family: var(--serif); font-size: 20px; font-style: italic; }
.reference-entry::before { content: none !important; }
.reference-number { position: absolute; left: 0; top: 28px; font-family: var(--mono); font-size: 11px; color: var(--accent); }
.reference-cite { border-top: 1px solid var(--line); padding-top: 25px; margin-top: 15px; }
.reference-cite h3 { font-family: var(--serif); font-size: 27px; margin-bottom: 10px; }
.reference-cite p { font-size: 13px; color: var(--muted); margin-bottom: 10px; }
.series-entry { display: grid; grid-template-columns: 35px minmax(0,1fr); gap: 30px; }
.series-body { min-width: 0; max-width: 920px; }
.series-body > p { color: var(--muted); font-size: 13px; }
.series-body > .eyebrow { color: var(--accent); font-size: 10px; }
.series-projects { list-style: none; padding: 0; margin: 25px 0 15px; }
.series-projects li { padding: 16px 0; }
.series-projects li > span { display: block; margin-top: 7px; color: var(--faint); font-size: 11px; }
.about-heading { isolation: isolate; min-height: 340px; }
.about-heading .hero-title, .about-heading .eyebrow, .about-heading .hero-description { position: relative; z-index: 1; }
.about-art { position: absolute; z-index: -1; width: 43%; right: -15px; top: 20px; opacity: .6; }
.citation-project-title { font-family: var(--serif); color: var(--text) !important; font-size: 21px !important; line-height: 1.35; margin-bottom: 18px; }
.citation-version-label { display: flex; align-items: center; gap: 15px; color: var(--muted); font-size: 11px; }
.citation-version-label .filter-select { max-width: none; margin-left: 0; min-height: 38px; }
.citation-permalink { font-family: var(--mono); font-size: 10px !important; color: var(--faint); line-height: 1.8; overflow-wrap: anywhere; }
.citation-dialog .demo-note { margin: 18px 0 0; font-size: 11px; }
.citation-content[aria-labelledby="citation-formatted-tab"] pre { font-family: var(--serif); font-size: 17px; line-height: 1.8; }
textarea.copy-fallback { width: min(100%,540px); min-height: 130px; padding: 14px; background: var(--surface); color: var(--text); border: 1px solid var(--accent); font-family: var(--mono); font-size: 12px; margin-block: 15px; }
.site-footer { display: grid; grid-template-columns: auto 1fr auto; gap: 12px 25px; align-items: center; }
.footer-brand { font-family: var(--serif); font-size: 20px; color: var(--text); }
.footer-brand span { color: var(--faint); padding-inline: 3px; }
.footer-caption { margin: 0 !important; color: var(--faint); }
.site-footer .demo-note { grid-column: 1/-1; margin: 0; }

@media (max-width: 1250px) {
  .discovery-top .search-field { max-width: none; flex-basis: 44%; }
  .filter-label { order: 2; }
  .subject-tabs { order: 3; flex-basis: auto; }
  .discovery .results-meta { order: 3; flex: 1 1 auto; justify-content: end; }
  .collection-label { display: none; }
  .research-row { grid-template-columns: 30px minmax(0,1fr) 210px 26px; }
  .reader-layout { grid-template-columns: 130px minmax(0,1fr); gap: 30px; }
  .article-colophon { position: static; grid-column: 2; display: flex; align-items: center; flex-wrap: wrap; gap: 12px 25px; padding: 20px 0 0; border-left: 0; border-top: 1px solid var(--line); }
  .article-colophon p { margin: 0; }
  .article-colophon .eyebrow { flex-basis: 100%; margin: 0; }
  .article-colophon .colophon-series { margin-top: 0; }
  .featured-work { grid-template-columns: minmax(0,1fr) 180px; gap: 30px; }
  .featured-annotation { padding-left: 23px; }
  .project-heading-main { grid-template-columns: minmax(0,1fr) 220px; gap: 15px; }
}
@media (max-width: 900px) {
  .toc-details summary { max-width: 220px; }
  .toc-details nav { flex-direction: row; gap: 3px 24px; flex-wrap: wrap; }
  .toc { position: static; padding: 0 0 15px; border-bottom: 1px solid var(--line-soft); }
  .toc::before { display: none; }
  .reader-layout { grid-template-columns: minmax(0,1fr); gap: 27px; }
  .article-colophon { grid-column: 1; }
  .featured-work { grid-template-columns: minmax(0,1fr); }
  .featured-annotation { display: none; }
  .project-heading-main { grid-template-columns: minmax(0,1fr); position: relative; isolation: isolate; }
  .project-art { position: absolute; z-index: -1; right: -15px; top: -35px; width: 33%; opacity: .2; }
  .project-navigation { align-items: center; }
  .project-navigation .project-actions { gap: 17px; }
  .project-tabs { gap: 24px; }
  .research-row { grid-template-columns: 25px minmax(0,1fr) 26px; }
  .series-preview { grid-template-columns: 1fr; gap: 10px; }
  .series-links { grid-column: 1; grid-row: auto; margin-top: 8px; }
  .site-footer { grid-template-columns: auto 1fr; }
  .footer-caption { justify-self: end; }
  .footer-links { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .brand-name { gap: 8px; }
  .brand-name .brand-kicker { display: inline; font-size: 8px; letter-spacing: .1em; }
  .brand-slash { font-size: 19px; }
  .brand-name { font-size: 22px; }
  .collection-hero { min-height: 350px; padding: 34px 0; }
  .hero-copy .eyebrow { font-size: 9px; line-height: 1.7; letter-spacing: .12em; margin-bottom: 17px; }
  .hero-note { font-size: 11px; max-width: 270px; }
  .hero-art { width: 66%; opacity: .22; }
  .discovery { gap: 8px 15px; padding: 12px 0; }
  .discovery-top .search-field { flex: 1 1 100%; order: 1; }
  .filter-label { order: 3; min-height: 40px; }
  .filter-label[for="research-type"] { padding-left: 0; border: 0; }
  .filter-label .filter-select { max-width: 145px; padding-left: 5px; padding-right: 8px; min-height: 40px; }
  .subject-tabs { order: 2; flex-basis: 100%; gap: 20px; }
  .discovery .results-meta { order: 4; flex-basis: 100%; justify-content: space-between; min-height: 25px; }
  .featured-work { padding: 26px 0; gap: 0; }
  .featured-work .work-actions { gap: 5px 21px; }
  .featured-work .work-actions .format-links { flex-basis: 100%; margin-top: 4px; }
  .research-row { grid-template-columns: 22px minmax(0,1fr) 22px; gap: 12px; }
  .research-details { gap: 8px; }
  .research-date { flex-basis: 100%; }
  .research-body .work-meta { gap: 5px 8px; font-size: 10px; }
  .research-body .work-meta .demo-label { font-size: 10px; }
  .research-body .work-meta > span + span:not(:empty)::before { margin-right: 8px; }
  .series-preview { padding-top: 29px; }
  .series-links { flex-direction: column; gap: 4px; align-items: start; }
  .project-heading-main .eyebrow { margin-bottom: 13px; }
  .project-art { top: -20px; width: 46%; opacity: .17; }
  .project-navigation { display: flex; flex-direction: column-reverse; align-items: stretch; gap: 6px; margin-top: 13px; }
  .project-navigation .project-actions { margin: 0; gap: 19px; justify-content: flex-start; }
  .project-navigation .project-tabs { gap: 26px; margin: 0; }
  .project-navigation .project-tabs a { min-height: 50px; }
  .version-selector .filter-select { min-height: 42px; }
  .article-colophon { gap: 10px 20px; }
  .article-actions h2 { font-size: 26px; }
  .article-actions .work-actions { gap: 8px 18px; }
  .related-work > a { font-size: 23px; }
  .file-sidebar-heading { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 5px 15px; }
  .file-sidebar-heading h2 { margin-bottom: 0; }
  .collapse-files { display: inline-flex; font-size: 11px; min-height: 42px; }
  .file-sidebar { padding-bottom: 14px; }
  .file-search.search-field { margin-bottom: 10px; }
  .file-search .search-input { min-height: 40px; }
  .file-list { display: grid; max-height: 210px; }
  .file-folder { grid-column: 1/-1; padding-top: 8px; }
  .file-list-item.nested { padding-left: 8px; }
  .file-option { font-size: 10px; }
  .file-bundle { padding-top: 9px; margin-top: 12px; }
  .file-header h2 { font-size: 29px; }
  .file-toolbar { flex-direction: column; align-items: start; gap: 5px; }
  .file-tools { margin-left: 0; gap: 17px; }
  .file-tools a, .file-tools button { font-size: 11px; }
  .file-focused .source-code { max-height: 75vh; }
  .section-title { font-size: 34px; }
  .series-entry { grid-template-columns: 24px minmax(0,1fr); gap: 13px; }
  .series-body h2 { font-size: 30px; }
  .series-body .eyebrow { margin-bottom: 14px; }
  .series-projects li a { font-size: 22px; }
  .about-heading { min-height: 330px; }
  .about-art { width: 63%; top: auto; bottom: -5px; opacity: .2; }
  .citation-project-title { font-size: 20px !important; }
  .citation-content[aria-labelledby="citation-formatted-tab"] pre { font-size: 16px; }
  .site-footer { display: flex; flex-direction: column; align-items: start; gap: 12px; }
  .site-footer .demo-note { margin-top: 2px; }
}
@media (max-width: 370px) {
  .brand-name .brand-kicker { display: none; }
  .brand-slash { display: none; }
  .brand-name { font-size: 22px; }
  .project-navigation .project-tabs { gap: 21px; }
  .project-navigation .project-actions { gap: 15px; }
  .project-navigation .project-actions .filter-select { max-width: 108px; }
  .filter-label .filter-select { max-width: 126px; }
  .research-body .work-meta > span:nth-child(n+3) { display: none; }
  .research-date { font-size: 10px; }
  .file-list { grid-template-columns: minmax(0,1fr); }
}
@media print {
  .project-navigation, .article-colophon, .about-art, .project-art, .file-sidebar { display: none !important; }
  .reader-layout, .project-heading-main { display: block; }
}
