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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.45;
  color: var(--ink);
  background: var(--surface);
  text-rendering: optimizeLegibility;
}

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

button,
input {
  font: inherit;
}

input,
textarea {
  color: var(--ink);
  background: #fff;
}

::placeholder {
  color: var(--ink-faint);
  opacity: 1;
}

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

:focus {
  outline: none;
}

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

[id] {
  scroll-margin-top: 88px;
}

.container {
  width: min(var(--max), calc(100% - 40px));
  margin-inline: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 80;
  background: #000;
  color: #fff;
  padding: 10px 14px;
  border-radius: 10px;
  text-decoration: none;
}

.skip-link:focus {
  top: 12px;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  line-height: 1.12;
  letter-spacing: -0.03em;
  font-weight: 700;
}

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

a:visited {
  color: var(--link);
}

.noscript {
  margin: 16px auto;
  padding: 12px 16px;
  background: #fff;
  border-radius: 14px;
  max-width: var(--max);
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
