/* Friedmann Web & Games — Design Tokens (aus dem Design System, Stand 20.11.2026)
   Hell ist Standard. Dunkel greift über das System (prefers-color-scheme) oder data-theme="dark" auf <html>.
   Schriften: SIL Open Font License 1.1, selbst gehostet (siehe fonts/LICENSES.txt). */

@font-face { font-family: "Bricolage Grotesque"; src: url("fonts/bricolage-grotesque-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Bricolage Grotesque"; src: url("fonts/bricolage-grotesque-latin-800-normal.woff2") format("woff2"); font-weight: 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("fonts/instrument-sans-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("fonts/instrument-sans-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("fonts/instrument-sans-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Jersey 10"; src: url("fonts/jersey-10-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }

:root {
  color-scheme: light;
  --surface: #f4f3f8;
  --surface-raised: #ffffff;
  --line: #d9d6e5;
  --ink: #1d1838;
  --ink-muted: #5c5875;
  --brand: #352879;
  --on-brand: #ffffff;
  --krake: #c2416a;
  --on-krake: #ffffff;
  --focus: var(--krake);
  --krake-body: #f07c93;
  --krake-light: #f9b8c6;
  --gold: #e0b13c;
  --gold-dark: #a97a1f;
  --ink-on-gold: #1d1838;
  --success: #2f7d4f;
  --danger: #b3261e;
  --shadow-pixel: 4px 4px 0 #352879;
  --shadow-pixel-krake: 4px 4px 0 #c2416a;

  --font-display: "Bricolage Grotesque", "Instrument Sans", system-ui, sans-serif;
  --font-sans: "Instrument Sans", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
  --font-pixel: "Jersey 10", "IBM Plex Mono", monospace;

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-6: 24px;
  --space-8: 32px;
  --space-12: 48px;
  --space-16: 64px;
  --radius-none: 0px;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 24px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --surface: #16132c;
    --surface-raised: #1f1b3a;
    --line: #34305a;
    --ink: #eeedf7;
    --ink-muted: #a9a5c8;
    --brand: #a79bf5;
    --on-brand: #16132c;
    --krake: #f07c93;
    --on-krake: #16132c;
    --gold: #e9c15a;
    --success: #6fcf97;
    --danger: #f2a097;
    --shadow-pixel: 4px 4px 0 #a79bf5;
    --shadow-pixel-krake: 4px 4px 0 #f07c93;
  }
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --surface: #16132c;
  --surface-raised: #1f1b3a;
  --line: #34305a;
  --ink: #eeedf7;
  --ink-muted: #a9a5c8;
  --brand: #a79bf5;
  --on-brand: #16132c;
  --krake: #f07c93;
  --on-krake: #16132c;
  --gold: #e9c15a;
  --success: #6fcf97;
  --danger: #f2a097;
  --shadow-pixel: 4px 4px 0 #a79bf5;
  --shadow-pixel-krake: 4px 4px 0 #f07c93;
}

/* Schriftstile */
.display { font-family: var(--font-display); font-size: 64px; line-height: 64px; font-weight: 800; letter-spacing: -0.02em; }
.h1 { font-family: var(--font-display); font-size: 44px; line-height: 48px; font-weight: 800; letter-spacing: -0.015em; }
.h2 { font-family: var(--font-display); font-size: 30px; line-height: 36px; font-weight: 700; }
.h3 { font-family: var(--font-display); font-size: 22px; line-height: 28px; font-weight: 700; }
.lead { font-family: var(--font-sans); font-size: 20px; line-height: 30px; font-weight: 400; }
.body { font-family: var(--font-sans); font-size: 17px; line-height: 27px; font-weight: 400; }
.small { font-family: var(--font-sans); font-size: 14px; line-height: 20px; font-weight: 500; }
.label { font-family: var(--font-mono); font-size: 13px; line-height: 16px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; }
.code { font-family: var(--font-mono); font-size: 15px; line-height: 22px; font-weight: 400; }
.pixel-display { font-family: var(--font-pixel); font-size: 72px; line-height: 64px; font-weight: 400; }
.pixel-heading { font-family: var(--font-pixel); font-size: 40px; line-height: 36px; font-weight: 400; }
