/* Reset, fonts, typography, and a few utilities. */

@font-face { font-family: 'DM Sans'; font-weight: 400; font-display: swap; src: url('../assets/fonts/dm-sans-latin-400.woff2') format('woff2'); }
@font-face { font-family: 'DM Sans'; font-weight: 500; font-display: swap; src: url('../assets/fonts/dm-sans-latin-500.woff2') format('woff2'); }
@font-face { font-family: 'DM Sans'; font-weight: 600; font-display: swap; src: url('../assets/fonts/dm-sans-latin-600.woff2') format('woff2'); }
@font-face { font-family: 'DM Sans'; font-weight: 700; font-display: swap; src: url('../assets/fonts/dm-sans-latin-700.woff2') format('woff2'); }

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

html { height: 100%; }

body {
  margin: 0;
  min-height: 100%;
  background: var(--canvas);
  color: var(--ink);
  font: 13px/1.5 var(--font);
  -webkit-font-smoothing: antialiased;
  font-variant-numeric: tabular-nums;
}

h1, h2, h3, h4, p { margin: 0; }
h1 { font-size: 30px; font-weight: 500; letter-spacing: -1px; line-height: 1.2; }
h2 { font-size: 18px; font-weight: 500; letter-spacing: -0.45px; line-height: 1.3; }
h3 { font-size: 13px; font-weight: 600; }

a { color: inherit; }
button { font: inherit; color: inherit; }
code, pre, .mono { font-family: var(--mono); font-size: 12px; }
pre { margin: 0; white-space: pre-wrap; word-break: break-word; }

::selection { background: #dfedaa; color: var(--ink); }
:focus-visible { outline: var(--focus); outline-offset: 3px; }

.skip-link { position: absolute; left: -999px; top: 8px; background: var(--paper); padding: 8px 12px; border-radius: var(--radius); }
.skip-link:focus { left: 8px; z-index: 10; }

.eyebrow { font-size: 10px; font-weight: 500; letter-spacing: 0.085em; text-transform: uppercase; color: var(--green); }
.muted { color: var(--ink-3); }
.secondary { color: var(--ink-2); }
.small { font-size: 11px; }
.right { text-align: right; }
.nowrap { white-space: nowrap; }
.stack { display: flex; flex-direction: column; gap: 6px; }
.row { display: flex; align-items: center; gap: 10px; }
.grow { flex: 1; }
.hidden { display: none !important; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
