*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  color-scheme: dark;
  scroll-behavior: smooth;
  width: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 400;
  background: var(--color-bg);
  color: var(--color-text);
  line-height: var(--lh-body);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  width: 100%;
  overflow-x: hidden;
}

main {
  width: 100%;
  overflow-x: hidden;
}

:where(body, body *) {
  font-family: var(--font-sans);
  font-weight: 400 !important;
  font-style: normal;
}

strong,
b {
  font-weight: var(--fw-bold) !important;
}

img,
svg,
video {
  display: block;
  max-width: 100%;
}

button,
input,
textarea {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--color-brand), white 20%);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 12px;
  padding: 10px 12px;
  background: var(--color-surface);
  border-radius: var(--radius-12);
  z-index: 9999;
}

.skip-link:focus {
  left: 12px;
  top: calc(12px + var(--header-h));
}
