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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
  -webkit-text-size-adjust: 100%;
}

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

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-surface);
}

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

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

h1,
h2,
h3 {
  color: var(--color-ink);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

ul[class],
ol[class] {
  padding: 0;
  list-style: none;
}

a {
  color: var(--color-ink);
}

a:hover {
  color: var(--color-accent-ink);
}

:focus-visible {
  outline: 3px solid var(--color-accent-ink);
  outline-offset: 3px;
}

address {
  font-style: normal;
}

input,
textarea,
button {
  font: inherit;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: var(--space-sm);
  top: -4rem;
  z-index: 100;
  padding: var(--space-xs) var(--space-sm);
  background: var(--color-ink);
  color: var(--color-surface);
  border-radius: var(--radius-sm);
}

.skip-link:focus {
  top: var(--space-sm);
  color: var(--color-surface);
}

.text-center {
  text-align: center;
}
