/*
 * Ascent Controls design tokens (new UI).
 *
 * This file only defines fonts and CSS variables. It does not style any element,
 * so loading it on a page that still uses the old theme changes nothing.
 * Light is the default. Dark follows the device, and can be forced with
 * <html data-theme="dark"> or <html data-theme="light"> (for a future theme switch).
 */

@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/ibm-plex-sans-400.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/ibm-plex-sans-500.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/ibm-plex-sans-600.woff2") format("woff2"); }

:root {
  /* surfaces and text */
  --bg: #f3f5f9; --surface: #ffffff; --surface-2: #f8f9fc; --ink: #16202e; --muted: #5b697d; --line: #e1e6ee;
  /* brand */
  --brand: #1565e6; --brand-ink: #ffffff; --brand-soft: #e7effd;
  /* navigation rail */
  --nav: #0f1b2d; --nav-ink: #b9c4d6; --nav-active: #1a2b45;
  /* status: high (errors), medium (warnings), low (success) */
  --hi: #c93636; --hi-soft: #fdeaea; --md: #946200; --md-soft: #fff1cc; --lo: #167a4f; --lo-soft: #e2f5ec;
  --bar-hi: #d9534f; --bar-md: #f0ad2e; --bar-lo: #3fae7a;
  /* type */
  --font: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b111a; --surface: #121a26; --surface-2: #0f1620; --ink: #e5eaf2; --muted: #92a0b5; --line: #223044;
    --brand: #5b9bff; --brand-ink: #08121f; --brand-soft: #16284a;
    --nav: #070b12; --nav-ink: #9eacc2; --nav-active: #131e30;
    --hi: #ff8a8a; --hi-soft: #3a1b1f; --md: #f0cf7a; --md-soft: #3a2f10; --lo: #5fd3a0; --lo-soft: #12302a;
    --bar-hi: #e0605b; --bar-md: #d9a238; --bar-lo: #3fae7a;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0b111a; --surface: #121a26; --surface-2: #0f1620; --ink: #e5eaf2; --muted: #92a0b5; --line: #223044;
  --brand: #5b9bff; --brand-ink: #08121f; --brand-soft: #16284a;
  --nav: #070b12; --nav-ink: #9eacc2; --nav-active: #131e30;
  --hi: #ff8a8a; --hi-soft: #3a1b1f; --md: #f0cf7a; --md-soft: #3a2f10; --lo: #5fd3a0; --lo-soft: #12302a;
  --bar-hi: #e0605b; --bar-md: #d9a238; --bar-lo: #3fae7a;
  color-scheme: dark;
}
