/* ==========================================================================
   Base — reset, typography, focus, reduced motion
   ========================================================================== */

@font-face {
  font-family: "Inter var";
  src: url("../assets/fonts/InterVariable.woff2") format("woff2-variations"),
       url("../assets/fonts/InterVariable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

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

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

html, body {
  height: 100%;
}

body {
  min-width: 1440px;
  background: var(--canvas);
  color: var(--ink-900);
  font-family: var(--font-sans);
  font-size: var(--t-body-size);
  line-height: var(--t-body-line);
  font-weight: var(--t-body-weight);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

button, input, select, textarea {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

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

/* ---- Headings -------------------------------------------------------- */

h1 {
  font-size: var(--t-h1-size);
  line-height: var(--t-h1-line);
  font-weight: var(--t-h1-weight);
  letter-spacing: var(--t-h1-track);
}

h2 {
  font-size: var(--t-h2-size);
  line-height: var(--t-h2-line);
  font-weight: var(--t-h2-weight);
  letter-spacing: var(--t-h2-track);
}

h3 {
  font-size: var(--t-h3-size);
  line-height: var(--t-h3-line);
  font-weight: var(--t-h3-weight);
  letter-spacing: var(--t-h3-track);
}

/* ---- Typography utilities -------------------------------------------- */

.t-display  { font-size: var(--t-display-size); line-height: var(--t-display-line); font-weight: var(--t-display-weight); letter-spacing: var(--t-display-track); }
.t-body-lg  { font-size: var(--t-body-lg-size); line-height: var(--t-body-lg-line); font-weight: var(--t-body-lg-weight); }
.t-label    { font-size: var(--t-label-size); line-height: var(--t-label-line); font-weight: var(--t-label-weight); }
.t-meta     { font-size: var(--t-meta-size); line-height: var(--t-meta-line); font-weight: var(--t-meta-weight); color: var(--ink-400); }
.t-micro    { font-size: var(--t-micro-size); line-height: var(--t-micro-line); font-weight: var(--t-micro-weight); letter-spacing: var(--t-micro-track); }
.t-eyebrow  { font-size: var(--t-eyebrow-size); line-height: var(--t-eyebrow-line); font-weight: var(--t-eyebrow-weight); letter-spacing: var(--t-eyebrow-track); text-transform: uppercase; color: var(--ink-500); }

.t-money-hero { font-size: var(--t-money-hero-size); line-height: var(--t-money-hero-line); font-weight: var(--t-money-hero-weight); letter-spacing: var(--t-money-hero-track); }
.t-money-lg   { font-size: var(--t-money-lg-size); line-height: var(--t-money-lg-line); font-weight: var(--t-money-lg-weight); letter-spacing: var(--t-money-lg-track); }
.t-money      { font-size: var(--t-money-size); line-height: var(--t-money-line); font-weight: var(--t-money-weight); }

.u-tnum { font-variant-numeric: tabular-nums; white-space: nowrap; }
.u-pnum { font-variant-numeric: proportional-nums; }
.u-truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.u-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;
}

/* ---- Focus ------------------------------------------------------------- */

:focus {
  outline: none;
}

:focus-visible {
  outline: 2px solid var(--accent-600);
  outline-offset: 2px;
  border-radius: inherit;
}

/* ---- Selection ----------------------------------------------------------- */

::selection {
  background: var(--accent-100);
  color: var(--ink-900);
}

/* ---- Scrollbars (webkit) ----------------------------------------------- */

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: var(--ink-200);
  border-radius: var(--r-full);
  border: 2px solid var(--canvas);
  background-clip: padding-box;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--ink-300);
  background-clip: padding-box;
}

/* ---- Reduced motion ----------------------------------------------------
   Collapses every duration to near-zero, removes transform-based motion,
   and disables autoplay. See docs/06 §6 and animations.css. */

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