/* REGENETICS typography matrix — HSEI canon (TYPOGRAPHY.md)
   ONLY file for UI font-size / font-family / line-height / letter-spacing.
   Page CSS = layout / color / spacing / border / animation. */

/* ── Base ── */
body {
  font-family: var(--font-sans);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--text-main);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── Core scale ── */
.type-h1 {
  font-family: var(--font-sans);
  font-size: 56px;
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.type-h2 {
  font-family: var(--font-sans);
  font-size: 36px;
  font-weight: 300;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.type-h3 {
  font-family: var(--font-sans);
  font-size: 24px;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: 0;
}

.type-body {
  font-family: var(--font-sans);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: 0;
}

.type-tech {
  font-family: var(--font-tech);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: 0.05em;
}

.type-tech-14 {
  font-family: var(--font-tech);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: 0.05em;
}

.type-display {
  font-family: var(--font-sans);
  font-size: 18px;
  font-style: italic;
  font-weight: 400;
  line-height: 1.55;
  letter-spacing: 0;
}

/* ── Modifiers ── */
.type-tech--eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.28em;
}

.type-tech--micro {
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.type-tech--wide {
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.type-tech--nav {
  text-transform: none;
}

.type-body--muted {
  color: var(--text-muted);
}

.type-body--compact {
  line-height: 1.55;
}

.type-h1.type-h1--brand {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 70px;
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: -0.025em;
  line-height: 1;
}

.type-display-inline {
  font-family: var(--font-sans);
  font-size: inherit;
  font-style: italic;
  font-weight: inherit;
  line-height: inherit;
  letter-spacing: inherit;
}

/* ── Buttons ── */
.btn,
.btn-p,
.btn-s,
.btn-primary,
.btn-outline,
.btn-apply,
.btn-ghost,
.eng-btn,
.auth-gate-btn,
.article-program-cta__btn,
.kb-load-more,
.ts-btn,
.hp-cta,
.toast,
.lead-status,
.selection-menu button {
  font-family: var(--font-tech);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.04em;
}

.toast,
.lead-status {
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.05em;
}

/* ── CMS / prose (no .type-* on stored HTML) ── */
.article-body,
.type-prose {
  font-family: var(--font-sans);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.6;
}

.article-body h1,
.type-prose h1 {
  font-family: var(--font-sans);
  font-size: 56px;
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.article-body h2,
.type-prose h2 {
  font-family: var(--font-sans);
  font-size: 36px;
  font-weight: 300;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.article-body h3,
.type-prose h3 {
  font-family: var(--font-sans);
  font-size: 24px;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: 0;
}

.article-body p,
.type-prose p {
  font-family: var(--font-sans);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.6;
}

.article-body em,
.type-prose em {
  font-style: italic;
}

.article-body code,
.article-body kbd,
.article-body samp,
.type-prose code,
.text-mono,
.mono-text,
.status-text,
code,
kbd,
samp {
  font-family: var(--font-tech);
  font-size: 0.92em;
  letter-spacing: 0.03em;
}

/* ── Mobile ≤767px: scale-down only ── */
@media (max-width: 767px) {
  .type-h1,
  .article-body h1,
  .type-prose h1 {
    font-size: 36px;
  }

  .type-h1.type-h1--brand {
    font-size: clamp(2.5rem, 12vw, 70px);
  }

  .type-h2,
  .article-body h2,
  .type-prose h2 {
    font-size: 28px;
  }

  .type-h3,
  .article-body h3,
  .type-prose h3 {
    font-size: 20px;
  }
}
