:root {
  --paper: #d8d5cd;
  --paper-2: #c8c5bd;
  --ink: #121310;
  --concrete: #67685f;
  --signal: #c9281c;
  --ochre: #9d733d;
  --moss: #596158;
  --slate: #526668;
  --clay: #905247;
  --line: rgba(18, 19, 16, .72);
  --ink-soft: #454740;
  --paper-deep: #c8c5bd;
  --gutter: clamp(1.5rem, 5vw, 6rem);
  --rule-heavy: 2px solid var(--ink);
  --display: Futura, "Century Gothic", "Avenir Next", "Helvetica Neue", Arial, sans-serif;
  --body: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --condensed: "Arial Narrow", "Avenir Next Condensed", sans-serif;
  --mono: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--paper-2); }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--paper-2);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.5;
  overflow-x: hidden;
}
h1, h2, h3, .wordmark {
  font-kerning: normal;
  font-feature-settings: "kern" 1;
  text-rendering: optimizeLegibility;
}
body::before { display: none; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .2em; }
button, input { font: inherit; }
button { color: inherit; }
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
::selection { color: #fff; background: var(--signal); }
:focus-visible { outline: 3px solid var(--signal); outline-offset: 4px; }
.sr-only, .skip-link:not(:focus) { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link:focus { position: fixed; z-index: 99; top: 1rem; left: 1rem; padding: .7rem 1rem; background: var(--signal); color: white; font: 800 .8125rem var(--mono); text-transform: uppercase; }
.site-frame { position: relative; z-index: 1; width: min(calc(100% - 2rem), 3600px); margin-inline: auto; border-inline: 1px solid rgba(18,19,16,.35); min-height: 100vh; background-color: var(--paper); background-image: linear-gradient(rgba(255,255,255,.08), rgba(255,255,255,.08)), url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.09'/%3E%3C/svg%3E"); }

.site-header { min-height: 116px; display: grid; grid-template-columns: minmax(300px, .9fr) 120px minmax(620px, 1.35fr); align-items: stretch; border-bottom: 1px solid var(--line); }
.wordmark { position: relative; display: flex; flex-direction: column; justify-content: center; padding: 1rem clamp(1.25rem, 3vw, 3rem); font: 900 clamp(1.25rem, 2.1vw, 2rem)/.82 var(--display); letter-spacing: -.015em; text-decoration: none; }
.wordmark-first { letter-spacing: .24em; font-size: .65em; margin-left: .1em; }
.wordmark-last { font-size: 1.28em; }
.header-index { min-width: 110px; padding: 1.1rem; display: flex; flex-direction: column; justify-content: center; border-left: 1px solid var(--line); font: 700 .8125rem/1.3 var(--mono); letter-spacing: .12em; }
.header-index strong { color: var(--signal); }
.site-navigation { display: grid; grid-template-columns: repeat(4, 1fr); border-left: 1px solid var(--line); }
.site-navigation a { display: flex; flex-direction: column; justify-content: space-between; padding: 1.15rem; border-right: 1px solid var(--line); font: 800 .8125rem var(--display); letter-spacing: .06em; text-decoration: none; transition: background .15s, color .15s; }
.site-navigation a:last-child { border-right: 0; }
.site-navigation a:hover, .site-navigation a[aria-current="page"] { background: var(--ink); color: var(--paper); }
.nav-index { font: 600 .8125rem var(--mono); color: var(--signal); }
.menu-toggle { display: none; border: 0; border-left: 1px solid var(--line); background: transparent; font: 800 .8125rem var(--display); }

main { min-height: 60vh; }
.hero { display: grid; grid-template-columns: minmax(0, 2.25fr) minmax(320px, .75fr); min-height: min(800px, calc(100vh - 116px)); border-bottom: 1px solid var(--line); }
.hero-copy { min-width: 0; padding: clamp(4rem, 7vw, 8rem) clamp(1.5rem, 5vw, 7rem) 3.5rem; display: grid; grid-template-columns: minmax(0, 1fr) minmax(240px, .42fr); grid-template-rows: auto 1fr auto; column-gap: clamp(2.5rem, 5vw, 7rem); align-items: end; }
.hero-copy .eyebrow,
.hero-copy h1 { grid-column: 1 / -1; }
.eyebrow, .section-number { margin: 0 0 2rem; font: 700 .8125rem/1.35 var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.eyebrow::before, .section-number::before { content: "■"; color: var(--signal); margin-right: .75rem; }
.hero h1, .page-header h1, .error-page h1 { margin: 0; font: 900 clamp(4.7rem, 12vw, 12.6rem)/.84 var(--display); letter-spacing: normal; text-transform: uppercase; }
.hero h1 { font-size: clamp(4.7rem, 9.5vw, 12.6rem); line-height: .76; letter-spacing: -.018em; }
.hero h1 span { display: block; }
.hero h1 span:first-child { font-size: .48em; letter-spacing: .24em; padding-left: .04em; margin-bottom: .12em; }
.hero-statement { grid-column: 1; width: min(760px, 100%); margin: 4rem 0 0; padding-top: 2rem; border-top: 1px solid var(--line); font: 500 clamp(1.35rem, 1.65vw, 2.25rem)/1.22 var(--display); letter-spacing: -.015em; }
.hero-actions { grid-column: 2; display: flex; flex-direction: column; align-items: stretch; gap: .7rem; margin-top: 4rem; }
.button { display: inline-flex; align-items: center; justify-content: space-between; gap: 3rem; min-width: 210px; padding: 1rem; border: 1px solid var(--ink); font: 800 .8125rem var(--display); letter-spacing: .08em; text-decoration: none; }
.button:hover, .button-primary { background: var(--ink); color: var(--paper); }
.button-primary:hover { background: var(--signal); border-color: var(--signal); color: #fff; }
.hero-monument { position: relative; min-height: 480px; overflow: hidden; background: var(--concrete); border-left: 1px solid var(--line); }
.hero-monument::after { content: ""; position: absolute; inset: 0; opacity: .4; mix-blend-mode: multiply; background-image: repeating-linear-gradient(90deg, transparent 0 71px, rgba(0,0,0,.2) 72px 73px), repeating-linear-gradient(0deg, transparent 0 43px, rgba(255,255,255,.1) 44px 45px); }
.monument-slab { position: absolute; background: #a3a198; box-shadow: -30px 40px 50px rgba(0,0,0,.25); }
.monument-slab-a { width: 74%; height: 70%; right: -10%; top: 6%; transform: skewY(-8deg); }
.monument-slab-b { width: 73%; height: 72%; left: -31%; bottom: -18%; transform: skewY(17deg); background: #454740; }
.monument-void { position: absolute; z-index: 1; width: 26%; height: 48%; left: 34%; top: 24%; background: #11120f; transform: skewY(-8deg); }
.hero-monument p { position: absolute; z-index: 2; right: 1.5rem; bottom: 1rem; margin: 0; color: var(--paper); font: 900 3rem/.82 var(--display); letter-spacing: -.02em; }

.contact-directory { display: grid; grid-template-columns: minmax(340px, 1fr) minmax(0, 2fr); border-bottom: 1px solid var(--line); }
.contact-directory-heading { display: flex; flex-direction: column; justify-content: space-between; min-width: 0; padding: clamp(2.25rem, 3vw, 3.25rem) clamp(1.25rem, 3vw, 3.25rem); border-right: 1px solid var(--line); background: var(--paper-deep); }
.contact-directory-heading .section-number { margin-bottom: 1.75rem; }
.contact-directory-heading h2 { max-width: 10ch; margin: auto 0 1.25rem; font: 800 clamp(2.25rem, 3.1vw, 3.6rem)/.92 var(--display); letter-spacing: -.015em; }
.contact-directory-heading > p:last-child { max-width: 38ch; margin: 0; color: var(--ink-soft); font-size: 1rem; line-height: 1.55; }
.contact-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-left: 1px solid var(--line); }
.contact-links a { position: relative; min-width: 0; min-height: 210px; display: grid; grid-template-rows: auto 1fr auto; padding: 1.25rem; border-right: 1px solid var(--line); color: inherit; text-decoration: none; transition: background .15s, color .15s; }
.contact-links a:last-child { border-right: 0; }
.contact-index, .contact-kind { font: 700 .8125rem var(--mono); letter-spacing: .08em; }
.contact-index { color: var(--signal); }
.contact-name { align-self: center; min-width: 0; font: 800 clamp(1.2rem, 1.7vw, 2rem)/1 var(--display); overflow-wrap: anywhere; }
.contact-kind { align-self: end; color: var(--ink-soft); }
.contact-links b { position: absolute; right: 1.15rem; bottom: .9rem; font: 500 1.4rem var(--display); }
.contact-links a:hover { background: var(--ink); color: var(--paper); }
.contact-links a:nth-child(2):hover { background: var(--slate); }
.contact-links a:nth-child(3):hover { background: var(--ochre); }
.contact-links a:hover .contact-index,
.contact-links a:hover .contact-kind { color: inherit; }
.contact-links a:focus-visible { z-index: 1; outline: 3px solid var(--signal); outline-offset: -3px; }
.contact-directory-about { border-top: 1px solid var(--line); }

.ruled-section { border-bottom: 1px solid var(--line); padding: clamp(4rem, 8vw, 8rem) clamp(1.25rem, 5vw, 5rem); }
.manifesto { display: grid; grid-template-columns: 1fr 2.2fr; gap: 2rem; background: var(--ink); color: var(--paper); }
.manifesto h2 { margin: 0; font: 800 clamp(2.5rem, 5.2vw, 5.7rem)/.96 var(--display); letter-spacing: -.018em; text-transform: uppercase; }
.manifesto > p:last-child { grid-column: 2; max-width: 760px; margin: 2rem 0 0 auto; font-size: 1.2rem; }
.section-heading { display: flex; justify-content: space-between; gap: 1rem; align-items: flex-start; margin-bottom: 3rem; }
.section-heading a, .archive-tools a { font: 700 .8125rem var(--mono); text-transform: uppercase; }
.project-grid { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.project-card { position: relative; min-height: 240px; padding: 1.5rem; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.project-card h2, .project-card h3 { max-width: 80%; margin: 3.2rem 0 .8rem; font: 800 clamp(1.5rem, 2.3vw, 2.6rem)/1 var(--display); letter-spacing: -.01em; text-transform: uppercase; }
.project-card h2 a, .project-card h3 a { text-decoration: none; }
.project-card h2 a::after, .project-card h3 a::after { position: absolute; inset: 0; content: ""; }
.project-card > p:not(.project-status):not(.project-index) { max-width: 75%; margin: 0; font-size: .95rem; }
.project-card:hover { background: var(--signal); color: #fff; }
.project-status, .project-index { position: absolute; top: 1.5rem; margin: 0; font: 700 .8125rem var(--mono); letter-spacing: .09em; }
.project-status { right: 1.5rem; }
.project-index { left: 1.5rem; color: var(--signal); }
.project-card:hover .project-index { color: #fff; }
.project-arrow { position: absolute; right: 1.5rem; bottom: 1rem; font-size: 2rem; }
.project-tags { position: relative; z-index: 2; display: flex; flex-wrap: wrap; gap: .4rem; margin-top: 1.4rem; }
.tag { display: inline-flex; align-items: center; min-height: 32px; border: 1px solid currentColor; padding: .38rem .58rem; font: 700 .8125rem var(--mono); letter-spacing: .04em; text-decoration: none; }
.tag:hover { background: var(--ink); color: var(--paper); }
.note-ledger { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.note-ledger li { border-bottom: 1px solid var(--line); }
.note-ledger a { display: grid; grid-template-columns: 140px minmax(0, 1fr) auto; gap: 1.5rem; align-items: center; min-height: 88px; padding: 1rem; text-decoration: none; }
.note-ledger a:hover { background: var(--ink); color: var(--paper); }
.note-ledger time, .note-ledger b { font: 700 .8125rem var(--mono); letter-spacing: .06em; }
.note-ledger span { min-width: 0; overflow-wrap: anywhere; font: 700 clamp(1rem, 1.55vw, 1.45rem)/1.14 var(--display); letter-spacing: normal; text-transform: uppercase; }
.note-ledger small { display: block; margin-top: .5rem; max-width: 860px; color: var(--ink-soft); font: 400 .92rem/1.45 var(--body); text-transform: none; }
.note-ledger a:hover small { color: var(--paper-2); }

.page-header { padding: clamp(4rem, 8vw, 8rem) clamp(1.25rem, 5vw, 5rem); border-bottom: 1px solid var(--line); }
.page-header h1 { font-size: clamp(4.2rem, 10vw, 10rem); }
.page-intro, .project-deck { max-width: 820px; margin: 3rem 0 0 auto; font: 500 clamp(1.2rem, 1.45vw, 1.65rem)/1.35 var(--display); letter-spacing: normal; }
.archive-tools, .filter-bar { min-height: 76px; display: flex; align-items: center; gap: 1rem; padding: 1rem clamp(1.25rem, 5vw, 5rem); border-bottom: 1px solid var(--line); }
.archive-tools a + a { margin-left: auto; }
.filter-bar { font: 700 .8125rem var(--mono); }
.filter-bar button { min-height: 44px; padding: .55rem .8rem; border: 1px solid var(--ink); background: transparent; font: inherit; cursor: pointer; }
.filter-bar button[data-active="true"], .filter-bar button:hover { background: var(--ink); color: var(--paper); }
.filter-bar b { margin-left: auto; }
.search-bar { display: grid; grid-template-columns: auto minmax(170px, 1fr) auto auto; gap: 1rem; align-items: center; padding: 1.25rem clamp(1.25rem, 5vw, 5rem); background: var(--ink); color: var(--paper); font: 700 .8125rem var(--mono); text-transform: uppercase; }
.search-bar input { min-width: 0; padding: .8rem 0; border: 0; border-bottom: 1px solid var(--paper); border-radius: 0; background: transparent; color: var(--paper); font: 700 1rem var(--display); }
.search-bar button { min-height: 44px; border: 1px solid var(--paper); padding: .7rem .9rem; background: transparent; color: inherit; font: inherit; cursor: pointer; }
.note-ledger-large a { min-height: 136px; padding-inline: clamp(1.25rem, 5vw, 5rem); }
.project-grid-page { grid-template-columns: repeat(3, 1fr); margin: clamp(1.25rem, 5vw, 5rem); }
.project-grid-page .project-card { min-height: 330px; }

.about-header { position: relative; padding-bottom: 4rem; }
.about-role { position: absolute; right: clamp(1.25rem, 5vw, 5rem); bottom: 4rem; max-width: 360px; font: 700 .8125rem/1.45 var(--mono); text-transform: uppercase; }
.about-role p { margin: .25rem 0; }
.about-grid { display: grid; grid-template-columns: .9fr 1.2fr; }
.portrait-block { border-right: 1px solid var(--line); padding: clamp(1.25rem, 4vw, 4rem); background: var(--ink); }
.portrait-block img { width: 100%; aspect-ratio: 1; object-fit: cover; filter: grayscale(1) contrast(1.15); }
.portrait-caption { display: flex; justify-content: space-between; margin-top: 1rem; color: var(--paper); font: 600 .8125rem var(--mono); }
.about-copy { padding: clamp(2.5rem, 6vw, 7rem); align-self: center; }
.about-copy > p:first-child { font: 700 clamp(1.6rem, 3vw, 3rem)/1.1 var(--display); letter-spacing: -.012em; }
.practice-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.practice-grid span { min-height: 100px; padding: 1rem; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); font: 800 .82rem var(--display); text-transform: uppercase; }
.timeline ol { list-style: none; margin: 0; padding: 0; }
.timeline li { display: grid; grid-template-columns: minmax(130px, .5fr) 2fr; padding: 1.5rem 0; border-top: 1px solid var(--line); }
.timeline time { font: 700 .8125rem var(--mono); color: var(--signal); text-transform: uppercase; }
.timeline h2 { margin: 0; font: 800 clamp(1.15rem, 2vw, 1.8rem)/1 var(--display); text-transform: uppercase; }
.timeline p { max-width: 700px; margin: .5rem 0 0; }

.article-header { padding: clamp(4rem, 8vw, 8rem) clamp(1.25rem, 8vw, 8rem) clamp(3rem, 6vw, 6rem); border-bottom: 1px solid var(--line); }
.back-link { display: inline-block; margin-bottom: 3rem; font: 700 .8125rem var(--mono); text-transform: uppercase; }
.article-header h1, .project-header h1 { max-width: 1800px; margin: 0; font: 800 clamp(3.4rem, 5.6vw, 8.5rem)/.94 var(--display); letter-spacing: -.015em; text-transform: uppercase; }
.article-tags { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: 2.5rem; }
.article-grid { display: grid; grid-template-columns: 180px minmax(0, 1080px); justify-content: center; gap: clamp(3rem, 5vw, 7rem); padding: clamp(3.5rem, 7vw, 8rem) clamp(1.5rem, 6vw, 8rem); }
.article-rail { display: flex; flex-direction: column; align-self: stretch; font: 700 .8125rem/1.5 var(--mono); letter-spacing: .06em; }
.article-rail span { display: block; width: 1px; flex: 1; min-height: 130px; margin: 1rem 0; background: var(--line); }
.article-rail a { font-weight: 700; }
.prose-content { font-size: 1.12rem; line-height: 1.74; overflow-wrap: break-word; }
.prose-content > *:first-child { margin-top: 0; }
.prose-content h2 { margin: 3.2rem 0 1rem; font: 800 clamp(1.8rem, 3vw, 3rem)/1.05 var(--display); letter-spacing: -.012em; text-transform: uppercase; }
.prose-content h3 { margin: 2.4rem 0 .8rem; font: 800 1.35rem/1.05 var(--display); text-transform: uppercase; }
.prose-content a { text-decoration-color: var(--signal); }
.prose-content blockquote { margin: 2.5rem 0; padding: 1.5rem 0 1.5rem 2rem; border-left: 8px solid var(--signal); font: 600 1.35rem/1.3 var(--display); }
.prose-content code { padding: .1em .3em; background: rgba(18,19,16,.1); font: .92em var(--mono); }
.prose-content pre { max-width: 100%; overflow: auto; padding: 1.4rem; background: var(--ink) !important; color: #e7e3da; font: .9rem/1.65 var(--mono); }
.prose-content pre code { padding: 0; background: transparent; font: inherit; }
.prose-content table { width: 100%; border-collapse: collapse; }
.prose-content th, .prose-content td { padding: .7rem; border: 1px solid var(--line); text-align: left; }
.prose-content img { margin-block: 2rem; }
.credited-image { margin: 2.5rem 0; }
.credited-image img { width: 100%; height: auto; margin: 0; border: var(--rule-heavy); background: var(--paper-deep); }
.credited-image figcaption { display: flex; justify-content: space-between; gap: 1rem; padding: .7rem .75rem; border: solid var(--ink); border-width: 0 2px 2px; font: 600 .8125rem/1.45 var(--mono); }
.credited-image figcaption small { color: var(--concrete); font-size: inherit; }
.article-toc { margin-bottom: 3rem; border-block: 1px solid var(--line); }
.article-toc summary { display: flex; justify-content: space-between; padding: 1rem 0; cursor: pointer; font: 800 .8125rem var(--mono); text-transform: uppercase; }
.article-toc nav { padding-bottom: 1rem; }
.article-toc ul { margin: .4rem 0; }
.article-footer { padding: 2rem clamp(1.25rem, 5vw, 5rem); border-top: 1px solid var(--line); font: 700 .8125rem var(--mono); text-transform: uppercase; }

.standard-page .prose-content { max-width: 1040px; margin: 0 auto; padding: clamp(3rem, 7vw, 7rem) 1.5rem; }
.control-panel { display: flex; justify-content: space-between; gap: 2rem; align-items: center; max-width: 1040px; margin: 0 auto 6rem; padding: 1.5rem; border: 1px solid var(--line); }
.control-panel h2 { margin: 0; font: 800 1.4rem var(--display); text-transform: uppercase; }
.control-panel p { margin: .3rem 0 0; }
.control-panel button { padding: 1rem; border: 1px solid var(--ink); background: var(--ink); color: var(--paper); font: 700 .8125rem var(--mono); }
.control-panel button:disabled { border-style: dashed; background: transparent; color: var(--ink-soft); cursor: not-allowed; }
.taxonomy-grid { display: grid; grid-template-columns: repeat(3, 1fr); margin: clamp(1.25rem, 5vw, 5rem); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.taxonomy-grid a { min-height: 130px; display: flex; flex-direction: column; justify-content: space-between; padding: 1rem; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); text-decoration: none; font: 800 .8125rem var(--display); }
.taxonomy-grid a:hover { background: var(--signal); color: #fff; }
.taxonomy-grid b { font: 600 .8125rem var(--mono); }
.site-footer { display: grid; grid-template-columns: 1.3fr 1fr auto; gap: 2rem; align-items: center; min-height: 130px; padding: 2rem clamp(1.25rem, 3vw, 3rem); border-top: 1px solid var(--line); font: 700 .8125rem var(--mono); letter-spacing: .06em; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 1rem; }
.footer-coordinate { text-align: right; }

@media (max-width: 1100px) {
  .site-header { min-height: 90px; grid-template-columns: 1fr auto; }
  .header-index { display: none; }
  .menu-toggle { display: block; min-width: 90px; min-height: 90px; padding: 1rem; cursor: pointer; }
  .site-navigation { position: absolute; z-index: 20; top: 90px; left: 0; right: 0; display: none; grid-template-columns: 1fr; background: var(--paper); border: 1px solid var(--line); }
  .site-navigation[data-open="true"] { display: grid; }
  .site-navigation a { min-height: 70px; border: 0; border-bottom: 1px solid var(--line); }
  .hero { grid-template-columns: 1fr; }
  .hero-copy { min-height: 650px; }
  .hero-monument { min-height: 420px; border-left: 0; border-top: 1px solid var(--line); }
  .contact-directory { grid-template-columns: 1fr; }
  .contact-directory-heading { border-right: 0; border-bottom: 1px solid var(--line); }
  .contact-directory-heading h2 { max-width: none; }
  .contact-links { grid-template-columns: repeat(3, minmax(0, 1fr)); border-left: 0; }
  .about-grid { grid-template-columns: 1fr; }
  .portrait-block { border-right: 0; border-bottom: 1px solid var(--line); }
  .project-grid-page, .taxonomy-grid { grid-template-columns: repeat(2, 1fr); }
  .article-grid { grid-template-columns: 100px minmax(0, 1fr); gap: 2rem; }
  .about-role { position: static; margin-top: 2rem; }
  .site-footer { grid-template-columns: 1fr 1fr; }
  .footer-coordinate { display: none; }
}

@media (max-width: 620px) {
  .site-frame { border: 0; }
  .hero-copy { min-height: 570px; padding-top: 4rem; }
  .hero h1, .page-header h1 { font-size: clamp(3.2rem, 17vw, 4.4rem); }
  .hero-statement { width: 100%; }
  .hero-monument { min-height: 340px; }
  .contact-directory-heading { padding-block: 3rem; }
  .contact-directory-heading h2 { margin-bottom: 1rem; font-size: clamp(2.5rem, 12vw, 3.4rem); }
  .contact-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-links a { min-height: 150px; padding: 1rem; }
  .contact-links a:nth-child(-n + 2) { border-bottom: 1px solid var(--line); }
  .contact-links a:nth-child(2) { border-right: 0; }
  .contact-links a:nth-child(3) { grid-column: 1 / -1; border-right: 0; }
  .contact-name { font-size: 1.08rem; }
  .contact-links b { right: .85rem; bottom: .7rem; }
  .manifesto { grid-template-columns: 1fr; }
  .manifesto > * { min-width: 0; }
  .manifesto h2 { font-size: clamp(2.05rem, 9.5vw, 2.8rem); }
  .manifesto > p:last-child { grid-column: 1; }
  .project-grid, .project-grid-page, .taxonomy-grid { grid-template-columns: 1fr; margin-inline: 0; }
  .project-card { min-height: 250px; }
  .note-ledger a { grid-template-columns: minmax(0, 1fr) auto; gap: .75rem; }
  .note-ledger time { grid-column: 1 / -1; }
  .note-ledger span { min-width: 0; overflow-wrap: anywhere; }
  .note-ledger-large a { padding-block: 1.5rem; }
  .section-heading { align-items: flex-start; flex-direction: column; }
  .search-bar { grid-template-columns: 1fr auto; }
  .search-bar label, .search-bar p { grid-column: 1 / -1; }
  .filter-bar { align-items: flex-start; flex-wrap: wrap; }
  .filter-bar b { width: 100%; margin-left: 0; }
  .article-grid { grid-template-columns: 1fr; }
  .article-rail { display: none; }
  .practice-grid { grid-template-columns: repeat(2, 1fr); }
  .timeline li { grid-template-columns: 1fr; gap: .7rem; }
  .control-panel { align-items: stretch; flex-direction: column; margin-inline: 1.25rem; }
  .site-footer { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

@media print {
  .site-header, .site-footer, .article-rail, .article-footer, .hero-actions { display: none; }
  body { background: #fff; }
  .site-frame { border: 0; }
  .article-grid { display: block; padding: 1cm 0; }
}

/* Route failure: a useful destination, not a framework shrug. */
.error-page {
  min-height: calc(100svh - 116px);
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(460px, .82fr);
  border-bottom: var(--rule-heavy);
  background: var(--ink);
  color: var(--paper);
  overflow: hidden;
}

.error-monument {
  position: relative;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(2rem, 4vw, 5rem);
  overflow: hidden;
  isolation: isolate;
  background:
    linear-gradient(118deg, transparent 0 62%, rgba(216, 213, 205, .07) 62% 76%, transparent 76%),
    repeating-linear-gradient(90deg, transparent 0 calc(12.5% - 1px), rgba(216, 213, 205, .1) calc(12.5% - 1px) 12.5%);
}
.error-monument::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 0;
  right: 8%;
  width: 22%;
  height: 58%;
  border-inline: 1px solid rgba(216, 213, 205, .22);
  background: rgba(91, 111, 114, .42);
  transform: skewX(-11deg);
  transform-origin: top;
}
.error-code {
  margin: 2.5rem 0 0;
  color: var(--paper);
  font-family: var(--display);
  font-size: clamp(13rem, 27vw, 48rem);
  font-weight: 900;
  line-height: .74;
  letter-spacing: -.095em;
  white-space: nowrap;
}
.error-code span:nth-child(2) { color: var(--slate); }
.error-index { position: absolute; top: clamp(2rem, 4vw, 5rem); left: clamp(2rem, 4vw, 5rem); margin: 0; color: var(--paper-2); font: 700 .8125rem/1.45 var(--mono); letter-spacing: .12em; }
.error-copy {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-width: 0;
  padding: clamp(3rem, 5vw, 7rem) clamp(2rem, 4vw, 5rem);
  background: var(--signal);
  color: #fff;
}
.error-copy::before { content: "EA / 404"; position: absolute; top: clamp(2rem, 4vw, 4rem); right: clamp(2rem, 4vw, 4rem); font: 800 .8125rem var(--mono); letter-spacing: .12em; }
.error-copy .eyebrow { margin-bottom: clamp(2rem, 4vw, 4rem); }
.error-copy .eyebrow::before { color: var(--ink); }
.error-copy h1 { margin: 0 0 2rem; color: inherit; font-size: clamp(3.15rem, 3.4vw, 6.5rem); line-height: .86; letter-spacing: -.018em; }
.error-copy > p:not(.eyebrow) { max-width: 39ch; margin: 0; font: 500 clamp(1.05rem, 1.2vw, 1.3rem)/1.55 var(--body); }
.error-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: clamp(2.5rem, 4vw, 4rem); border-top: 1px solid rgba(255,255,255,.58); border-left: 1px solid rgba(255,255,255,.58); }
.error-actions a { min-height: 82px; display: grid; grid-template-columns: 2rem 1fr auto; gap: 1rem; align-items: center; padding: 1rem; border-right: 1px solid rgba(255,255,255,.58); border-bottom: 1px solid rgba(255,255,255,.58); color: inherit; text-decoration: none; }
.error-actions a:hover { background: var(--ink); }
.error-actions span { align-self: start; color: rgba(255,255,255,.75); font: 700 .8125rem var(--mono); }
.error-actions strong { font: 800 1rem var(--display); letter-spacing: .04em; }
.error-actions b { font: 500 1.5rem var(--display); }

.content-image { margin: 2.5rem 0; }
.content-image img { display: block; width: 100%; height: auto; margin: 0; border: var(--rule-heavy); background: var(--paper-deep); }
.content-image figcaption { padding: .6rem .75rem; border: solid var(--ink); border-width: 0 2px 2px; color: var(--ink-soft); font-family: var(--mono); font-size: .8125rem; text-transform: uppercase; letter-spacing: .05em; }
.image-zoom-trigger { position: relative; display: block; color: inherit; text-decoration: none; cursor: zoom-in; }
.image-zoom-trigger img { transition: filter .16s ease; }
.image-zoom-trigger:hover img,
.image-zoom-trigger:focus-visible img { filter: contrast(.9) brightness(.9); }
.image-zoom-label { position: absolute; right: 2px; bottom: 2px; min-height: 44px; display: inline-flex; align-items: center; padding: .7rem .85rem; background: var(--ink); color: var(--paper); font: 700 .8125rem var(--mono); letter-spacing: .07em; }
body[data-image-viewer-open="true"] { overflow: hidden; }
.image-viewer { width: min(96vw, 2400px); max-width: none; height: fit-content; max-height: 92vh; margin: auto; padding: 0; border: var(--rule-heavy); background: #22231f; color: var(--paper); }
.image-viewer::backdrop { background: rgba(18, 19, 16, .88); backdrop-filter: blur(3px); }
.image-viewer-toolbar { position: sticky; z-index: 2; top: 0; display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 64px; padding: .65rem .75rem .65rem 1rem; border-bottom: 1px solid rgba(255,255,255,.28); background: var(--ink); }
.image-viewer-toolbar p { margin: 0; font: 700 .8125rem var(--mono); letter-spacing: .1em; }
.image-viewer-toolbar > div { display: flex; gap: .5rem; }
.image-viewer-toolbar button { min-height: 44px; padding: .65rem .8rem; border: 1px solid rgba(255,255,255,.5); background: transparent; color: inherit; font: 700 .8125rem var(--mono); cursor: pointer; }
.image-viewer-toolbar button:hover,
.image-viewer-toolbar button[aria-pressed="true"] { background: var(--paper); color: var(--ink); }
.image-viewer-stage { width: 100%; height: auto; max-height: calc(92vh - 64px); overflow: auto; overscroll-behavior: contain; padding: 1rem; background: #22231f; }
.image-viewer-stage img { width: 100%; max-width: 100%; height: auto; margin: 0; border: 0; background: transparent; }
.image-viewer[data-native-size="true"] .image-viewer-stage img { width: auto; max-width: none; }

@media (max-width: 900px) {
  .error-page { grid-template-columns: 1fr; min-height: calc(100svh - 90px); }
  .error-monument { min-height: 44svh; padding: 1.5rem 1.25rem 2rem; }
  .error-monument::before { right: 12%; width: 25%; height: 72%; }
  .error-code { font-size: clamp(9rem, 43vw, 14rem); }
  .error-index { top: 1.5rem; left: 1.25rem; }
  .error-copy { padding: 4.75rem 1.25rem 3rem; }
  .error-copy::before { top: 1.5rem; right: 1.25rem; }
  .error-copy h1 { font-size: clamp(2.85rem, 13vw, 3.7rem); }
}

/* Second-pass editorial and interaction system */
.page-header,
.article-header {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 430px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.page-header::after,
.article-header::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: clamp(180px, 24vw, 380px);
  aspect-ratio: 1;
  right: clamp(-130px, -8vw, -60px);
  bottom: clamp(-170px, -10vw, -90px);
  border: 1px solid rgba(18, 19, 16, .17);
  border-radius: 50%;
  box-shadow: 0 0 0 42px rgba(82, 102, 104, .055), 0 0 0 84px rgba(157, 115, 61, .04);
}

.page-header h1,
.article-header h1,
.project-header h1 {
  max-width: 1800px;
  overflow-wrap: break-word;
  text-wrap: pretty;
}

.project-header h1 { font-size: clamp(3rem, 4.4vw, 7.4rem); text-wrap: balance; }
.page-intro > :first-child { margin-top: 0; }
.page-intro > :last-child { margin-bottom: 0; }
.project-grid-page { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.project-grid-page .project-card { min-height: 360px; }
.project-grid-page .project-card h2 { max-width: 86%; overflow-wrap: anywhere; }
.project-card:nth-child(4n + 1):hover { background: var(--clay); }
.project-card:nth-child(4n + 2):hover { background: var(--slate); }
.project-card:nth-child(4n + 3):hover { background: var(--ochre); }
.project-card:nth-child(4n + 4):hover { background: var(--moss); }

.series-label {
  align-self: flex-start;
  display: inline-flex;
  gap: .7rem;
  align-items: center;
  margin-top: 2rem;
  padding: .65rem .8rem;
  background: var(--ochre);
  color: #fff;
  min-height: 44px;
  font: 700 .8125rem var(--mono);
  letter-spacing: .08em;
  text-decoration: none;
}
.series-label span { color: rgba(255,255,255,.65); }
.project-links { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 2.5rem; }
.project-links .button { min-width: 180px; }

.article-grid { grid-template-columns: 180px minmax(0, 1080px); gap: clamp(3rem, 5vw, 7rem); }
.article-content { min-width: 0; }
.article-body { font-size: clamp(1.1rem, 1.05vw, 1.24rem); line-height: 1.74; }
.article-body > p { max-width: 78ch; }
.article-body li + li { margin-top: .38rem; }
.article-body h2 { max-width: 22ch; }
.article-body h3 { max-width: 32ch; }
.heading-with-permalink { scroll-margin-top: 2rem; }
.heading-permalink {
  display: inline-grid;
  place-items: center;
  min-width: 24px;
  min-height: 24px;
  width: 1.7em;
  height: 1.7em;
  margin-left: .25em;
  color: var(--signal);
  font: 700 clamp(.8125rem, .42em, 1.25rem) var(--mono);
  text-decoration: none;
  vertical-align: middle;
  opacity: .25;
}
.heading-with-permalink:hover .heading-permalink,
.heading-permalink:focus-visible,
.heading-permalink.copied { opacity: 1; }
.heading-permalink.copied { background: var(--moss); color: #fff; }

.highlight {
  position: relative;
  margin: 2rem 0;
  padding-top: 3rem;
  background: #171716;
  color: #e4e0d7;
  border-left: 5px solid var(--slate);
}
.highlight::before {
  content: attr(data-language) " / SOURCE";
  position: absolute;
  top: .8rem;
  left: 1rem;
  color: #aaa89f;
  font: 700 .8125rem var(--mono);
  letter-spacing: .1em;
}
.prose-content .highlight pre { margin: 0; padding: 1rem 1rem 1.35rem; border-top: 1px solid rgba(255,255,255,.14); }
.code-copy {
  position: absolute;
  z-index: 2;
  top: .48rem;
  right: .55rem;
  min-width: 4.5rem;
  min-height: 36px;
  padding: .42rem .6rem;
  border: 1px solid rgba(255,255,255,.34);
  background: transparent;
  color: #e4e0d7;
  font: 700 .8125rem var(--mono);
  letter-spacing: .08em;
  cursor: pointer;
}
.code-copy:hover,
.code-copy.copied { background: var(--slate); border-color: var(--slate); color: #fff; }
.chroma .line { display: block; width: max-content; min-width: 100%; }
.chroma .ln,
.chroma .lnt { display: inline-block; min-width: 2.4rem; margin-right: 1rem; padding-right: .75rem; border-right: 1px solid rgba(255,255,255,.13); color: #777b76; user-select: none; }
.chroma .k, .chroma .kc, .chroma .kd, .chroma .kn, .chroma .kp, .chroma .kr, .chroma .kt { color: #d39182; }
.chroma .s, .chroma .s1, .chroma .s2, .chroma .sa, .chroma .sb, .chroma .sc, .chroma .sd, .chroma .se, .chroma .sh, .chroma .si, .chroma .sr, .chroma .ss, .chroma .sx { color: #c7b07d; }
.chroma .n, .chroma .na, .chroma .nb, .chroma .nc, .chroma .nd, .chroma .ne, .chroma .nf, .chroma .ni, .chroma .nl, .chroma .nn, .chroma .no, .chroma .nt, .chroma .nv { color: #9ab2ae; }
.chroma .c, .chroma .c1, .chroma .ch, .chroma .cm, .chroma .cp, .chroma .cpf, .chroma .cs { color: #858b81; font-style: italic; }
.chroma .m, .chroma .mb, .chroma .mf, .chroma .mh, .chroma .mi, .chroma .il, .chroma .mo { color: #c09568; }
.chroma .o, .chroma .ow { color: #d39182; }

.data-table { margin: 2.75rem 0; border: 1px solid var(--line); background: rgba(255,255,255,.16); }
.data-table figcaption { display: flex; justify-content: space-between; gap: 1rem; padding: .75rem .9rem; background: var(--ink); color: var(--paper); font: 700 .8125rem var(--mono); letter-spacing: .07em; }
.data-table figcaption b { color: #bdc7c4; margin-right: .5rem; }
.data-table-scroll { max-width: 100%; overflow-x: auto; overscroll-behavior-inline: contain; scrollbar-color: var(--signal) rgba(18,19,16,.15); }
.data-table-scroll:focus-visible { outline-offset: -4px; }
.data-table table { width: 100%; min-width: 760px; border-collapse: separate; border-spacing: 0; font-size: .9rem; line-height: 1.45; }
.data-table th { position: sticky; top: 0; z-index: 1; padding: .85rem .75rem; background: var(--slate); color: #fff; border-right: 1px solid rgba(255,255,255,.22); font: 700 .8125rem var(--mono); letter-spacing: .04em; text-transform: uppercase; }
.data-table td { padding: .72rem .75rem; border: 0; border-right: 1px solid rgba(18,19,16,.22); border-bottom: 1px solid rgba(18,19,16,.22); vertical-align: top; }
.data-table th:not(:last-child),
.data-table td:not(:last-child) { min-width: 7.5rem; }
.data-table th:last-child,
.data-table td:last-child { min-width: 17rem; }
.data-table tbody tr:nth-child(even) td { background: rgba(157,115,61,.085); }
.data-table tbody tr:hover td { background: rgba(82,102,104,.14); }
.data-table th:last-child,
.data-table td:last-child { border-right: 0; }

.article-after { border-top: 1px solid var(--line); }
.article-after > * { padding: clamp(3rem, 6vw, 6rem) clamp(1.25rem, 6vw, 6rem); border-bottom: 1px solid var(--line); }
.article-after > .article-support { padding-block: clamp(2rem, 3vw, 3.25rem); }
.article-support { display: grid; grid-template-columns: 90px minmax(0, 760px); justify-content: center; gap: clamp(1.5rem, 3vw, 3rem); align-items: center; background: rgba(157,115,61,.09); color: var(--ink); border-left: 8px solid var(--ochre); }
.article-support .section-number { margin-bottom: .65rem; }
.article-support .section-number::before { color: var(--ochre); }
.support-symbol { font: 500 clamp(2.5rem, 4vw, 4rem)/1 var(--display); color: var(--ochre); }
.article-support p:last-child { max-width: 760px; margin: 0; font: 500 clamp(1.05rem, 1.1vw, 1.25rem)/1.45 var(--body); }
.article-support a { text-decoration-thickness: 2px; }
.series-navigation { background: var(--slate); color: #fff; }
.series-heading { display: flex; align-items: start; justify-content: space-between; gap: 2rem; }
.series-heading .section-number::before { color: #d5aa6f; }
.series-heading h2 { margin: 0; font: 800 clamp(2rem, 4vw, 4.5rem)/.95 var(--display); text-transform: uppercase; }
.series-symbol { font-size: clamp(3rem, 8vw, 7rem); color: #d5aa6f; }
.adjacent-links { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); margin-top: 2.5rem; border-top: 1px solid currentColor; border-left: 1px solid currentColor; }
.adjacent-links-single { grid-template-columns: minmax(0, 1fr); }
.adjacent-links > a,
.adjacent-links > span { min-height: 135px; padding: 1rem; border-right: 1px solid currentColor; border-bottom: 1px solid currentColor; text-decoration: none; }
.adjacent-links > a { display: flex; flex-direction: column; justify-content: space-between; }
.adjacent-links small { font: 700 .8125rem var(--mono); letter-spacing: .06em; opacity: .76; }
.adjacent-links strong { max-width: 32ch; font: 800 1rem/1.15 var(--display); text-transform: uppercase; }
.series-navigation .adjacent-links > a:hover { background: rgba(255,255,255,.11); }
.discovery-heading { display: grid; grid-template-columns: .65fr 1.5fr; gap: 2rem; }
.discovery-heading h2 { max-width: 700px; margin: 0; font: 800 clamp(2rem, 4vw, 4.5rem)/.99 var(--display); letter-spacing: -.015em; }
.article-discovery .adjacent-links > a:hover { background: var(--ink); color: var(--paper); }
.linked-projects,
.related-notes { margin-top: 3rem; }
.linked-projects > p,
.related-notes > p { font: 700 .8125rem var(--mono); letter-spacing: .07em; }
.linked-projects > a { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; gap: 1rem; align-items: center; padding: 1.2rem; border: 1px solid var(--line); text-decoration: none; }
.linked-projects > a:hover { background: var(--clay); color: #fff; }
.linked-projects strong,
.linked-projects span { min-width: 0; overflow-wrap: anywhere; }
.linked-projects span { font-size: .82rem; }
.related-notes > div { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.related-notes a { min-height: 155px; display: flex; flex-direction: column; justify-content: space-between; padding: 1rem; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); text-decoration: none; }
.related-notes a:hover { background: var(--moss); color: #fff; }
.related-notes strong { font: 800 .9rem/1.1 var(--display); text-transform: uppercase; }
.related-notes span { font-size: .84rem; }
.article-footer { display: flex; justify-content: space-between; gap: 1rem; }

.search-bar mark,
.note-ledger mark { padding: .05em .16em; background: #d5aa6f; color: var(--ink); font-weight: inherit; }
.search-empty { padding: 3rem clamp(1.25rem, 5vw, 5rem); background: rgba(144,82,71,.12); color: var(--clay); font: 800 1rem var(--display); }

.identity-monument { position: relative; aspect-ratio: 1; overflow: hidden; background: var(--paper-2); color: var(--ink); }
.identity-monument::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, transparent 0 11.8%, rgba(18,19,16,.15) 12% 12.4%), linear-gradient(135deg, transparent 0 54%, var(--clay) 54% 72%, transparent 72%); }
.identity-monument span { position: absolute; z-index: 1; font: 900 clamp(8rem, 20vw, 20rem)/.74 var(--display); letter-spacing: -.07em; }
.identity-monument span:first-child { top: 10%; left: 3%; }
.identity-monument span:nth-child(2) { right: -2%; bottom: 5%; color: var(--slate); }
.identity-monument i { position: absolute; z-index: 2; left: 48%; top: 0; width: 12%; height: 100%; background: var(--ink); transform: skewX(-13deg); }

.taxonomy-grid a:nth-child(4n + 1):hover { background: var(--clay); }
.taxonomy-grid a:nth-child(4n + 2):hover { background: var(--slate); }
.taxonomy-grid a:nth-child(4n + 3):hover { background: var(--ochre); }
.taxonomy-grid a:nth-child(4n + 4):hover { background: var(--moss); }

@media (max-width: 1100px) {
  .site-frame { width: min(calc(100% - 1.5rem), 1540px); }
  .page-header, .article-header { min-height: 390px; }
  .project-grid-page { grid-template-columns: 1fr; }
  .article-grid { grid-template-columns: 90px minmax(0, 1fr); gap: 2rem; }
  .related-notes > div { grid-template-columns: 1fr; }
  .linked-projects > a { grid-template-columns: minmax(0, 1fr) auto; }
  .linked-projects span { grid-column: 1; }
}

@media (max-width: 620px) {
  .site-frame { width: 100%; }
  .page-header, .article-header { min-height: 0; padding-top: 4rem; padding-bottom: 4rem; }
  .hero-copy { display: flex; flex-direction: column; }
  .hero h1 { font-size: clamp(3.1rem, 14.5vw, 4.2rem); }
  .about-header h1 { font-size: clamp(3rem, 14vw, 4.2rem); overflow-wrap: normal; }
  .standard-page .page-header h1 { font-size: clamp(2.35rem, 11vw, 5.2rem); overflow-wrap: normal; }
  .article-header h1 { font-size: clamp(2.35rem, 12.5vw, 4.4rem); }
  .project-header h1 { font-size: clamp(2.2rem, 11vw, 4.1rem); }
  .article-header .eyebrow { margin-bottom: 1.25rem; }
  .project-grid { grid-template-columns: minmax(0, 1fr); }
  .project-card h2,
  .project-card h3 { max-width: 82%; overflow-wrap: anywhere; }
  .article-grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .article-rail { display: none; }
  .project-links { align-items: stretch; flex-direction: column; }
  .project-links .button { width: 100%; }
  .article-body { font-size: 1.05rem; line-height: 1.72; }
  .highlight { padding-top: 3.5rem; }
  .code-copy { min-height: 44px; }
  .article-after > * { padding-block: 3.5rem; }
  .article-support { grid-template-columns: 1fr; justify-content: stretch; }
  .support-symbol { font-size: 2.75rem; }
  .discovery-heading { grid-template-columns: 1fr; }
  .adjacent-links { grid-template-columns: 1fr; }
  .adjacent-links > span:empty { display: none; }
  .related-notes > div { grid-template-columns: 1fr; }
  .data-table { margin-inline: -1.25rem; border-inline: 0; }
  .data-table figcaption span:last-child { display: none; }
  .article-footer { flex-direction: column; }
  .credited-image figcaption { flex-direction: column; }
  .image-viewer { width: 100vw; height: 100dvh; max-height: 100dvh; border: 0; }
  .image-viewer-toolbar { align-items: stretch; flex-direction: column; }
  .image-viewer-toolbar > div { display: grid; grid-template-columns: 1fr 1fr; }
  .image-viewer-toolbar button { width: 100%; }
  .image-viewer-stage { height: calc(100dvh - 112px); max-height: none; padding: .75rem; }
}

@media print {
  html, body, .site-frame { background: #fff; box-shadow: none; }
  .article-after, .code-copy, .heading-permalink { display: none; }
}
