* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  font-family: var(--font-family);
  line-height: 1.5;
  color: var(--clr-text);
  background: var(--clr-bg);
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--clr-main);
  outline-offset: 2px;
}

/* Reserve the space of an icon until Font Awesome swapped it for an svg */
i[class*="fa-"] {
  display: inline-block;
  width: 1.25em;
  height: 1em;
}

.muted {
  color: var(--clr-text-muted);
}

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

.external-icon {
  font-size: 0.8em;
}

/* Crossfade when the language switches in place */
::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 0.3s;
}
