/* Screencastly design tokens.
   Theme resolution: an explicit [data-theme] on <html> wins; otherwise the OS preference.
   Dark values are declared twice (media query + attribute) because plain CSS has no mixins. */

/* Fontsource subsets: latin always loads; latin-ext and Cyrillic load only when a page shows such
   a character (a client's name or project in Kazakh, Russian, Polish, Turkish...), so user text
   never drops to a system font. Manrope has no Kazakh-specific letters (ә ғ қ ң ұ); --font-head
   falls back to Inter for those, not to the system font. */
@font-face {
  font-family: "Manrope";
  src: url("/static/fonts/manrope-latin-wght.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
  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";
  src: url("/static/fonts/manrope-latin-ext-wght.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, 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: "Manrope";
  src: url("/static/fonts/manrope-cyrillic-wght.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Inter";
  src: url("/static/fonts/inter-latin-wght.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  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";
  src: url("/static/fonts/inter-latin-ext-wght.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, 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";
  src: url("/static/fonts/inter-cyrillic-wght.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Inter";
  src: url("/static/fonts/inter-cyrillic-ext-wght.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0460-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}

:root {
  /* brand constants (theme independent) */
  --violet: #6f2de3;
  --violet-600: #5f22cf;
  --violet-400: #8b55f0;
  --indigo: #372dcf;
  --coral: #ff6b5b;
  --green: #22c55e;

  --font-head: "Manrope", "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-ui: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --r-xs: 6px;
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 22px;
  --r-pill: 999px;

  --container: 1376px;
  --gutter: 32px;
  --ease: cubic-bezier(.2, .7, .2, 1);

  /* light theme (default when the OS asks for light or nothing) */
  color-scheme: light;
  --bg: #ffffff;
  --bg-soft: #f6f5fb;
  --surface: #ffffff;
  --surface-2: #f8f7fd;
  --surface-3: #f1eefb;
  --border: #e7e5f2;
  --border-strong: #d8d4ea;
  --text: #0b1020;
  --text-2: #2a3045;
  --muted: #5b6275;
  --subtle: #7d8396;
  --accent-text: #6f2de3;
  --accent-soft: #f0e9fe;
  --accent-soft-2: #e6dafd;
  --accent-border: #c9b2f7;
  --on-accent: #ffffff;
  --logo-text: #16123f;
  --success-text: #13803d;
  --success-soft: #e3f7ea;
  --success-border: #a7e3bd;
  --coral-text: #d93f2f;
  --coral-soft: #ffebe8;
  --coral-border: #ffc2ba;
  --warn-text: #9a5300;
  --warn-soft: #fff5e1;
  --warn-border: #f3cd85;
  --neutral-soft: #eef0f6;
  --shadow-sm: 0 1px 2px rgba(22, 18, 63, .06);
  --shadow-md: 0 10px 30px -12px rgba(43, 30, 110, .18), 0 2px 6px rgba(22, 18, 63, .05);
  --shadow-lg: 0 30px 70px -24px rgba(60, 36, 150, .30), 0 6px 18px rgba(22, 18, 63, .06);
  --glow: rgba(111, 45, 227, .16);
  --glow-strong: rgba(111, 45, 227, .26);
  --focus: 0 0 0 3px rgba(111, 45, 227, .35);
  --player-bg: #ffffff;
  --player-chrome: #f6f5fb;
  --caption-bg: rgba(16, 20, 40, .82);
  --caption-text: #ffffff;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0b1020;
    --bg-soft: #0e1328;
    --surface: #111731;
    --surface-2: #161c3a;
    --surface-3: #1c2246;
    --border: #252b4c;
    --border-strong: #363d68;
    --text: #f4f2ff;
    --text-2: #dcdaf0;
    --muted: #a7acc6;
    --subtle: #7c829e;
    --accent-text: #b18cff;
    --accent-soft: rgba(111, 45, 227, .20);
    --accent-soft-2: rgba(111, 45, 227, .32);
    --accent-border: rgba(150, 105, 255, .55);
    --on-accent: #ffffff;
    --logo-text: #f4f2ff;
    --success-text: #5ee38f;
    --success-soft: rgba(34, 197, 94, .16);
    --success-border: rgba(34, 197, 94, .45);
    --coral-text: #ff8d80;
    --coral-soft: rgba(255, 107, 91, .17);
    --coral-border: rgba(255, 107, 91, .5);
    --warn-text: #f5b759;
    --warn-soft: rgba(245, 158, 11, .14);
    --warn-border: rgba(245, 158, 11, .45);
    --neutral-soft: rgba(167, 172, 198, .14);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .3);
    --shadow-md: 0 12px 30px -14px rgba(0, 0, 0, .6);
    --shadow-lg: 0 40px 80px -30px rgba(0, 0, 0, .75);
    --glow: rgba(111, 45, 227, .30);
    --glow-strong: rgba(111, 45, 227, .55);
    --focus: 0 0 0 3px rgba(161, 120, 255, .55);
    --player-bg: #0f1430;
    --player-chrome: #0c1128;
    --caption-bg: rgba(10, 13, 30, .86);
    --caption-text: #ffffff;
  }
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0b1020;
  --bg-soft: #0e1328;
  --surface: #111731;
  --surface-2: #161c3a;
  --surface-3: #1c2246;
  --border: #252b4c;
  --border-strong: #363d68;
  --text: #f4f2ff;
  --text-2: #dcdaf0;
  --muted: #a7acc6;
  --subtle: #7c829e;
  --accent-text: #b18cff;
  --accent-soft: rgba(111, 45, 227, .20);
  --accent-soft-2: rgba(111, 45, 227, .32);
  --accent-border: rgba(150, 105, 255, .55);
  --on-accent: #ffffff;
  --logo-text: #f4f2ff;
  --success-text: #5ee38f;
  --success-soft: rgba(34, 197, 94, .16);
  --success-border: rgba(34, 197, 94, .45);
  --coral-text: #ff8d80;
  --coral-soft: rgba(255, 107, 91, .17);
  --coral-border: rgba(255, 107, 91, .5);
  --warn-text: #f5b759;
  --warn-soft: rgba(245, 158, 11, .14);
  --warn-border: rgba(245, 158, 11, .45);
  --neutral-soft: rgba(167, 172, 198, .14);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .3);
  --shadow-md: 0 12px 30px -14px rgba(0, 0, 0, .6);
  --shadow-lg: 0 40px 80px -30px rgba(0, 0, 0, .75);
  --glow: rgba(111, 45, 227, .30);
  --glow-strong: rgba(111, 45, 227, .55);
  --focus: 0 0 0 3px rgba(161, 120, 255, .55);
  --player-bg: #0f1430;
  --player-chrome: #0c1128;
  --caption-bg: rgba(10, 13, 30, .86);
  --caption-text: #ffffff;
}

@media (max-width: 1100px) {
  :root { --gutter: 24px; }
}
@media (max-width: 600px) {
  :root { --gutter: 16px; }
}
