/* ============================================================
   Spike Academy — base element defaults & a few helpers.
   Lightweight: sets the brand type/color baseline on the page.
   ============================================================ */

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

body {
  margin: 0;
  font-family: var(--font-body);
  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 {
  font-family: var(--font-display);
  color: var(--text-strong);
  font-weight: var(--fw-bold);
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-tight);
  margin: 0 0 0.5em;
  text-wrap: balance;
}
h5, h6 { line-height: var(--lh-snug); letter-spacing: var(--ls-normal); }

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

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

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

::selection { background: var(--orange-200); color: var(--ink-950); }

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

/* ---- Brand utility helpers ---- */

/* Uppercase eyebrow label, often paired with the orange stroke */
.sa-eyebrow {
  font-family: var(--font-body);
  font-weight: var(--fw-bold);
  font-size: var(--fs-eyebrow);
  letter-spacing: var(--ls-eyebrow);
  text-transform: uppercase;
  color: var(--brand);
}

/* The signature brush-stroke underline accent (uses the brand asset).
   Set --sa-stroke-url to the correct relative path to assets/brand/spike-stroke.png */
.sa-stroke-accent {
  position: relative;
  display: inline-block;
}
.sa-stroke-accent::after {
  content: "";
  position: absolute;
  left: -2%;
  right: -6%;
  bottom: -0.35em;
  height: 0.42em;
  background: var(--sa-stroke-url, url("../assets/brand/spike-stroke.png")) no-repeat center / 100% 100%;
  pointer-events: none;
}

/* The orange "." that echoes the wordmark's spike.academy dot */
.sa-dot { color: var(--brand); }
