/* Typography Enhancements - Inspired by Analysis */

/* Enhanced Typography Hierarchy */
h1, .h1 {
  font-family: var(--heading-font);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.1;
  color: var(--heading-color);
}

h2, .h2 {
  font-family: var(--heading-font);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--heading-color);
}

h3, .h3 {
  font-family: var(--heading-font);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.3;
  color: var(--heading-color);
}

h4, .h4, h5, .h5, h6, .h6 {
  font-family: var(--heading-font);
  font-weight: 500;
  line-height: 1.4;
  color: var(--heading-color);
}

/* Body Text Improvements */
body {
  font-family: var(--default-font);
  font-weight: 400;
  line-height: 1.6;
  color: var(--default-color);
  background-color: var(--background-color);
}

p {
  margin-bottom: 1.25rem;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--default-color);
}

.lead {
  font-size: 1.25rem;
  font-weight: 300;
  line-height: 1.5;
  color: var(--default-color);
}

/* Navigation Typography */
.navmenu a {
  font-family: var(--nav-font);
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.025em;
  text-transform: uppercase;
}

/* Button Typography */
.btn {
  font-family: var(--nav-font);
  font-weight: 600;
  letter-spacing: 0.025em;
  text-transform: uppercase;
  font-size: 0.875rem;
}

.btn-lg {
  font-size: 1rem;
  font-weight: 700;
}

/* Enhanced Typography Classes */
.text-display {
  font-family: var(--heading-font);
  font-weight: 900;
  font-size: 3.5rem;
  line-height: 1;
  letter-spacing: -0.05em;
  color: var(--heading-color);
}

.text-hero {
  font-family: var(--heading-font);
  font-weight: 800;
  font-size: 2.5rem;
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--heading-color);
}

.text-subtitle {
  font-family: var(--accent-font);
  font-weight: 400;
  font-size: 1.125rem;
  line-height: 1.5;
  color: var(--text-muted);
}

.text-caps {
  font-family: var(--nav-font);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-color);
}

/* Responsive Typography */
@media (max-width: 768px) {
  .text-display {
    font-size: 2.5rem;
  }
  
  .text-hero {
    font-size: 2rem;
  }
  
  h1, .h1 {
    font-size: 2rem;
  }
  
  h2, .h2 {
    font-size: 1.75rem;
  }
}

@media (max-width: 576px) {
  .text-display {
    font-size: 2rem;
  }
  
  .text-hero {
    font-size: 1.75rem;
  }
  
  h1, .h1 {
    font-size: 1.75rem;
  }
  
  h2, .h2 {
    font-size: 1.5rem;
  }
}

/* Enhanced Readability */
.content p {
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.content ul li {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 0.5rem;
}

/* Improved Link Styles */
a {
  color: var(--accent-color);
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover {
  color: var(--heading-color);
  text-decoration: none;
}

/* Section Titles Enhancement */
.section-title h2 {
  font-family: var(--heading-font);
  font-weight: 700;
  font-size: 2.5rem;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--heading-color);
}

.section-title p {
  font-family: var(--accent-font);
  font-size: 1.125rem;
  font-weight: 400;
  line-height: 1.5;
  color: var(--text-muted);
  margin-bottom: 0;
}

/* Icon Box Typography */
.icon-box .title a {
  font-family: var(--heading-font);
  font-weight: 600;
  font-size: 1.25rem;
  line-height: 1.3;
  color: var(--heading-color);
}

.icon-box .description {
  font-family: var(--default-font);
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--default-color);
}

/* Stats Typography */
.stats-item span {
  font-family: var(--heading-font);
  font-weight: 900;
  font-size: 3rem;
  line-height: 1;
  color: var(--contrast-color);
}

.stats-item p {
  font-family: var(--nav-font);
  font-weight: 500;
  font-size: 0.875rem;
  letter-spacing: 0.025em;
  text-transform: uppercase;
  color: var(--contrast-color);
  margin: 0;
}

/* Footer Typography */
.footer h4 {
  font-family: var(--heading-font);
  font-weight: 600;
  font-size: 1.125rem;
  color: var(--contrast-color);
  margin-bottom: 1rem;
}

.footer p, .footer li {
  font-size: 0.9rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.8);
}

.sitename {
  font-family: var(--heading-font);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--contrast-color);
}