/*
 * Theme-independent design tokens (fonts, sizes, radii, spacing).
 * Colours live in theme-*.css. Components (app.css, templates) use only var(--…).
 * Style guide: .claude/skills/wyglad/SKILL.md · mockup: docs/design/makieta/
 */

/* Fonts: local copies (tracker/static/vendor/fonts, OFL-1.1), never a CDN. */
@font-face {
  font-family: "Urbanist Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("../vendor/fonts/urbanist-latin-ext-wght-normal.b8a7eec47ee7.woff2") format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308,
    U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113,
    U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Urbanist Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("../vendor/fonts/urbanist-latin-wght-normal.aa575f0b6551.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304,
    U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "JetBrains Mono Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 800;
  src: url("../vendor/fonts/jetbrains-mono-latin-ext-wght-normal.e36841ed93d5.woff2") format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308,
    U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113,
    U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "JetBrains Mono Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 800;
  src: url("../vendor/fonts/jetbrains-mono-latin-wght-normal.b058178d7f30.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304,
    U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* Type */
  --font-body: "Urbanist Variable", system-ui, sans-serif;
  --font-mono: "JetBrains Mono Variable", ui-monospace, monospace;
  --fs-2xs: 10.5px;
  --fs-xs: 11px;
  --fs-sm: 12.5px;
  --fs-md: 14px;
  --fs-lg: 16px;
  --fs-xl: 20px;
  --fs-title: 24px;
  --fs-kpi: 22px;
  --tracking-nav: 0.1em;      /* top menu, uppercase */
  --tracking-label: 0.14em;   /* section labels, uppercase */
  --tracking-th: 0.06em;      /* table headers, uppercase */
  --tracking-title: -0.015em;
  --weight-regular: 500;
  --weight-strong: 600;
  --weight-bold: 700;
  --weight-heavy: 800;

  /* Shapes */
  --radius-lg: 18px;          /* cards, tables */
  --radius-md: 13px;          /* fields, inner tiles */
  --radius-sm: 9px;           /* icon chips */
  --radius-xs: 6px;           /* kbd, tokens */
  --radius-pill: 999px;
  --button-radius: var(--radius-pill);
  --button-height: 28px;
  --button-height-lg: 36px;
  --segment-height: 22px;
  --field-height: 36px;
  --pill-height: 24px;
  --status-pill-width: 9.25rem; /* longest label: „Do weryfikacji” */
  --dot-size: 7px;
  --stripe-width: 2px;        /* status stripe at the left edge of a row */

  /* Layout and density */
  --header-height: 64px;
  --page-gutter: 28px;
  --row-height: 36px;
  --gap-xs: 4px;
  --gap-sm: 8px;
  --gap-md: 12px;
  --gap-lg: 16px;
  --gap-xl: 24px;
  --matrix-model-width: 272px;
  --matrix-cell-width: 112px;
}

@media (max-width: 720px) {
  :root {
    --page-gutter: 16px;
  }
}
