html {
  scroll-behavior: smooth;
}

[id] {
  scroll-margin-top: calc(var(--header-height) + 24px);
}

body {
  font-family: var(--font-base);
  color: var(--itx-text-body);
  background: var(--itx-bg-white);
  overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
  font-weight: 900;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  line-height: 1.05;
  color: var(--itx-ink);
}

.section--grid-dark h1,
.section--grid-dark h2,
.section--grid-dark h3,
.section--grid-dark h4,
.is-dark h1,
.is-dark h2,
.is-dark h3,
.is-dark h4 {
  color: var(--itx-text-on-dark);
}

h1 {
  font-size: clamp(2.5rem, 6vw, 5rem);
}

h2 {
  font-size: clamp(2rem, 4.5vw, 3.25rem);
}

h3 {
  font-size: clamp(1.25rem, 2.4vw, 1.6rem);
  text-transform: none;
  letter-spacing: -0.01em;
}

p {
  color: var(--itx-text-muted);
  max-width: 60ch;
}

.is-dark p,
.section--grid-dark p {
  color: var(--itx-text-on-dark-muted);
}

strong {
  color: inherit;
  font-weight: 700;
}

a {
  transition: color var(--transition-fast);
}

::selection {
  background: var(--itx-blue);
  color: #fff;
}

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