/* ============================================================
   S-PRO — Base / reset
   Element defaults wired to the design tokens. Keeps the
   editorial feel consistent everywhere the system is used.
   ============================================================ */

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

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

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: var(--weight-medium);
  color: var(--text-primary);
  margin: 0;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

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

a { color: inherit; text-decoration: none; }

::selection { background: var(--magenta-500); color: #fff; }

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

/* ---- Reusable display helpers ---------------------------- */
.sp-display-1 { font-family: var(--font-display); font-size: var(--display-1-size); line-height: var(--display-1-line); letter-spacing: var(--display-1-track); font-weight: var(--display-1-weight); }
.sp-display-2 { font-family: var(--font-display); font-size: var(--display-2-size); line-height: var(--display-2-line); letter-spacing: var(--display-2-track); font-weight: var(--display-2-weight); }
.sp-h1 { font-family: var(--font-display); font-size: var(--h1-size); line-height: var(--h1-line); letter-spacing: var(--h1-track); font-weight: var(--h1-weight); }
.sp-h2 { font-family: var(--font-display); font-size: var(--h2-size); line-height: var(--h2-line); letter-spacing: var(--h2-track); font-weight: var(--h2-weight); }
.sp-h3 { font-family: var(--font-display); font-size: var(--h3-size); line-height: var(--h3-line); letter-spacing: var(--h3-track); font-weight: var(--h3-weight); }

/* One word per headline can be highlighted in magenta. */
.sp-accent { color: var(--text-accent); }

.sp-body  { font-family: var(--font-text); font-size: var(--body-size); line-height: var(--body-line); color: var(--text-secondary); }
.sp-lead  { font-family: var(--font-text); font-size: var(--body-lg-size); line-height: var(--body-lg-line); color: var(--text-primary); }

/* Section label (● Eyebrow) — the label-left pattern marker */
.sp-label {
  display: inline-flex; align-items: center; gap: var(--space-2);
  font-family: var(--font-text);
  font-size: var(--label-size); line-height: var(--label-line);
  color: var(--text-secondary);
}
.sp-label::before {
  content: ""; width: var(--dot-size); height: var(--dot-size);
  border-radius: var(--radius-pill); background: var(--accent);
  flex: none;
}

/* Thin section divider */
.sp-divider { border: 0; border-top: 1px solid var(--border-hairline); margin: 0; }
