* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: radial-gradient(circle at 0 0, var(--color-blue-light) 0, transparent 42%),
              linear-gradient(180deg, #f9fcff 0%, #fefafc 100%);
  color: var(--color-text);
  font-family: var(--font-family-base);
  font-size: var(--font-size-body);
  line-height: var(--line-height-body);
  font-weight: var(--font-weight-body);
}

a {
  color: var(--color-primary);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

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

h1,
h2,
h3,
h4 {
  margin: 0 0 var(--space-md);
  color: var(--color-text);
}

h1 {
  font-size: var(--font-size-h1);
  line-height: var(--line-height-h1);
  font-weight: var(--font-weight-h1);
}

h2 {
  font-size: var(--font-size-h2);
  line-height: var(--line-height-h2);
  font-weight: var(--font-weight-h2);
}

h3 {
  font-size: var(--font-size-h3);
  line-height: var(--line-height-h3);
  font-weight: var(--font-weight-h3);
}

h4 {
  font-size: var(--font-size-h4);
  line-height: var(--line-height-h4);
  font-weight: var(--font-weight-h4);
}

p,
ul,
ol,
blockquote {
  margin: 0 0 var(--space-md);
}

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

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

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

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.skip-link:focus {
  position: static;
  width: auto;
  height: auto;
  margin: var(--space-sm);
  clip: auto;
  padding: var(--space-xs) var(--space-sm);
  background: var(--color-yellow-light);
  border-radius: var(--radius-md);
  z-index: 10000;
}

@media (max-width: 1023px) {
  body {
    font-size: var(--font-size-small);
    line-height: var(--line-height-small);
  }

  h1 {
    font-size: 34px;
    line-height: 42px;
  }

  h2 {
    font-size: 28px;
    line-height: 36px;
  }
}
