/* AXNERO app tokens. ONE token source: the shared house design in fx-tokens.css (black surfaces,
   orange for actions, red for emphasis, green only for verified success, no blue, no amber).
   Every colour here is an alias of an fx token; type, space, radius and motion live here.
   The design is dark; the theme attribute is still set from preferences but both values wear it. */
:root {
  /* Type */
  --ax-font-sans: 'Geist', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --ax-font-mono: 'Geist Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --ax-text-xs: 0.75rem;
  --ax-text-sm: 0.8125rem;
  --ax-text-md: 0.9375rem;
  --ax-text-lg: 1.125rem;
  --ax-text-xl: 1.375rem;
  --ax-text-2xl: 1.75rem;
  --ax-leading: 1.5;
  --ax-leading-tight: 1.25;
  --ax-weight-regular: 400;
  --ax-weight-medium: 550;
  --ax-weight-bold: 680;

  /* Space (4 px base) */
  --ax-space-0: 0;
  --ax-space-1: 0.25rem;
  --ax-space-2: 0.5rem;
  --ax-space-3: 0.75rem;
  --ax-space-4: 1rem;
  --ax-space-5: 1.5rem;
  --ax-space-6: 2rem;
  --ax-space-7: 3rem;
  --ax-control-height: 2.25rem;
  --ax-row-pad: var(--ax-space-3);

  /* Radius */
  --ax-radius-sm: 6px;
  --ax-radius-md: 10px;
  --ax-radius-lg: 14px;
  --ax-radius-pill: var(--fx-pill);

  /* Layout */
  --ax-topbar-height: 3.25rem;
  --ax-rail-width: 5.5rem;
  --ax-content-max: 72rem;

  /* Motion */
  --ax-duration-fast: 120ms;
  --ax-duration: 200ms;
  --ax-ease: cubic-bezier(0.2, 0.7, 0.2, 1);

  /* Colour, all from the shared fx tokens */
  color-scheme: dark;
  --ax-bg: var(--fx-black-0);
  --ax-surface: var(--fx-black-2);
  --ax-surface-2: var(--fx-black-1);
  --ax-surface-3: rgba(255, 255, 255, 0.08);
  --ax-glass: var(--fx-glass-fill);
  --ax-glass-strong: var(--fx-glass-fill-strong);
  --ax-border: var(--fx-glass-edge);
  --ax-border-strong: rgba(255, 255, 255, 0.30);
  --ax-text: var(--fx-ink);
  --ax-text-muted: var(--fx-ink-quiet);
  --ax-text-inverse: var(--fx-orange-ink);
  --ax-accent: var(--fx-orange);
  --ax-accent-hover: var(--fx-orange-2);
  --ax-accent-soft: rgba(255, 122, 26, 0.16);
  --ax-on-accent: var(--fx-orange-ink);
  --ax-focus: var(--fx-ink);
  --ax-success: var(--fx-green);
  --ax-success-soft: rgba(51, 209, 122, 0.14);
  --ax-warning: var(--fx-orange);
  --ax-warning-soft: rgba(255, 122, 26, 0.14);
  --ax-danger: var(--fx-red);
  --ax-danger-soft: rgba(255, 90, 79, 0.14);
  --ax-info-soft: rgba(255, 255, 255, 0.06);
  --ax-critical-bar: var(--fx-red);
  --ax-bar: var(--fx-orange);
  --ax-shadow-1: 0 1px 2px rgba(0, 0, 0, 0.5);
  --ax-shadow-2: var(--fx-glass-shadow);
  --ax-scrim: rgba(5, 5, 6, 0.62);
}

:root[data-density='compact'] {
  --ax-control-height: 1.875rem;
  --ax-row-pad: var(--ax-space-2);
  --ax-text-md: 0.875rem;
}

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

/* Fonts: Geist, served from this origin. */
@font-face {
  font-family: 'Geist';
  src: url('./vendor/geist-1.9.2/geist-sans/Geist-Variable.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: 'Geist Mono';
  src: url('./vendor/geist-1.9.2/geist-mono/GeistMono-Variable.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}

/* The control kit reads its own variables; point them at the AXNERO tokens so one palette
   drives both the kit and the app. */
:root {
  --wa-font-family-body: var(--ax-font-sans);
  --wa-font-family-heading: var(--ax-font-sans);
  --wa-font-family-code: var(--ax-font-mono);
  --wa-color-surface-default: var(--ax-surface);
  --wa-color-surface-raised: var(--ax-surface);
  --wa-color-surface-lowered: var(--ax-surface-2);
  --wa-color-surface-border: var(--ax-border);
  --wa-color-text-normal: var(--ax-text);
  --wa-color-text-quiet: var(--ax-text-muted);
  --wa-color-text-link: var(--ax-accent);
  --wa-color-focus: var(--ax-focus);
  --wa-color-brand-fill-loud: var(--ax-accent);
  --wa-color-brand-fill-normal: var(--ax-accent-soft);
  --wa-color-brand-fill-quiet: var(--ax-accent-soft);
  --wa-color-brand-border-loud: var(--ax-accent);
  --wa-color-brand-border-normal: var(--ax-accent);
  --wa-color-brand-border-quiet: var(--ax-accent-soft);
  --wa-color-brand-on-loud: var(--ax-on-accent);
  --wa-color-brand-on-normal: var(--ax-accent-hover);
  --wa-color-brand-on-quiet: var(--ax-accent);
  --wa-color-neutral-fill-loud: var(--ax-text);
  --wa-color-neutral-fill-normal: var(--ax-surface-3);
  --wa-color-neutral-fill-quiet: var(--ax-info-soft);
  --wa-color-neutral-border-loud: var(--ax-border-strong);
  --wa-color-neutral-border-normal: var(--ax-border);
  --wa-color-neutral-border-quiet: var(--ax-border);
  --wa-color-neutral-on-loud: var(--ax-text-inverse);
  --wa-color-neutral-on-normal: var(--ax-text);
  --wa-color-neutral-on-quiet: var(--ax-text-muted);
  --wa-color-success-fill-loud: var(--ax-success);
  --wa-color-success-fill-normal: var(--ax-success-soft);
  --wa-color-success-fill-quiet: var(--ax-success-soft);
  --wa-color-success-border-loud: var(--ax-success);
  --wa-color-success-border-normal: var(--ax-success);
  --wa-color-success-on-loud: var(--ax-on-accent);
  --wa-color-success-on-normal: var(--ax-success);
  --wa-color-success-on-quiet: var(--ax-success);
  --wa-color-warning-fill-loud: var(--ax-warning);
  --wa-color-warning-fill-normal: var(--ax-warning-soft);
  --wa-color-warning-fill-quiet: var(--ax-warning-soft);
  --wa-color-warning-border-loud: var(--ax-warning);
  --wa-color-warning-border-normal: var(--ax-warning);
  --wa-color-warning-on-loud: var(--ax-on-accent);
  --wa-color-warning-on-normal: var(--ax-warning);
  --wa-color-warning-on-quiet: var(--ax-warning);
  --wa-color-danger-fill-loud: var(--ax-danger);
  --wa-color-danger-fill-normal: var(--ax-danger-soft);
  --wa-color-danger-fill-quiet: var(--ax-danger-soft);
  --wa-color-danger-border-loud: var(--ax-danger);
  --wa-color-danger-border-normal: var(--ax-danger);
  --wa-color-danger-on-loud: var(--ax-on-accent);
  --wa-color-danger-on-normal: var(--ax-danger);
  --wa-color-danger-on-quiet: var(--ax-danger);
}
