html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  background: var(--bg-main);
  color: var(--text-primary);
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-heading);
}

h1 {
  font-size: clamp(28px, 4.5vw, 44px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(22px, 3.5vw, 30px);
  font-weight: 700;
  line-height: 1.25;
}

h3 {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.35;
}

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

@media (min-width: 641px) {
  .container {
    padding: 0 var(--space-lg);
  }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.section {
  padding: var(--space-2xl) 0;
}

.section--alt {
  background: var(--bg-secondary);
}

.section__header {
  margin-bottom: var(--space-xl);
}

.section__header p {
  color: var(--text-secondary);
  margin-top: var(--space-sm);
  max-width: 600px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html {
    scroll-behavior: auto;
  }
}
