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

html {
  font-size: 100%;
  scroll-behavior: smooth;
  overflow-x: hidden;
  width: 100%;
}

body {
  background-color: var(--page);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--t-body);
  line-height: var(--line-height-body);
  font-weight: var(--weight-regular);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  width: 100%;
}

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

h1,
h2 {
  font-family: var(--font-heading);
  color: var(--ink);
  line-height: var(--line-height-heading);
  font-optical-sizing: auto;
}

h1 {
  font-size: var(--t-hero);
  font-weight: var(--weight-semibold);
}

h2 {
  font-size: var(--t-h2);
  font-weight: var(--weight-medium);
}

h3 {
  font-family: var(--font-body);
  font-size: var(--t-h3);
  font-weight: var(--weight-medium);
  color: var(--ink);
  line-height: var(--line-height-heading);
}

p {
  max-width: 68ch;
}

p + p {
  margin-top: var(--space-16);
}

small {
  font-size: var(--t-small);
}

.eyebrow,
.label {
  font-family: var(--font-body);
  font-size: var(--t-label);
  font-weight: var(--weight-medium);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

a {
  color: var(--action);
  text-decoration: underline;
  transition: color var(--transition-hover);
}

a:hover {
  color: var(--action-hover);
}

button,
input,
textarea,
select {
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  color: inherit;
}

a,
button,
input,
textarea,
select {
  min-height: 44px;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--action);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  top: -9999px;
  left: var(--space-16);
  z-index: 1000;
  padding: var(--space-8) var(--space-16);
  background-color: var(--surface);
  color: var(--action);
  border: 1px solid var(--field-border);
  border-radius: var(--radius-button);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.skip-link:focus {
  top: var(--space-16);
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
