/* Hallmark · v2.0.0 · shape: Spatial index · theme: custom dark projection · hero: circular archive · nav: masthead · footer: colophon · posture: committed · signature: a circular archive with free camera motion · material: sourced records and genuine project imagery */
/* Hallmark · critique: the tube stays the picture; index, timeline and reader share its night field, and the archive says meme. */
/* Hallmark · waive 39b · button.card · Index entry cards are large interactive artworks with full-surface hit areas. */
/* Hallmark · dismissed 58 · the closed tube help holds the gesture legend, not the hero sentence */
/* Hallmark · answered F4 · zoom controls are a paired stepper on the tube, not two primary actions */
@font-face { font-family: 'Space Grotesk'; src: url('assets/space.woff2') format('woff2'); font-weight: 300 700; font-display: swap; }
@font-face { font-family: 'IBM Plex Mono'; src: url('assets/plex.woff2') format('woff2'); font-weight: 400; font-display: swap; }
:root {
  --space: #060809;
  --tube-ring: #d4ddda;
  --tube-thread: #96aaa7;
  --tube-tile: #202b2c;
  --tile-edge: #5c716e;
  --night: #11160f;
  --floor: #1a2115;
  --edge: #35402d;
  --graph: #232c1e;
  --ink: #f2f1e7;
  --dim: #aeb6a0;
  --lime: #d6fb78;
  --paper: #efeee2;
  --paper-text: #20251a;
  --paper-dim: #505747;
  --paper-line: #bcbfaf;
  --shadow: #080b07b0;
  --disabled: #8e9983;
  --clear: #00000000;
  --chrome-line: color-mix(in oklch, var(--ink) 16%, transparent);
  --chrome-line-strong: color-mix(in oklch, var(--ink) 34%, transparent);
  --face: 'Space Grotesk', sans-serif;
  --mono: 'IBM Plex Mono', monospace;
  --content: 1320px;
  --gutter: clamp(20px, 4.4vw, 76px);
}
* { box-sizing: border-box; }
html { overflow-x: clip; color-scheme: dark; }
body { margin: 0; overflow-x: clip; background: var(--night); color: var(--ink); font: 400 1rem/1.5 var(--face); }
body:has(dialog[open]) { overflow: hidden; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { min-width: 0; overflow-wrap: break-word; line-height: 1.02; text-wrap: balance; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
:where(a, button):active { opacity: .85; }
button:disabled { cursor: not-allowed; background: var(--night); color: var(--disabled); }
:where(a, button, input, select, summary, [tabindex]):focus-visible { outline: 2px solid var(--lime); outline-offset: 4px; }
.wrap { max-width: calc(var(--content) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip:not(:focus) { transform: translateY(-150%); }
.skip { position: fixed; z-index: 5; inset: 10px auto auto 10px; background: var(--lime); color: var(--night); padding: 12px; }
.mast { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--chrome-line); }
.brand { font-weight: 700; font-size: 1.07rem; display: inline-flex; gap: 8px; align-items: center; white-space: nowrap; text-decoration: none; }
nav { display: flex; gap: clamp(12px, 3.2vw, 44px); }
nav a, footer > a:last-child { font-size: .95rem; color: var(--dim); text-decoration: none; }
nav a:hover, footer > a:hover { color: var(--lime); }
.hero { position: relative; height: 100svh; isolation: isolate; background: var(--space); color: var(--ink); }
.viewport { position: absolute; inset: 0; overflow: clip; cursor: grab; touch-action: none; user-select: none; }
.viewport.over-record { cursor: pointer; }
.viewport[data-dragging] { cursor: grabbing; }
.viewport:focus-visible { outline-offset: -4px; }
#tube { display: block; width: 100%; height: 100%; }
.book-control, .tube-info summary {
  display: grid; place-items: center; width: 44px; height: 44px;
  border: 1px solid var(--chrome-line-strong); background: var(--space); color: var(--ink); text-decoration: none;
}
.book-control { position: absolute; z-index: 2; top: max(16px, env(safe-area-inset-top)); right: var(--gutter); border-radius: 8px; }
.book-control img { width: 29px; height: 29px; }
.book-control:hover, .tube-info summary:hover { border-color: var(--lime); }
.tube-info { position: absolute; z-index: 2; bottom: max(16px, env(safe-area-inset-bottom)); left: var(--gutter); }
.tube-info summary { cursor: pointer; border-radius: 50%; list-style: none; }
.tube-info summary::-webkit-details-marker { display: none; }
.tube-help { position: absolute; bottom: 56px; left: 0; width: min(310px, calc(100vi - 40px)); padding: 16px; border: 1px solid var(--chrome-line); border-radius: 8px; background: var(--night); }
#gestures { color: var(--dim); font-size: .95rem; margin-bottom: 12px; }
.tube-help nav { gap: 16px; padding-top: 12px; }
.wall-tools { display: flex; align-items: center; border: 1px solid var(--chrome-line); border-radius: 4px; }
.wall-tools button, .reader-top button { min-width: 44px; min-height: 44px; padding: 0 8px; line-height: 1; border: 0; background: var(--clear); color: var(--ink); font-size: 1.1rem; }
.wall-tools button:hover, .reader-top button:hover { color: var(--lime); }
.wall-tools button:last-child { font: .95rem/1 var(--face); border-left: 1px solid var(--chrome-line); }
.art { display: block; width: 100%; height: auto; object-fit: cover; background: var(--graph); }
.no-script { position: absolute; inset: 45% 20% auto; text-align: center; }
.index { background: var(--night); color: var(--ink); padding-block: clamp(72px, 9vw, 120px); border-top: 1px solid var(--chrome-line); }
.section-head { display: flex; gap: 12px 32px; align-items: end; justify-content: space-between; }
h2 { font-size: clamp(2.35rem, 5vw, 5rem); letter-spacing: -.065em; }
.section-head nav { gap: 16px; }
.index .section-head nav a { color: var(--dim); text-decoration: none; }
.section-head p { font-size: 1rem; color: var(--dim); max-width: 36ch; }
.filters { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 12px; margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--chrome-line); }
.filters input, .filters select { width: 100%; min-height: 48px; padding: 12px 16px; border: 1px solid var(--chrome-line-strong); background: var(--floor); border-radius: 8px; }
.filters input::placeholder { color: var(--dim); }
.results { min-height: 1.2em; margin-block: 12px 16px; color: var(--dim); font: .95rem/1.4 var(--face); }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.card { border: 1px solid var(--chrome-line); border-radius: 12px; background: var(--floor); color: inherit; padding: 0; min-width: 0; text-align: left; width: 100%; height: 100%; overflow: clip; }
.card:hover { border-color: var(--chrome-line-strong); }
.card .art { aspect-ratio: 2; object-fit: contain; background: var(--graph); color: var(--ink); }
.art-fallback { aspect-ratio: 2; display: grid; place-items: center; color: var(--ink); font-family: var(--face); }
.card-text { display: grid; gap: 8px; padding: 16px; }
.card-meta, #entry-meta { display: flex; flex-wrap: wrap; gap: 8px 16px; font: .95rem/1.4 var(--face); color: var(--dim); }
.card-ticker { color: var(--ink); }
.card-title { font-weight: 700; font-size: 1.5rem; line-height: 1.1; overflow-wrap: break-word; }
.card-lede { font-size: .95rem; color: var(--dim); }
.timeline { padding-block: clamp(72px, 9vw, 128px); background: var(--space); }
.timeline .section-head p { color: var(--dim); }
.timeline ol { margin: 32px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--chrome-line); }
.timeline li { display: grid; grid-template-columns: minmax(100px, .25fr) minmax(0, 1fr); gap: 20px; padding: 24px 0; border-bottom: 1px solid var(--chrome-line); }
.timeline time { color: var(--ink); font: 1rem/1.5 var(--face); }
.timeline h3 { font-size: 1.53rem; margin-bottom: 8px; }
.timeline p { color: var(--dim); }
.timeline-links { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 12px; }
.timeline-links button { padding: 4px 0; text-decoration: underline; text-underline-offset: 4px; color: var(--ink); border: 0; background: var(--clear); min-height: 44px; }
.timeline-links button:hover { color: var(--lime); }
.about { border-block: 1px solid var(--chrome-line); background: var(--floor); padding-block: clamp(72px, 8vw, 112px); }
.about-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 32px 60px; }
.about p { margin-bottom: 16px; color: var(--dim); max-width: 62ch; }
.about p:last-child { margin-bottom: 0; }
.about h3 { margin-block: 24px 8px; }
.about a, dialog a { color: var(--lime); text-underline-offset: 4px; }
footer.mast { border-bottom: 0; }
dialog { width: min(calc(100% - 28px), 740px); max-height: calc(100dvh - 28px); padding: 0; margin: auto; border: 1px solid var(--chrome-line-strong); border-radius: 16px; color: var(--ink); background: var(--night); overflow: auto; overscroll-behavior: contain; }
dialog::backdrop { background: var(--shadow); }
.reader-inner { padding: clamp(16px, 4vw, 36px); }
.reader-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.reader-art { max-height: 280px; aspect-ratio: 2.4; overflow: clip; border-radius: 0; margin-bottom: 24px; background: var(--floor); }
.reader-art .art { height: 100%; object-fit: contain; }
.entry-address { display: block; margin-top: 12px; overflow-wrap: anywhere; color: var(--dim); font: .83rem/1.5 var(--mono); }
#entry-title { margin-bottom: 8px; }
.lede { font-size: 1.19rem; color: var(--lime); }
.entry-body { margin-block: 24px; }
.entry-body h3 { margin-block: 20px 8px; }
.entry-body p { color: var(--dim); }
#entry-sources { padding-left: 20px; }
#entry-sources li + li { margin-top: 8px; }
.reader-actions { display: flex; justify-content: space-between; gap: 8px; border-top: 1px solid var(--chrome-line); padding-top: 16px; }
.reader-actions button { min-height: 44px; padding: 8px 16px; background: var(--floor); border: 1px solid var(--chrome-line-strong); border-radius: 8px; }
.reader-actions button:disabled { background: var(--night); color: var(--disabled); }
.reader-actions button:hover:enabled { border-color: color-mix(in oklch, var(--lime) 55%, transparent); }
@media (max-width: 820px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 490px) {
  .mast { min-height: 62px; }
  nav a, .brand { font-size: .83rem; }
  .brand img { width: 25px; height: 25px; }
  .section-head { align-items: start; flex-direction: column; }
  .grid { gap: 12px; }
  .card-text { padding: 12px; }
  .card-title { font-size: 1.14rem; }
  .card-lede { font-size: .85rem; }
  .filters { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .filters .search { grid-column: 1 / -1; }
  .filters input, .filters select { padding-inline: 8px; font-size: .91rem; }
  .timeline li, .about-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
