/* ==========================================================================
   Typography
   ========================================================================== */

h1,
h2,
h3,
h4,
h5 {
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.035em;
  color: var(--text);
  text-wrap: balance;
}

h1 { font-size: var(--fs-hero); letter-spacing: -0.045em; line-height: 0.98; }
h2 { font-size: var(--fs-3xl); }
h3 { font-size: var(--fs-xl); letter-spacing: -0.025em; line-height: 1.2; }
h4 { font-size: var(--fs-md); letter-spacing: -0.015em; line-height: 1.3; }

p {
  color: var(--text-dim);
  text-wrap: pretty;
}

/* Editorial italic accent inside headings */
.serif,
h1 em,
h2 em,
h3 em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.02em;
}

h1 em,
h2 em {
  color: var(--cyan);
}

.mono {
  font-family: var(--font-mono);
  letter-spacing: 0;
}

.lead {
  font-size: var(--fs-lg);
  line-height: 1.6;
  color: var(--text-dim);
  max-width: 62ch;
}

/* Kicker / eyebrow label */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan);
}

.eyebrow::before {
  content: '';
  width: 22px;
  height: 1px;
  background: currentColor;
  opacity: 0.7;
}

.eyebrow.no-rule::before {
  display: none;
}

.text-gradient {
  background: linear-gradient(100deg, var(--text) 10%, var(--cyan) 55%, var(--text) 95%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.text-dim { color: var(--text-dim); }
.text-mute { color: var(--text-mute); }
.text-cyan { color: var(--cyan); }
.text-signal { color: var(--signal); }
.text-center { text-align: center; }

/* Animated underline link */
.link-line {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  color: var(--text);
  font-weight: 500;
}

.link-line::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--dur-2) var(--ease-out);
}

.link-line:hover::after,
.link-line:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.link-line i {
  font-size: 0.8em;
  transition: transform var(--dur-2) var(--ease-out);
}

.link-line:hover i {
  transform: translateX(4px);
}
