/* tokens.css — einzige Quelle für Farbe, Bewegung, Raster, Abstand und Schriftstufen von nh40.house und Schrift-Grundlage (@font-face, Elementregeln).
   Herkunft: Memo workspace/docs/2026-11-05-nh40-design-schaerfen-fable.md, §3, §4 und §9; Etappe 3.
   Wird auf jeder Seite als ERSTES Stylesheet geladen. Kein anderes Stylesheet deklariert :root. */
:root {
  color-scheme: light only;

  /* Farbe. Alabaster und Sandstein sind die Werte, die live auf allen 24 Seiten wirken
     (bis Etappe 3 setzte seite-alle-3.css sie zuletzt). Graphit-Stufen 80/70/40/20/05
     laufen in Etappe 5 aus; Ziel laut Memo §4 sind nur Graphit-60 und Graphit-10. */
  --alabaster: #FDFDFB;
  --sandstein: #F8F7F3;
  --graphit: #1A1A17;
  --graphit-80: #1A1A17CC;
  --graphit-70: #1A1A17B3;
  --graphit-60: #1A1A17A1;
  --graphit-40: #1A1A1766;
  --graphit-20: #1A1A1733;
  --graphit-10: #1A1A171A;
  --graphit-05: #1A1A170D;

  /* Bewegung */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);

  /* Raster (Memo §4): Inhalt 1200 px; Rand 20 px bei 390, 40 px ab 1024, dazwischen fließend;
     Spaltenabstand 20 px bei 390, 32 px bei 1440. */
  --inhalt: 75rem;
  --rand: clamp(1.25rem, 0.48rem + 3.155vw, 2.5rem);
  --inhalt-aussen: calc(var(--inhalt) + 2 * var(--rand));
  --spalten-abstand: clamp(1.25rem, 0.971rem + 1.143vw, 2rem);
  --container-narrow: 760px;

  /* Abstand (Memo §4), 8-px-Basis; Sektion 96 px bei 390, 160 px bei 1440.
     In Gebrauch ab Etappe 5 (Bauteile); --raum-* sind die bestehenden Werte der Wohnungsseiten. */
  --abstand-1: 0.5rem;
  --abstand-2: 1rem;
  --abstand-3: 1.5rem;
  --abstand-4: 2.5rem;
  --abstand-5: 4rem;
  --abstand-6: 6rem;
  --abstand-7: 10rem;
  --sektion: clamp(6rem, 4.514rem + 6.095vw, 10rem);
  --raum-sektion: 5.5rem;
  --raum-kapitel: 9rem;

  /* Schriftstufen (Memo §3, Ausnahmen §9: Überschriften Inter Tight 600, Plakat, Kennzahl-Kopf).
     In Gebrauch ab Etappe 4. Fließend zwischen 390 und 1440 px. */
  --typ-plakat: clamp(5.5rem, 1.6rem + 16vw, 16rem);
  --typ-display: clamp(2.4rem, 1.62rem + 3.2vw, 4.5rem);
  --typ-titel: clamp(1.75rem, 1.379rem + 1.524vw, 2.75rem);
  --typ-kennzahl-kopf: clamp(3rem, 2.071rem + 3.81vw, 5.5rem);
  --typ-kennzahl: clamp(1.5rem, 1.314rem + 0.762vw, 2rem);
  --typ-zwischentitel: clamp(1.15rem, 1.076rem + 0.305vw, 1.35rem);
  --typ-lead: clamp(1.1rem, 1.044rem + 0.229vw, 1.25rem);
  --typ-text: clamp(1rem, 0.977rem + 0.095vw, 1.0625rem);
  --typ-klein: 0.8125rem;
  --typ-etikett: 0.6875rem;
  --typ-mikro: 0.75rem;   /* bestehend: harte Untergrenze 12 px */
  --gewicht-titel: 600;
  --gewicht-betont: 500;
  --gewicht-text: 400;
}

@media (max-width: 720px) {
  :root {
    --raum-sektion: 3.25rem;
    --raum-kapitel: 5rem;
  }
}

/* Schrift-Grundlage (Memo §3 und §9): drei Schnitte, kein Kursiv. @font-face steht nur hier. */
@font-face {
  font-family: 'Inter';
  src: url('/fonts/inter-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('/fonts/inter-500.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter Tight';
  src: url('/fonts/inter-tight-600.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
html { font-synthesis: none; }
em, i, cite, address, dfn, var { font-style: normal; }
b, strong, th, h1, h2, h3, h4, h5, h6 { font-weight: 500; }
