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

html {
  min-width: 320px;
  background: var(--color-page);
  color: var(--color-text);
  font-family: var(--font-family-base);
  line-height: var(--line-base);
  text-rendering: optimizeLegibility;
}

body {
  margin: 0;
  background: var(--color-page);
  color: var(--color-text);
  font-size: var(--text-md);
}

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

a {
  color: inherit;
  font-family: var(--font-family-base);
  text-decoration: none;
}

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

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

button {
  cursor: pointer;
}

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

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

[hidden] {
  display: none;
}

.icon {
  display: inline-flex;
  fill: currentColor;
}
.icon--stroke {
  display: inline-flex;
  stroke: currentColor;
  fill: none;
}
