/* Tokeny wizualne Poczty StudioOleszek: kolory i kroje pisma ze strony studiooleszek.pl (papier, atrament, bursztyn). */
@font-face { font-family: 'Fraunces Variable'; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url('../fonty/fraunces-latin-ext-wght-normal.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: 'Fraunces Variable'; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url('../fonty/fraunces-latin-wght-normal.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: 'Instrument Sans Variable'; font-style: normal; font-display: swap; font-weight: 400 700;
  src: url('../fonty/instrument-sans-latin-ext-wght-normal.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: 'Instrument Sans Variable'; font-style: normal; font-display: swap; font-weight: 400 700;
  src: url('../fonty/instrument-sans-latin-wght-normal.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 {
  color-scheme: light;
  /* paleta studia, jasny motyw "papier" */
  --paper: #fbf7f0; --paper-2: #f4ede1; --paper-3: #eadfcb;
  --ink: #1e1a16; --ink-2: #4a423a; --ink-3: #6b6155;
  --line: #e4dac8; --line-2: #d3c6ad;
  --amber: #b45309; --amber-fill: #d97706; --amber-soft: #fbbf24;
  --forest: #047857; --rose: #e11d48; --sky: #0369a1; --danger: #b91c1c;

  /* role w interfejsie */
  --tlo: var(--paper-2);
  --karta: #fffdf8;
  --karta-przeczytana: #f8f2e6;
  --powierzchnia: #fffdf8;
  --powierzchnia-2: var(--paper);
  --pole: var(--paper-3);
  --tekst: var(--ink); --tekst2: var(--ink-2); --tekst3: var(--ink-3);
  --linia: var(--line); --linia2: var(--line-2);
  --akcent: var(--amber-fill); --akcent-tekst: #1e1a16; --akcent-link: #96470a; --akcent-tlo: #fdeccb;
  --zaznaczenie: #fbe6b6; --zaznaczenie-linia: #e3a23a; --hover: #f2eadb; --aktywna-nav: #ecdfc6;
  --gwiazdka: #b86a00; --wazne: #c2410c;
  --fokus: #b45309;
  --sukces: var(--forest); --blad: var(--danger); --info: var(--sky);
  --ostrzezenie-tlo: #fff1d1; --ostrzezenie-linia: #e4b252;
  --cien-1: 0 1px 2px #1e1a160f, 0 2px 8px -2px #1e1a1614;
  --cien-2: 0 10px 30px -12px #1e1a1647;
  --cien-3: 0 24px 60px -20px #1e1a1659;
  --cien-wiersza: 0 1px 2px #1e1a1630, 0 1px 4px 1px #1e1a1618;
  --r-karta: 16px; --r-napisz: 16px; --r-chip: 8px; --r-pole: 24px;
  --font-sans: 'Instrument Sans Variable', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-display: 'Fraunces Variable', Georgia, 'Times New Roman', serif;
  --ruch: cubic-bezier(0.2, 0, 0, 1); --ruch-wejscie: cubic-bezier(0.05, 0.7, 0.1, 1);
  --h-topbar: 64px; --w-nav: 256px; --w-rail: 56px; --w-panel: 340px;
  --h-wiersz: 52px;
}

:root[data-motyw='ciemny'] {
  color-scheme: dark;
  --paper: #14120f; --paper-2: #1c1915; --paper-3: #262119;
  --ink: #f2ece2; --ink-2: #cfc5b6; --ink-3: #a89d8d;
  --line: #2e2822; --line-2: #3c352d;
  --amber: #f5a524; --amber-fill: #f59e0b; --amber-soft: #fcd34d;
  --forest: #34d399; --rose: #fb7185; --sky: #38bdf8; --danger: #f87171;
  --tlo: #0f0d0b;
  --karta: #1a1713;
  --karta-przeczytana: #15130f;
  --powierzchnia: #211d17;
  --powierzchnia-2: #1c1915;
  --pole: #262119;
  --akcent: var(--amber-fill); --akcent-tekst: #1e1a16; --akcent-link: #fbbf24; --akcent-tlo: #3a2a12;
  --zaznaczenie: #3d2d13; --zaznaczenie-linia: #b9791a; --hover: #25201a; --aktywna-nav: #34290f;
  --gwiazdka: #fbbf24; --wazne: #fb923c;
  --fokus: #fbbf24;
  --ostrzezenie-tlo: #3a2c12; --ostrzezenie-linia: #8a6a26;
  --cien-1: 0 1px 2px #0006, 0 2px 8px -2px #00000080;
  --cien-2: 0 10px 30px -12px #000000a6;
  --cien-3: 0 24px 60px -20px #000000bf;
  --cien-wiersza: 0 1px 2px #00000090, 0 1px 4px 1px #00000050;
}

:root[data-gestosc='domyslna'] { --h-wiersz: 56px; }
:root[data-gestosc='wygodna'] { --h-wiersz: 44px; }
:root[data-gestosc='kompaktowa'] { --h-wiersz: 36px; }

/* paleta etykiet: tło, tekst, kropka */
.etk-bursztyn { --e-bg: #fde9bf; --e-fg: #6e3504; --e-dot: #d97706; }
.etk-las { --e-bg: #cfeedd; --e-fg: #064e3b; --e-dot: #059669; }
.etk-roza { --e-bg: #fcd5dc; --e-fg: #8f0f33; --e-dot: #e11d48; }
.etk-niebo { --e-bg: #cfe8f8; --e-fg: #064a73; --e-dot: #0284c7; }
.etk-fiolet { --e-bg: #e4dbf8; --e-fg: #4c1d95; --e-dot: #7c3aed; }
.etk-morski { --e-bg: #c7ece9; --e-fg: #0f4f4b; --e-dot: #0d9488; }
.etk-glina { --e-bg: #ecd9c9; --e-fg: #5e2d0f; --e-dot: #a8501f; }
.etk-lupek { --e-bg: #dfe3e8; --e-fg: #2b3646; --e-dot: #64748b; }
.etk-oliwka { --e-bg: #e3e8c4; --e-fg: #38420d; --e-dot: #84951a; }
.etk-sliwka { --e-bg: #f1d3ea; --e-fg: #5f1452; --e-dot: #a21caf; }
:root[data-motyw='ciemny'] .etk-bursztyn { --e-bg: #4a3410; --e-fg: #fde68a; --e-dot: #f59e0b; }
:root[data-motyw='ciemny'] .etk-las { --e-bg: #123d2e; --e-fg: #a7f3d0; --e-dot: #34d399; }
:root[data-motyw='ciemny'] .etk-roza { --e-bg: #4c1d2a; --e-fg: #fecdd3; --e-dot: #fb7185; }
:root[data-motyw='ciemny'] .etk-niebo { --e-bg: #0f3550; --e-fg: #bae6fd; --e-dot: #38bdf8; }
:root[data-motyw='ciemny'] .etk-fiolet { --e-bg: #2e2250; --e-fg: #ddd6fe; --e-dot: #a78bfa; }
:root[data-motyw='ciemny'] .etk-morski { --e-bg: #0f3d3a; --e-fg: #99f6e4; --e-dot: #2dd4bf; }
:root[data-motyw='ciemny'] .etk-glina { --e-bg: #4a2c1a; --e-fg: #fed7aa; --e-dot: #fb923c; }
:root[data-motyw='ciemny'] .etk-lupek { --e-bg: #2b3340; --e-fg: #cbd5e1; --e-dot: #94a3b8; }
:root[data-motyw='ciemny'] .etk-oliwka { --e-bg: #353c10; --e-fg: #d9f99d; --e-dot: #a3b73a; }
:root[data-motyw='ciemny'] .etk-sliwka { --e-bg: #4a1a44; --e-fg: #f5d0fe; --e-dot: #d946ef; }

/* awatary: biały tekst na ciemnych barwach (kontrast co najmniej 4,5:1) */
.av-0 { background: #a14a08; } .av-1 { background: #047857; } .av-2 { background: #be123c; } .av-3 { background: #0369a1; } .av-4 { background: #6d28d9; }
.av-5 { background: #0f766e; } .av-6 { background: #9a3412; } .av-7 { background: #475569; } .av-8 { background: #4d7c0f; } .av-9 { background: #a21caf; }

/* statusy wątków */
.st-nowe { --s-bg: #fbdada; --s-fg: #8c1111; }
.st-trakcie { --s-bg: #cfe8f8; --s-fg: #064a73; }
.st-czeka { --s-bg: #fde9bf; --s-fg: #6e3504; }
.st-zalatwione { --s-bg: #cfeedd; --s-fg: #064e3b; }
:root[data-motyw='ciemny'] .st-nowe { --s-bg: #4c1d1d; --s-fg: #fecaca; }
:root[data-motyw='ciemny'] .st-trakcie { --s-bg: #0f3550; --s-fg: #bae6fd; }
:root[data-motyw='ciemny'] .st-czeka { --s-bg: #4a3410; --s-fg: #fde68a; }
:root[data-motyw='ciemny'] .st-zalatwione { --s-bg: #123d2e; --s-fg: #a7f3d0; }
