/* base.css — Reset, Schrift, Fokus.
 *
 * Die Marken-Schriften werden HIER geladen. Ohne @font-face nimmt der
 * Browser, was zufällig auf dem Rechner liegt — auf dem Server liegt
 * nichts, und Pipe sähe dort aus wie ein Systemdialog. Genau dieselbe
 * Falle hatte die Uhr (#328), nur dass es dort niemandem auffiel.
 */

@font-face {
  font-family: Fraunces;
  src: url("/schrift/Fraunces-VariableFont_SOFT_WONK_opsz_wght.ttf") format("truetype-variations");
  font-weight: 300 700;
  font-display: swap;
}
@font-face {
  font-family: Fraunces;
  src: url("/schrift/Fraunces-Italic-VariableFont_SOFT_WONK_opsz_wght.ttf") format("truetype-variations");
  font-weight: 300 700;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "DM Sans";
  src: url("/schrift/DMSans-VariableFont_opsz_wght.ttf") format("truetype-variations");
  font-weight: 300 700;
  font-display: swap;
}
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.5;
  color: var(--text-body);
  background: var(--surface-page);
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
}

/* Fraunces trägt die Erzählung, DM Sans die Daten — dieselbe Trennung
   wie in der App. Zahlen immer tabellarisch, sonst springen Spalten. */
h1, h2, .erzaehlung {
  font-family: Fraunces, "Iowan Old Style", Georgia, serif;
  font-weight: 500;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}
h1 { font-size: 1.5rem; line-height: 1.15; }
h2 { font-size: 1.125rem; }

.zahl, td.zahl, .metrik__wert { font-variant-numeric: tabular-nums; }

a { color: var(--brand-1, var(--sky-500)); text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }

:focus-visible {
  outline: 2px solid var(--sky-500);
  outline-offset: 2px;
  border-radius: var(--radius-xs);
}

/* Wer Bewegung reduziert haben will, bekommt sie nicht. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

.visuell-versteckt {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
