/* Typography CSS - Consistent text styling across all sections */

/* Font Import */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/* Typography Variables */
:root {
  /* Font Families */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', monospace;
  
  /* Font Sizes - Desktop */
  --text-xs: 12px;
  --text-sm: 14px;
  --text-base: 16px;
  --text-lg: 18px;
  --text-xl: 20px;
  --text-2xl: 24px;
  --text-3xl: 32px;
  --text-4xl: 36px;
  --text-5xl: 48px;
  --text-6xl: 56px;
  --text-7xl: 64px;
  
  /* Line Heights */
  --leading-tight: 1.15;
  --leading-snug: 1.2;
  --leading-normal: 1.5;
  --leading-relaxed: 1.6;
  --leading-loose: 1.7;
  
  /* Letter Spacing */
  --tracking-tight: -0.02em;
  --tracking-normal: 0;
  --tracking-wide: 0.05em;
  --tracking-wider: 0.1em;
}

/* Brand typography enhancements over Pico CSS defaults */
body {
  font-family: var(--font-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Brand-specific heading adjustments */
h1, h2, h3, h4, h5, h6 {
  letter-spacing: var(--tracking-tight);
}

/* Essential text utilities (keep minimal) */
.font-bold { font-weight: 700; }
.tracking-tight { letter-spacing: var(--tracking-tight); }

/* Special Typography - consolidated with hero.css */
.hero-headline {
  font-size: var(--text-6xl);
  font-weight: 700;
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  max-width: 800px;
  color: var(--gray-900);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.section-headline {
  font-size: var(--text-4xl);
  font-weight: 700;
  line-height: var(--leading-snug);
  margin-bottom: 16px;
}

.section-subheadline {
  font-size: var(--text-xl);
  line-height: var(--leading-relaxed);
  color: var(--gray-600);
  margin-bottom: 48px;
}

.testimonial-quote {
  font-size: var(--text-lg);
  font-style: italic;
  line-height: var(--leading-loose);
  color: var(--gray-700);
}

.metric-number {
  font-size: var(--text-5xl);
  font-weight: 700;
  line-height: 1;
  color: var(--primary);
}

.metric-label {
  font-size: var(--text-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
  color: var(--gray-500);
}

/* Links */
a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

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

/* Lists */
ul, ol {
  margin: 0 0 16px;
  padding-left: 24px;
  line-height: var(--leading-relaxed);
}

li {
  margin-bottom: 8px;
}

/* Code */
code {
  font-family: var(--font-mono);
  font-size: 0.875em;
  background-color: var(--gray-100);
  padding: 2px 6px;
  border-radius: 4px;
}

pre {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  background-color: var(--gray-900);
  color: var(--gray-100);
  padding: 16px;
  border-radius: 8px;
  overflow-x: auto;
  margin: 0 0 16px;
}

/* Blockquotes */
blockquote {
  margin: 0 0 16px;
  padding-left: 24px;
  border-left: 4px solid var(--primary);
  font-style: italic;
  color: var(--gray-700);
}

/* Responsive Typography */
@media (max-width: 768px) {
  :root {
    /* Adjust font sizes for mobile */
    --text-4xl: 28px;
    --text-5xl: 36px;
    --text-6xl: 40px;
    --text-7xl: 48px;
  }
  
  h1 {
    font-size: var(--text-5xl);
  }
  
  h2 {
    font-size: var(--text-3xl);
  }
  
  h3 {
    font-size: var(--text-xl);
  }
  
  .hero-headline {
    font-size: var(--text-5xl);
  }
  
  .section-headline {
    font-size: var(--text-3xl);
  }
  
  .metric-number {
    font-size: var(--text-4xl);
  }
}

/* Print Styles */
@media print {
  body {
    font-size: 12pt;
    line-height: 1.5;
  }
  
  h1 { font-size: 24pt; }
  h2 { font-size: 18pt; }
  h3 { font-size: 14pt; }
  
  a {
    text-decoration: underline;
  }
}