@font-face { font-family: "Brax Garamond"; src: url("../fonts/eb-garamond-roman.woff2") format("woff2"); font-style: normal; font-weight: 400 800; font-display: swap; }
@font-face { font-family: "Brax Garamond"; src: url("../fonts/eb-garamond-italic.woff2") format("woff2"); font-style: italic; font-weight: 400 800; font-display: swap; }
@font-face { font-family: "Brax Inter"; src: url("../fonts/inter-roman.woff2") format("woff2"); font-style: normal; font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Brax Mono"; src: url("../fonts/jetbrains-mono-roman.woff2") format("woff2"); font-style: normal; font-weight: 100 800; font-display: swap; }

:root {
    --paper: #e8e0cf;
    --paper-light: #f4efe4;
    --ink: #171923;
    --blue-black: #202638;
    --muted: #8c9aaf;
    --brass: var(--acid, #b99655);
    --teal: #4e8580;
    --burgundy: var(--stamp, #793f4b);
    --rule: rgba(232, 224, 207, .38);
    --mono: "Brax Mono", var(--gh-font-body, monospace);
    --serif: "Brax Garamond", var(--gh-font-heading, Georgia), serif;
    --body: "Brax Inter", var(--gh-font-body, Arial), sans-serif;
    --display: "Brax Garamond", var(--gh-font-heading, Georgia), serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    min-height: 100vh;
    background: var(--ink);
    color: var(--paper);
    font-family: var(--body);
    overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input { font: inherit; }
::selection { background: var(--acid); color: var(--ink); }

.paper-noise {
    position: fixed;
    inset: 0;
    z-index: 100;
    pointer-events: none;
    opacity: .14;
    mix-blend-mode: multiply;
    background-image:
        repeating-radial-gradient(circle at 18% 29%, rgba(17,17,15,.45) 0 .45px, transparent .7px 4px),
        repeating-linear-gradient(92deg, transparent 0 8px, rgba(255,255,255,.5) 9px, transparent 10px 22px);
    background-size: 13px 13px, 41px 41px;
}

.site-header {
    min-height: 64px;
    display: grid;
    grid-template-columns: 64px minmax(170px, auto) 1fr auto;
    align-items: center;
    border-bottom: 2px solid var(--ink);
    background: var(--paper);
    position: relative;
    z-index: 20;
}
.site-sigil { width: 64px; height: 64px; border-right: 2px solid var(--ink); position: relative; }
.site-sigil::before, .site-sigil::after { content: ""; position: absolute; background: var(--ink); left: 50%; top: 50%; transform: translate(-50%, -50%); }
.site-sigil::before { width: 32px; height: 1px; }
.site-sigil::after { width: 1px; height: 32px; }
.site-sigil span:first-child { width: 18px; height: 18px; border: 1px solid var(--ink); border-radius: 50%; position: absolute; inset: 23px; }
.site-wordmark { padding: 0 22px; font-weight: 700; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
.site-wordmark a { text-decoration: none; }
.site-wordmark img { max-height: 36px; max-width: 220px; }
.site-navigation { justify-self: end; padding: 0 24px; }
.nav { display: flex; align-items: center; gap: 20px; margin: 0; padding: 0; list-style: none; font-size: 12px; font-weight: 700; }
.nav li + li::before { content: "/"; margin-right: 20px; }
.nav a { text-decoration: none; }
.nav a:hover, .nav a:focus-visible, .nav-current a { text-decoration: underline 4px var(--acid); text-underline-offset: 6px; }
.nav-toggle { display: none; border: 0; background: none; cursor: pointer; }
.build-label { align-self: stretch; display: flex; align-items: center; background: var(--ink); color: var(--acid); padding: 0 28px; font-size: 11px; transform: rotate(-.6deg); transform-origin: right top; }

.home-hero {
    min-height: 850px;
    padding: 76px 6vw 70px;
    position: relative;
    display: grid;
    grid-template-columns: minmax(430px, .95fr) minmax(500px, 1.05fr);
    gap: 5vw;
    border-bottom: 3px solid var(--ink);
}
.coordinate { position: absolute; left: 14px; top: 70px; writing-mode: vertical-rl; transform: rotate(180deg); font-size: 10px; font-weight: 700; letter-spacing: .08em; }
.hero-copy { align-self: center; position: relative; z-index: 3; }
.eyebrow { margin: 0 0 12px; font-size: 11px; font-weight: 700; letter-spacing: .12em; }
.hero-copy h1, .archive-page-header h1 {
    max-width: 740px;
    margin: 16px 0 26px;
    font-family: var(--display);
    font-size: clamp(78px, 8.5vw, 132px);
    line-height: .78;
    letter-spacing: -.05em;
    text-transform: uppercase;
    transform: scaleY(1.07);
    transform-origin: left bottom;
}
.acid-rule { display: block; width: 48%; height: 7px; margin-bottom: 24px; background: var(--acid); transform: rotate(-1.2deg); }
.hero-description { max-width: 620px; margin: 0; font-size: clamp(28px, 3vw, 45px); line-height: 1.13; }
.curator-note { max-width: 560px; margin: 22px 0 18px 10px; padding: 16px 8px 0; border-top: 2px solid var(--ink); line-height: 1.45; transform: rotate(-.45deg); }
.command-link {
    display: inline-flex;
    align-items: center;
    gap: 18px;
    min-height: 65px;
    padding: 12px 24px;
    background: var(--ink);
    color: var(--acid);
    font-size: clamp(20px, 2.4vw, 32px);
    font-weight: 700;
    text-decoration: none;
    transform: rotate(-.6deg);
    box-shadow: 8px 7px 0 rgba(17,17,15,.16);
}
.command-link:hover, .command-link:focus-visible { color: var(--ink); background: var(--acid); outline: 3px solid var(--ink); }
.command-link i, .signal-cta i { width: 11px; height: 27px; display: inline-block; background: currentColor; animation: blink .9s steps(1) infinite; }
.terminal-scrap { width: min(450px, 92%); margin: 20px 0 0 18px; padding: 14px 17px; display: flex; flex-direction: column; gap: 4px; background: var(--ink); color: var(--acid); font-size: 11px; transform: rotate(.8deg); box-shadow: inset 0 0 25px #000; }
.terminal-scrap b { display: inline-block; width: 8px; height: 12px; background: var(--acid); animation: blink .9s steps(1) infinite; vertical-align: -2px; }

.hero-specimen {
    align-self: center;
    position: relative;
    margin: 30px 0;
    padding: 62px 48px 42px;
    background: var(--paper-light);
    border: 1px solid rgba(17,17,15,.28);
    box-shadow: 11px 13px 0 rgba(17,17,15,.13);
    transform: rotate(.55deg);
}
.hero-specimen::before { content: ""; position: absolute; inset: 12px; border: 1px dashed rgba(17,17,15,.3); pointer-events: none; }
.hero-specimen img { width: 100%; aspect-ratio: 1.15; object-fit: cover; filter: grayscale(1) contrast(1.35); mix-blend-mode: multiply; border: 1px solid rgba(17,17,15,.25); transform: rotate(-.8deg); }
.specimen-number { position: absolute; right: 34px; top: 26px; z-index: 2; display: flex; flex-direction: column; padding-left: 15px; border-left: 2px dashed var(--ink); font-size: 10px; }
.specimen-number strong { font-size: 30px; letter-spacing: .05em; }
.hero-specimen figcaption { width: 62%; margin-top: 14px; padding: 10px; display: flex; flex-direction: column; gap: 4px; border: 1px dashed var(--ink); font-size: 9px; }
.archive-stamp { position: absolute; right: 32px; bottom: 44px; padding: 8px 10px; border: 3px solid var(--stamp); color: var(--stamp); font-weight: 700; font-size: 12px; line-height: 1.35; transform: rotate(-6deg); }
.tape { position: absolute; z-index: 4; height: 48px; background: rgba(185,165,125,.38); border: 1px solid rgba(92,72,35,.16); backdrop-filter: blur(.5px); }
.tape-a { width: 44%; left: 18%; top: -17px; transform: rotate(2.5deg); }
.tape-b { width: 31%; left: 35%; bottom: -19px; transform: rotate(-3deg); }
.stitch { position: absolute; background-image: repeating-linear-gradient(90deg, var(--ink) 0 6px, transparent 6px 12px); height: 1px; }
.stitch-top { left: 7%; right: 7%; top: 15px; }
.round-stamp { position: absolute; top: 43px; right: 1.6vw; z-index: 5; width: 128px; height: 128px; display: flex; flex-direction: column; align-items: center; justify-content: center; border: 5px double var(--stamp); border-radius: 50%; color: var(--stamp); font-size: 11px; font-weight: 700; text-align: center; transform: rotate(12deg); }
.round-stamp b { margin: 5px; font-size: 19px; }
.margin-scribble { position: absolute; right: 3vw; bottom: 36px; color: var(--stamp); font-family: var(--serif); font-style: italic; font-size: 13px; line-height: 1.2; transform: rotate(-5deg); }

.archive-feed, .archive-page { padding: 88px clamp(28px, 7vw, 110px) 100px; }
.feed-header { display: flex; align-items: end; justify-content: space-between; gap: 50px; margin-bottom: 55px; }
.feed-header h2 { margin: 0; font-family: var(--display); font-size: clamp(56px, 8vw, 108px); line-height: .88; text-transform: uppercase; letter-spacing: -.035em; }
.feed-warning { padding: 12px 0 12px 20px; border-left: 5px solid var(--stamp); line-height: 1.5; }
.post-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 68px 46px; }
.post-card { position: relative; padding: 24px 25px 20px; background: var(--paper-light); border: 1px solid rgba(17,17,15,.28); box-shadow: 8px 9px 0 rgba(17,17,15,.13); }
.post-card:nth-child(4n+2) { transform: rotate(.7deg); }
.post-card:nth-child(4n+3) { transform: rotate(-.55deg); }
.post-card:nth-child(3n)::after { content: ""; position: absolute; width: 22px; height: 74%; right: -13px; top: 13%; border-right: 2px dashed var(--ink); border-left: 1px solid var(--ink); opacity: .25; }
.post-card > header { display: flex; justify-content: space-between; padding-bottom: 10px; font-size: 10px; font-weight: 700; }
.card-tape { position: absolute; z-index: 3; top: -17px; left: 37%; width: 28%; height: 38px; background: rgba(188,168,127,.43); transform: rotate(-2deg); }
.card-image { min-height: 290px; display: block; overflow: hidden; border: 1px solid var(--ink); background: #cbc2ae; }
.card-image img { width: 100%; height: 100%; aspect-ratio: 1.45; object-fit: cover; filter: grayscale(1) contrast(1.2); transition: filter .15s ease, transform .15s ease; }
.card-image:hover img { filter: grayscale(.2) contrast(1.1); transform: scale(1.012); }
.card-image-placeholder { display: grid; place-items: center; background: repeating-linear-gradient(-45deg, transparent 0 10px, rgba(17,17,15,.07) 10px 11px); }
.card-image-placeholder span { padding: 8px; border: 1px dashed var(--ink); font-size: 11px; }
.card-body { padding: 22px 4px 15px; }
.card-tags { color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: .08em; }
.card-body h3 { margin: 10px 0 14px; font-family: var(--serif); font-style: italic; font-size: clamp(30px, 3.4vw, 50px); line-height: .98; }
.card-body h3 a { text-decoration-thickness: 1px; text-underline-offset: 5px; }
.card-body h3 a:hover { text-decoration-color: var(--acid); text-decoration-thickness: 6px; }
.card-body > p:last-child { line-height: 1.55; }
.post-card > footer { display: flex; justify-content: space-between; gap: 20px; padding-top: 14px; border-top: 1px dashed var(--ink); font-size: 10px; }
.priority-stamp { position: absolute; top: 45%; right: -19px; padding: 7px 10px; border: 3px solid var(--stamp); color: var(--stamp); font-weight: 700; transform: rotate(13deg); }
.pagination { display: flex; justify-content: space-between; gap: 20px; margin-top: 70px; padding: 18px 0; border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); font-size: 12px; }
.pagination a:hover { background: var(--acid); }
.empty-archive { grid-column: 1 / -1; padding: 50px; border: 2px dashed var(--ink); }

.curatorial-position { min-height: 560px; position: relative; display: grid; grid-template-columns: 1.2fr .8fr; gap: 8vw; align-items: center; padding: 90px 9vw; background: var(--ink); color: var(--paper); }
.curatorial-position blockquote { margin: 0; font-family: var(--serif); font-style: italic; font-size: clamp(44px, 6vw, 83px); line-height: 1.02; }
.curatorial-position > div { padding-left: 28px; border-left: 6px solid var(--acid); font-size: 16px; line-height: 1.7; }
.curatorial-position > div a { color: var(--acid); font-weight: 700; }
.vertical-note { position: absolute; left: 22px; top: 44px; writing-mode: vertical-rl; color: var(--acid); font-size: 9px; }
.curatorial-position > span { position: absolute; right: 8vw; bottom: 40px; color: var(--stamp); font-family: var(--serif); font-style: italic; transform: rotate(-5deg); }

.archive-page-header { margin-bottom: 64px; }
.archive-page-header h1 { margin-bottom: 28px; }
.archive-page-header > p:last-child { max-width: 700px; padding-left: 20px; border-left: 5px solid var(--stamp); font-size: 20px; line-height: 1.5; }
.taxonomy-header { min-height: 370px; padding: 90px 8vw 70px; display: flex; align-items: end; justify-content: space-between; gap: 60px; border-bottom: 3px solid var(--ink); position: relative; }
.taxonomy-header::after { content: ""; position: absolute; right: 7%; top: 22%; width: 180px; height: 46px; background: rgba(185,165,125,.35); transform: rotate(6deg); }
.taxonomy-header h1 { margin: 8px 0 20px; font-family: var(--display); font-size: clamp(70px, 11vw, 165px); line-height: .8; text-transform: uppercase; }
.taxonomy-header > div > p:last-of-type { max-width: 690px; font-family: var(--serif); font-style: italic; font-size: 22px; }
.taxonomy-header > span { padding: 12px; border: 2px solid var(--stamp); color: var(--stamp); font-weight: 700; transform: rotate(-5deg); }
.author-header img { width: 210px; aspect-ratio: 1; object-fit: cover; filter: grayscale(1) contrast(1.25); border: 10px solid var(--paper-light); box-shadow: 7px 8px 0 var(--ink); transform: rotate(3deg); }
.taxonomy-feed { padding-top: 70px; }

.journal-entry { padding-bottom: 90px; }
.entry-header { min-height: 560px; display: grid; grid-template-columns: 145px 1fr 180px; gap: 4vw; align-items: center; padding: 80px 7vw 70px; border-bottom: 3px solid var(--ink); position: relative; }
.entry-header::before { content: ""; position: absolute; top: 35px; right: 12%; width: 280px; height: 55px; background: rgba(185,165,125,.32); transform: rotate(-2deg); }
.entry-accession { align-self: stretch; display: flex; flex-direction: column; justify-content: center; gap: 8px; padding: 20px; border-right: 2px dashed var(--ink); font-size: 10px; }
.entry-accession strong { font-family: var(--display); font-size: 38px; writing-mode: vertical-rl; transform: rotate(180deg); }
.entry-title-wrap { position: relative; z-index: 2; }
.entry-title-wrap h1 { max-width: 1000px; margin: 10px 0 24px; font-family: var(--serif); font-style: italic; font-size: clamp(58px, 8vw, 122px); line-height: .9; letter-spacing: -.035em; }
.entry-deck { max-width: 800px; padding-top: 20px; border-top: 2px solid var(--ink); font-size: 20px; line-height: 1.5; }
.entry-stamp { justify-self: end; padding: 14px; border: 4px double var(--stamp); color: var(--stamp); text-align: center; font-weight: 700; transform: rotate(8deg); }
.entry-image { width: min(1080px, 86vw); position: relative; margin: 70px auto 90px; padding: 28px; background: var(--paper-light); border: 1px solid rgba(17,17,15,.25); box-shadow: 10px 12px 0 rgba(17,17,15,.16); transform: rotate(-.35deg); }
.entry-image img { width: 100%; max-height: 76vh; object-fit: cover; filter: saturate(.72) contrast(1.08); }
.entry-image figcaption { margin-top: 14px; font-size: 11px; }
.entry-layout { display: grid; grid-template-columns: 170px minmax(0, 760px); gap: 60px; justify-content: center; padding: 10px 5vw 70px; }
.entry-margin { align-self: start; position: sticky; top: 30px; display: flex; flex-direction: column; gap: 8px; padding: 20px 18px; border: 1px dashed var(--ink); font-size: 10px; transform: rotate(-1deg); }
.entry-margin span { margin-top: 12px; color: var(--stamp); font-weight: 700; }
.entry-margin a { font-weight: 700; }
.gh-content { min-width: 0; font-family: var(--serif); font-size: 20px; line-height: 1.75; }
.gh-content > * { max-width: 760px; margin-left: auto; margin-right: auto; }
.gh-content > * + * { margin-top: 1.6em; }
.gh-content h2, .gh-content h3 { margin-top: 1.6em; font-style: italic; line-height: 1.08; }
.gh-content h2 { font-size: clamp(38px, 5vw, 64px); }
.gh-content h3 { font-size: 32px; }
.gh-content a { text-decoration-color: var(--acid); text-decoration-thickness: 5px; text-underline-offset: 3px; }
.gh-content blockquote { padding: 28px 30px; border-left: 7px solid var(--stamp); background: rgba(246,240,225,.7); font-size: 30px; font-style: italic; transform: rotate(.4deg); }
.gh-content pre { max-width: 920px; overflow: auto; padding: 24px; background: var(--ink); color: var(--acid); font: 14px/1.55 var(--mono); box-shadow: 7px 8px 0 rgba(17,17,15,.2); }
.gh-content code { font-family: var(--mono); font-size: .86em; }
.gh-content :not(pre) > code { padding: 2px 5px; background: var(--ink); color: var(--acid); }
.gh-content hr { height: 18px; border: 0; background-image: repeating-linear-gradient(90deg, var(--ink) 0 8px, transparent 8px 16px); background-size: 100% 2px; background-repeat: no-repeat; background-position: center; }
.gh-content figure { max-width: 900px; }
.gh-content figure img { width: 100%; }
.gh-content figcaption { margin-top: 8px; color: var(--muted); font: 11px/1.4 var(--mono); }
.gh-content .kg-width-wide { width: min(980px, 86vw); max-width: 980px; margin-left: 50%; transform: translateX(-50%); }
.gh-content .kg-width-full { width: 100vw; max-width: none; margin-left: 50%; transform: translateX(-50%); }
.kg-gallery-container { display: flex; flex-direction: column; gap: 8px; }
.kg-gallery-row { display: flex; flex-direction: row; gap: 8px; }
.kg-gallery-image img { display: block; width: 100%; height: 100%; object-fit: cover; }
.kg-gallery-image { flex: 1 1 0; }
.kg-callout-card, .kg-file-card, .kg-bookmark-card, .kg-product-card { border: 2px solid var(--ink); border-radius: 0 !important; box-shadow: 7px 8px 0 var(--ink); }
.kg-button-card a.kg-btn { border-radius: 0 !important; background: var(--ink) !important; color: var(--acid) !important; font-family: var(--mono); }
.kg-signup-card { border: 2px dashed var(--ink); border-radius: 0 !important; }
.entry-footer { max-width: 1080px; margin: 0 auto; padding: 40px 30px; border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); font-size: 11px; }
.entry-share { display: flex; flex-wrap: wrap; gap: 16px; }
.entry-neighbors { display: flex; justify-content: space-between; gap: 30px; margin-top: 30px; }
.entry-neighbors a { max-width: 46%; }
.signal-cta { max-width: 1080px; margin: 75px auto 0; padding: 50px; display: flex; justify-content: space-between; align-items: center; gap: 40px; background: var(--ink); color: var(--paper); transform: rotate(.35deg); }
.signal-cta h2 { margin: 4px 0 12px; font-family: var(--display); font-size: clamp(44px, 6vw, 78px); text-transform: uppercase; }
.signal-cta a { display: inline-flex; align-items: center; gap: 12px; padding: 16px 20px; background: var(--acid); color: var(--ink); text-decoration: none; font-weight: 700; white-space: nowrap; }
.comments-section { max-width: 900px; margin: 80px auto 0; padding: 0 30px; }
.page-entry-header { min-height: 440px; }
.page-layout { padding-top: 80px; }

.error-page { min-height: calc(100vh - 170px); padding: 90px 9vw; }
.error-page h1 { margin: 0; font-family: var(--display); font-size: clamp(130px, 25vw, 360px); line-height: .8; }
.error-page > p { font-family: var(--serif); font-style: italic; font-size: 28px; }
.error-page pre { max-width: 650px; padding: 20px; background: var(--ink); color: var(--acid); white-space: pre-wrap; }

.site-footer { min-height: 120px; display: flex; justify-content: space-between; align-items: center; gap: 28px; padding: 28px 6vw; background: var(--ink); color: var(--paper); font-size: 10px; }
.site-footer > div { display: flex; flex-direction: column; gap: 7px; }
.site-footer .nav { font-size: 10px; }
.site-footer > a { color: var(--acid); }

@keyframes blink { 50% { opacity: 0; } }

@media (max-width: 1050px) {
    .site-header { grid-template-columns: 64px 1fr auto; }
    .site-navigation { grid-column: 1 / -1; justify-self: stretch; display: none; padding: 18px 24px; border-top: 1px solid var(--ink); }
    .site-navigation.is-open { display: block; }
    .nav-toggle { display: block; justify-self: end; padding: 18px; }
    .build-label { display: none; }
    .home-hero { grid-template-columns: 1fr; }
    .hero-specimen { width: min(780px, 95%); justify-self: center; }
    .round-stamp { top: 48%; }
    .entry-header { grid-template-columns: 110px 1fr; }
    .entry-stamp { position: absolute; right: 5vw; bottom: 38px; }
    .signal-cta { margin-left: 30px; margin-right: 30px; }
}

@media (max-width: 760px) {
    .site-header { grid-template-columns: 54px 1fr auto; }
    .site-sigil { width: 54px; height: 54px; }
    .site-sigil span:first-child { inset: 18px; }
    .site-wordmark { padding: 0 12px; font-size: 10px; }
    .site-navigation .nav { align-items: flex-start; flex-direction: column; }
    .nav li + li::before { display: none; }
    .home-hero { min-height: auto; padding: 58px 22px 75px 38px; }
    .coordinate, .round-stamp { display: none; }
    .hero-copy h1, .archive-page-header h1 { font-size: clamp(62px, 22vw, 102px); }
    .hero-description { font-size: 26px; }
    .command-link { font-size: 19px; }
    .hero-specimen { padding: 54px 20px 30px; margin-top: 80px; }
    .hero-specimen figcaption { width: 100%; }
    .archive-stamp { position: relative; display: inline-block; right: auto; bottom: auto; margin: 22px 0 0 56%; }
    .margin-scribble { display: none; }
    .archive-feed, .archive-page { padding: 64px 22px 78px 38px; }
    .feed-header { align-items: flex-start; flex-direction: column; }
    .post-grid { grid-template-columns: 1fr; }
    .post-card, .post-card:nth-child(n) { transform: none; }
    .curatorial-position { grid-template-columns: 1fr; padding: 78px 28px 90px 48px; }
    .curatorial-position blockquote { font-size: 43px; }
    .taxonomy-header { align-items: flex-start; flex-direction: column; padding: 70px 28px 60px 40px; }
    .taxonomy-header h1 { font-size: clamp(64px, 20vw, 110px); }
    .entry-header { min-height: auto; grid-template-columns: 56px 1fr; padding: 65px 24px 80px 30px; gap: 18px; }
    .entry-accession { padding: 10px 6px; }
    .entry-accession strong { font-size: 25px; }
    .entry-title-wrap h1 { font-size: clamp(50px, 15vw, 78px); }
    .entry-deck { font-size: 17px; }
    .entry-stamp { right: 28px; bottom: 20px; font-size: 9px; }
    .entry-image { width: calc(100% - 54px); padding: 16px; margin: 60px 24px 70px 36px; }
    .entry-layout { grid-template-columns: 1fr; padding: 0 24px 60px 40px; gap: 35px; }
    .entry-margin { position: relative; top: auto; display: grid; grid-template-columns: auto 1fr; }
    .gh-content { font-size: 18px; }
    .gh-content .kg-width-wide { width: calc(100vw - 30px); }
    .entry-footer { margin: 0 24px 0 38px; padding: 30px 0; }
    .entry-neighbors, .signal-cta { align-items: flex-start; flex-direction: column; }
    .entry-neighbors a { max-width: 100%; }
    .signal-cta { padding: 34px 26px; margin: 60px 20px 0 34px; }
    .pagination { align-items: center; flex-direction: column; }
    .site-footer { align-items: flex-start; flex-direction: column; }
    .site-footer .nav { align-items: flex-start; flex-direction: column; }
}

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

/* Midnight archive refinement */
.eyebrow,
.coordinate,
.site-header,
.site-footer,
.specimen-number,
.hero-specimen figcaption,
.card-tags,
.catalogued-under,
.post-card > header,
.post-card > footer,
.entry-accession,
.entry-catalogue-line,
.entry-margin,
.status-mark,
.pagination,
.build-label,
.terminal-scrap,
.feed-warning,
.catalogue-record,
.investigating-panel,
.pathways > a > span,
.pathways > a > b { font-family: var(--mono); }

.site-header {
    background: var(--blue-black);
    color: var(--paper);
    border-color: var(--brass);
}
.site-sigil { border-color: var(--brass); }
.site-sigil::before, .site-sigil::after { background: var(--brass); }
.site-sigil span:first-child { border-color: var(--brass); }
.site-header nav a:hover, .site-header nav a:focus-visible, .nav-current a { text-decoration-color: var(--brass); }
.nav-toggle { color: var(--paper); }
.build-label { background: var(--paper); color: var(--ink); }

.home-hero,
.archive-feed,
.archive-page,
.journal-entry,
.error-page,
.about-record { background: var(--ink); color: var(--paper); }
.home-hero { border-color: var(--brass); }
.hero-copy h1,
.archive-page-header h1 {
    font-weight: 600;
    text-transform: none;
    letter-spacing: -.045em;
    transform: none;
}
.acid-rule { background: var(--brass); height: 3px; }
.curator-note { border-color: var(--muted); color: #cfd5df; font-family: var(--serif); font-style: italic; font-size: 19px; }
.command-link { background: var(--paper); color: var(--ink); border: 1px solid var(--brass); box-shadow: 8px 7px 0 var(--brass); }
.command-link:hover, .command-link:focus-visible { background: var(--brass); color: var(--ink); outline-color: var(--paper); }
.terminal-scrap { background: #0d1018; color: var(--teal); border: 1px solid rgba(78,133,128,.5); }
.terminal-scrap b { background: var(--teal); }
.hero-specimen { color: var(--ink); box-shadow: 11px 13px 0 var(--brass); }
.archive-stamp, .round-stamp { border-color: var(--burgundy); color: var(--burgundy); }
.round-stamp { background: rgba(23,25,35,.9); }
.margin-scribble { color: var(--brass); }

.pathways {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    padding: 1px;
    background: var(--brass);
    border-bottom: 1px solid var(--brass);
}
.pathways > a {
    min-height: 330px;
    padding: 50px clamp(26px, 4vw, 62px);
    display: flex;
    flex-direction: column;
    background: var(--blue-black);
    color: var(--paper);
    text-decoration: none;
    transition: background .18s ease, transform .18s ease;
}
.pathways > a:hover, .pathways > a:focus-visible { background: #272f45; transform: translateY(-4px); outline: 1px solid var(--brass); z-index: 2; }
.pathways > a > span { color: var(--brass); font-size: 10px; letter-spacing: .12em; }
.pathways h2 { margin: auto 0 14px; font-family: var(--serif); font-size: clamp(39px, 4.3vw, 67px); font-style: italic; font-weight: 500; line-height: .95; }
.pathways p { max-width: 430px; margin: 0 0 25px; color: #c8cfda; line-height: 1.55; }
.pathways b { font-size: 10px; color: var(--teal); }

.featured-archive { padding: 90px clamp(28px, 7vw, 110px); background: var(--paper); color: var(--ink); }
.featured-archive > header { display: flex; justify-content: space-between; align-items: end; margin-bottom: 40px; border-bottom: 1px solid var(--ink); }
.featured-archive > header h2 { margin: 0 0 -8px; font-family: var(--serif); font-size: clamp(50px, 7vw, 98px); font-style: italic; font-weight: 500; }
.featured-archive .post-card { border-width: 2px; }

.archive-feed .eyebrow, .archive-feed .feed-warning, .archive-page .eyebrow { color: #bdc6d5; }
.feed-warning { border-color: var(--brass); }
.feed-header h2 { font-family: var(--serif); font-weight: 500; font-style: italic; text-transform: none; }
.post-grid { grid-template-columns: 1fr; gap: 28px; }
.post-card {
    display: grid;
    grid-template-columns: minmax(190px, .38fr) minmax(0, 1fr);
    column-gap: clamp(22px, 4vw, 58px);
    color: var(--ink);
    border-color: #a9a08e;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.post-card:nth-child(n) { transform: rotate(0); }
.post-card:hover { transform: translateY(-4px) rotate(-.12deg); border-color: var(--brass); box-shadow: 10px 13px 0 rgba(185,150,85,.55); }
.post-card > header { grid-column: 1 / -1; color: #545b68; }
.card-image { min-height: 180px; grid-column: 1; }
.card-image img { aspect-ratio: 1.1; }
.card-body { grid-column: 2; padding-top: 4px; }
.post-card > footer { grid-column: 1 / -1; }
.card-body h3 { font-size: clamp(34px, 4.6vw, 69px); font-weight: 500; }
.card-body h3 a {
    text-decoration: none;
    background-image: linear-gradient(var(--brass), var(--brass));
    background-position: 0 100%;
    background-repeat: no-repeat;
    background-size: 0 2px;
    transition: background-size .22s ease;
}
.card-body h3 a:hover, .card-body h3 a:focus-visible { background-size: 100% 2px; }
.card-label-row { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.card-tags { margin: 0; color: #646c78; }
.catalogued-under { margin-top: 20px !important; color: #646c78; font-size: 9px; letter-spacing: .09em; }
.status-mark { display: inline-flex; align-items: center; gap: 6px; padding: 4px 7px; border: 1px solid currentColor; color: #5e6570; font-size: 8px; font-weight: 700; letter-spacing: .08em; white-space: nowrap; }
.status-mark.is-active { color: var(--teal); }
.status-mark.is-experimental { color: #886f36; }
.status-mark.is-stable { color: #526c5f; }
.status-mark.is-broken { color: var(--burgundy); }
.status-mark.is-archived { color: #77736d; }
.status-mark i, .investigating-panel h2 i, .catalogue-record dd i { width: 7px; height: 7px; display: inline-block; border-radius: 50%; background: var(--teal); animation: status-pulse 2.6s ease-in-out infinite; }
.pagination { border-color: var(--brass); color: var(--paper); }
.featured-archive .pagination { color: var(--ink); }

.home-notes { display: grid; grid-template-columns: 1.15fr .85fr; gap: 42px; padding: 100px clamp(28px, 7vw, 110px); background: var(--ink); }
.about-teaser { position: relative; padding: 58px; background: var(--paper); color: var(--ink); box-shadow: 10px 12px 0 var(--brass); transform: rotate(-.35deg); }
.about-teaser h2 { max-width: 740px; margin: 18px 0 25px; font-family: var(--serif); font-size: clamp(47px, 6vw, 82px); font-style: italic; font-weight: 500; line-height: .95; }
.about-teaser > p:not(.eyebrow) { max-width: 700px; font-size: 18px; line-height: 1.6; }
.about-teaser > a { font-family: var(--mono); font-size: 11px; font-weight: 700; text-decoration-color: var(--brass); text-decoration-thickness: 3px; }
.about-teaser em { position: absolute; right: 28px; bottom: 22px; color: var(--burgundy); font-family: var(--serif); transform: rotate(-5deg); }
.investigating-panel { padding: 50px 42px; align-self: center; background: var(--blue-black); border: 1px solid var(--brass); color: var(--paper); box-shadow: inset 0 0 70px rgba(0,0,0,.22); }
.investigating-panel h2 { display: flex; align-items: center; gap: 12px; margin: 18px 0 32px; font-family: var(--serif); font-size: clamp(34px, 4vw, 53px); font-style: italic; font-weight: 500; }
.investigating-panel ul { margin: 0 0 35px; padding: 0; list-style: none; }
.investigating-panel li { padding: 12px 0 12px 20px; border-bottom: 1px dashed #69728a; position: relative; }
.investigating-panel li::before { content: "—"; position: absolute; left: 0; color: var(--brass); }
.investigating-panel small { color: var(--teal); }
.curatorial-position { background: var(--blue-black); }
.curatorial-position > div { border-color: var(--brass); }
.curatorial-position > div a, .vertical-note { color: var(--brass); }
.curatorial-position > span { color: var(--burgundy); }

.entry-header { background: var(--ink); color: var(--paper); border-color: var(--brass); }
.entry-header::before { background: rgba(185,150,85,.18); }
.entry-accession { border-color: var(--brass); color: var(--muted); }
.entry-accession strong { color: var(--brass); }
.entry-title-wrap h1 { font-weight: 500; }
.entry-deck { border-color: var(--brass); color: #ccd2dc; }
.entry-catalogue-line { color: var(--teal); font-size: 10px; letter-spacing: .1em; }
.entry-stamp { border-color: var(--burgundy); color: var(--burgundy); }
.entry-image { color: var(--ink); box-shadow: 10px 12px 0 var(--brass); }
.entry-layout .gh-content { color: var(--paper); font-family: var(--body); }
.entry-layout .gh-content h2, .entry-layout .gh-content h3, .entry-layout .gh-content blockquote { font-family: var(--serif); }
.entry-margin { border-color: var(--brass); color: var(--paper); background: var(--blue-black); }
.entry-margin span { color: var(--brass); }
.entry-footer { border-color: var(--brass); color: var(--paper); }
.entry-footer a { color: var(--brass); }
.signal-cta { background: var(--blue-black); border: 1px solid var(--brass); }
.signal-cta h2 { font-family: var(--serif); text-transform: none; font-style: italic; font-weight: 500; }
.signal-cta a { background: var(--brass); }
.marginal-relations { max-width: 1080px; margin: 70px auto 0; padding: 30px; border-top: 1px dashed var(--brass); color: var(--paper); }
.marginal-relations ul { margin: 18px 0 0; padding: 0; list-style: none; }
.marginal-relations li { display: flex; justify-content: space-between; gap: 24px; padding: 13px 0; border-bottom: 1px dashed #4d5568; }
.marginal-relations a { text-decoration-color: var(--brass); }
.marginal-relations span { color: var(--teal); }

.about-record-header { min-height: 450px; padding: 100px 8vw 70px; border-bottom: 1px solid var(--brass); }
.about-record-header h1 { margin: 10px 0 22px; font-family: var(--serif); font-size: clamp(78px, 13vw, 170px); font-style: italic; font-weight: 500; line-height: .8; }
.about-record-header > p:last-child { max-width: 770px; color: #c8cfda; font-size: 21px; line-height: 1.5; }
.about-record-layout { display: grid; grid-template-columns: 330px minmax(0, 760px); gap: clamp(45px, 8vw, 110px); justify-content: center; padding: 90px 5vw 120px; }
.about-record-layout .gh-content { color: var(--paper); font-family: var(--body); }
.catalogue-record { position: relative; align-self: start; padding: 38px 30px 45px; background: var(--paper); color: var(--ink); box-shadow: 8px 10px 0 var(--brass); transform: rotate(-.55deg); }
.catalogue-record h2 { margin: 0 0 26px; font-family: var(--serif); font-size: 36px; font-style: italic; }
.catalogue-record dl { margin: 0; }
.catalogue-record dl div { padding: 12px 0; border-bottom: 1px dashed #8f887c; }
.catalogue-record dt { margin-bottom: 4px; color: #636a73; font-size: 9px; letter-spacing: .1em; text-transform: uppercase; }
.catalogue-record dd { margin: 0; line-height: 1.45; }
.record-stamp { display: inline-block; margin: 35px 0 0 34%; padding: 8px; border: 3px double var(--burgundy); color: var(--burgundy); font-size: 10px; font-weight: 700; text-align: center; transform: rotate(-7deg); }

.taxonomy-header { background: var(--ink); color: var(--paper); border-color: var(--brass); }
.taxonomy-header > span { border-color: var(--burgundy); color: var(--burgundy); }
.site-footer { background: #10131c; border-top: 1px solid var(--brass); }
.site-footer .nav a, .footer-actions a { color: var(--paper); }
.footer-actions { align-items: flex-end; }
.hidden-room { color: var(--muted) !important; font-family: var(--serif); font-style: italic; font-size: 11px; text-decoration: none; opacity: .55; }
.hidden-room:hover { color: var(--brass) !important; opacity: 1; }

@keyframes status-pulse { 0%, 100% { opacity: .42; box-shadow: 0 0 0 0 rgba(78,133,128,0); } 50% { opacity: 1; box-shadow: 0 0 0 5px rgba(78,133,128,.08); } }

@media (max-width: 900px) {
    .pathways { grid-template-columns: 1fr; }
    .pathways > a { min-height: 260px; }
    .home-notes { grid-template-columns: 1fr; }
    .about-record-layout { grid-template-columns: 1fr; }
    .catalogue-record { width: min(440px, 100%); }
}

@media (max-width: 760px) {
    .featured-archive { padding: 65px 22px 75px 38px; }
    .featured-archive > header { align-items: flex-start; flex-direction: column; }
    .post-card { grid-template-columns: 1fr; }
    .card-image, .card-body { grid-column: 1; }
    .card-image { min-height: 220px; }
    .card-label-row { align-items: flex-start; flex-direction: column; gap: 8px; }
    .home-notes { padding: 75px 22px 90px 38px; }
    .about-teaser { padding: 48px 28px 90px; }
    .investigating-panel { padding: 40px 28px; }
    .about-record-header { padding: 80px 28px 60px 38px; }
    .about-record-layout { padding: 65px 22px 90px 38px; }
    .marginal-relations { margin-left: 38px; margin-right: 24px; padding-left: 0; padding-right: 0; }
    .footer-actions { align-items: flex-start; }
}
