/* MissionPath Portfolios — Base element defaults & utility primitives.
   Light-touch resets so raw HTML inherits the brand without component help. */

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  color: var(--text-body);
  background: var(--bg-page);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Headlines default to the editorial serif */
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: var(--weight-display);
  color: var(--text-strong);
  letter-spacing: var(--tracking-tight);
  line-height: var(--leading-tight);
  margin: 0 0 0.4em;
  text-wrap: balance;
}
h1 { font-size: var(--text-h1); }
h2 { font-size: var(--text-h2); }
h3 { font-size: var(--text-h3); letter-spacing: var(--tracking-snug); }

/* UI-level headings (kicker rows, card titles) opt into the sans */
h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: var(--weight-semibold);
  color: var(--text-strong);
  letter-spacing: var(--tracking-snug);
  line-height: var(--leading-snug);
  margin: 0 0 0.4em;
}
h4 { font-size: var(--text-lg); }
h5 { font-size: var(--text-base); }
h6 { font-size: var(--text-sm); }

p { margin: 0 0 1em; text-wrap: pretty; }
a { color: var(--text-link); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 2px; }

small { font-size: var(--text-sm); }
strong { font-weight: var(--weight-semibold); color: var(--text-strong); }
code, kbd, samp { font-family: var(--font-mono); font-size: 0.92em; }

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

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

hr { border: none; border-top: 1px solid var(--border-subtle); margin: var(--space-8) 0; }

/* ---- Utility primitives ---- */
.mp-eyebrow {
  font-family: var(--font-heading);
  font-size: var(--text-2xs);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--text-muted);
}
.mp-figure {
  font-family: var(--font-figure);
  font-feature-settings: 'tnum' 1, 'zero' 1;
  letter-spacing: var(--tracking-snug);
}
.mp-gain { color: var(--signal-gain); }
.mp-loss { color: var(--signal-loss); }
