/* css/tokens.css — ScoutEdge design tokens.
 *
 * Brand colours come from the logo (brand/scoutedge-logo.png): navy #012350
 * and lime #a6cd3e. Navy carries identity (top bar, hero, headings); lime is
 * the accent for the primary action, active navigation, progress,
 * verification and positive states. The public site (css/site.css) uses the
 * same two brand colours under its own `--se-*` names.
 */

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('/fonts/inter-latin.woff2') format('woff2');
}

@font-face {
  font-family: 'Barlow Condensed';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/barlow-condensed-600-latin.woff2') format('woff2');
}

@font-face {
  font-family: 'Barlow Condensed';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/barlow-condensed-700-latin.woff2') format('woff2');
}

:root {
  /* Brand */
  --navy-950: #01152f;
  --navy-900: #012350; /* logo navy */
  --navy-800: #0d2c56;
  --navy-700: #1c3d72;
  --navy-600: #2a5394;
  --navy-100: #e2ebf6;
  --navy-50: #f2f6fb;
  --lime-600: #87ad25;
  --lime-500: #97bf31;
  --lime-400: #a6cd3e; /* logo lime */
  --lime-300: #c3e078;
  --lime-100: #eef6d8;
  --lime-50: #f7fbeb;
  --lime-ink: #4a6114; /* lime-family text on light backgrounds (AA) */

  /* Neutrals */
  --ink-900: #111827;
  --ink-700: #344054;
  --ink-600: #475467;
  --ink-500: #667085;
  --ink-300: #d0d5dd;
  --ink-200: #e4e7ec;
  --ink-100: #f2f4f7;
  --ink-50: #f8fafc;

  /* Semantic */
  --color-bg: var(--navy-900);
  --color-page: #f4f6fa;
  --color-surface: #ffffff;
  --color-surface-alt: var(--ink-50);
  --color-surface-sunken: var(--ink-100);
  --color-border: var(--ink-200);
  --color-border-strong: var(--ink-300);
  /* Form-field edges: an existing neutral that meets the 3:1 non-text
     contrast minimum (WCAG 1.4.11) against white and the page background. */
  --color-border-field: var(--ink-500);
  --color-border-field-hover: var(--ink-600);
  --color-text: var(--ink-900);
  --color-heading: var(--navy-900);
  --color-text-muted: var(--ink-500);
  --color-primary: var(--navy-700);
  --color-primary-dark: var(--navy-900);
  --color-primary-contrast: #ffffff;
  --color-accent: var(--lime-400);
  --color-accent-strong: var(--lime-500);
  --color-accent-ink: var(--navy-900);
  --color-success: #2f7d32;
  --color-success-bg: #ecf7ea;
  --color-error: #c4320a;
  --color-error-bg: #fef3f2;
  --color-warning: #a15c07;
  --color-warning-bg: #fffaeb;
  --color-info: var(--navy-600);
  --color-info-bg: var(--navy-50);

  /* Spacing scale */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 2.5rem;
  --space-8: 3rem;

  /* Typography */
  --font-sans: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto,
    Helvetica, Arial, sans-serif;
  --font-display: 'Barlow Condensed', 'Inter', ui-sans-serif, system-ui, sans-serif;
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.5rem;
  --font-size-2xl: 2rem;
  --font-size-3xl: clamp(1.9rem, 1.4rem + 1.8vw, 2.75rem);
  --line-height: 1.55;

  /* Radius + shadow */
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.05);
  --shadow: 0 1px 3px rgba(16, 24, 40, 0.06), 0 6px 16px -4px rgba(16, 24, 40, 0.08);
  --shadow-lg: 0 4px 8px -2px rgba(16, 24, 40, 0.06), 0 16px 32px -8px rgba(1, 35, 80, 0.18);
  --ring-focus: 0 0 0 3px rgba(166, 205, 62, 0.45);

  /* Motion (fast, subtle) */
  --ease-standard: cubic-bezier(0.2, 0, 0, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-fast: 120ms;
  --dur: 200ms;
  --dur-slow: 360ms;

  /* Layout */
  --header-height: 64px;
  --content-max: 1200px;
  --gutter: clamp(1rem, 0.6rem + 1.6vw, 2rem);
}
