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

* {
  margin: 0;
}

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

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

body {
  line-height: var(--line-height-body);
}

code,
kbd,
samp {
  font-family: var(--font-mono);
  font-size: var(--font-size-code-em);
}

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

/* Auto-hiding scrollbars: invisible until the user hovers the container */
*,
*::before,
*::after {
  scrollbar-width: thin;
  scrollbar-color: transparent transparent;
}

*:hover,
*:focus-within {
  scrollbar-color: var(--color-text-disabled, rgba(128, 128, 128, 0.45)) transparent;
}
