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

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: clip;
  font-family: var(--font-body);
  font-size: var(--body);
  line-height: 1.65;
  color: var(--color-text);
  background: linear-gradient(180deg, #ffffff 0%, var(--color-bg) 100%);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  font-family: var(--font-display);
  line-height: 1.06;
  letter-spacing: -0.03em;
}

h1 {
  font-size: var(--display-l);
}

h2 {
  font-size: var(--heading-xl);
}

h3 {
  font-size: var(--heading-md);
}

p {
  margin: 0;
}

.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;
}

ul,
ol {
  margin: 0;
  padding: 0;
}

main {
  display: block;
}

input {
  border: 1px solid var(--color-line);
  background: rgba(255, 255, 255, 0.88);
  color: var(--color-text);
}

input:focus-visible,
button:focus-visible,
a:focus-visible {
  outline: 2px solid rgba(37, 54, 216, 0.55);
  outline-offset: 4px;
}

@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;
  }
}
