/* ============================================================
   Base — reset, type scale, utilities
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

body {
  font-family: var(--f-body);
  background: var(--bg);
  color: var(--fg);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5 { font-family: var(--f-head); line-height: 1.3; color: var(--ink); font-weight: 800; }
h1 { font-size: clamp(1.9rem, 4vw, 3.1rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.45rem, 2.6vw, 2.15rem); }
h3 { font-size: clamp(1.1rem, 1.6vw, 1.35rem); }
h4 { font-size: 1.05rem; font-weight: 700; }
p  { color: var(--fg-2); }
a  { color: var(--primary-700); text-decoration: none; transition: color var(--t-fast); }
a:hover { color: var(--primary); }
img, svg { max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; }
table { border-collapse: collapse; width: 100%; }
hr { border: 0; border-top: 1px solid var(--border-2); margin: var(--sp-5) 0; }

:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 2px;
  border-radius: var(--r-xs);
}
.skip {
  position: absolute; inset-inline-start: -9999px; top: 0; z-index: 200;
  background: var(--primary); color: #fff; padding: 10px 18px; border-radius: 0 0 var(--r-md) 0;
}
.skip:focus { inset-inline-start: 0; }

.ic { width: 20px; height: 20px; flex: none; stroke-width: 1.75; }
.ic-lg { width: 26px; height: 26px; }
.ic-sm { width: 16px; height: 16px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mono { font-family: var(--f-mono); }

.stack { display: flex; flex-direction: column; }
.row { display: flex; align-items: center; }
.row-b { display: flex; align-items: center; justify-content: space-between; }
.gap-1 { gap: var(--sp-1); } .gap-2 { gap: var(--sp-2); } .gap-3 { gap: var(--sp-3); }
.gap-4 { gap: var(--sp-4); } .gap-5 { gap: var(--sp-5); } .gap-6 { gap: var(--sp-6); }
.wrap { flex-wrap: wrap; }
.center { justify-content: center; text-align: center; }
.grow { flex: 1; min-width: 0; }
.mt-2 { margin-top: var(--sp-2); } .mt-3 { margin-top: var(--sp-3); }
.mt-4 { margin-top: var(--sp-4); } .mt-5 { margin-top: var(--sp-5); } .mt-6 { margin-top: var(--sp-6); }
.mb-4 { margin-bottom: var(--sp-4); } .mb-5 { margin-bottom: var(--sp-5); }
.hide { display: none !important; }
.muted { color: var(--fg-3); }
.small { font-size: .875rem; }
.tiny { font-size: .8rem; }
.lead { font-size: 1.075rem; color: var(--fg-2); max-width: 62ch; }
.bold { font-weight: 700; }
.num { font-variant-numeric: tabular-nums; }

@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes pop { from { opacity: 0; transform: scale(.94); } to { opacity: 1; transform: none; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes shimmer { 100% { background-position: -200% 0; } }
.fade-up { animation: fadeUp .5s both; }

@media print {
  body > *:not(#app) { display: none !important; }
  body { background: #fff; }
  .no-print { display: none !important; }
}
