/* VUMO Brand Core — design tokens.
   Source: VUMO Brand Core (frontmatter, "normative"). Load this file before styles.css.
   Components reference these tokens only; raw hex values outside this file are a review reject
   (enforced by `npm run check:design`). */

:root {
  /* colors — light */
  --primary: #1A1B21;      /* ink: primary text, default filled buttons */
  --secondary: #7D858E;    /* slate: captions, labels, supplementary metadata */
  --accent: #FF4417;       /* the orange: interaction + focus only, scarce */
  --canvas: #F2F2F2;       /* page background */
  --surface: #FFFFFF;      /* cards, nav, modals, tables */
  --pale: #D8E1EA;         /* blue-gray: technical lines, highlights */
  --line: #CCCCCC;         /* control borders */
  --separator: #EAEAEA;    /* structural dividers */
  --gray: #E2E2E2;         /* filled controls */
  --midnight: #081F2D;     /* premium dark panels (not used in this panel) */
  --white: #FFFFFF;
  --black: #000000;
  --glass: rgba(19, 18, 26, 0.7);
  --error: #D71919;
  --success: #2FA86A;      /* text-grade */
  --success-fill: #56CD54; /* dots and fills only */
  --warning: #E68A00;

  /* navigation (nav-operational): ink bar with white wordmark on light */
  --topbar-bg: var(--primary);
  --topbar-ink: var(--white);
  --topbar-muted: var(--pale);

  /* typography */
  --font: "Space Grotesk", system-ui, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; /* IDs and codes only */

  /* shape */
  --radius-none: 0px;
  --radius-full: 9999px;

  /* spacing */
  --sp-xs: 4px;
  --sp-sm: 8px;
  --sp-md: 16px;
  --sp-lg: 24px;
  --sp-xl: 32px;
  --sp-2xl: 48px;
  --page-x: 18px;          /* operational page padding */
  --page-y: 20px;

  /* motion */
  --dur-micro: 90ms;
  --dur-fast: 140ms;
  --ease-default: cubic-bezier(0.2, 0.8, 0.2, 1);

  /* sizes */
  --h-nav: 56px;
  --h-control: 40px;
  --h-input: 42px;
  --h-row: 60px;
}

/* dark theme — same tokens, dark values from the Brand Core */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --primary: #F2F2F2;
    --secondary: #9AA0A8;
    --accent: #FF6A47;
    --canvas: #121212;
    --surface: #1C1C1E;
    --pale: #31404C;
    --line: #3E3E42;
    --separator: #313131;
    --gray: #333333;
    --glass: rgba(232, 232, 232, 0.7);
    --error: #FF5252;
    --success: #7DE57B;
    --warning: #F2A93B;
    --topbar-bg: var(--surface);
    --topbar-ink: var(--primary);
    --topbar-muted: var(--secondary);
  }
}

:root[data-theme="dark"] {
  --primary: #F2F2F2;
  --secondary: #9AA0A8;
  --accent: #FF6A47;
  --canvas: #121212;
  --surface: #1C1C1E;
  --pale: #31404C;
  --line: #3E3E42;
  --separator: #313131;
  --gray: #333333;
  --glass: rgba(232, 232, 232, 0.7);
  --error: #FF5252;
  --success: #7DE57B;
  --warning: #F2A93B;
  --topbar-bg: var(--surface);
  --topbar-ink: var(--primary);
  --topbar-muted: var(--secondary);
}
