/* =========================================================
   GOVERNANCE ADVISORS · v3 · Base
   ========================================================= */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "kern", "liga";
  scroll-behavior: smooth;
}
html.lenis { scroll-behavior: auto; height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }

html, body { height: 100%; }

body {
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--fg);
  background: var(--bg);
  font-weight: 400;
  overflow-x: clip;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--d-fast) var(--ease-out);
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

ul, ol { list-style: none; }

hr {
  border: 0;
  border-top: 1px solid var(--rule);
  margin-block: 2rem;
}

/* ─── HEADINGS ──────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 400;
  color: var(--ink);
  line-height: var(--lh-snug);
  letter-spacing: var(--tr-tight);
}
h1 {
  font-size: var(--fs-h1);
  font-weight: 400;
  line-height: var(--lh-tight);
  letter-spacing: var(--tr-h1);
}
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
h4 { font-size: var(--fs-h4); }

h1 em, h2 em, h3 em { font-style: italic; font-weight: 400; }

p { line-height: var(--lh-body); }
.lead {
  font-size: var(--fs-lead);
  line-height: 1.5;
  color: var(--ink-muted);
  max-width: 60ch;
}

/* ─── EYEBROW (small label above headings) ─────────── */
.eyebrow {
  font-family: var(--font-sans);
  font-size: var(--fs-eyebrow);
  letter-spacing: var(--tr-eyebrow);
  text-transform: uppercase;
  font-weight: 600;
  color: var(--accent);
  display: inline-block;
  margin-bottom: 1rem;
}
.eyebrow--muted { color: var(--ink-muted); }
.eyebrow--paper { color: rgba(255, 255, 255, 0.78); }

/* ─── LAYOUT PRIMITIVES ─────────────────────────────── */
.wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding-inline: var(--pad-x);
}
.wrap--narrow {
  max-width: var(--container-narrow);
  margin: 0 auto;
  padding-inline: var(--pad-x);
}

.section { padding-block: var(--pad-y); position: relative; }
.section--sm { padding-block: var(--pad-y-sm); }
.section--lg { padding-block: var(--pad-y-lg); }
.section--soft { background: var(--bg-soft); }
.section--navy {
  background: var(--navy);
  color: var(--paper);
}
.section--navy h1, .section--navy h2, .section--navy h3, .section--navy h4 {
  color: var(--paper);
}
.section--navy .lead { color: rgba(255, 255, 255, 0.78); }

/* ─── HEADER OFFSET (for sticky nav) ────────────────── */
main { padding-top: 0; }
.has-pad-top { padding-top: var(--nav-h); }

/* ─── HELPERS ───────────────────────────────────────── */
.no-scroll { overflow: hidden !important; }
.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;
}
.text-muted { color: var(--ink-muted); }
.text-accent { color: var(--accent); }
.text-paper { color: var(--paper); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* ─── REVEAL initial states (for JS) ────────────────── */
[data-reveal] { opacity: 0; transform: translate3d(0, 24px, 0); }
.no-js [data-reveal] { opacity: 1 !important; transform: none !important; }
