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

html {
  min-width: 20rem;
  scroll-behavior: smooth;
  text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  margin: 0;
  background: var(--color-canvas);
  color: var(--color-text);
  font-family: var(--font-sans);
  font-size: var(--text-base);
  font-weight: var(--font-weight-regular);
  line-height: var(--leading-body);
  text-rendering: optimizeLegibility;
}

body,
h1,
h2,
h3,
p,
figure,
blockquote,
dl,
dd {
  margin-block: 0;
}

dd {
  margin-inline-start: 0;
}

h1,
h2,
h3 {
  font: inherit;
}

h1,
h2 {
  font-family: var(--font-heading);
}

ul,
ol {
  margin-block: 0;
  padding-inline-start: 1.25em;
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

button,
input,
textarea,
select {
  margin: 0;
  color: inherit;
  font: inherit;
}

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

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

:focus-visible {
  outline: 0.125rem solid var(--color-brand);
  outline-offset: 0.25rem;
  box-shadow: var(--focus-ring);
}

::selection {
  background: var(--color-brand);
  color: var(--color-on-brand);
}

[hidden] {
  display: none !important;
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
