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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--color-page);
  color: var(--color-text);
  font-family: var(--font-sans);
  font-size: 1.2rem;
  line-height: 1.75;
  text-rendering: optimizeLegibility;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-underline-offset: 0.2em;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1,
h2,
h3 {
  color: var(--color-text);
  font-family: var(--font-serif);
  font-weight: 400;
  line-height: 1.02;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.52rem, 9.6vw, 4.92rem);
  letter-spacing: 0;
  max-width: 12ch;
}

h2 {
  font-size: clamp(2.4rem, 8.4vw, 5.1rem);
  letter-spacing: 0;
  max-width: 14ch;
}

h3 {
  font-size: 1.35rem;
}

p {
  color: var(--color-muted);
  font-size: 1.2375rem;
  max-width: var(--content-width);
  text-wrap: pretty;
}
