/* fituj — tokeny marki (docs/BRAND.md). Wszystko dalej odwołuje się tylko do nich. */

@font-face { font-family: 'Instrument Serif'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('/fonts/instrument-serif-latin-400-normal.woff2') format('woff2');
  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: 'Instrument Serif'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('/fonts/instrument-serif-latin-ext-400-normal.woff2') format('woff2');
  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: 'Instrument Serif'; font-style: italic; font-weight: 400; font-display: swap;
  src: url('/fonts/instrument-serif-latin-400-italic.woff2') format('woff2');
  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: 'Instrument Serif'; font-style: italic; font-weight: 400; font-display: swap;
  src: url('/fonts/instrument-serif-latin-ext-400-italic.woff2') format('woff2');
  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: 'Geist'; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url('/fonts/geist.woff2') format('woff2'); }
@font-face { font-family: 'Geist Mono'; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url('/fonts/geist-mono.woff2') format('woff2'); }

/* Cyrylica (uk, ru): Instrument Serif nie ma cyrylicy — przeglądarka bierze te znaki z Cormorant Garamond (OFL). */
@font-face { font-family: 'Cormorant Garamond'; font-style: normal; font-weight: 400; font-display: swap; size-adjust: 104%;
  src: url('/fonts/cormorant-garamond-cyrillic-400-normal.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Cormorant Garamond'; font-style: normal; font-weight: 400; font-display: swap; size-adjust: 104%;
  src: url('/fonts/cormorant-garamond-cyrillic-ext-400-normal.woff2') format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: 'Cormorant Garamond'; font-style: italic; font-weight: 400; font-display: swap; size-adjust: 104%;
  src: url('/fonts/cormorant-garamond-cyrillic-400-italic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Cormorant Garamond'; font-style: italic; font-weight: 400; font-display: swap; size-adjust: 104%;
  src: url('/fonts/cormorant-garamond-cyrillic-ext-400-italic.woff2') format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }

:root {
  color-scheme: light dark;
  --paper: #F4F0EA;
  --card: #FBF9F6;
  --line: #E2DCD3;
  --ink: #161513;
  --muted: #6E6A63;
  --accent: #C2410C;
  --ok: #3F7D58;
  --err: #B42318;
  --warn: #B7791F;
  --field-dark: #161513;      /* pole „tusz” na stronie publicznej */
  --on-field: #F4F0EA;        /* tekst na tym polu */
  --sunk: #ECE6DD;            /* krok tonu poniżej papieru */
  --scrim: rgb(22 21 19 / .55);

  /* paleta pomocnicza (kafelki póz/scen, ilustracje, onboarding, wykresy) */
  --peach: #F6C9B0;
  --rose: #EFC3CC;
  --sage: #BFD3C1;
  --sky: #BCD3E6;
  --lavender: #D3C8E8;
  --butter: #F3E2A9;
  --tint: 100%;               /* krycie pasteli: 100% w jasnym, ~30% w ciemnym */

  --serif: 'Instrument Serif', 'Cormorant Garamond', 'Iowan Old Style', Georgia, serif;
  --sans: 'Geist', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'Geist Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  --r-card: 14px;
  --r-pill: 999px;
  --r-field: 10px;

  --t-fast: 150ms;
  --t-ui: 220ms;
  --ease-out: cubic-bezier(.2, .7, .2, 1);

  --gutter: clamp(16px, 2.4vw, 32px);
  --maxw: 1360px;

  /* pięć stopni typografii aplikacji */
  --fs-small: 14px;
  --fs-body: 16px;
  --fs-lead: 19px;
  --fs-title: clamp(28px, 3.2vw, 40px);
  --fs-display: clamp(44px, 6vw, 84px);
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #121110;
    --card: #1B1A18;
    --line: #2C2A27;
    --ink: #F4F0EA;
    --muted: #A39E96;
    --accent: #E8692E;
    --ok: #6FB58A;
    --err: #F0796C;
    --warn: #E0A84A;
    --field-dark: #1B1A18;
    --on-field: #F4F0EA;
    --sunk: #0C0B0A;
    --scrim: rgb(0 0 0 / .6);
    --tint: 30%;
  }
}
