/* ════════════════════════════════════════════════════════════════════
   Sightline · Base
   Element defaults + a small set of typographic utility classes that
   encode the brand's recurring roles (eyebrow, headline, lede, body,
   footnote, hairline rule). Use these or the tokens directly.
   ════════════════════════════════════════════════════════════════════ */

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

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

::selection { background: var(--ochre-glow); color: var(--ink); }

a { color: inherit; }

/* ── Eyebrow — JetBrains Mono, caps, letter-spaced, leading em-dash ──── */
.sl-eyebrow {
  font-family: var(--font-mono);
  font-weight: var(--weight-mono);
  font-size: var(--type-mono);
  letter-spacing: var(--track-mono);
  text-transform: uppercase;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
}
.sl-eyebrow::before { content: "—"; }

/* ── Display headline — Fraunces italic 300 ─────────────────────────── */
.sl-display {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: var(--weight-display);
  line-height: var(--leading-tight);
  letter-spacing: var(--track-hero);
  margin: 0;
  text-wrap: balance;
}
.sl-headline {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: var(--weight-display);
  font-size: var(--type-h2);
  line-height: var(--leading-snug);
  letter-spacing: var(--track-display);
  margin: 0;
  text-wrap: balance;
}
.sl-subhead {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: var(--weight-display);
  font-size: var(--type-h3);
  line-height: var(--leading-snug);
  letter-spacing: var(--track-display);
  margin: 0;
}

/* ── Lede — italic, the patient sentence under a headline ───────────── */
.sl-lede {
  font-family: var(--font-body);
  font-style: italic;
  font-weight: var(--weight-display);
  font-size: var(--type-lede);
  line-height: var(--leading-lede);
  max-width: var(--measure-lede);
  margin: 0;
}

/* ── Body — Fraunces roman ──────────────────────────────────────────── */
.sl-body {
  font-family: var(--font-body);
  font-weight: var(--weight-body);
  font-size: var(--type-body);
  line-height: var(--leading-body);
  letter-spacing: var(--track-body);
  max-width: var(--measure-body);
  margin: 0;
  text-wrap: pretty;
}
.sl-body em { font-style: italic; }
.sl-body strong { font-weight: var(--weight-emph); }

/* ── Footnote / metadata — JetBrains Mono ───────────────────────────── */
.sl-footnote {
  font-family: var(--font-mono);
  font-weight: var(--weight-body);
  font-size: var(--type-mono);
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

/* ── Hairline rule ──────────────────────────────────────────────────── */
.sl-rule        { border: 0; border-top: var(--rule-thin); margin: 0; }
.sl-rule-strong { border: 0; border-top: var(--rule-strong); margin: 0; }

/* ── The wordmark dot — the only round element, always Ochre ────────── */
.sl-dot {
  display: inline-block;
  width: 0.16em; height: 0.16em;
  border-radius: var(--radius-dot);
  background: var(--ochre);
  margin-left: 0.04em;
  transform: translateY(-0.02em);
}
[data-brand="ai"] .sl-dot { background: var(--glacial); }
[data-surface="dark"] .sl-dot { background: var(--bone); }
