/*
 * OneAccess design tokens (oa-*). See docs/ui/ONEACCESS-DESIGN-SYSTEM.md.
 *
 * Typography: "Inter" is listed first so it is used when installed locally, but NO font file is
 * loaded and nothing is requested from Google Fonts. A locally hosted, licence-confirmed Inter
 * package (SIL OFL 1.1) is a pending decision; until then the system stack below applies and
 * layouts must not depend on Inter metrics.
 */
:root {
  color-scheme: light;

  --oa-font-sans: "Inter", "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --oa-font-mono: ui-monospace, "Cascadia Code", "SFMono-Regular", Consolas, monospace;
  --oa-weight-regular: 400;
  --oa-weight-medium: 500;
  --oa-weight-semibold: 600;
  --oa-weight-bold: 700;
  --oa-text-display: 3.5rem;
  --oa-text-h1: 1.75rem;
  --oa-text-h2: 1.25rem;
  --oa-text-h3: 1rem;
  --oa-text-body: 0.875rem;
  --oa-text-small: 0.75rem;
  --oa-text-stat: 1.75rem;
  --oa-leading-tight: 1.2;
  --oa-leading-snug: 1.4;
  --oa-leading-body: 1.5;

  --oa-primary-50: #eaf2ff;
  --oa-primary-100: #d6e6ff;
  --oa-primary-600: #0b57d0;
  --oa-primary-700: #0a47a8;
  --oa-navy-900: #081f3f;
  --oa-navy-800: #0b2a55;
  --oa-navy-active: #0f4c9e;
  --oa-bg: #f4f7fb;
  --oa-surface: #fff;
  --oa-surface-subtle: #f8fafc;
  --oa-border: #e1e7f0;
  --oa-border-control: #7a8aa3;
  --oa-text: #0f1b2d;
  --oa-text-secondary: #3d4c63;
  --oa-text-muted: #5a6a82;
  --oa-text-on-primary: #fff;
  --oa-success-600: #166534;
  --oa-success-50: #e3f6ea;
  --oa-warning-600: #8a5a00;
  --oa-warning-50: #fff3d6;
  --oa-danger-600: #b42318;
  --oa-danger-50: #fde8e8;
  --oa-info-600: #0b57d0;
  --oa-info-50: #eaf2ff;
  --oa-neutral-50: #eef2f7;
  --oa-tint-blue: #eaf1ff;
  --oa-tint-green: #e6f6ef;
  --oa-tint-amber: #fff3dc;
  --oa-tint-red: #fceaee;
  --oa-focus: #0b57d0;
  --oa-scrim: rgb(8 31 63 / 55%);

  --oa-space-1: 0.25rem;
  --oa-space-2: 0.5rem;
  --oa-space-3: 0.75rem;
  --oa-space-4: 1rem;
  --oa-space-5: 1.25rem;
  --oa-space-6: 1.5rem;
  --oa-space-8: 2rem;
  --oa-space-10: 2.5rem;
  --oa-space-12: 3rem;
  --oa-space-16: 4rem;

  --oa-radius-sm: 0.375rem;
  --oa-radius-md: 0.5rem;
  --oa-radius-lg: 0.75rem;
  --oa-radius-pill: 999px;
  --oa-border-width: 1px;
  --oa-control-height: 2.5rem;
  --oa-control-height-sm: 2.25rem;
  --oa-target-min: 2.75rem;

  --oa-elevation-1: 0 1px 2px rgb(15 27 45 / 6%);
  --oa-elevation-2: 0 12px 32px rgb(15 27 45 / 12%);
  --oa-elevation-3: 0 24px 48px rgb(15 27 45 / 20%);

  --oa-width-prose: 40rem;
  --oa-width-form: 34rem;
  --oa-width-card: 33.75rem;
  --oa-width-content: 80rem;
  --oa-sidebar-width: 14.5rem;
  --oa-drawer-width: 22rem;

  /* Breakpoints are documented here; CSS media queries cannot read custom properties. */
  --oa-bp-sm: 30rem; /* 480 */
  --oa-bp-md: 48rem; /* 768 */
  --oa-bp-lg: 64rem; /* 1024 */
  --oa-bp-xl: 80rem; /* 1280 */
  --oa-bp-2xl: 90rem; /* 1440 */

  --oa-focus-ring: 0 0 0 2px var(--oa-surface), 0 0 0 4px var(--oa-focus);
  --oa-motion-fast: 140ms;
  --oa-motion-normal: 220ms;
  --oa-ease: cubic-bezier(0.2, 0, 0, 1);

  --oa-z-base: 0;
  --oa-z-sticky: 100;
  --oa-z-dropdown: 300;
  --oa-z-tooltip: 400;
  --oa-z-toast: 600;
}

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