/* TrainLog — токены дизайн-системы «Мел и железо» (docs/DESIGN.md). */

@font-face { font-family: 'Unbounded'; font-weight: 400 900; font-display: swap;
  src: url(../fonts/unbounded-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Unbounded'; font-weight: 400 900; font-display: swap;
  src: url(../fonts/unbounded-latin.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: 'Manrope'; font-weight: 200 800; font-display: swap;
  src: url(../fonts/manrope-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Manrope'; font-weight: 200 800; font-display: swap;
  src: url(../fonts/manrope-latin.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; }

:root {
  --font-ui: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Unbounded', 'Manrope', system-ui, sans-serif;

  --fs-xs: 12px; --fs-sm: 13px; --fs-md: 15px; --fs-base: 16px; --fs-lg: 18px;
  --fs-xl: 22px; --fs-2xl: 28px; --fs-hero: clamp(30px, 9vw, 44px);

  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 20px; --s6: 24px; --s8: 32px; --s10: 40px; --s14: 56px;
  --gutter: 16px;
  --r-sm: 8px; --r-md: 12px; --r-lg: 16px; --r-xl: 24px; --r-pill: 999px;
  --tap: 44px; --tap-lg: 56px;
  --nav-h: 64px;

  --ease: cubic-bezier(.2, .8, .2, 1);
  --t-fast: 120ms; --t-mid: 200ms; --t-slow: 320ms;

  /* цвета олимпийских блинов — одинаковы в обеих темах */
  --plate-25: #E5484D; --plate-20: #3E7BFA; --plate-15: #F5C518; --plate-10: #30A46C;
  --plate-5: #ECECEC; --plate-2: #2B2B2B; --plate-1: #B8BCC2;

  color-scheme: dark;
  --bg: #0B0C0E; --surface: #141619; --surface-2: #1C1F23; --surface-3: #262A2F;
  --line: #2A2F35; --line-strong: #6B727B;
  --text: #F3F2EE; --text-2: #B3B8BF; --text-3: #858B93;
  --accent: #D4FF3F; --on-accent: #0B0C0E; --accent-ink: #D4FF3F; --accent-edge: transparent;
  --accent-soft: rgb(212 255 63 / .13);
  --danger: #FF6B6B; --danger-soft: rgb(255 107 107 / .14);
  --warn: #FFB547; --warn-soft: rgb(255 181 71 / .14);
  --c-a: #72A9FF; --c-a-soft: rgb(114 169 255 / .15);
  --c-b: #FF9A5C; --c-b-soft: rgb(255 154 92 / .15);
  --c-kcal: #FFCB47; --c-kcal-soft: rgb(255 203 71 / .14);
  --c-prot: #C3A2FF; --c-prot-soft: rgb(195 162 255 / .15);
  --c-aqua: #4FD8EB; --c-aqua-soft: rgb(79 216 235 / .14);
  --highlight: inset 0 1px 0 rgb(255 255 255 / .045);
  --shadow-float: 0 12px 40px rgb(0 0 0 / .55), 0 2px 8px rgb(0 0 0 / .4);
  --scrim: rgb(0 0 0 / .6);
  --grid: rgb(255 255 255 / .06);
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    color-scheme: light;
    --bg: #F2F1EC; --surface: #FFFFFF; --surface-2: #F6F5F1; --surface-3: #EAE8E2;
    --line: #E3E0D8; --line-strong: #8F8B80;
    --text: #131518; --text-2: #474C54; --text-3: #646A73;
    --accent: #C8F53A; --on-accent: #131518; --accent-ink: #4A6E00; --accent-edge: #6A8700;
    --accent-soft: rgb(120 170 0 / .14);
    --danger: #C8282E; --danger-soft: rgb(200 40 46 / .1);
    --warn: #A15C00; --warn-soft: rgb(210 130 0 / .13);
    --c-a: #1F5FD1; --c-a-soft: rgb(31 95 209 / .1);
    --c-b: #B8480C; --c-b-soft: rgb(220 90 20 / .11);
    --c-kcal: #8A5C00; --c-kcal-soft: rgb(230 170 20 / .16);
    --c-prot: #6C3FD6; --c-prot-soft: rgb(108 63 214 / .1);
    --c-aqua: #00798A; --c-aqua-soft: rgb(0 150 170 / .11);
    --highlight: 0 1px 2px rgb(20 20 10 / .06);
    --shadow-float: 0 12px 40px rgb(30 30 20 / .18), 0 2px 8px rgb(30 30 20 / .1);
    --scrim: rgb(20 20 15 / .4);
    --grid: rgb(0 0 0 / .07);
  }
}
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #F2F1EC; --surface: #FFFFFF; --surface-2: #F6F5F1; --surface-3: #EAE8E2;
  --line: #E3E0D8; --line-strong: #8F8B80;
  --text: #131518; --text-2: #474C54; --text-3: #646A73;
  --accent: #C8F53A; --on-accent: #131518; --accent-ink: #4A6E00; --accent-edge: #6A8700;
  --accent-soft: rgb(120 170 0 / .14);
  --danger: #C8282E; --danger-soft: rgb(200 40 46 / .1);
  --warn: #A15C00; --warn-soft: rgb(210 130 0 / .13);
  --c-a: #1F5FD1; --c-a-soft: rgb(31 95 209 / .1);
  --c-b: #B8480C; --c-b-soft: rgb(220 90 20 / .11);
  --c-kcal: #8A5C00; --c-kcal-soft: rgb(230 170 20 / .16);
  --c-prot: #6C3FD6; --c-prot-soft: rgb(108 63 214 / .1);
  --c-aqua: #00798A; --c-aqua-soft: rgb(0 150 170 / .11);
  --highlight: 0 1px 2px rgb(20 20 10 / .06);
  --shadow-float: 0 12px 40px rgb(30 30 20 / .18), 0 2px 8px rgb(30 30 20 / .1);
  --scrim: rgb(20 20 15 / .4);
  --grid: rgb(0 0 0 / .07);
}

@media (min-width: 600px) { :root { --gutter: 24px; } }
@media (min-width: 1024px) { :root { --gutter: 32px; } }
