/* ==========================================================================
   Base — reset, typography, form primitives
   ========================================================================== */

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

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

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink-secondary);
  font-family: var(--font-sans);
  font-size: var(--fs-14);
  line-height: var(--lh-normal);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "cv11", "ss01";
}

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  color: var(--ink);
  font-weight: 600;
  line-height: var(--lh-tight);
  letter-spacing: -0.011em;
}

h1 { font-size: var(--fs-20); }
h2 { font-size: var(--fs-16); }
h3 { font-size: var(--fs-14); }

p { margin: 0 0 var(--sp-3); }
p:last-child { margin-bottom: 0; }

a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--gold); }

hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: var(--sp-5) 0;
}

img, svg { vertical-align: middle; }
svg { flex: none; }

ul, ol { margin: 0; padding-left: 1.15em; }

code, kbd, pre { font-family: var(--font-mono); font-size: 0.92em; }

kbd {
  display: inline-block;
  padding: 1px 5px;
  border: 1px solid var(--border-strong);
  border-bottom-width: 2px;
  border-radius: var(--r-sm);
  background: var(--surface);
  color: var(--ink-muted);
  font-size: var(--fs-11);
}

::selection { background: rgba(180, 131, 28, 0.20); }

/* Scrollbars ------------------------------------------------------------- */
* { scrollbar-width: thin; scrollbar-color: var(--border-strong) transparent; }
*::-webkit-scrollbar { width: 10px; height: 10px; }
*::-webkit-scrollbar-track { background: transparent; }
*::-webkit-scrollbar-thumb {
  background: var(--border-strong);
  border: 3px solid transparent;
  border-radius: var(--r-pill);
  background-clip: content-box;
}
*::-webkit-scrollbar-thumb:hover { background: var(--ink-faint); background-clip: content-box; }

/* Focus ------------------------------------------------------------------ */
:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
  border-radius: var(--r-sm);
}

/* Utility ---------------------------------------------------------------- */
.u-mono   { font-family: var(--font-mono); }
.u-num    { font-variant-numeric: tabular-nums; }
.u-right  { text-align: right; }
.u-center { text-align: center; }
.u-nowrap { white-space: nowrap; }
.u-truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.u-hide   { display: none !important; }
.u-muted  { color: var(--ink-muted); }
.u-faint  { color: var(--ink-faint); }
.u-ink    { color: var(--ink); }
.u-strong { font-weight: 600; color: var(--ink); }
.u-13     { font-size: var(--fs-13); }
.u-12     { font-size: var(--fs-12); }
.u-11     { font-size: var(--fs-11); }
.u-flex   { display: flex; }
.u-between{ display: flex; align-items: center; justify-content: space-between; }
.u-items  { display: flex; align-items: center; }
.u-gap-1  { gap: var(--sp-1); }
.u-gap-2  { gap: var(--sp-2); }
.u-gap-3  { gap: var(--sp-3); }
.u-gap-4  { gap: var(--sp-4); }
.u-wrap   { flex-wrap: wrap; }
.u-grow   { flex: 1 1 auto; min-width: 0; }
.u-mt-2   { margin-top: var(--sp-2); }
.u-mt-3   { margin-top: var(--sp-3); }
.u-mt-4   { margin-top: var(--sp-4); }
.u-mt-5   { margin-top: var(--sp-5); }
.u-mt-6   { margin-top: var(--sp-6); }
.u-mb-3   { margin-bottom: var(--sp-3); }
.u-mb-4   { margin-bottom: var(--sp-4); }
.u-pos    { color: var(--success); }
.u-neg    { color: var(--danger); }

.eyebrow {
  font-size: var(--fs-11);
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

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