/* ============================================================
   typography.css — Font Loading & Text Styles
   Imports Inter from Google Fonts, defines all text element
   styles. Reference tokens from variables.css only.
   ============================================================ */

/* ── Google Fonts Import ─────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Inter:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&family=Playfair+Display:ital,wght@0,600;0,700;1,600&display=swap');


/* ── Base Body ───────────────────────────────────────────────── */
body {
  font-family: var(--font-family);
  font-size: 17px;
  font-weight: var(--font-weight-regular);
  line-height: 1.72;
  color: var(--color-text);
  background-color: var(--color-off-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'kern' 1, 'liga' 1, 'calt' 1;
  text-rendering: optimizeLegibility;
}


/* ── Headings ────────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-family);
  font-weight: var(--font-weight-semibold);
  line-height: var(--line-height-tight);
  color: var(--color-navy);
  margin-top: 0;
}

h1 {
  font-family: var(--font-family-heading);
  font-size: clamp(36px, 5vw, 52px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

h2 {
  font-family: var(--font-family-heading);
  font-size: clamp(26px, 3.5vw, 36px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.015em;
}

h3 {
  font-size: var(--font-size-lg); /* 20px */
  font-weight: var(--font-weight-medium);
  line-height: 1.35;
  letter-spacing: -0.01em;
}

h4 {
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-semibold);
  line-height: var(--line-height-normal);
  letter-spacing: 0;
}

h5, h6 {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  line-height: var(--line-height-normal);
  letter-spacing: 0.01em;
}


/* ── Body Text ───────────────────────────────────────────────── */
p {
  font-size: inherit;
  line-height: 1.72;
  color: var(--color-text);
}

p + p {
  margin-top: var(--spacing-md);
}


/* ── Links ───────────────────────────────────────────────────── */
a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-primary-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

a:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
  border-radius: var(--radius-xs);
}


/* ── Small / Metadata Text ───────────────────────────────────── */
small,
.text-sm {
  font-size: var(--font-size-sm);
  line-height: 1.6;
  color: var(--color-text-muted);
}

.text-xs {
  font-size: var(--font-size-xs);
  line-height: 1.5;
  color: var(--color-text-light);
  letter-spacing: 0.01em;
}


/* ── Eyebrow (overline label above headings) ─────────────────── */
.eyebrow {
  font-size: 11px;
  font-weight: var(--font-weight-semibold);
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--color-primary);
  display: block;
  margin-bottom: var(--spacing-sm);
}


/* ── Lead / Intro Paragraph ──────────────────────────────────── */
.lead {
  font-size: var(--font-size-md);
  font-weight: var(--font-weight-regular);
  line-height: 1.65;
  color: var(--color-text-muted);
}


/* ── Section Titles & Subtitles ──────────────────────────────── */
.section-title {
  font-family: var(--font-family-heading);
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--color-navy);
  margin-bottom: var(--spacing-md);
  line-height: 1.2;
}

.section-subtitle {
  font-size: var(--font-size-md);
  font-weight: var(--font-weight-regular);
  line-height: 1.65;
  color: var(--color-text-muted);
  max-width: 600px;
  margin-bottom: var(--spacing-2xl);
}

.text-center .section-subtitle,
.section-subtitle.text-center {
  margin-left: auto;
  margin-right: auto;
}


/* ── Blockquote ──────────────────────────────────────────────── */
blockquote {
  border-left: 3px solid var(--color-primary);
  padding: var(--spacing-sm) 0 var(--spacing-sm) var(--spacing-lg);
  margin: var(--spacing-xl) 0;
  font-family: var(--font-family-heading);
  font-style: italic;
  font-size: var(--font-size-lg);
  color: var(--color-text-muted);
  line-height: 1.5;
}


/* ── Strong / Em ─────────────────────────────────────────────── */
strong {
  font-weight: var(--font-weight-semibold);
  color: var(--color-navy);
}

em {
  font-style: italic;
}


/* ── Utility Text Classes ────────────────────────────────────── */
.text-center  { text-align: center; }
.text-left    { text-align: left; }
.text-right   { text-align: right; }
.text-muted   { color: var(--color-text-muted); }
.text-primary { color: var(--color-primary); }
.text-navy    { color: var(--color-navy); }
.text-white   { color: var(--color-white); }
.text-inverse { color: var(--color-text-inverse); }
.text-light   { font-weight: var(--font-weight-regular); }
.text-medium  { font-weight: var(--font-weight-medium); }


/* ── Prose (long-form article content) ──────────────────────── */
.prose {
  font-size: 17px;
  line-height: 1.78;
  color: var(--color-text);
  max-width: 68ch;
}

.prose h2 {
  font-size: clamp(22px, 2.5vw, 28px);
  margin-top: var(--spacing-3xl);
  margin-bottom: var(--spacing-md);
}

.prose h3 {
  font-size: var(--font-size-lg);
  margin-top: var(--spacing-2xl);
  margin-bottom: var(--spacing-sm);
}

.prose p {
  margin-bottom: var(--spacing-lg);
  color: var(--color-text);
}

.prose ul,
.prose ol {
  margin-bottom: var(--spacing-lg);
  padding-left: var(--spacing-xl);
}

.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }

.prose li {
  margin-bottom: var(--spacing-sm);
  line-height: 1.7;
}

.prose a {
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

.prose strong {
  font-weight: var(--font-weight-semibold);
}
