/* ============================================================
   components/typography.css  —  ds-h1…h3, ds-body, ds-prose, ds-kicker
   All sizes and weights driven by --ds-* tokens.
   ============================================================ */

/* ── Kicker (label above section heading) ─────────────────── */
.ds-kicker {
  display: inline-block;
  font-size: var(--ds-kicker-size, 0.75rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ds-kicker-color, var(--ds-accent));
  margin-bottom: var(--ds-space-3, 0.75rem);
}

/* ── Headings ─────────────────────────────────────────────── */
.ds-h1 {
  font-family: var(--ds-font-heading, inherit);
  font-size: var(--ds-h1-size, clamp(1.875rem, 4vw, 3rem));
  font-weight: var(--ds-h1-weight, 700);
  letter-spacing: var(--ds-h1-tracking, -0.02em);
  line-height: 1.15;
  color: var(--ds-text, var(--public-text-strong, #0f172a));
}

.ds-h2 {
  font-family: var(--ds-font-heading, inherit);
  font-size: var(--ds-h2-size, clamp(1.5rem, 3vw, 2.25rem));
  font-weight: var(--ds-h2-weight, 700);
  letter-spacing: var(--ds-h2-tracking, -0.01em);
  line-height: 1.2;
  color: var(--ds-text, var(--public-text-strong, #0f172a));
}

.ds-h3 {
  font-family: var(--ds-font-heading, inherit);
  font-size: var(--ds-h3-size, 1.25rem);
  font-weight: var(--ds-h3-weight, 600);
  letter-spacing: -0.005em;
  line-height: 1.3;
  color: var(--ds-text, var(--public-text-strong, #0f172a));
}

/* ── Body text ────────────────────────────────────────────── */
.ds-body {
  font-family: var(--ds-font-body, inherit);
  font-size: var(--ds-body-size, 1rem);
  line-height: var(--ds-body-line-height, 1.6);
  color: var(--ds-text, var(--public-text-strong, #0f172a));
}
.ds-body--muted { color: var(--ds-text-muted, var(--public-text-muted, #475569)); }
.ds-body--soft  { color: var(--ds-text-soft, var(--public-text-soft, rgba(100, 116, 139, 0.72))); }

.ds-muted {
  color: var(--ds-text-muted, var(--public-text-muted, #475569));
}

.ds-soft {
  color: var(--ds-text-soft, var(--public-text-soft, rgba(100, 116, 139, 0.72)));
}

/* ── Section heading + subtext block ─────────────────────── */
.ds-section-title {
  font-family: var(--ds-font-heading, inherit);
  font-size: var(--ds-h2-size, clamp(1.5rem, 3vw, 2.25rem));
  font-weight: var(--ds-h2-weight, 700);
  letter-spacing: var(--ds-h2-tracking, -0.01em);
  color: var(--ds-text);
  margin-bottom: var(--ds-space-3, 0.75rem);
}

.ds-section-sub {
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  color: var(--ds-text-muted);
  line-height: 1.6;
  max-width: 48ch;
  margin-inline: auto;
}
.ds-section__heading--left  .ds-section-sub,
.ds-section__heading--left  .ds-section-title { margin-inline: 0; }

/* ── Prose (blog / article body) ─────────────────────────── */
.ds-prose {
  font-family: var(--ds-font-body, inherit);
  font-size: var(--ds-prose-font-size, 1.0625rem);
  line-height: 1.75;
  color: var(--ds-text);
  max-width: var(--ds-prose-max-width, 68ch);
}

.ds-prose h1, .ds-prose h2, .ds-prose h3,
.ds-prose h4, .ds-prose h5, .ds-prose h6 {
  font-family: var(--ds-font-heading, inherit);
  color: var(--ds-text);
  margin-top: 1.75em;
  margin-bottom: 0.5em;
  line-height: 1.2;
}

.ds-prose p { margin-bottom: 1.25em; }

.ds-prose a {
  color: var(--ds-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.ds-prose ul, .ds-prose ol {
  padding-left: 1.5em;
  margin-bottom: 1.25em;
}

.ds-prose li { margin-bottom: 0.4em; }

.ds-prose blockquote {
  border-left: 3px solid var(--ds-accent);
  padding-left: var(--ds-space-5, 1.25rem);
  margin-left: 0;
  color: var(--ds-text-muted);
  font-style: italic;
}

.ds-prose code {
  background: var(--ds-surface-2);
  border: 1px solid var(--ds-border);
  border-radius: var(--ds-radius-sm, 0.375rem);
  padding: 0.1em 0.4em;
  font-size: 0.875em;
}

.ds-prose pre {
  background: var(--ds-surface-2);
  border: 1px solid var(--ds-border);
  border-radius: var(--ds-card-radius, 1rem);
  padding: var(--ds-space-5, 1.25rem);
  overflow-x: auto;
  margin-bottom: 1.5em;
}

.ds-prose pre code {
  background: none;
  border: none;
  padding: 0;
  font-size: 0.9em;
}

.ds-prose img {
  border-radius: var(--ds-card-radius, 1rem);
  max-width: 100%;
}

.ds-prose hr {
  border: none;
  border-top: 1px solid var(--ds-border);
  margin-block: var(--ds-space-8, 2rem);
}

/* ── Divider ──────────────────────────────────────────────── */
.ds-divider {
  border: none;
  border-top: 1px solid var(--ds-border, rgba(148, 163, 184, 0.18));
  margin-block: var(--ds-space-6, 1.5rem);
}
