*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: var(--step-0);
  line-height: 1.62;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(900px 480px at 8% -8%, rgba(253, 196, 3, .18), transparent 62%),
    radial-gradient(700px 420px at 100% 0%, rgba(253, 196, 3, .08), transparent 70%);
}

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -.03em;
}

h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); letter-spacing: -.02em; }

p { margin: 0; }

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

input, select {
  font: inherit;
  color: inherit;
}

canvas { display: block; }

img, svg { display: block; max-width: 100%; }

code, .mono, kbd {
  font-family: var(--font-mono);
  font-variant-ligatures: none;
}

::selection {
  background: var(--gold);
  color: #111;
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip {
  position: absolute;
  top: -60px;
  left: 16px;
  z-index: 99;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--gold);
  color: #111;
  font: 600 12px/1 var(--font-mono);
  transition: top .2s var(--ease);
}

.skip:focus { top: 14px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}
