/* GENERATED by design/build-tokens.py from design/tokens.json - nie edytuj ręcznie.
   Użycie: <link rel="stylesheet" href=".../tokens.css"> + katalog fonts/ obok pliku.
   Motyw: domyślnie wg systemu; data-theme="light|dark" (na <html> lub kontenerze) wymusza tryb. */

@font-face {
  font-family: "Baloo 2";
  src: url("fonts/Baloo2-Variable.latin-ext.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Nunito";
  src: url("fonts/Nunito-Variable.latin-ext.woff2") format("woff2");
  font-weight: 200 1000;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  --tp-color-bg: #e4f1ec;
  --tp-color-surface: #ffffff;
  --tp-color-surface-variant: #edf5f2;
  --tp-color-surface-subtle: #f4f9f7;
  --tp-color-text: #1e3330;
  --tp-color-text-muted: #52706a;
  --tp-color-border: #cfe2db;
  --tp-color-border-subtle: #e3eeea;
  --tp-color-border-strong: #66847d;
  --tp-color-primary: #0b7262;
  --tp-color-on-primary: #ffffff;
  --tp-color-primary-container: #c9ece2;
  --tp-color-on-primary-container: #0a4a40;
  --tp-color-accent: #f29e0c;
  --tp-color-on-accent: #2a1a00;
  --tp-color-accent-strong: #8f5500;
  --tp-color-track: #e8f0ed;
  --tp-color-focus: #0b7262;
  --tp-color-ok: #2c9a5b;
  --tp-color-ok-bg: #dbf2e3;
  --tp-color-ok-fg: #1b653a;
  --tp-color-low: #f29e0c;
  --tp-color-low-bg: #ffecc7;
  --tp-color-low-fg: #7f4c00;
  --tp-color-off: #c2557e;
  --tp-color-off-bg: #f7dfe8;
  --tp-color-off-fg: #8a2c4f;
  --tp-color-free: #4a90d9;
  --tp-color-free-bg: #dcebfa;
  --tp-color-free-fg: #1f568c;
  --tp-color-error: #b42318;
  --tp-color-on-error: #ffffff;
  --tp-color-error-bg: #fde3df;
  --tp-color-error-fg: #8c1d13;
  --tp-color-pill-bg: rgba(255, 255, 255, 0.941);
  --tp-color-pill-fg: #1e3330;
  --tp-color-overlay-bg: rgba(13, 28, 25, 0.941);
  --tp-color-overlay-fg: #e5f2ee;
  --tp-shadow-card: 0 10px 30px -14px rgba(14, 60, 52, 0.35);
  --tp-shadow-pill: 0 6px 18px rgba(0, 0, 0, 0.25);
  --tp-font-display: "Baloo 2", "Nunito", system-ui, sans-serif;
  --tp-font-body: "Nunito", system-ui, "Segoe UI", "Roboto", "Noto Sans", sans-serif;
  --tp-font-numeric: var(--tp-font-display);
  --tp-font-size-xs: 0.75rem;
  --tp-font-size-sm: 0.875rem;
  --tp-font-size-md: 1rem;
  --tp-font-size-lg: 1.125rem;
  --tp-font-size-xl: 1.375rem;
  --tp-font-size-2xl: 1.75rem;
  --tp-font-size-3xl: 2.25rem;
  --tp-font-size-4xl: 3rem;
  --tp-font-size-5xl: 4rem;
  --tp-font-size-6xl: 5.25rem;
  --tp-font-weight-regular: 400;
  --tp-font-weight-semibold: 600;
  --tp-font-weight-bold: 700;
  --tp-font-weight-extrabold: 800;
  --tp-line-height-tight: 1.1;
  --tp-line-height-snug: 1.25;
  --tp-line-height-normal: 1.5;
  --tp-radius-sm: 14px;
  --tp-radius-md: 18px;
  --tp-radius-lg: 28px;
  --tp-radius-pill: 999px;
  --tp-space-1: 4px;
  --tp-space-2: 8px;
  --tp-space-3: 12px;
  --tp-space-4: 16px;
  --tp-space-5: 20px;
  --tp-space-6: 28px;
  --tp-space-7: 40px;
  --tp-space-8: 56px;
  --tp-size-touch-min: 48px;
  --tp-size-focus-width: 3px;
  --tp-size-focus-offset: 2px;
  --tp-size-border-width: 1px;
  --tp-size-status-dot: 10px;
  --tp-size-progress-bar: 14px;
  --tp-ring-md-size: 104px;
  --tp-ring-md-stroke: 12px;
  --tp-ring-lg-size: 200px;
  --tp-ring-lg-stroke: 22px;
  --tp-ring-linecap: round;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --tp-color-bg: #0d1c19;
    --tp-color-surface: #162a26;
    --tp-color-surface-variant: #213a35;
    --tp-color-surface-subtle: #1c332e;
    --tp-color-text: #e5f2ee;
    --tp-color-text-muted: #9dbab3;
    --tp-color-border: #284540;
    --tp-color-border-subtle: #213a35;
    --tp-color-border-strong: #6a8b84;
    --tp-color-primary: #45cdb2;
    --tp-color-on-primary: #062420;
    --tp-color-primary-container: #10483f;
    --tp-color-on-primary-container: #b5f0e2;
    --tp-color-accent: #ffb938;
    --tp-color-on-accent: #2a1a00;
    --tp-color-accent-strong: #ffb938;
    --tp-color-track: #213a35;
    --tp-color-focus: #45cdb2;
    --tp-color-ok: #4cc983;
    --tp-color-ok-bg: #1d3d2b;
    --tp-color-ok-fg: #96e3b5;
    --tp-color-low: #ffb938;
    --tp-color-low-bg: #48340f;
    --tp-color-low-fg: #ffd27e;
    --tp-color-off: #e07aa0;
    --tp-color-off-bg: #47232f;
    --tp-color-off-fg: #f6aecb;
    --tp-color-free: #6fb0f0;
    --tp-color-free-bg: #1b3450;
    --tp-color-free-fg: #a6d0ff;
    --tp-color-error: #ff8a80;
    --tp-color-on-error: #3b0905;
    --tp-color-error-bg: #4a1f1b;
    --tp-color-error-fg: #ffd2cc;
    --tp-color-pill-bg: rgba(22, 42, 38, 0.941);
    --tp-color-pill-fg: #e5f2ee;
    --tp-color-overlay-bg: rgba(13, 28, 25, 0.941);
    --tp-color-overlay-fg: #e5f2ee;
    --tp-shadow-card: 0 10px 30px -14px rgba(0, 0, 0, 0.6);
    --tp-shadow-pill: 0 6px 18px rgba(0, 0, 0, 0.5);
  }
}

/* data-theme działa na <html> i na dowolnym poddrzewie (np. podgląd obu trybów obok siebie). */
[data-theme="light"] {
  color-scheme: light;
  --tp-color-bg: #e4f1ec;
  --tp-color-surface: #ffffff;
  --tp-color-surface-variant: #edf5f2;
  --tp-color-surface-subtle: #f4f9f7;
  --tp-color-text: #1e3330;
  --tp-color-text-muted: #52706a;
  --tp-color-border: #cfe2db;
  --tp-color-border-subtle: #e3eeea;
  --tp-color-border-strong: #66847d;
  --tp-color-primary: #0b7262;
  --tp-color-on-primary: #ffffff;
  --tp-color-primary-container: #c9ece2;
  --tp-color-on-primary-container: #0a4a40;
  --tp-color-accent: #f29e0c;
  --tp-color-on-accent: #2a1a00;
  --tp-color-accent-strong: #8f5500;
  --tp-color-track: #e8f0ed;
  --tp-color-focus: #0b7262;
  --tp-color-ok: #2c9a5b;
  --tp-color-ok-bg: #dbf2e3;
  --tp-color-ok-fg: #1b653a;
  --tp-color-low: #f29e0c;
  --tp-color-low-bg: #ffecc7;
  --tp-color-low-fg: #7f4c00;
  --tp-color-off: #c2557e;
  --tp-color-off-bg: #f7dfe8;
  --tp-color-off-fg: #8a2c4f;
  --tp-color-free: #4a90d9;
  --tp-color-free-bg: #dcebfa;
  --tp-color-free-fg: #1f568c;
  --tp-color-error: #b42318;
  --tp-color-on-error: #ffffff;
  --tp-color-error-bg: #fde3df;
  --tp-color-error-fg: #8c1d13;
  --tp-color-pill-bg: rgba(255, 255, 255, 0.941);
  --tp-color-pill-fg: #1e3330;
  --tp-color-overlay-bg: rgba(13, 28, 25, 0.941);
  --tp-color-overlay-fg: #e5f2ee;
  --tp-shadow-card: 0 10px 30px -14px rgba(14, 60, 52, 0.35);
  --tp-shadow-pill: 0 6px 18px rgba(0, 0, 0, 0.25);
}

[data-theme="dark"] {
  color-scheme: dark;
  --tp-color-bg: #0d1c19;
  --tp-color-surface: #162a26;
  --tp-color-surface-variant: #213a35;
  --tp-color-surface-subtle: #1c332e;
  --tp-color-text: #e5f2ee;
  --tp-color-text-muted: #9dbab3;
  --tp-color-border: #284540;
  --tp-color-border-subtle: #213a35;
  --tp-color-border-strong: #6a8b84;
  --tp-color-primary: #45cdb2;
  --tp-color-on-primary: #062420;
  --tp-color-primary-container: #10483f;
  --tp-color-on-primary-container: #b5f0e2;
  --tp-color-accent: #ffb938;
  --tp-color-on-accent: #2a1a00;
  --tp-color-accent-strong: #ffb938;
  --tp-color-track: #213a35;
  --tp-color-focus: #45cdb2;
  --tp-color-ok: #4cc983;
  --tp-color-ok-bg: #1d3d2b;
  --tp-color-ok-fg: #96e3b5;
  --tp-color-low: #ffb938;
  --tp-color-low-bg: #48340f;
  --tp-color-low-fg: #ffd27e;
  --tp-color-off: #e07aa0;
  --tp-color-off-bg: #47232f;
  --tp-color-off-fg: #f6aecb;
  --tp-color-free: #6fb0f0;
  --tp-color-free-bg: #1b3450;
  --tp-color-free-fg: #a6d0ff;
  --tp-color-error: #ff8a80;
  --tp-color-on-error: #3b0905;
  --tp-color-error-bg: #4a1f1b;
  --tp-color-error-fg: #ffd2cc;
  --tp-color-pill-bg: rgba(22, 42, 38, 0.941);
  --tp-color-pill-fg: #e5f2ee;
  --tp-color-overlay-bg: rgba(13, 28, 25, 0.941);
  --tp-color-overlay-fg: #e5f2ee;
  --tp-shadow-card: 0 10px 30px -14px rgba(0, 0, 0, 0.6);
  --tp-shadow-pill: 0 6px 18px rgba(0, 0, 0, 0.5);
}
