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

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

.i18n-pending body {
  visibility: hidden;
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-family);
  font-size: var(--font-size-body);
  line-height: var(--line-height-body);
  font-weight: var(--font-weight-regular);
  font-optical-sizing: auto;
  font-variation-settings: "opsz" var(--optical-caption);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background: var(--color-text-muted);
  color: var(--color-surface);
}

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

p,
h1,
h2,
ul {
  margin: 0;
  padding: 0;
}

ul {
  list-style: none;
}

strong,
b {
  font-weight: var(--font-weight-bold);
}

a {
  color: inherit;
}

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

.link {
  text-decoration: underline;
  text-underline-offset: var(--link-underline-offset);
  text-decoration-thickness: var(--link-underline-thickness);
}

.link:hover {
  text-decoration-color: var(--color-text-muted);
}

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

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
