/* Gemeinsame Basis für alle Experimente.
   Bewusst minimal — das Interessante passiert im Canvas.

   Setzt "GT Walsheim" voraus: fonts.css muss davor eingebunden sein. */

:root {
  --bg: #0a0a0a;
  --fg: #f5f5f5;
  --muted: #8a8a8a;
  --line: #262626;
  --accent: #e8ff45;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
  height: 100%;
  background: var(--bg);
  color: var(--fg);
  font-family: "GT Walsheim", -apple-system, "Helvetica Neue", sans-serif;
  font-weight: 300;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Vollflächiger Canvas — der Normalfall für ein Experiment */
canvas.stage {
  display: block;
  width: 100%;
  height: 100%;
  position: fixed;
  inset: 0;
  touch-action: none;
}

/* Kleines Overlay für Titel/Hinweise über dem Canvas */
.hud {
  position: fixed;
  top: 1.5rem;
  left: 1.5rem;
  z-index: 10;
  pointer-events: none;
  mix-blend-mode: difference;
}
.hud h1 { font-size: 16px; font-weight: 400; letter-spacing: 0.04em; }
.hud p  { color: var(--muted); font-size: 14px; }
.hud a  { pointer-events: auto; }

/* Listen-Layout (Lab-Übersicht) */
.wrap {
  max-width: 46rem;
  margin: 0 auto;
  padding: 4rem 1.5rem;
}
.wrap h1 { font-size: 16px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.wrap .sub { color: var(--muted); margin-bottom: 3rem; }

ul.experiments { list-style: none; border-top: 1px solid var(--line); }
ul.experiments li { border-bottom: 1px solid var(--line); }
ul.experiments a {
  display: flex;
  gap: 1rem;
  align-items: baseline;
  padding: 1rem 0;
  color: var(--fg);
}
ul.experiments a:hover { color: var(--accent); text-decoration: none; }
ul.experiments .num { color: var(--muted); font-size: 14px; min-width: 3rem; font-variant-numeric: tabular-nums; }
ul.experiments .desc { color: var(--muted); font-size: 14px; margin-left: auto; text-align: right; }

footer { margin-top: 3rem; color: var(--muted); font-size: 14px; }

/* Auch Pfade und Codefragmente in der Hausschrift — Browser würden hier
   sonst auf ihre Monospace-Vorgabe zurückfallen. Statt der Schriftart
   markiert eine leichte Fläche, dass es sich um Code handelt. */
code, kbd, pre {
  font-family: inherit;
  font-variant-numeric: tabular-nums;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 3px;
  padding: 0.1em 0.35em;
  color: var(--fg);
}

@media (max-width: 34rem) {
  ul.experiments a { flex-wrap: wrap; gap: 0.25rem 1rem; }
  ul.experiments .desc { margin-left: 0; text-align: left; width: 100%; }
}

/* Auf Mobilgeräten (Touch oder schmaler Screen) keine HUD-Texte —
   nur Absätze mit class="nav" (der zurück-Link) bleiben stehen. */
@media (max-width: 900px), (pointer: coarse) {
  .hud h1, .hud p:not(.nav) { display: none !important; }
}
