@font-face {
  font-family: "Geist";
  src: url("../fonts/Geist[wght].woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* Geist Mono is only ever wanted at regular weight. Declaring just that weight keeps
   labels from going thin when the running-text weight around them is light. */
@font-face {
  font-family: "Geist Mono";
  src: url("../fonts/GeistMono[wght].woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Geist Pixel Square";
  src: url("../fonts/GeistPixel-Square.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "CS Robert";
  src: url("../fonts/CSRobert-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

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

html {
  scroll-behavior: smooth;
  overflow-y: scroll;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--text-body);
  font-weight: var(--weight-body, 400);
  line-height: var(--leading-body);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-sans);
}

img,
svg {
  max-width: 100%;
  height: auto;
}

.inline-sprite {
  max-width: none;
}

a {
  color: inherit;
}

a:focus-visible,
button:focus-visible {
  outline: var(--hairline) solid var(--accent);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: var(--space-2);
  top: -4rem;
  z-index: 20;
  padding: var(--space-1) var(--space-2);
  background: var(--ink);
  color: var(--bg);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: var(--tracking-mono);
  text-transform: uppercase;
  text-decoration: none;
}

.skip-link:focus {
  top: var(--space-2);
}

.mono-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: var(--tracking-mono);
  text-transform: uppercase;
  color: var(--ink-2);
}

.pixel-accent {
  font-family: var(--font-pixel);
  font-weight: 400;
  letter-spacing: 0;
  color: inherit;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
