/* ==========================================================================
   Base — reset, typography, focus, utilities
   ========================================================================== */

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

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--text-md);
  line-height: 1.45;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  /* Poppins: keeps glyph advances unrounded (hinted renderers can open gaps after "t"). */
  text-rendering: geometricPrecision;
}

h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); font-weight: 600; letter-spacing: -0.01em; line-height: 1.2; color: var(--ink); }
h1 { font-size: var(--text-4xl); font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; }
h2 { font-size: var(--text-2xl); }
h3 { font-size: var(--text-xl); }
p { margin: 0; }

a { color: var(--brand-text); text-decoration: none; }
a:hover { color: var(--brand); text-decoration: underline; }

button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }

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

table { border-collapse: collapse; width: 100%; }

ul[role="list"], ol[role="list"] { list-style: none; margin: 0; padding: 0; }

:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

::selection { background: var(--brand-soft); color: var(--ink); }

/* ---- Icons (SVG sprite) ------------------------------------------- */
.icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon--sm { width: 16px; height: 16px; }
.icon--xs { width: 14px; height: 14px; stroke-width: 2; }
.icon--lg { width: 22px; height: 22px; }

/* ---- Utilities ---------------------------------------------------- */
.u-mono { font-family: var(--font-mono); }
.u-display { font-family: var(--font-display); }
.u-muted { color: var(--ink-3); }
.u-soft { color: var(--ink-2); }
.u-strong { font-weight: 600; color: var(--ink); }
.u-ok { color: var(--ok); }
.u-warn { color: var(--warn); }
.u-nowrap { white-space: nowrap; }
.u-grow { flex-grow: 1; }
.u-right { text-align: right; }
.u-eyebrow { font-size: var(--text-xs); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.u-stack { display: flex; flex-direction: column; gap: var(--space-2); }
.u-row { display: flex; align-items: center; gap: var(--space-3); }
.u-sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0);
  white-space: nowrap; border: 0;
}
[hidden] { display: none !important; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0ms !important; animation-duration: 0ms !important; }
}
.u-self-start { align-self: flex-start; }
.u-self-end { align-self: flex-end; }
.u-gap-1 { gap: var(--space-1); }
