/* Fleetmind palette. Generated by build.py; edit there.
   Components use only the semantic tokens (--fm-bg, --fm-text, --fm-accent...).
   Primitives (--fm-gray-*, --fm-teal-*...) exist to define semantic tokens.
   Theme: follows the system; data-theme="light|dark" on <html> forces one,
   and color-scheme on any element switches that subtree. */

:root {
  color-scheme: light dark;
  --fm-font: "Geologica", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --fm-mono: ui-monospace, "SF Mono", "JetBrains Mono", "Cascadia Code", Menlo, Consolas, monospace;
  --fm-radius-sm: 8px;
  --fm-radius-md: 12px;
  --fm-radius-lg: 18px;
  --fm-radius-pill: 999px;

  /* primitives */
  --fm-gray-0: #ffffff;
  --fm-gray-50: #f1f6f3;
  --fm-gray-75: #ecf2ef;
  --fm-gray-100: #e8efeb;
  --fm-gray-150: #e1e8e5;
  --fm-gray-200: #d6dfda;
  --fm-gray-250: #ced7d3;
  --fm-gray-400: #b3beb8;
  --fm-gray-500: #69766f;
  --fm-gray-600: #515f58;
  --fm-gray-750: #2e3833;
  --fm-gray-800: #222b26;
  --fm-gray-850: #1a231f;
  --fm-gray-875: #141b18;
  --fm-gray-900: #0e1411;
  --fm-gray-950: #09120e;
  --fm-gray-1000: #070d0a;
  --fm-teal-50: #cff9ef;
  --fm-teal-200: #9de5d6;
  --fm-teal-300: #8dd5c6;
  --fm-teal-400: #6cb8a9;
  --fm-teal-500: #0f9d8a;
  --fm-teal-600: #0f8373;
  --fm-teal-700: #117062;
  --fm-teal-800: #11594e;
  --fm-teal-950: #04332c;
  --fm-green-300: #56da69;
  --fm-green-400: #39ad4b;
  --fm-green-600: #218534;
  --fm-green-800: #0a571b;
  --fm-amber-300: #efb14e;
  --fm-amber-600: #9b6900;
  --fm-amber-800: #6d4900;
  --fm-amber-950: #1e1100;
  --fm-red-300: #fca59c;
  --fm-red-500: #d73334;
  --fm-red-800: #99151b;
  --fm-magenta-400: #e867c3;
  --fm-magenta-600: #cf24a8;
  --fm-orange-400: #f4b582;
  --fm-orange-600: #6c380c;
  --fm-blue-400: #99d2fb;
  --fm-blue-600: #186bec;
  --fm-olive-400: #879e23;
  --fm-olive-600: #6c7e1a;
  --fm-violet-400: #7f52f5;
  --fm-violet-600: #5d238d;

  /* semantic */
  --fm-bg: light-dark(var(--fm-gray-50), var(--fm-gray-900));
  --fm-bg-subtle: light-dark(var(--fm-gray-100), var(--fm-gray-1000));
  --fm-surface: light-dark(var(--fm-gray-150), var(--fm-gray-850));
  --fm-surface-2: light-dark(var(--fm-gray-200), var(--fm-gray-800));
  --fm-raised: light-dark(var(--fm-gray-0), var(--fm-gray-875));
  --fm-border: light-dark(var(--fm-gray-250), var(--fm-gray-750));
  --fm-border-strong: var(--fm-gray-500);
  --fm-text: light-dark(var(--fm-gray-950), var(--fm-gray-75));
  --fm-text-2: light-dark(var(--fm-gray-600), var(--fm-gray-400));
  --fm-accent: var(--fm-teal-600);
  --fm-accent-hover: var(--fm-teal-700);
  --fm-on-accent: var(--fm-gray-0);
  --fm-accent-text: light-dark(var(--fm-teal-800), var(--fm-teal-300));
  --fm-accent-subtle: light-dark(var(--fm-teal-50), var(--fm-teal-950));
  --fm-accent-border: light-dark(var(--fm-teal-200), var(--fm-teal-800));
  --fm-focus: light-dark(var(--fm-teal-800), var(--fm-teal-300));
  --fm-success: light-dark(var(--fm-green-800), var(--fm-green-300));
  --fm-success-solid: light-dark(var(--fm-green-600), var(--fm-green-400));
  --fm-on-success-solid: light-dark(var(--fm-gray-0), var(--fm-gray-950));
  --fm-warning: light-dark(var(--fm-amber-800), var(--fm-amber-300));
  --fm-warning-solid: light-dark(var(--fm-amber-600), var(--fm-amber-300));
  --fm-on-warning-solid: light-dark(var(--fm-gray-0), var(--fm-amber-950));
  --fm-danger: light-dark(var(--fm-red-800), var(--fm-red-300));
  --fm-danger-solid: var(--fm-red-500);
  --fm-info: light-dark(var(--fm-teal-800), var(--fm-teal-300));
  --fm-info-solid: var(--fm-teal-600);
  --fm-neutral-solid: var(--fm-gray-500);
  --fm-logo-ink: light-dark(var(--fm-gray-950), var(--fm-gray-75));
  --fm-logo-accent: light-dark(var(--fm-teal-500), var(--fm-teal-400));

  /* charts: categorical, use in order */
  --fm-chart-1: light-dark(var(--fm-teal-700), var(--fm-teal-500));
  --fm-chart-2: light-dark(var(--fm-magenta-600), var(--fm-magenta-400));
  --fm-chart-3: light-dark(var(--fm-orange-600), var(--fm-orange-400));
  --fm-chart-4: light-dark(var(--fm-blue-600), var(--fm-blue-400));
  --fm-chart-5: light-dark(var(--fm-olive-600), var(--fm-olive-400));
  --fm-chart-6: light-dark(var(--fm-violet-600), var(--fm-violet-400));
}

:root[data-theme="light"] { color-scheme: light; }
:root[data-theme="dark"] { color-scheme: dark; }

/* Concentric corners. An icon tile inside a rounded container takes the container's radius minus
   the gap between the two (inner = outer - inset, never below 0); a tile that sits flush with the
   edge takes the container's radius. The container sets --fm-nest-radius (its own radius) and
   --fm-nest-inset (the gap to the tile); the tile uses border-radius: var(--fm-radius-inner).
   Declared on every element, so it resolves against the nearest container that sets the two. */
* { --fm-radius-inner: max(0px, calc(var(--fm-nest-radius, 0px) - var(--fm-nest-inset, 0px))); }
