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

html {
  font-family: var(--mf-font-family);
  color: var(--mf-color-text);
  background: var(--mf-color-bg);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

html, body {
  margin: 0;
  min-width: 0;
  min-height: 100%;
}

body {
  background: var(--mf-color-bg);
  color: var(--mf-color-text);
}

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

button {
  min-width: var(--mf-touch-target);
  min-height: var(--mf-touch-target);
  border: 0;
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--mf-color-brand) 70%, white);
  outline-offset: 2px;
}

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

[hidden] {
  display: none;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto;
    transition-duration: 0.01ms;
    animation-duration: 0.01ms;
    animation-iteration-count: 1;
  }
}
