@font-face {
  font-family: "Inter";
  src: url("../fonts/InterVariable.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: optional;
}

@font-face {
  font-family: "Inter Fallback";
  src: local("Segoe UI");
  font-style: normal;
  font-weight: 100 900;
  size-adjust: 110%;
}

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

html {
  color-scheme: light;
  overflow-x: clip;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-wrap: break-word;
  background: var(--color-page);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: var(--leading-body);
  text-rendering: optimizeLegibility;
}

img,
svg,
video,
iframe {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

h1,
h2,
h3 {
  margin-block: 0;
  font-family: var(--font-heading);
  color: var(--color-text);
  text-wrap: balance;
}

h1 {
  max-width: none;
  font-size: var(--text-hero);
  font-weight: var(--font-weight-bold);
  line-height: var(--leading-tight);
}

h2 {
  font-size: var(--text-section);
  font-weight: var(--font-weight-bold);
  line-height: var(--leading-heading);
}

h3 {
  font-size: var(--text-card);
  font-weight: var(--font-weight-semibold);
  line-height: var(--leading-card);
}

p,
ul,
ol,
blockquote {
  margin-block: 0;
}

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

a:hover {
  text-decoration-thickness: var(--underline-thickness-hover);
}

button,
input,
summary {
  min-height: var(--control-min-size);
  border-radius: var(--radius-control);
  font: inherit;
}

a,
button,
input,
summary {
  transition-duration: var(--motion-duration-fast);
  transition-property: color, background-color, border-color, box-shadow, transform;
  transition-timing-function: var(--motion-easing-standard);
}

button,
summary {
  cursor: pointer;
}

button:hover,
summary:hover {
  background-color: var(--color-surface-hover);
}

a:active,
button:active,
summary:active {
  transform: translateY(var(--control-active-offset));
}

:focus-visible {
  outline: var(--focus-width) solid var(--color-focus);
  outline-offset: var(--focus-width);
}

.visually-hidden {
  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: fixed;
  z-index: 100;
  inset-block-start: var(--space-3);
  inset-inline-start: var(--space-3);
  padding: var(--space-3) var(--space-4);
  transform: translateY(-200%);
  background: var(--color-text);
  color: var(--color-focus-inverse);
  border-radius: var(--radius-control);
}

.skip-link:focus {
  transform: translateY(0);
}
