body {
  font-family: var(--font-body);
  font-size: clamp(1rem, 1.1vw, 1.125rem);
  color: var(--text-primary);
  background-color: var(--bg-primary);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  overflow-wrap: break-word;
  word-break: break-word;
}

h1 {
  font-size: clamp(2.25rem, 5vw, 4rem);
}

h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
}

h3 {
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
}

::selection {
  background-color: var(--accent);
  color: var(--text-on-accent);
}

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

/* Utility classes */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--space-sm);
}

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

.text-accent {
  color: var(--accent);
}

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

/* Skip link */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-sm);
  z-index: 9999;
  padding: var(--space-xs) var(--space-sm);
  background: var(--accent);
  color: var(--text-on-accent);
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: top var(--transition-fast);
}

.skip-link:focus {
  top: var(--space-xs);
}

/* Section base */
.section {
  padding-block: var(--space-xl);
  scroll-margin-top: var(--nav-height);
}

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

/* Section header */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: var(--space-sm);
}

.section-label::before,
.section-label::after {
  content: '';
  display: inline-block;
  width: 32px;
  height: 2px;
  background: var(--accent);
}

.section-title {
  margin-bottom: var(--space-xs);
}

.section-subtitle {
  color: var(--text-secondary);
  max-width: 600px;
  margin-bottom: var(--space-lg);
}

.section-subtitle--center {
  margin-inline: auto;
}
