:root {
  color-scheme: dark;
  --bg: #0c1414; --panel: #101c1a; --ink: #bddec5; --muted: #9ab39f;
  --accent: #eddbad; --line: #405b49; --focus: #f3eee2;
  font: 15px/1.65 "Courier New", Courier, "Yu Gothic", "Hiragino Kaku Gothic ProN", "Microsoft YaHei", monospace;
}
* { box-sizing: border-box; }
body { margin: 0; padding: clamp(0px, 2vw, 28px); color: var(--ink); background: #070e0d; }
a { color: var(--accent); text-underline-offset: .22em; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible, summary:focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; }
.skip-link { position: fixed; z-index: 10; top: 8px; left: 12px; padding: 10px 14px; color: var(--bg); background: var(--accent); transform: translateY(-160%); }
.skip-link:focus { transform: none; }
.library-shell { max-width: 1080px; margin: auto; border: 1px solid var(--line); background: var(--bg); box-shadow: 0 16px 70px #0005; }
.masthead { position: relative; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 28px 23px; color: #172019; background: #ddb868; }
.masthead::after { content: ""; position: absolute; inset: auto 0 0; height: 7px; background: linear-gradient(to right, #ddb868 0 25%, #c47745 25% 46%, #eddbad 46% 64%, #aeb579 64% 81%, #6da698 81%); }
.masthead a { color: inherit; }
.masthead a:focus-visible { outline-color: #172019; }
.wordmark { font-weight: bold; text-decoration: none; letter-spacing: .12em; text-transform: uppercase; }
.wordmark span { font-size: 11px; letter-spacing: .06em; }
.terminal-link { font-size: 13px; }
.primary-nav { display: flex; flex-wrap: wrap; gap: 4px 22px; padding: 10px 28px; border-bottom: 1px solid var(--line); background: var(--panel); }
.primary-nav a { display: inline-flex; align-items: center; min-height: 44px; }
.primary-nav [aria-current] { color: var(--ink); text-decoration: none; }
.language-nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px 18px; padding: 5px 28px; border-bottom: 1px solid var(--line); font-size: 12px; }
.language-nav a { display: inline-flex; align-items: center; min-height: 44px; }
.language-nav [aria-current] { color: var(--ink); text-decoration: none; }
main { padding: clamp(22px, 5vw, 54px); }
main:focus { outline: none; }
h1, h2, h3 { color: var(--accent); font-weight: normal; line-height: 1.3; overflow-wrap: anywhere; }
h1 { margin: 8px 0 18px; font-size: clamp(25px, 4.8vw, 39px); letter-spacing: -.025em; }
h2 { font-size: 22px; margin: 0 0 20px; }
h3 { font-size: 17px; margin: 0 0 12px; }
p { margin: 0 0 18px; }
.page-heading { max-width: 780px; margin-bottom: 32px; }
.eyebrow, .card-path { color: var(--muted); font-size: 11px; letter-spacing: .1em; }
.lede { font-size: 17px; color: var(--ink); }
section + section { margin-top: 44px; }
.reading-text { max-width: 100%; margin: 0 0 20px; padding: 22px; border: 1px solid var(--line); background: var(--panel); font: inherit; white-space: pre-wrap; overflow-wrap: anywhere; tab-size: 2; }
.raw-link { display: inline-block; padding: 5px 0; font-size: 12px; }
.card-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; margin: 0; padding: 0; list-style: none; }
.content-card { display: flex; flex-direction: column; height: 100%; padding: 22px; border: 1px solid var(--line); background: var(--panel); text-decoration: none; }
.content-card:hover { border-color: var(--accent); }
.content-card p { color: var(--ink); font-size: 13px; }
.card-path { margin-top: auto; overflow-wrap: anywhere; }
.reader-note { padding-top: 28px; border-top: 1px solid var(--line); }
.breadcrumbs { margin: 0 0 26px; color: var(--muted); font-size: 12px; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.breadcrumbs li + li::before { content: "/"; padding-right: 8px; color: var(--muted); }
.hint { margin-top: 16px; border: 1px solid var(--line); background: var(--panel); }
summary { min-height: 48px; padding: 14px 18px; color: var(--accent); cursor: pointer; touch-action: manipulation; }
.hint section { padding: 0 18px 18px; }
.hint .reading-text { padding: 18px 0 0; border: 0; }
.gallery { display: grid; gap: 44px; }
.gallery--contact-sheet { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; align-items: start; }
.gallery--contact-sheet figure > img, .gallery--contact-sheet .image-treatment img { aspect-ratio: auto; }
figure { margin: 0; min-width: 0; border: 1px solid var(--line); background: var(--panel); }
figure > img, .image-treatment img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: contain; background: #0a1111; }
.retro-image { image-rendering: pixelated; }
figcaption { padding: 24px; }
figcaption h2 { font-size: 20px; margin-bottom: 12px; }
figcaption p { margin-bottom: 10px; }
.image-treatment { border-top: 1px solid var(--line); }
.image-treatment p { margin: 12px 24px 20px; }
footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; padding: 22px 28px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; }
footer p { max-width: 560px; margin: 0; }
@media (max-width: 620px) {
  body { padding: 0; }
  .masthead { padding: 16px 18px 22px; }
  .wordmark span { display: block; margin-top: 5px; }
  .primary-nav { padding: 8px 18px; gap: 0 18px; font-size: 13px; }
  .card-grid { grid-template-columns: 1fr; }
  .gallery--contact-sheet { grid-template-columns: 1fr; }
  .reading-text { padding: 16px; font-size: 13px; }
  .content-card, figcaption { padding: 18px; }
  .lede { font-size: 15px; }
  .hint section { padding: 0 14px 14px; }
  footer { padding: 20px; }
}
