/**
 * Nasc Financial Literacy PWA — CSS Custom Properties
 * Design system tokens from UI Guidelines
 */

:root {
  /* Brand colours (from Nasc toolkit) */
  --nasc-red: #CC2027;
  --gold: #E6A438;
  --plum: #4B0B32;
  --plum-light: #F5E8F0;
  --cream: #FEEFD4;
  --ink: #2A2A2A;

  /* Neutral greys */
  --grey-50: #FAFAFA;
  --grey-100: #F7F7F7;
  --grey-200: #E5E5E5;
  --grey-300: #CCCCCC;
  --grey-400: #999999;
  --grey-500: #666666;
  --grey-600: #444444;

  /* Semantic colours */
  --success: #0D7D3C;
  --success-light: #E6F4EC;
  --success-dark: #065F2C;
  --warning: #B86E00;
  --warning-light: #FFF3E0;
  --warning-dark: #8A5200;
  --danger: #CC2027;
  --danger-light: #FCE8E8;
  --info: #0969DA;
  --info-light: #DDF4FF;

  /* Text colours */
  --text-primary: var(--ink);
  --text-secondary: var(--grey-600); /* darker for readability (NALA review, Oct 2026) */
  --text-inverse: #FFFFFF;
  --text-link: var(--plum);

  /* Background colours */
  --bg-primary: #FFFFFF;
  --bg-secondary: var(--grey-100);
  --bg-accent: var(--cream);

  /* Spacing scale */
  --space-1: 0.25rem;  /* 4px */
  --space-2: 0.5rem;   /* 8px */
  --space-3: 0.75rem;  /* 12px */
  --space-4: 1rem;     /* 16px */
  --space-5: 1.5rem;   /* 24px */
  --space-6: 2rem;     /* 32px */
  --space-7: 3rem;     /* 48px */
  --space-8: 4rem;     /* 64px */

  /* Typography */
  --font-family: system-ui, -apple-system, BlinkMacSystemFont,
                 'Segoe UI', Roboto, sans-serif;
  --font-size-xs: 0.75rem;   /* 12px */
  --font-size-sm: 0.875rem;  /* 14px */
  --font-size-base: 1rem;    /* 16px */
  --font-size-lg: 1.125rem;  /* 18px */
  --font-size-xl: 1.5rem;    /* 24px */
  --font-size-2xl: 2rem;     /* 32px */
  --font-size-3xl: 2.5rem;   /* 40px */

  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;

  --line-height-tight: 1.25;
  --line-height-normal: 1.5;
  --line-height-relaxed: 1.75;

  /* Border radius */
  --radius-sm: 0.25rem;  /* 4px */
  --radius-md: 0.5rem;   /* 8px */
  --radius-lg: 1rem;     /* 16px */
  --radius-xl: 1.5rem;   /* 24px */
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);

  /* Touch targets */
  --touch-target-min: 44px;

  /* Layout */
  --header-height: 56px;
  --nav-height: 64px;
  --content-max-width: 480px;
}

/* RTL support - mirror directional icons where needed */
[dir="rtl"] {
  --icon-back: url("data:image/svg+xml,..."); /* mirrored arrow */
}
