@font-face {
  font-display: swap;
  font-family: "WA Display";
  font-style: normal;
  font-weight: 100 1000;
  src: url("../fonts/ysabeau-office.woff2") format("woff2");
}

@font-face {
  font-display: swap;
  font-family: "WA Text";
  font-style: normal;
  font-weight: 200 800;
  src: url("../fonts/manrope.woff2") format("woff2");
}

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

html {
  background: var(--wa-color-ground);
  color: var(--wa-color-ink);
  font-family: var(--wa-font-text);
  font-size: 100%;
  scroll-behavior: smooth;
}

body {
  background: var(--wa-color-ground);
  color: var(--wa-color-ink);
  font-family: var(--wa-font-text);
  font-size: 1rem;
  line-height: 1.65;
  margin: 0;
  min-width: 20rem;
  overflow-wrap: anywhere;
}

body,
button,
input,
select,
textarea {
  letter-spacing: 0;
}

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

.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal;
}

a {
  color: inherit;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.2em;
}

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

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

button,
input[type="button"],
input[type="submit"] {
  cursor: pointer;
}

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

h1,
h2,
h3,
h4 {
  font-family: var(--wa-font-display);
  font-weight: 650;
  letter-spacing: 0;
  line-height: 1.08;
  margin-block: 2.5rem 0.8rem;
  text-wrap: balance;
}

h1 {
  font-size: 3.75rem;
  max-width: 18ch;
}

h2 {
  font-size: 2.5rem;
}

h3 {
  font-size: 1.65rem;
}

p,
li {
  max-width: var(--wa-reading-width);
}

::selection {
  background: var(--wa-color-forest);
  color: var(--wa-color-surface);
}

@media (max-width: 40rem) {
  h1 {
    font-size: 2.5rem;
  }

  h2 {
    font-size: 2rem;
  }
}

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

  .site-header__menu-toggle span {
    transition: none;
  }
}
