/* Reset, typography, and layout utilities. */

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: var(--step-0);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  margin: 0;
  color: var(--text);
  font-weight: 650;
  letter-spacing: -0.025em;
  line-height: 1.15;
}
h1 { font-size: var(--step-3); }
h2 { font-size: var(--step-2); }
h3 { font-size: var(--step-1); }

.display {
  font-family: var(--font-display);
  font-weight: 680;
  letter-spacing: -0.04em;
  line-height: 1.05;
}
.eyebrow {
  margin-bottom: 7px;
  color: var(--accent);
  font-size: 0.7rem;
  font-weight: 750;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}
p { margin: 0; }
.lede { max-width: var(--measure); color: var(--text-2); font-size: var(--step-1); }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
img, svg, video { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; }
code, kbd { font-family: var(--font-mono); }
code { padding: 2px 5px; border-radius: 5px; background: var(--surface-3); font-size: .88em; }

:focus-visible { outline: none; box-shadow: var(--ring); }
::selection { background: #dbe5ff; color: var(--text); }

/* Utilities */
.muted { color: var(--muted); }
.dim { color: var(--text-2); }
.small { font-size: var(--step--1); }
.nowrap { white-space: nowrap; }
.inline { display: inline; }
.hidden { display: none !important; }
.stack { display: grid; gap: var(--sp-4); }
.row { display: flex; align-items: center; gap: var(--sp-2); }
.spread { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4); }
.push { margin-left: auto; }
.clamp-2 { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding: var(--sp-7) var(--sp-6) var(--sp-8);
}
.wrap-narrow { max-width: var(--wrap-narrow); margin-inline: auto; }
.center-screen { min-height: 100dvh; display: grid; place-items: center; padding: var(--sp-5); }

@media (max-width: 760px) {
  .wrap { padding: var(--sp-6) var(--sp-4) var(--sp-7); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
