/* ============================================================
   BASTYON · Base element styles + helpers.
   Light, opt-in resets. Components rely on the tokens above.
   ============================================================ */

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  color: var(--text-primary);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  color: var(--text-primary);
  margin: 0 0 var(--space-4);
}

p { margin: 0 0 var(--space-4); }

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

/* Eyebrow / kicker label — condensed, uppercase, tracked */
.bx-eyebrow {
  font-family: var(--font-subtitle);
  font-weight: var(--fw-semibold);
  text-transform: uppercase;
  letter-spacing: var(--tracking-caps);
  font-size: var(--text-sm);
  color: var(--text-brand);
}

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

::selection { background: var(--green-200); color: var(--navy-900); }

:focus-visible {
  outline: none;
  box-shadow: var(--shadow-focus);
  border-radius: var(--radius-sm);
}

/* Signature node/bubble texture — scattered dots over navy.
   Use as a background layer on dark hero panels. */
.bx-bubble-field {
  background-color: var(--navy-800);
  background-image:
    radial-gradient(circle, rgba(255,255,255,0.07) 1.5px, transparent 2px),
    radial-gradient(circle, rgba(255,255,255,0.05) 2.5px, transparent 3px);
  background-size: 38px 38px, 96px 96px;
  background-position: 0 0, 19px 19px;
}
