/* Redline Ink design tokens (docs/02-ux-and-brand.md §Visual tokens).
   Components use these variables only, never raw colours.
   Fonts are self-hosted and split by Unicode range, so a Mongolian page loads
   the Cyrillic files and an English page does not. Both families were checked
   for the Mongolian letters Ө ө Ү ү (U+04E8/9, U+04AE/F). */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/inter-latin-wght-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: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/inter-latin-ext-wght-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: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/inter-cyrillic-wght-normal.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/inter-cyrillic-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: "Onest";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/onest-latin-wght-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: "Onest";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/onest-latin-ext-wght-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: "Onest";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/onest-cyrillic-wght-normal.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Onest";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/onest-cyrillic-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}

:root {
  color-scheme: light;
  --paper: #faf7f4;
  --surface: #ffffff;
  --surface-2: #f3eeea;
  --ink: #1c1718;
  --ink-muted: #6c6264;
  --line: #e6ddd8;
  --line-strong: #d3c7c1;
  --brand: #ef3c25;       /* the logo's red, exactly: logo, decoration, large type */
  --red: #d2341c;         /* same hue, deep enough for white text and links (AA 4.9:1) */
  --red-strong: #a8260f;
  --red-wash: #fdebe7;
  --on-red: #ffffff;
  --ok: #1e7a4c;
  --ok-wash: #e6f4ec;
  --warn: #a65f00;
  --warn-wash: #fdf1e0;
  --info: #1f5fa8;
  --info-wash: #e8f0fb;
  --checker-a: #ffffff;
  --checker-b: #ece6e2;
  --shadow: 0 1px 0 rgba(28, 23, 24, 0.04), 0 1px 3px rgba(28, 23, 24, 0.06);
  --shadow-lift: 0 2px 0 rgba(28, 23, 24, 0.04), 0 8px 24px rgba(28, 23, 24, 0.08);

  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Onest", "Inter", system-ui, sans-serif;
  --font-mono: ui-monospace, "Cascadia Mono", Consolas, "Liberation Mono", monospace;

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 72px;
  --radius: 10px;
  --radius-sm: 6px;
  --pill: 999px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --fast: 160ms;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --paper: #141112;
    --surface: #1d191a;
    --surface-2: #262122;
    --ink: #f3eeec;
    --ink-muted: #a89fa1;
    --line: #3a3334;
    --line-strong: #4a4243;
    --brand: #ef3c25;
    --red: #ff6b55;
    --red-strong: #ff8a75;
    --red-wash: #3a1d17;
    --on-red: #1a0604;
    --ok: #5fd39a;
    --ok-wash: #16281f;
    --warn: #f2b85b;
    --warn-wash: #2c2214;
    --info: #8db8f2;
    --info-wash: #182234;
    --checker-a: #2a2526;
    --checker-b: #211c1d;
    --shadow: 0 1px 0 rgba(0, 0, 0, 0.3);
    --shadow-lift: 0 8px 24px rgba(0, 0, 0, 0.4);
  }
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #141112;
  --surface: #1d191a;
  --surface-2: #262122;
  --ink: #f3eeec;
  --ink-muted: #a89fa1;
  --line: #3a3334;
  --line-strong: #4a4243;
  --brand: #ef3c25;
  --red: #ff6b55;
  --red-strong: #ff8a75;
  --red-wash: #3a1d17;
  --on-red: #1a0604;
  --ok: #5fd39a;
  --ok-wash: #16281f;
  --warn: #f2b85b;
  --warn-wash: #2c2214;
  --info: #8db8f2;
  --info-wash: #182234;
  --checker-a: #2a2526;
  --checker-b: #211c1d;
  --shadow: 0 1px 0 rgba(0, 0, 0, 0.3);
  --shadow-lift: 0 8px 24px rgba(0, 0, 0, 0.4);
}
