/* AirVoice brand tokens. Load before airvoice-components.css.
   Explicit data-av-theme="light|dark" always overrides the OS preference.
   No element reset and no automatic page background are applied. */
@font-face {
  font-family: "airvoicebv";
  src: url("../fonts/airvoicebv-Bold.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

:root {
  --av-font-display: "airvoicebv", system-ui, sans-serif;
  --av-font-body: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --av-radius-sm: 8px;
  --av-radius-md: 16px;
  --av-radius-lg: 24px;
  --av-space-1: .25rem;
  --av-space-2: .5rem;
  --av-space-3: .75rem;
  --av-space-4: 1rem;
  --av-space-5: 1.5rem;
  --av-space-6: 2rem;
  --av-space-7: 3rem;
  --av-space-8: 4rem;
}

:root,
[data-av-theme="light"] {
  color-scheme: light;
  --av-bg: #f3f8f5;
  --av-surface: #ffffff;
  --av-surface-raised: #f5faf7;
  --av-text: #123530;
  --av-text-muted: #526e67;
  --av-border: #718e85;
  --av-primary: #087f79;
  --av-primary-hover: #06645f;
  --av-on-primary: #ffffff;
  --av-focus: #087f79;
}

[data-av-theme="dark"] {
  color-scheme: dark;
  --av-bg: #071a1b;
  --av-surface: #0e2728;
  --av-surface-raised: #183733;
  --av-text: #eef8f4;
  --av-text-muted: #a5c2bb;
  --av-border: #62867d;
  --av-primary: #3cddbd;
  --av-primary-hover: #71f6da;
  --av-on-primary: #062620;
  --av-focus: #71f6da;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-av-theme]) {
    color-scheme: dark;
    --av-bg: #071a1b;
    --av-surface: #0e2728;
    --av-surface-raised: #183733;
    --av-text: #eef8f4;
    --av-text-muted: #a5c2bb;
    --av-border: #62867d;
    --av-primary: #3cddbd;
    --av-primary-hover: #71f6da;
    --av-on-primary: #062620;
    --av-focus: #71f6da;
  }
}
