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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--scroll-offset);
  overflow-x: hidden;
  max-width: 100vw;
  overscroll-behavior-x: none;
}

section,
.hero {
  scroll-margin-top: var(--scroll-offset);
}

body {
  overflow-x: hidden;
  max-width: 100vw;
  margin: 0;
  font-family:
    Inter,
    system-ui,
    -apple-system,
    Segoe UI,
    Roboto,
    Helvetica,
    Arial,
    "Apple Color Emoji",
    "Segoe UI Emoji";
  color: var(--text);
  background:
    radial-gradient(1100px 540px at 18% 8%, var(--glowA), transparent 60%),
    radial-gradient(900px 520px at 88% 18%, var(--glowB), transparent 58%),
    linear-gradient(180deg, var(--bg), var(--bg2));
  min-height: 100vh;
  width: 100%;
  position: relative;
  overscroll-behavior-x: none;
  touch-action: pan-y pinch-zoom;
}

img,
svg,
video,
canvas {
  max-width: 100%;
}

img,
video {
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 10px;
}

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

.skip-link {
  position: absolute;
  left: -999px;
  top: 12px;
  z-index: 999;
  padding: 10px 12px;
  background: var(--surfaceSolid);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadowSoft);
}

.skip-link:focus {
  left: 12px;
}

.container {
  width: min(var(--container), calc(100% - 40px));
  margin: 0 auto;
}
