@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("/fonts/space-grotesk-latin-variable.woff2") format("woff2");
}

:root {
  --font-heading: "Space Grotesk", "Arial", sans-serif;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-heading);
  font-weight: 600;
  text-wrap: balance;
}

.intro h1 {
  font-size: clamp(42px, 6.1vw, 86px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.045em;
}

h2 {
  font-size: clamp(36px, 4.8vw, 62px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

h3,
h4 {
  letter-spacing: -0.025em;
}

.demo-heading h2 {
  letter-spacing: -0.035em;
}

.document > h1 {
  font-weight: 700;
  letter-spacing: -0.045em;
}

@media (max-width: 700px) {
  .intro h1 {
    font-size: clamp(34px, 8.4vw, 58px);
    letter-spacing: -0.04em;
  }
}
