/* ==========================================================================
   Ashley Miller portfolio — design tokens (Data Science Engineer)
   Strict Palette: #1A2F6B (Navy) & #F5F6FA (Off-White)
   ========================================================================== */

:root {
  color-scheme: light;

  /* Typography */
  --font-sans: "Bricolage Grotesque", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: Georgia, "Times New Roman", serif;
  --font-script: "Pacifico", "Brush Script MT", cursive;
  --font-mono: "JetBrains Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;

  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;
  --text-5xl: 3rem;
  --text-6xl: 3.75rem;
  --text-7xl: 4.5rem;

  /* Two-Tone Palette */
  --c-navy: #1A2F6B;
  --c-offwhite: #F5F6FA;

  /* Semantic colour */
  --bg: #F5F6FA;
  --bg-alt: #ECEEF5;
  --surface: #F5F6FA;
  --surface-2: #ECEEF5;
  --surface-3: #FAFBFD;
  --ink: #0A0F1E;
  --ink-2: #1A2F6B;
  --muted: rgba(26, 47, 107, 0.78);
  --line: rgba(26, 47, 107, 0.22);
  --line-strong: #1A2F6B;

  --primary: #1A2F6B;
  --primary-2: #122050;
  --primary-soft: rgba(26, 47, 107, 0.1);
  --primary-ink: #F5F6FA;
  --brand: #1A2F6B;

  --secondary: #1A2F6B;
  --secondary-2: #122050;
  --secondary-strong: #1A2F6B;
  --secondary-soft: rgba(26, 47, 107, 0.1);
  --secondary-ink: #F5F6FA;

  --accent: #1A2F6B;
  --accent-2: #122050;
  --accent-soft: rgba(26, 47, 107, 0.1);

  --teal-300: #4A7FD4;
  --teal-400: #2D5FC4;
  --teal-500: #1A2F6B;

  --success: #1A5C36;
  --success-soft: rgba(26, 92, 54, 0.1);
  --danger: #8B1A1A;
  --danger-soft: rgba(139, 26, 26, 0.1);

  --night: #0A0F1E;
  --night-2: #0F1830;
  --night-3: #1A2F6B;
  --night-ink: #F5F6FA;
  --night-muted: rgba(245, 246, 250, 0.8);
  --night-line: rgba(245, 246, 250, 0.24);
  --night-glass: rgba(26, 47, 107, 0.92);

  /* Gradients */
  --gradient-brand: linear-gradient(135deg, #1A2F6B 0%, #122050 100%);
  --gradient-brand-soft: linear-gradient(135deg, rgba(26, 47, 107, 0.12) 0%, rgba(26, 47, 107, 0.04) 100%);
  --gradient-warm: linear-gradient(135deg, #F5F6FA 0%, #ECEEF5 100%);
  --gradient-hero: linear-gradient(180deg, #1A2F6B 0%, #122050 100%);
  --gradient-cta: linear-gradient(135deg, #1A2F6B 0%, #122050 100%);

  /* Spacing scale */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  /* Elevation */
  --shadow-sm: 0 1px 2px rgba(21, 22, 36, 0.06);
  --shadow-md: 0 18px 44px -28px rgba(21, 22, 36, 0.35);
  --shadow-lg: 0 40px 90px -48px rgba(21, 22, 36, 0.5);
  --shadow-brand: 0 18px 44px -22px rgba(79, 70, 229, 0.5);
  --shadow-teal: 0 18px 44px -24px rgba(20, 184, 166, 0.42);
  --shadow-night: 0 40px 100px -40px rgba(0, 0, 0, 0.75);

  /* Shape */
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-2xl: 40px;
  --radius-full: 999px;

  /* Layout */
  --container: 1180px;
  --container-wide: 1280px;
  --container-narrow: 820px;
  --header-h: 76px;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --duration-fast: 0.18s;
  --duration-base: 0.3s;
  --duration-slow: 0.7s;

  /* Layering */
  --z-header: 100;
  --z-menu: 90;
  --z-toast: 200;
}

[data-theme="dark"] {
  color-scheme: light;
  --bg: #F5F6FA;
  --bg-alt: #ECEEF5;
  --surface: #F5F6FA;
  --surface-2: #ECEEF5;
  --ink: #0A0F1E;
  --ink-2: #1A2F6B;
  --muted: rgba(26, 47, 107, 0.78);
  --line: rgba(26, 47, 107, 0.22);
  --line-strong: #1A2F6B;

  --primary: #1A2F6B;
  --primary-2: #122050;
  --primary-soft: rgba(26, 47, 107, 0.1);
  --primary-ink: #F5F6FA;

  --secondary: #1A2F6B;
  --secondary-2: #122050;
  --secondary-strong: #1A2F6B;
  --secondary-soft: rgba(26, 47, 107, 0.1);
  --secondary-ink: #F5F6FA;

  --accent: #1A2F6B;
  --accent-2: #122050;
  --accent-soft: rgba(26, 47, 107, 0.1);

  --teal-300: #4A7FD4;
  --teal-400: #2D5FC4;
  --teal-500: #1A2F6B;

  --success: #1A5C36;
  --success-soft: rgba(26, 92, 54, 0.1);
  --danger: #8B1A1A;
  --danger-soft: rgba(139, 26, 26, 0.1);

  --gradient-brand-soft: linear-gradient(
    135deg,
    rgba(26, 47, 107, 0.12) 0%,
    rgba(26, 47, 107, 0.04) 100%
  );
  --gradient-warm: linear-gradient(
    135deg,
    #F5F6FA 0%,
    #ECEEF5 100%
  );

  --shadow-sm: 0 1px 2px rgba(26, 47, 107, 0.06);
  --shadow-md: 0 18px 44px -28px rgba(26, 47, 107, 0.25);
  --shadow-lg: 0 40px 90px -48px rgba(26, 47, 107, 0.35);
}

@media print {
  :root {
    color-scheme: light;
    --bg: #ffffff;
    --bg-alt: #ffffff;
    --surface: #ffffff;
    --surface-2: #ffffff;
    --ink: #000000;
    --ink-2: #1a1a1a;
    --muted: #444444;
    --line: #cccccc;
    --line-strong: #999999;
    --night: #ffffff;
    --night-2: #ffffff;
    --night-3: #ffffff;
    --night-ink: #000000;
    --night-muted: #444444;
    --night-line: #cccccc;
    --night-glass: transparent;
  }
}
