/* ==========================================================================
   MentorWallet — base element styling + typographic helpers.
   Token-driven; safe global resets only.
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font-primary);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  font-weight: var(--fw-regular);
  color: var(--text-body);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-family: var(--font-primary);
  color: var(--text-strong);
  line-height: var(--lh-heading);
  letter-spacing: var(--ls-heading);
  font-weight: var(--fw-semibold);
  text-wrap: balance;
}

p { margin: 0; text-wrap: pretty; }

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

::selection { background: var(--fluor-300); color: var(--green-900); }

:focus-visible { outline: none; box-shadow: var(--focus-ring); border-radius: var(--radius-xs); }

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

/* ---- Typographic helper classes ---------------------------------------- */
.mw-display-2xl { font-size: var(--fs-display-2xl); font-weight: var(--fw-bold);     line-height: var(--lh-tight);    letter-spacing: var(--ls-display); color: var(--text-strong); }
.mw-display-xl  { font-size: var(--fs-display-xl);  font-weight: var(--fw-bold);     line-height: var(--lh-tight);    letter-spacing: var(--ls-display); color: var(--text-strong); }
.mw-display-lg  { font-size: var(--fs-display-lg);  font-weight: var(--fw-semibold); line-height: var(--lh-snug);     letter-spacing: var(--ls-display); color: var(--text-strong); }
.mw-h1 { font-size: var(--fs-h1); font-weight: var(--fw-semibold); line-height: var(--lh-heading); letter-spacing: var(--ls-heading); color: var(--text-strong); }
.mw-h2 { font-size: var(--fs-h2); font-weight: var(--fw-semibold); line-height: var(--lh-heading); letter-spacing: var(--ls-heading); color: var(--text-strong); }
.mw-h3 { font-size: var(--fs-h3); font-weight: var(--fw-semibold); line-height: var(--lh-heading); color: var(--text-strong); }
.mw-h4 { font-size: var(--fs-h4); font-weight: var(--fw-medium);   line-height: var(--lh-snug);    color: var(--text-strong); }
.mw-body-lg { font-size: var(--fs-body-lg); line-height: var(--lh-body); }
.mw-body    { font-size: var(--fs-body);    line-height: var(--lh-body); }
.mw-body-sm { font-size: var(--fs-body-sm); line-height: var(--lh-body); }
.mw-caption { font-size: var(--fs-caption); line-height: var(--lh-snug); color: var(--text-muted); }
.mw-overline {
  font-size: var(--fs-overline);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-overline);
  text-transform: uppercase;
  color: var(--text-muted);
}
