/* ============================================================
   BASE — element defaults built on the RHTP tokens.
   White-first, generous line-height, navy headings.
   ============================================================ */

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

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

h1, h2, h3, h4, h5, h6 {
  margin: 0 0 0.5em;
  color: var(--text-strong);
  font-weight: var(--fw-bold);
  line-height: var(--lh-snug);
  text-wrap: balance;
}

h1 { font-family: var(--font-display); font-size: var(--fs-h1); letter-spacing: var(--ls-tight); }
h2 { font-size: var(--fs-h2); letter-spacing: var(--ls-tight); }
h3 { font-size: var(--fs-h3); }
h4 { font-size: var(--fs-h4); }

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

a {
  color: var(--text-link);
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease-standard);
}
a:hover { color: var(--action-secondary-hover); text-decoration: underline; }

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

code, kbd, samp {
  font-family: var(--font-mono);
  font-size: 0.9em;
}

hr {
  border: 0;
  border-top: var(--border-width) solid var(--border-hair);
  margin: var(--space-6) 0;
}

::selection {
  background: color-mix(in srgb, var(--azure) 28%, transparent);
  color: var(--navy);
}

/* ---- Brand utility: the spaced-caps overline (from the logo) ---- */
.rhtp-overline {
  font-family: var(--font-sans);
  font-size: var(--fs-overline);
  font-weight: var(--fw-bold);
  letter-spacing: var(--ls-overline);
  text-transform: uppercase;
  color: var(--blue);
}

/* ---- Brand utility: the RHTP accent rule (thin gold/azure line) ---- */
.rhtp-rule {
  width: 56px;
  height: 3px;
  border: 0;
  margin: var(--space-3) 0;
  background: var(--gold);
}
