:root {
    color-scheme: light;
    --ink-1000: #0d1716;
    --ink-950: #12201e;
    --ink-900: #182825;
    --ink-800: #2b3d39;
    --ink-700: #435550;
    --ink-600: #5f706b;
    --ink-500: #788781;
    --paper-0: #fffef9;
    --paper-50: #fbf9f2;
    --paper-100: #f4f0e6;
    --paper-200: #e9e3d5;
    /* Institutional surfaces and legibility roles. */
    --surface-base: #fffef9;
    --surface-raised: #fbf9f2;
    --surface-inset: #f4f0e6;
    --surface-inverse: #12201e;
    --text-primary: #12201e;
    --text-secondary: #435550;
    --text-tertiary: #667772;
    --text-inverse: #fffef9;
    --rule-subtle: rgba(31, 55, 51, 0.17);
    --rule-strong: rgba(31, 55, 51, 0.38);
    --focus-ring: #0d7667;
    /* State roles: never substitute one institutional claim for another. */
    --role-displayed: #326b8d;
    --role-displayed-soft: #e0edf4;
    --role-current: #0f7462;
    --role-current-soft: #dceee8;
    --role-catalogued: #665f55;
    --role-catalogued-soft: #ebe7df;
    --role-verified: #2f7048;
    --role-verified-soft: #dcecdf;
    --role-gate: #855410;
    --role-gate-soft: #f2e4cb;
    --role-blocked: #9a3d35;
    --role-blocked-soft: #f2dfdb;
    --role-simulation: #615e9a;
    --role-simulation-soft: #e7e5f4;
    --role-superseded: #5e625f;
    --role-superseded-soft: #e9e9e5;
    --role-withheld: #724c3e;
    --role-withheld-soft: #eee2dc;
    --pulse-surface: #12201e;
    --pulse-text: #fffef9;
    --pulse-muted: rgba(255, 254, 249, 0.72);
    --pulse-rule: rgba(255, 255, 255, 0.16);
    --pulse-accent: #8fe0cf;
    --pulse-gate: #f1c77d;
    --pulse-catalogued: #d1c7b6;
    /* Compatibility aliases now resolve through semantic roles. */
    --line: var(--rule-subtle);
    --line-strong: var(--rule-strong);
    --signal: var(--role-current);
    --signal-bright: var(--role-displayed);
    --signal-soft: var(--role-current-soft);
    --amber: var(--role-gate);
    --amber-soft: var(--role-gate-soft);
    --red: var(--role-blocked);
    --red-soft: var(--role-blocked-soft);
    --blue: var(--role-displayed);
    --blue-soft: var(--role-displayed-soft);
    --shadow-sm: 0 8px 26px rgba(20, 34, 31, 0.07);
    --shadow-lg: 0 30px 80px rgba(20, 34, 31, 0.12);
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 26px;
    --font-display: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, "Noto Serif SC", "Source Han Serif SC", STSong, SimSun, serif;
    --font-sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans SC", "Microsoft YaHei", sans-serif;
    --font-mono: "Cascadia Code", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
    --content-wide: 1180px;
    --content-reading: 760px;
    --space-1: clamp(0.5rem, 0.45rem + 0.2vw, 0.65rem);
    --space-2: clamp(0.8rem, 0.72rem + 0.3vw, 1rem);
    --space-3: clamp(1.15rem, 1rem + 0.55vw, 1.55rem);
    --space-4: clamp(1.7rem, 1.4rem + 1vw, 2.5rem);
    --space-5: clamp(2.5rem, 2rem + 1.8vw, 4rem);
    --space-6: clamp(3.8rem, 3rem + 3vw, 6.5rem);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    min-width: 320px;
    background: var(--paper-50);
    color: var(--ink-950);
    scroll-behavior: smooth;
    text-rendering: optimizeLegibility;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(circle at 12% -10%, rgba(104, 192, 173, 0.12), transparent 30rem),
        linear-gradient(180deg, var(--paper-0), var(--paper-50) 28rem, var(--paper-100));
    color: var(--ink-950);
    font-family: var(--font-sans);
    font-size: 17px;
    line-height: 1.65;
}

body.theme-changing {
    transition: background-color 220ms ease, color 220ms ease;
}

body::before {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    content: "";
    opacity: 0.34;
    background-image:
        linear-gradient(rgba(31, 106, 94, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(31, 106, 94, 0.04) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: linear-gradient(to bottom, black, transparent 58rem);
}

::selection {
    background: var(--signal-soft);
    color: var(--ink-1000);
}

img,
svg,
video {
    max-width: 100%;
}

button,
input,
select,
textarea {
    font: inherit;
}

a {
    color: var(--signal);
    text-decoration-thickness: 1px;
    text-underline-offset: 0.18em;
}

a:hover {
    color: var(--ink-1000);
}

:focus-visible {
    outline: 3px solid var(--focus-ring);
    outline-offset: 4px;
}

.skip-link {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
    background: var(--paper-0);
    color: var(--ink-1000);
}

.skip-link:focus {
    top: 12px;
    left: 12px;
    width: auto;
    height: auto;
    padding: 9px 14px;
    margin: 0;
    overflow: visible;
    clip: auto;
    clip-path: none;
    border-radius: 999px;
    box-shadow: var(--shadow-sm);
}

.global-header {
    position: relative;
    z-index: 20;
    width: min(var(--content-wide), calc(100% - 40px));
    margin: 0 auto;
    padding: 22px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    border-bottom: 1px solid var(--line);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--ink-950);
    text-decoration: none;
}

.brand:hover {
    color: var(--ink-950);
}

.brand-mark {
    position: relative;
    display: inline-grid;
    place-items: center;
    width: 30px;
    height: 30px;
    flex: 0 0 auto;
    border: 1px solid var(--line-strong);
    border-radius: 50%;
}

.brand-mark::before,
.brand-mark::after {
    position: absolute;
    content: "";
    border-radius: 50%;
}

.brand-mark::before {
    width: 14px;
    height: 14px;
    border: 1px solid var(--signal);
}

.brand-mark::after {
    width: 4px;
    height: 4px;
    background: var(--signal);
    box-shadow: 10px -8px 0 -1px var(--amber);
}

.brand-copy {
    display: grid;
    line-height: 1.12;
}

.brand-copy strong {
    font-family: var(--font-display);
    font-size: 17px;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.brand-copy small {
    margin-top: 3px;
    color: var(--ink-600);
    font-family: var(--font-mono);
    font-size: 9px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.primary-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
}

.primary-nav a {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 6px 10px;
    border-radius: 999px;
    color: var(--ink-700);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.01em;
    text-decoration: none;
}

.primary-nav a:hover,
.primary-nav a[aria-current="page"],
.primary-nav a.is-active {
    background: var(--signal-soft);
    color: var(--ink-950);
}

.primary-nav .nav-external {
    border: 1px solid var(--line);
    background: rgba(255, 254, 249, 0.72);
}

.theme-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 36px;
    padding: 5px 10px 5px 7px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 254, 249, 0.6);
    color: var(--ink-700);
    cursor: pointer;
    font-family: var(--font-mono);
    font-size: 9px;
    font-weight: 650;
    letter-spacing: 0.08em;
    line-height: 1;
    text-transform: uppercase;
}

.theme-toggle:hover {
    border-color: var(--line-strong);
    background: var(--signal-soft);
    color: var(--ink-950);
}

.theme-toggle-orbit {
    position: relative;
    display: inline-grid;
    place-items: center;
    width: 22px;
    height: 22px;
    border: 1px solid var(--line-strong);
    border-radius: 50%;
}

.theme-toggle-orbit::before,
.theme-toggle-orbit::after {
    position: absolute;
    border-radius: 50%;
    content: "";
}

.theme-toggle-orbit::before {
    width: 8px;
    height: 8px;
    border: 1px solid var(--signal);
}

.theme-toggle-orbit::after {
    width: 3px;
    height: 3px;
    transform: translate(7px, -5px);
    background: var(--amber);
}

.eyebrow,
.accession,
.mono-label {
    margin: 0;
    color: var(--signal);
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.12em;
    line-height: 1.5;
    text-transform: uppercase;
}

.section-heading {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(240px, 0.72fr);
    gap: var(--space-4);
    align-items: end;
    margin-bottom: var(--space-4);
}

.section-heading h2 {
    max-width: 820px;
    margin: 8px 0 0;
    color: var(--ink-950);
    font-family: var(--font-display);
    font-size: clamp(2rem, 3.2vw, 3.8rem);
    font-weight: 500;
    letter-spacing: -0.035em;
    line-height: 1.02;
}

.section-heading > p:last-child {
    margin: 0;
    color: var(--ink-600);
    font-size: 15px;
}

.status-chip,
.tag-chip,
.meta-chip {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    min-height: 26px;
    padding: 3px 9px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 254, 249, 0.72);
    color: var(--ink-700);
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.04em;
    line-height: 1.25;
    text-decoration: none;
}

.status-chip::before {
    width: 6px;
    height: 6px;
    margin-right: 7px;
    border-radius: 50%;
    background: currentColor;
    content: "";
}

.status-chip[data-state] {
    border-color: color-mix(in srgb, var(--state-color, var(--role-catalogued)) 42%, transparent);
    background: var(--state-soft, var(--role-catalogued-soft));
    color: var(--state-color, var(--role-catalogued));
}

.status-chip[data-state="displayed"],
.state-marker[data-state="displayed"] {
    --state-color: var(--role-displayed);
    --state-soft: var(--role-displayed-soft);
}

.status-chip[data-state="current"],
.status-chip[data-state="active"],
.state-marker[data-state="current"],
.state-marker[data-state="active"] {
    --state-color: var(--role-current);
    --state-soft: var(--role-current-soft);
}

.status-chip[data-state="catalogued"],
.state-marker[data-state="catalogued"] {
    --state-color: var(--role-catalogued);
    --state-soft: var(--role-catalogued-soft);
}

.status-chip[data-state="verified"],
.status-chip[data-state="completed"],
.state-marker[data-state="verified"],
.state-marker[data-state="completed"] {
    --state-color: var(--role-verified);
    --state-soft: var(--role-verified-soft);
}

.status-chip[data-state="gate"],
.status-chip[data-state="candidate"],
.status-chip[data-state="review"],
.status-chip[data-state="review-due"],
.status-chip[data-state="stale"],
.state-marker[data-state="gate"],
.state-marker[data-state="candidate"],
.state-marker[data-state="review"],
.state-marker[data-state="review-due"],
.state-marker[data-state="stale"] {
    --state-color: var(--role-gate);
    --state-soft: var(--role-gate-soft);
}

.status-chip[data-state="blocked"],
.status-chip[data-state="refused"],
.state-marker[data-state="blocked"],
.state-marker[data-state="refused"] {
    --state-color: var(--role-blocked);
    --state-soft: var(--role-blocked-soft);
}

.status-chip[data-state="simulation"],
.state-marker[data-state="simulation"] {
    --state-color: var(--role-simulation);
    --state-soft: var(--role-simulation-soft);
}

.status-chip[data-state="superseded"],
.state-marker[data-state="superseded"] {
    --state-color: var(--role-superseded);
    --state-soft: var(--role-superseded-soft);
}

.status-chip[data-state="withheld"],
.state-marker[data-state="withheld"] {
    --state-color: var(--role-withheld);
    --state-soft: var(--role-withheld-soft);
}

.button-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 10px 17px;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    background: transparent;
    color: var(--ink-950);
    font-size: 14px;
    font-weight: 650;
    text-decoration: none;
    transition: transform 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

.button:hover {
    transform: translateY(-2px);
    border-color: var(--signal);
    background: var(--signal-soft);
    color: var(--ink-950);
}

.button-primary {
    border-color: var(--ink-950);
    background: var(--ink-950);
    color: var(--paper-0);
}

.button-primary:hover {
    border-color: var(--signal-bright);
    background: var(--ink-800);
    color: var(--paper-0);
}

.panel {
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: rgba(255, 254, 249, 0.72);
    box-shadow: var(--shadow-sm);
}

/*
 * Institutional primitive contract
 * --------------------------------
 * .institutional-registry > .registry-row[data-state]
 * .provenance-rail > [data-provenance-step]
 * .evidence-spine > .evidence-spine-item
 * .folio > .folio-header + .folio-body
 * .state-marker[data-state]
 * .negative-vitrine[data-state="blocked|withheld|superseded"]
 *
 * These classes are intentionally content-agnostic. Pages may adopt them
 * progressively without changing the meaning of their source records.
 */
.institutional-registry,
.registry {
    border-block: 1px solid var(--rule-strong);
}

.registry-row {
    --state-color: var(--role-catalogued);
    --state-soft: var(--role-catalogued-soft);
    display: grid;
    grid-template-columns: minmax(7.5rem, 0.34fr) minmax(15rem, 1.25fr) minmax(10rem, 0.72fr) auto;
    gap: clamp(0.8rem, 2vw, 2rem);
    align-items: baseline;
    min-width: 0;
    padding: 1rem 0;
    border-top: 1px solid var(--rule-subtle);
}

.registry-row:first-child {
    border-top: 0;
}

.registry-row:is(:hover, :focus-within) {
    background: linear-gradient(90deg, var(--state-soft), transparent 72%);
}

.registry-row[data-state="displayed"] { --state-color: var(--role-displayed); --state-soft: var(--role-displayed-soft); }
.registry-row[data-state="current"] { --state-color: var(--role-current); --state-soft: var(--role-current-soft); }
.registry-row[data-state="catalogued"] { --state-color: var(--role-catalogued); --state-soft: var(--role-catalogued-soft); }
.registry-row[data-state="verified"] { --state-color: var(--role-verified); --state-soft: var(--role-verified-soft); }
.registry-row[data-state="gate"] { --state-color: var(--role-gate); --state-soft: var(--role-gate-soft); }
.registry-row[data-state="blocked"] { --state-color: var(--role-blocked); --state-soft: var(--role-blocked-soft); }
.registry-row[data-state="simulation"] { --state-color: var(--role-simulation); --state-soft: var(--role-simulation-soft); }
.registry-row[data-state="superseded"] { --state-color: var(--role-superseded); --state-soft: var(--role-superseded-soft); }
.registry-row[data-state="withheld"] { --state-color: var(--role-withheld); --state-soft: var(--role-withheld-soft); }

.registry-accession,
.registry-meta,
.folio-number,
.provenance-label {
    color: var(--text-tertiary);
    font-family: var(--font-mono);
    font-size: 0.65rem;
    letter-spacing: 0.075em;
    line-height: 1.55;
    text-transform: uppercase;
}

.registry-title {
    min-width: 0;
    color: var(--text-primary);
    font-family: var(--font-display);
    font-size: clamp(1.08rem, 2vw, 1.45rem);
    line-height: 1.25;
}

.registry-caption {
    display: grid;
    grid-template-columns: minmax(8rem, 0.35fr) minmax(0, 1fr);
    gap: clamp(1rem, 4vw, 3rem);
    align-items: baseline;
    padding: 0.8rem 0;
    border-block: 1px solid var(--rule-strong);
}

.registry-caption span {
    color: var(--text-tertiary);
    font-family: var(--font-mono);
    font-size: 0.62rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.registry-caption strong {
    color: var(--text-primary);
    font-family: var(--font-display);
    font-size: clamp(1.2rem, 2.5vw, 1.8rem);
    font-weight: 550;
}

.object-registry {
    display: grid;
    gap: 0;
    margin: 1.2rem 0 0;
}

.object-registry > div {
    display: grid;
    grid-template-columns: minmax(7.5rem, 0.55fr) minmax(0, 1fr);
    gap: 1rem;
    align-items: baseline;
    padding: 0.62rem 0;
    border-top: 1px solid var(--rule-subtle);
}

.object-registry dt,
.object-registry dd {
    margin: 0;
}

.object-registry dt {
    color: var(--text-tertiary);
    font-family: var(--font-mono);
    font-size: 0.6rem;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.object-registry dd {
    color: var(--text-primary);
    font-family: var(--font-mono);
    font-size: 0.7rem;
    overflow-wrap: anywhere;
}

.state-marker {
    --state-color: var(--role-catalogued);
    --state-soft: var(--role-catalogued-soft);
    display: inline-flex;
    width: fit-content;
    min-height: 1.55rem;
    align-items: center;
    gap: 0.48rem;
    padding: 0.15rem 0.5rem;
    border: 1px solid color-mix(in srgb, var(--state-color) 44%, transparent);
    border-radius: 999px;
    background: var(--state-soft);
    color: var(--state-color);
    font-family: var(--font-mono);
    font-size: 0.58rem;
    font-weight: 650;
    letter-spacing: 0.075em;
    line-height: 1.25;
    text-transform: uppercase;
}

.state-marker::before {
    width: 0.4rem;
    height: 0.4rem;
    flex: 0 0 auto;
    border: 1px solid currentColor;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 0 2px var(--state-soft);
    content: "";
}

.summary-source {
    display: inline-flex;
    width: fit-content;
    color: var(--text-tertiary);
    font-family: var(--font-mono);
    font-size: 0.52rem;
    letter-spacing: 0.055em;
    line-height: 1.4;
    text-transform: uppercase;
}

.provenance-rail {
    position: relative;
}

.provenance-rail:has(> [data-provenance-step]),
.provenance-sequence {
    display: grid;
    grid-template-columns: repeat(var(--provenance-steps, 4), minmax(0, 1fr));
    gap: 1px;
    margin: 1.25rem 0;
    border-block: 1px solid var(--rule-strong);
    background: var(--rule-subtle);
}

.provenance-rail > [data-provenance-step],
.provenance-sequence > [data-provenance-step] {
    position: relative;
    min-width: 0;
    padding: 1rem;
    background: var(--surface-base);
}

.provenance-rail > [data-provenance-step]::before,
.provenance-sequence > [data-provenance-step]::before {
    display: block;
    margin-bottom: 1.7rem;
    color: var(--role-displayed);
    font-family: var(--font-mono);
    font-size: 0.58rem;
    letter-spacing: 0.1em;
    content: attr(data-provenance-step);
    text-transform: uppercase;
}

.evidence-spine {
    position: relative;
    display: grid;
    gap: 0;
    margin: 0;
    padding: 0 0 0 clamp(1.25rem, 3vw, 2.2rem);
    list-style: none;
}

.evidence-spine::before {
    position: absolute;
    top: 0.6rem;
    bottom: 0.6rem;
    left: 0.35rem;
    width: 1px;
    background: var(--rule-strong);
    content: "";
}

.evidence-spine-item {
    --state-color: var(--role-verified);
    position: relative;
    display: grid;
    grid-template-columns: minmax(6.6rem, 0.3fr) minmax(0, 1fr) auto;
    gap: clamp(0.75rem, 2vw, 1.7rem);
    align-items: start;
    padding: 1rem 0;
    border-top: 1px solid var(--rule-subtle);
}

.evidence-spine-item::before {
    position: absolute;
    top: 1.33rem;
    left: calc(clamp(1.25rem, 3vw, 2.2rem) * -1 - 0.01rem);
    width: 0.58rem;
    height: 0.58rem;
    border: 2px solid var(--surface-base);
    border-radius: 50%;
    background: var(--state-color);
    box-shadow: 0 0 0 1px var(--state-color);
    content: "";
}

.evidence-spine-item:first-child {
    border-top: 0;
}

.folio {
    position: relative;
    min-width: 0;
    padding: clamp(1.4rem, 4vw, 3.2rem);
    border-block: 1px solid var(--rule-strong);
    background:
        linear-gradient(90deg, var(--rule-subtle) 1px, transparent 1px) 1.25rem 0 / 1px 100% no-repeat,
        var(--surface-base);
}

.folio-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 1rem;
    align-items: start;
    margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
    padding-bottom: 0.9rem;
    border-bottom: 1px solid var(--rule-subtle);
}

.folio-body {
    max-width: var(--content-reading);
}

.negative-vitrine {
    --vitrine-state: var(--role-blocked);
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: clamp(1.4rem, 4vw, 3.4rem);
    border: 1px solid color-mix(in srgb, var(--vitrine-state) 62%, var(--rule-strong));
    border-radius: 0;
    background:
        linear-gradient(135deg, color-mix(in srgb, var(--vitrine-state) 12%, transparent), transparent 54%),
        var(--surface-inverse);
    color: var(--text-inverse);
    box-shadow: none;
}

.negative-vitrine[data-state="withheld"] { --vitrine-state: var(--role-withheld); }
.negative-vitrine[data-state="superseded"] { --vitrine-state: var(--role-superseded); }

.negative-vitrine::before {
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background-image:
        linear-gradient(color-mix(in srgb, var(--text-inverse) 7%, transparent) 1px, transparent 1px),
        linear-gradient(90deg, color-mix(in srgb, var(--text-inverse) 7%, transparent) 1px, transparent 1px);
    background-size: 2rem 2rem;
    content: "";
    mask-image: linear-gradient(135deg, black, transparent 70%);
}

.negative-vitrine :is(h2, h3, strong) {
    color: inherit;
}

.negative-vitrine :is(p, li, small) {
    color: color-mix(in srgb, var(--text-inverse) 74%, transparent);
}

.constellation {
    position: relative;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(12rem, 100%), 1fr));
    gap: clamp(1.1rem, 4vw, 3.8rem);
    padding: clamp(1.5rem, 4vw, 4rem) 0;
    border-block: 1px solid var(--rule-strong);
    background-image:
        linear-gradient(var(--rule-subtle) 1px, transparent 1px),
        linear-gradient(90deg, var(--rule-subtle) 1px, transparent 1px);
    background-size: 3.5rem 3.5rem;
}

.constellation-node {
    position: relative;
    min-width: 0;
    padding: 1rem 0 1rem 1.15rem;
    border-left: 1px solid var(--role-displayed);
    background: color-mix(in srgb, var(--surface-base) 88%, transparent);
}

.chronicle-timeline {
    display: grid;
    grid-template-columns: minmax(6.5rem, 0.25fr) minmax(0, 1fr);
    gap: 0 clamp(1rem, 4vw, 3rem);
    margin: 0;
    padding: 0;
    list-style: none;
}

.chronicle-timeline > li {
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: subgrid;
    padding: 1.05rem 0;
    border-top: 1px solid var(--rule-subtle);
}

.chronicle-timeline > li:first-child {
    border-top-color: var(--rule-strong);
}

.site-footer {
    width: min(var(--content-wide), calc(100% - 40px));
    margin: 0 auto;
    padding: var(--space-4) 0 var(--space-5);
    border-top: 1px solid var(--line);
    color: var(--ink-600);
}

.footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: var(--space-4);
    align-items: start;
}

.footer-grid p {
    max-width: 720px;
    margin: 0;
    font-size: 13px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px 16px;
}

.footer-links a {
    color: var(--ink-700);
    font-size: 13px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (max-width: 780px) {
    .global-header {
        width: min(100% - 24px, var(--content-wide));
        align-items: flex-start;
        padding: 16px 0;
    }

    .brand-copy small {
        display: none;
    }

    .primary-nav {
        gap: 2px;
    }

    .primary-nav a {
        min-height: 34px;
        padding-inline: 8px;
        font-size: 12px;
    }

    .primary-nav .nav-external {
        display: none;
    }

    .section-heading,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-links {
        justify-content: flex-start;
    }

    .registry-row {
        grid-template-columns: minmax(6rem, 0.32fr) minmax(0, 1fr) auto;
    }

    .registry-meta {
        grid-column: 2;
    }

    .provenance-rail {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 520px) {
    body {
        font-size: 16px;
    }

    .global-header {
        display: grid;
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .primary-nav {
        justify-content: flex-start;
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 2px;
        scrollbar-width: none;
    }

    .primary-nav::-webkit-scrollbar {
        display: none;
    }

    .registry-row,
    .evidence-spine-item,
    .folio-header,
    .registry-caption,
    .object-registry > div,
    .chronicle-timeline,
    .chronicle-timeline > li {
        grid-template-columns: 1fr;
    }

    .registry-meta {
        grid-column: auto;
    }

    .provenance-rail {
        grid-template-columns: 1fr;
    }

    .evidence-spine-item {
        gap: 0.4rem;
    }

    .folio {
        padding-inline: 1.1rem;
        background: var(--surface-base);
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}

@media print {
    body {
        background: #fff;
    }

    body::before,
    .global-header,
    .site-footer,
    .button-row {
        display: none !important;
    }

    a[href]::after {
        color: #444;
        content: " (" attr(href) ")";
        font-family: var(--font-mono);
        font-size: 8pt;
        overflow-wrap: anywhere;
    }

    a[href^="#"]::after,
    a[href^="javascript:"]::after {
        content: "";
    }

    .panel,
    .folio,
    .negative-vitrine,
    .registry-row,
    .evidence-spine-item,
    .provenance-rail > [data-provenance-step] {
        break-inside: avoid;
        box-shadow: none !important;
    }

    .negative-vitrine {
        border: 2px solid #000;
        background: #fff !important;
        color: #000;
    }
}

@media (forced-colors: active) {
    :focus-visible {
        outline-color: Highlight;
    }

    .state-marker,
    .status-chip,
    .negative-vitrine {
        forced-color-adjust: auto;
    }
}
