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

* {
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

html,
body {
  background: var(--bg);
  color: var(--text);
  min-height: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: var(--fs-16);
  line-height: var(--lh-body);
  font-weight: 400;
  font-feature-settings: "ss01", "cv11";
  letter-spacing: -0.005em;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}

body[data-booting] {
  opacity: 0;
}

body {
  opacity: 1;
  transition: opacity 320ms var(--ease-out-expo);
}

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

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
}

button {
  cursor: pointer;
}

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

::selection {
  background: var(--accent);
  color: var(--bg);
}

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

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  padding: 10px 14px;
  background: var(--accent);
  color: var(--bg);
  font-family: var(--font-mono);
  font-size: var(--fs-12);
  border-radius: var(--radius-1);
  transform: translateY(-200%);
  transition: transform 180ms var(--ease-out-expo);
  z-index: 100;
}

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

h1,
h2,
h3,
h4 {
  font-family: var(--font-sans);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: var(--lh-tight);
  color: var(--text);
}

h1 {
  font-size: var(--fs-84);
  font-weight: 500;
  letter-spacing: -0.04em;
}

h2 {
  font-size: var(--fs-48);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: var(--lh-snug);
}

h3 {
  font-size: var(--fs-22);
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: var(--lh-snug);
}

p {
  max-width: 68ch;
  color: var(--text);
}

.mono {
  font-family: var(--font-mono);
  font-size: var(--fs-12);
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
}

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

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

.measure {
  max-width: 68ch;
}

.measure-narrow {
  max-width: 52ch;
}
