/* ReferralBooster — Base element styles
 * Minimal, opinionated defaults so raw HTML inherits the brand voice.
 * Tokens come from the other token files (imported before this one).
 */

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

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--size-body);
  line-height: var(--leading-body);
  color: var(--text-body);
  background: var(--surface-page);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ---- Headings ---------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  margin: 0 0 0.5em;
  font-family: var(--font-heading);
  color: var(--text-heading);
  line-height: var(--leading-heading);
  font-weight: var(--weight-bold);
}

h1 { font-size: var(--size-h1); font-weight: var(--weight-black); letter-spacing: var(--tracking-heading); }
h2 { font-size: var(--size-h2); font-weight: var(--weight-extrabold); letter-spacing: var(--tracking-heading); }
h3 { font-size: var(--size-h3); font-weight: var(--weight-bold); }
h4 { font-size: var(--size-h4); font-weight: var(--weight-semibold); }

p {
  margin: 0 0 1em;
}

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

strong, b {
  font-weight: var(--weight-bold);
}

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

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

/* ---- Foundational helpers --------------------------------------------- */
/* Eyebrow / overline: uppercase, tracked, bold, coral. Sits above a heading. */
.rb-eyebrow {
  font-family: var(--font-heading);
  font-size: var(--size-eyebrow);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--text-eyebrow);
}

/* Content column */
.rb-container {
  width: 100%;
  max-width: var(--content-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
