*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: var(--font-weight-normal);
  line-height: var(--line-height-normal);
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-blue);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-blue-dark);
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-heading);
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-tight);
  color: var(--color-primary);
  margin-block: 0 0.5em;
}

h1 {
  font-size: clamp(var(--text-3xl), 4vw, var(--text-5xl));
}

h2 {
  font-size: clamp(var(--text-2xl), 3vw, var(--text-3xl));
  margin-top: var(--spacing-xl);
  letter-spacing: -0.02em;
}

.section > .container > h2:first-child {
  margin-top: 0;
}

h3 {
  font-size: var(--text-xl);
}

p {
  margin: 0 0 var(--spacing-md);
}

ul,
ol {
  margin: 0 0 var(--spacing-md);
  padding-left: 1.25rem;
}

.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;
}

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