/* ============================================================
   VestaFi — base element styling & helper classes.
   Applies the brand type + color foundation to bare HTML.
   ============================================================ */

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--text-body);
  background: var(--surface-page);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-heading);
  line-height: var(--lh-heading);
  letter-spacing: var(--ls-heading);
  margin: 0 0 0.5em;
  font-weight: var(--fw-heading);
}
h1 { font-size: var(--fs-h1); line-height: var(--lh-tight); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); color: var(--text-title); }
h4 { font-size: var(--fs-h4); color: var(--text-title); font-weight: var(--fw-heading); }

p { margin: 0 0 1em; }

a {
  color: var(--text-link);
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease-out);
}
a:hover { color: var(--orange); }

em, .accent-italic { color: var(--orange); font-style: italic; }

strong { font-weight: var(--fw-bold); color: var(--text-title); }

small { font-size: var(--fs-sm); }

::selection { background: var(--orange-soft); color: var(--ink-deep); }

:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 2px;
  border-radius: var(--radius-xs);
}

/* ---- Type helper classes ---- */
.vf-display  { font-family: var(--font-heading); font-weight: var(--fw-heading); font-size: var(--fs-display); line-height: var(--lh-tight); letter-spacing: var(--ls-tight); color: var(--text-heading); }
.vf-eyebrow  { font-family: var(--font-body); font-weight: var(--fw-bold); font-size: var(--fs-xs); letter-spacing: var(--ls-eyebrow); text-transform: uppercase; color: var(--text-accent); }
.vf-lead     { font-size: var(--fs-lg); line-height: var(--lh-snug); color: var(--text-body); }
.vf-caption  { font-size: var(--fs-xs); color: var(--text-muted); }

/* ---- Dark-surface context ---- */
.vf-on-dark            { color: var(--text-on-dark); }
.vf-on-dark h1, .vf-on-dark h2, .vf-on-dark h3, .vf-on-dark h4 { color: var(--white); }
.vf-on-dark .vf-lead   { color: var(--text-on-dark-muted); }
