/*
 * Aperture — Hybrid Digital Twin for Utility-Scale Wind Turbines
 * Copyright © 2026 Matthew Mitchell · MMKPC Studios
 * Source-available under PolyForm Noncommercial License 1.0.0
 * https://github.com/MMKPC/aperture-twin
 * Commercial licensing: memitchell@mmkpcstudios.com
 */
:root {
  /* Fluid type scale */
  --text-xs: clamp(0.75rem, 0.7rem + 0.2vw, 0.8125rem);
  --text-sm: clamp(0.8125rem, 0.78rem + 0.25vw, 0.9375rem);
  --text-base: clamp(0.9375rem, 0.9rem + 0.25vw, 1rem);
  --text-lg: clamp(1.0625rem, 1rem + 0.5vw, 1.25rem);
  --text-xl: clamp(1.375rem, 1.2rem + 1vw, 1.75rem);

  /* 4px spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-full: 9999px;

  --font-body: 'Satoshi', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  --transition-interactive: 180ms cubic-bezier(0.16, 1, 0.3, 1);
}

/* LIGHT — pale instrument-panel */
:root,
[data-theme="light"] {
  --color-bg: #f2f1ec;
  --color-surface: #ffffff;
  --color-surface-2: #faf9f5;
  --color-surface-offset: #ececea;
  --color-divider: #dcd9d5;
  --color-border: #cfcdc7;
  --color-border-strong: #b0ada6;

  --color-text: #1b1a16;
  --color-text-muted: #6a6a66;
  --color-text-faint: #9e9d98;
  --color-text-inverse: #faf9f5;

  --color-primary: #006b73;
  --color-primary-hover: #00545a;
  --color-primary-highlight: #cfe2e1;

  --color-warn: #b04a1b;
  --color-warn-highlight: #f2d9c7;

  --color-alert: #a3282f;
  --color-ok: #3d7a2a;

  --grid-line: rgba(0, 0, 0, 0.06);
  --scene-bg-top: #e7e4dc;
  --scene-bg-bot: #cbc6ba;
}

/* DARK — primary target for operators */
[data-theme="dark"] {
  --color-bg: #0e0f11;
  --color-surface: #14161a;
  --color-surface-2: #181a1f;
  --color-surface-offset: #1e2027;
  --color-divider: #24272e;
  --color-border: #2a2e36;
  --color-border-strong: #3b4049;

  --color-text: #e6e6e3;
  --color-text-muted: #8b8c8a;
  --color-text-faint: #5b5d60;
  --color-text-inverse: #0e0f11;

  --color-primary: #4bc6cd;
  --color-primary-hover: #6ed8de;
  --color-primary-highlight: #13363b;

  --color-warn: #e89059;
  --color-warn-highlight: #3d2618;

  --color-alert: #e56b72;
  --color-ok: #7bc26a;

  --grid-line: rgba(255, 255, 255, 0.04);
  --scene-bg-top: #101217;
  --scene-bg-bot: #05060a;
}
