/* Deskmetry design tokens (dark only). Mirror of tokens.json: change both together.
   Fonts are self-hosted by each consumer (no Google Fonts requests); the families below
   fall back to system fonts when the files are missing. */
:root {
  color-scheme: dark;

  /* Brand */
  --dm-lime: #CCFB61;
  --dm-lime-hover: #D8FC85;
  --dm-lime-muted: rgba(204, 251, 97, 0.14);
  --dm-black: #000000;
  --dm-white: #FFFFFF;

  /* Surfaces */
  --dm-canvas: #090A0C;
  --dm-panel: #121418;
  --dm-elevated: #1A1D23;
  --dm-hover: #22262E;
  --dm-pressed: #303640;

  /* Borders */
  --dm-border: #262A33;
  --dm-border-active: #CCFB61;

  /* Text */
  --dm-text: #FFFFFF;
  --dm-text-secondary: #A4ABB8;
  --dm-text-muted: #717885;
  --dm-text-on-lime: #000000;

  /* Status (always paired with a label or shape, never color alone) */
  --dm-online: #CCFB61;
  --dm-success: #22C55E;
  --dm-warning: #FACC15;
  --dm-critical: #FF453A;
  --dm-neutral: #8E98A7;
  --dm-network: #38BDF8;

  /* Typography */
  --dm-font-display: "Figtree", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --dm-font-ui: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --dm-font-mono: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
  --dm-tracking-display: -0.03em;
  --dm-tracking-body: -0.01em;

  /* Spacing (4 px base) */
  --dm-space-1: 4px;
  --dm-space-2: 8px;
  --dm-space-3: 12px;
  --dm-space-4: 16px;
  --dm-space-5: 20px;
  --dm-space-6: 24px;
  --dm-space-8: 32px;
  --dm-space-12: 48px;
  --dm-space-16: 64px;

  /* Radius */
  --dm-radius-xs: 4px;
  --dm-radius-sm: 6px;
  --dm-radius-md: 10px;
  --dm-radius-lg: 14px;
  --dm-radius-xl: 20px;
  --dm-radius-pill: 9999px;

  /* Motion */
  --dm-fast: 120ms;
  --dm-normal: 200ms;
}

/* Live numbers: stable width while values change. */
.dm-metric {
  font-family: var(--dm-font-mono);
  font-variant-numeric: tabular-nums lining-nums;
  font-feature-settings: "tnum" 1, "lnum" 1;
}

@media (prefers-reduced-motion: reduce) {
  :root { --dm-fast: 0ms; --dm-normal: 0ms; }
}
