﻿/* Shared foundation for the printed programs in the Blatt archive. */
* { box-sizing: border-box; }
:root {
  --night-ground: var(--identity-bg, #151515);
  --night-ink: var(--identity-fg, #ecece8);
  --night-muted: var(--identity-muted, #aaa9a6);
  --night-accent: var(--identity-accent, #f28abc);
  --night-rule: var(--identity-rule, #414141);
  --night-gutter: var(--gutter);
}
html { background: var(--night-ground); scroll-behavior: smooth; }
body { margin: 0; background: var(--night-ground); color: var(--night-ink); font: var(--text-body)/1.65 var(--font-mono); }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .25em; }
a:hover { color: var(--night-accent); }
button { font: inherit; border-radius: 0; }
:focus-visible { outline: 2px solid var(--night-accent); outline-offset: 5px; }
[hidden] { display: none !important; }
.skip { position: absolute; top: -100px; }
.skip:focus { top: 0; color: var(--identity-on-accent, #151515); background: var(--night-accent); }
main { padding: 42px var(--gutter) clamp(72px, 9vw, 144px); }
.label, figcaption, .footnote { font-size: var(--text-small); }
.label { color: var(--night-muted); }
h1, h2 { font-family: var(--font-display); font-weight: 600; font-style: normal; line-height: 1.04; letter-spacing: -.035em; text-transform: uppercase; text-wrap: balance; }
h1 { font-size: clamp(3rem, 6.5vw, 6.5rem); margin: 12px 0 24px; overflow-wrap: anywhere; }
h2 { font-size: clamp(2.25rem, 3.2vw, 3.5rem); margin: 12px 0 24px; }
p { text-wrap: pretty; }
.night-layout { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); margin-top: 40px; align-items: start; }
figure { margin: 0; }
figure img { display: block; width: 100%; height: auto; object-fit: contain; object-position: top left; }
figcaption { margin-top: 12px; }
dl { margin: 32px 0; border-top: 1px solid var(--night-rule); }
dt { margin-top: 16px; font-size: var(--text-meta); }
dd { margin: 4px 0 16px; }
.source { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding-block: 10px; }
@media (max-width: 700px) {
  main { padding-top: 28px; }
  .night-layout { grid-template-columns: 1fr; margin-top: 24px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
