/* Reset, typography and shared primitives. */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scrollbar-gutter: stable; }
html.no-scroll { overflow: hidden; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "cv11", "ss01";
}
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
button:disabled { cursor: not-allowed; }
img, svg { display: block; }
svg.inline { display: inline-block; vertical-align: -2px; }
table { border-collapse: collapse; border-spacing: 0; }
[hidden] { display: none !important; }

:focus { outline: none; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: var(--r-1); }

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

/* scrollbars: quiet */
* { scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; }

.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.h1 { font-size: 30px; line-height: 38px; font-weight: 700; letter-spacing: -0.012em; }
.h2 { font-size: 20px; line-height: 28px; font-weight: 650; letter-spacing: -0.005em; }
.h3 { font-size: 16px; line-height: 24px; font-weight: 650; }
.eyebrow { font-size: 13px; line-height: 20px; font-weight: 650; color: var(--brand-ink); letter-spacing: 0.01em; }
.muted { color: var(--ink-3); }
.faint { color: var(--ink-4); }
.small { font-size: 13px; line-height: 20px; }
.micro { font-size: 12px; line-height: 18px; }
.num { font-variant-numeric: tabular-nums; }
.mono { font-family: var(--font-mono); font-size: 0.92em; }
.nowrap { white-space: nowrap; }
.clamp-1 { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.clamp-3 { display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.break { overflow-wrap: anywhere; }

.row { display: flex; align-items: center; gap: var(--s-2); }
.row-wrap { display: flex; align-items: center; gap: var(--s-2); flex-wrap: wrap; }
.col { display: flex; flex-direction: column; gap: var(--s-2); }
.grow { flex: 1 1 auto; min-width: 0; }
.spacer { flex: 1 1 auto; }
.gap-1 { gap: var(--s-1); } .gap-3 { gap: var(--s-3); } .gap-4 { gap: var(--s-4); } .gap-5 { gap: var(--s-5); }

.page {
  width: 100%;
  max-width: var(--page-max);
  margin: 0 auto;
  padding: var(--s-6) var(--page-pad) var(--s-8);
}
.page--narrow { max-width: 1240px; }

.divider { height: 1px; background: var(--line); border: 0; margin: var(--s-5) 0; }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes shimmer { 0% { background-position: -400px 0; } 100% { background-position: 400px 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes slide-in { from { transform: translateX(32px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes pulse-dot { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.5); opacity: 0.45; } }
@keyframes flash { from { background-color: var(--brand-soft); } to { background-color: transparent; } }
@keyframes sweep { 0% { transform: translateX(-100%); } 100% { transform: translateX(260%); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

@media print {
  .topbar, .drawer-scrim, .toasts, .sticky-cta { display: none !important; }
}
