/* ============================================================
   Cerne — Base element styles
   Single-family system (Helvetica/Arial) — no serif opt-in.
   ============================================================ */

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

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

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

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-display);
  color: var(--text-heading);
  font-weight: var(--fw-black);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  text-wrap: balance;
}
h3, h4 { font-weight: var(--fw-bold); letter-spacing: var(--tracking-normal); }

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

a { color: var(--text-link); text-underline-offset: 2px; }

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

/* Long-form body copy */
.fb-prose {
  font-family: var(--font-sans);
  font-size: var(--text-lg);
  line-height: var(--leading-relaxed);
  color: var(--text-body);
}

/* Brand section label — the uppercase eyebrow used everywhere */
.fb-eyebrow {
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--brand);
}

/* The 4px accent rule under headings */
.fb-accent-rule {
  display: block;
  width: var(--accent-rule-w);
  height: var(--accent-rule-h);
  background: var(--brand);
  border-radius: 3px;
}

/* Visible, generous focus for keyboard users */
:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
  border-radius: var(--radius-sm);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
