h1,
h2,
h3,
h4 {
  margin-block: 0 var(--space-4);
  font-weight: var(--font-weight-semibold);
  line-height: var(--line-height-tight);
}

h1 {
  font-size: clamp(2.15rem, 3.2vw, 3.5rem);
}

h2 {
  font-size: clamp(1.75rem, 2vw, 2.25rem);
}

h3 {
  font-size: clamp(1.125rem, 1.2vw, 1.25rem);
}

p {
  margin-block: 0 var(--space-4);
  color: var(--color-text-secondary);
}

h1,
h2,
h3,
h4 {
  color: var(--color-text-primary);
}

a {
  color: var(--color-accent-primary);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-text-primary);
}

code {
  font-family: var(--font-family-mono);
  font-size: 0.95em;
}

/*
  Blazor moves focus to the page heading after navigation.
  The outline is suppressed on that programmatic focus only.
*/
h1:focus {
  outline: none;
}
