@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700&family=Plus+Jakarta+Sans:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

/* =====================================================
   DESIGN SYSTEM VARIABLES
   ===================================================== */
:root {
  /* Color Palette - Modern Duo */
  --color-primary: #0069b4;       /* Signature IRA Blue */
  --color-primary-hover: #005694;
  --color-accent: #17a6ca;        /* Mint / Teal */
  --color-accent-hover: #128ba9;
  --color-charcoal: #3d4a42;      /* Deep Charcoal / Warm Gray-Green */
  --color-charcoal-dark: #28332c;
  
  /* Neutrals */
  --bg-page: #f7faf8;             /* Light Minty-Paper Background */
  --bg-surface: #ffffff;
  --bg-surface-tint: #f0f4f1;
  --text-dark: #131715;           /* Near-Black for high contrast */
  --text-muted: #53645c;          /* Readable muted gray-green */
  --text-on-dark: #f7faf8;
  --border-light: #e1e9e5;
  --border-focus: #17a6ca;
  
  /* Typography */
  --font-display: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Spacing */
  --space-xs: 0.5rem;   /* 8px */
  --space-sm: 1rem;     /* 16px */
  --space-md: 1.5rem;   /* 24px */
  --space-lg: 2rem;     /* 32px */
  --space-xl: 3rem;     /* 48px */
  --space-2xl: 4rem;    /* 64px */
  --space-3xl: 6rem;    /* 96px */
  
  /* Shape & Shadow */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-pill: 9999px;
  --shadow-sm: 0 2px 8px rgba(19, 23, 21, 0.04);
  --shadow-md: 0 4px 20px rgba(19, 23, 21, 0.06);
  --shadow-lg: 0 8px 32px rgba(19, 23, 21, 0.08);

  /* Container */
  --container-width: 1200px;
  --text-max-width: 65ch;
  
  /* Dials context */
  /* DESIGN_VARIANCE: 7 (Asymmetry, unique section layout variations) */
  /* MOTION_INTENSITY: 3 (Subtle scroll-reveals, smooth hover fades) */
  /* VISUAL_DENSITY: 4 (Airy spacing, high scannability) */
}

/* =====================================================
   BASE STYLES & RESET
   ===================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-page);
  color: var(--text-dark);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Typography Scales */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  color: var(--text-dark);
  letter-spacing: -0.02em;
}

h1 {
  font-size: 2.5rem;
  font-size: clamp(2.5rem, 5vw, 4rem);
  letter-spacing: -0.03em;
}

h2 {
  font-size: 1.75rem;
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  margin-bottom: var(--space-md);
}

h3 {
  font-size: 1.35rem;
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  margin-bottom: var(--space-sm);
}

h4 {
  font-size: 1.15rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: var(--space-xs);
}

p {
  max-width: var(--text-max-width);
  margin-bottom: var(--space-sm);
}

p.lead {
  font-size: clamp(1.1rem, 2vw, 1.25rem);
  line-height: 1.5;
  color: var(--text-muted);
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color 0.25s ease, border-color 0.25s ease;
}

a:hover {
  color: var(--color-primary-hover);
}

ul, ol {
  list-style-position: inside;
  margin-bottom: var(--space-md);
}

li {
  margin-bottom: var(--space-xs);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-md);
}

/* =====================================================
   LAYOUT UTILITIES
   ===================================================== */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-md);
  padding-right: var(--space-md);
}

.section {
  padding-top: var(--space-3xl);
  padding-bottom: var(--space-3xl);
  position: relative;
}

/* Section rhythmic variations */
.section--white {
  background-color: var(--bg-surface);
}

.section--mint {
  background-color: var(--bg-surface-tint);
}

.section--dark {
  background-color: var(--color-charcoal);
  color: var(--text-on-dark);
}

.section--dark h1,
.section--dark h2,
.section--dark h3,
.section--dark h4,
.section--dark strong {
  color: var(--text-on-dark);
}

.section--dark p {
  color: rgba(247, 250, 248, 0.85);
}

/* Flex & Grid layouts */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
}

.grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}

@media (min-width: 768px) {
  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.flex-align-center {
  display: flex;
  align-items: center;
}

.text-center {
  text-align: center;
}

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

/* Hide scrollbars but allow scrolling */
.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}
