/* OpenASRevise design tokens, taken from the OpenAS brand sheet.
 * Night-sky palette, Outfit for UI and headlines, Poppins only inside app icons.
 * scripts/contrast-check.js parses this file and checks every text/background pair
 * against WCAG 2.2 AA, so change colours here and re-run `npm run contrast`.
 */

@font-face { font-family: 'Outfit'; font-style: normal; font-weight: 400; font-display: swap; src: url('/vendor/fonts/outfit-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Outfit'; font-style: normal; font-weight: 500; font-display: swap; src: url('/vendor/fonts/outfit-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Outfit'; font-style: normal; font-weight: 600; font-display: swap; src: url('/vendor/fonts/outfit-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Outfit'; font-style: normal; font-weight: 700; font-display: swap; src: url('/vendor/fonts/outfit-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Outfit'; font-style: normal; font-weight: 800; font-display: swap; src: url('/vendor/fonts/outfit-latin-800-normal.woff2') format('woff2'); }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 700; font-display: swap; src: url('/vendor/fonts/poppins-latin-700-normal.woff2') format('woff2'); }

/* Dark: the OpenAS night sky (default) */
:root {
  color-scheme: dark;
  --bg: #0E0D16;
  --bg-sky-a: #0D0A1C;
  --bg-sky-b: #140C2A;
  --bg-sky-c: #0C1626;
  --surface: #171622;
  --surface-2: #1D1B2B;
  --glass: rgba(255, 255, 255, 0.04);
  --glass-border: rgba(255, 255, 255, 0.12);
  --grid-line: rgba(255, 255, 255, 0.035);
  --border: #2C2942;
  --border-strong: #6E6890;
  --text-strong: #F2F0FF;
  --text: #D6D2EA;
  --text-muted: #A29DBD;
  --accent: #B49CFF;
  --accent-hover: #C9B8FF;
  --btn: #6D4AF0;
  --btn-2: #A02BC9;
  --btn-hover: #5B3BD6;
  --on-accent: #FFFFFF;
  --accent-soft: #241D45;
  --grad-a: #A78BFA;
  --grad-b: #D946EF;
  --teal: #2EC4B6;
  --gold: #FFC53D;
  --pink: #FF4FD8;
  --ice: #7AD8FF;
  --star: #E8F4FF;
  --danger: #FF7A93;
  --danger-soft: #3A1A2C;
  --warning: #FFC53D;
  --warning-soft: #33280F;
  --success: #2EC4B6;
  --success-soft: #10302E;
  --info: #7AD8FF;
  --sidebar-bg: #13121D;
  --sidebar-text: #D6D2EA;
  --sidebar-active-bg: #221F38;
  --sidebar-active-text: #C4B5FD;
  --shadow: 0 1px 0 rgba(255, 255, 255, 0.03) inset;
  --shadow-pop: 0 24px 60px rgba(4, 2, 14, 0.6);
  --glow: 0 0 0 3px rgba(167, 139, 250, 0.55);
  --glow-soft: 0 0 60px rgba(139, 92, 255, 0.35);

  --font-sans: 'Outfit', 'Segoe UI', Inter, system-ui, sans-serif;
  --font-icon: 'Poppins', 'Outfit', sans-serif;
  --font-mono: 'Cascadia Mono', Consolas, ui-monospace, Menlo, monospace;
  --fs-xs: 0.78rem; --fs-sm: 0.9rem; --fs-md: 1rem; --fs-lg: 1.2rem; --fs-xl: 1.6rem; --fs-2xl: 2.4rem;
  --fw-regular: 400; --fw-medium: 500; --fw-semibold: 600; --fw-bold: 700; --fw-black: 800;
  --track-tight: -0.045em;

  --radius-sm: 8px; --radius-md: 12px; --radius-card: 18px; --radius-lg: 24px; --radius-pill: 999px;
  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px; --space-5: 24px; --space-6: 32px; --space-7: 48px;

  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --dur-fast: 120ms; --dur: 220ms;
  --sidebar-width: 244px;
}

/* Light: lavender daylight, same purple identity. Sidebar stays night-sky. */
:root[data-theme='light'] {
  color-scheme: light;
  --bg: #F5F3FF;
  --bg-sky-a: #F7F5FF;
  --bg-sky-b: #F1ECFF;
  --bg-sky-c: #ECF4FA;
  --surface: #FFFFFF;
  --surface-2: #EFEAFE;
  --glass: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(20, 16, 42, 0.1);
  --grid-line: rgba(20, 16, 42, 0.04);
  --border: #DDD6FE;
  --border-strong: #8B84A8;
  --text-strong: #14102A;
  --text: #3B3560;
  --text-muted: #5B5480;
  --accent: #6D28D9;
  --accent-hover: #5B21B6;
  --btn: #6D4AF0;
  --btn-2: #A02BC9;
  --btn-hover: #5B3BD6;
  --on-accent: #FFFFFF;
  --accent-soft: #EDE4FF;
  --grad-a: #7C3AED;
  --grad-b: #A21CAF;
  --teal: #0F766E;
  --gold: #8A5A00;
  --star: #8B5CFF;
  --danger: #BE123C;
  --danger-soft: #FFE4EA;
  --warning: #8A4B00;
  --warning-soft: #FFF3D6;
  --success: #0F766E;
  --success-soft: #DDF6F3;
  --info: #1D4ED8;
  --shadow: 0 1px 2px rgba(20, 16, 42, 0.06);
  --shadow-pop: 0 24px 60px rgba(20, 16, 42, 0.18);
  --glow: 0 0 0 3px rgba(109, 40, 217, 0.4);
  --glow-soft: 0 0 60px rgba(139, 92, 255, 0.18);
}

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