/* Portfolio — Tokens aus dem Designsystem „Portfolio“ (tokens.json), als CSS.
   Reihenfolge: tokens.css, dann components.css, dann site.css. */

/* Hanken Grotesk, Copyright 2021 The Hanken Grotesk Project Authors.
   SIL Open Font License 1.1, https://openfontlicense.org — lokal ausgeliefert, kein Google-Fonts-Abruf. */
@font-face {
  font-family: "Hanken Grotesk";
  src: url("../fonts/HankenGrotesk-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;

  /* Farbe — Light */
  --surface: #efefef;
  --surface-sunken: #e4e4e4;
  --surface-inverse: #111111;
  --ink: #111111;
  --ink-muted: #595959;
  --ink-inverse: #efefef;
  --ink-inverse-muted: #b0b0b0;
  --line: #111111;
  --line-subtle: #cfcfcf;
  --error: #a8190f;
  --focus: var(--ink);
  --focus-inverse: var(--ink-inverse);

  /* Typografie */
  --font-sans: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;

  /* Raum, Basis 4px */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;
  --space-10: 128px;
  --space-11: 192px;

  /* Radius, Kontur, Layout */
  --radius-none: 0;
  --radius-round: 50%;
  --stroke-hair: 1px;
  --stroke-strong: 2px;
  --page-margin: 24px;
  --content-max: 1600px;
  --measure: 60ch;
}

/* Farbe — Dark: spiegelt Light */
:root[data-theme="dark"] {
  color-scheme: dark;
  --surface: #111111;
  --surface-sunken: #1c1c1c;
  --surface-inverse: #efefef;
  --ink: #efefef;
  --ink-muted: #a6a6a6;
  --ink-inverse: #111111;
  --ink-inverse-muted: #595959;
  --line: #efefef;
  --line-subtle: #343434;
  --error: #ff9d93;
}

/* Ohne JavaScript folgt die Seite der Systemeinstellung */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --surface: #111111;
    --surface-sunken: #1c1c1c;
    --surface-inverse: #efefef;
    --ink: #efefef;
    --ink-muted: #a6a6a6;
    --ink-inverse: #111111;
    --ink-inverse-muted: #595959;
    --line: #efefef;
    --line-subtle: #343434;
    --error: #ff9d93;
  }
}

/* Typstile */
.display-xl { font-family: var(--font-sans); font-size: 224px; line-height: 0.84; font-weight: 400; letter-spacing: -0.06em; }
.display-l  { font-family: var(--font-sans); font-size: 144px; line-height: 0.86; font-weight: 400; letter-spacing: -0.055em; }
.display-m  { font-family: var(--font-sans); font-size: 88px;  line-height: 0.92; font-weight: 400; letter-spacing: -0.045em; }
.heading-l  { font-family: var(--font-sans); font-size: 48px;  line-height: 1.02; font-weight: 400; letter-spacing: -0.035em; }
.heading-m  { font-family: var(--font-sans); font-size: 32px;  line-height: 1.1;  font-weight: 400; letter-spacing: -0.025em; }
.heading-s  { font-family: var(--font-sans); font-size: 22px;  line-height: 1.25; font-weight: 500; letter-spacing: -0.015em; }
.body-l     { font-family: var(--font-sans); font-size: 20px;  line-height: 1.45; font-weight: 400; letter-spacing: -0.01em; }
.body       { font-family: var(--font-sans); font-size: 16px;  line-height: 1.55; font-weight: 400; letter-spacing: -0.005em; }
.ui         { font-family: var(--font-sans); font-size: 14px;  line-height: 1.3;  font-weight: 400; letter-spacing: 0; }
.ui-strong  { font-family: var(--font-sans); font-size: 14px;  line-height: 1.3;  font-weight: 500; letter-spacing: 0; }
.meta       { font-family: var(--font-sans); font-size: 12px;  line-height: 1.4;  font-weight: 400; letter-spacing: 0.01em; }
