* {
  box-sizing: border-box;
}

html {
  scrollbar-gutter: stable;
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

body {
  overflow-wrap: break-word;
  margin: 0;
  background: var(--site-canvas);
  color: var(--site-text);
  font: 400 17px/1.6 var(--site-font-body);
}

a {
  color: inherit;
  text-underline-offset: 5px;
}

a,
button,
summary {
  -webkit-tap-highlight-color: transparent;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--site-accent);
  outline-offset: 5px;
}

button {
  font: inherit;
  cursor: pointer;
}

button,
a {
  touch-action: manipulation;
}

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

h1,
h2,
h3 {
  text-wrap: balance;
}

h1 {
  font-size: clamp(3.6rem, 6.5vw, 6rem);
  line-height: 1.01;
  font-weight: 500;
  letter-spacing: -0.065em;
}

h2 {
  font-size: clamp(2.3rem, 4.3vw, 4rem);
  line-height: 1.08;
  letter-spacing: -0.05em;
  font-weight: 500;
}

h3 {
  font-size: 1.55rem;
  line-height: 1.2;
  letter-spacing: -0.025em;
  font-weight: 600;
}

@media (max-width: 1000px) {
  h1 {
    font-size: clamp(3.2rem, 6.3vw, 5.5rem);
  }
}

@media (max-width: 720px) {
  h1 {
    font-size: clamp(2.4rem, 13.7vw, 5rem);
    line-height: 1.04;
    letter-spacing: -0.055em;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
