/* ============================================================
   Orbita Publishing Portal – Typography
   ============================================================ */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--text);
  letter-spacing: -0.02em;
  line-height: 1.14;
  font-weight: 700;
  text-wrap: balance;
}

h1 { font-size: clamp(1.9rem, 2.6vw, 2.35rem); letter-spacing: -0.035em; }
h2 { font-size: 1.32rem; letter-spacing: -0.025em; }
h3 { font-size: 1.06rem; }
h4 { font-size: 0.95rem; font-weight: 600; }

/* A page title carries the accent on its last word when it is marked up. */
h1 .accent { color: var(--primary); }

p { color: var(--text-muted); }
p strong { color: var(--text); }

small, .text-sm { font-size: 0.85rem; }
.text-xs { font-size: 0.83rem; }
.text-muted { color: var(--text-muted); }
.text-dim { color: var(--text-dim); }
.text-primary { color: var(--primary); }
.text-success { color: var(--success); }
.text-warning { color: var(--warning); }
.text-error { color: var(--error); }

.eyebrow {
  font-size: 0.79rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.display {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.mono, .td-mono, .isbn-val {
  font-family: var(--font-mono);
  font-size: 0.94em;
  letter-spacing: 0.01em;
  color: var(--text-muted);
  font-feature-settings: "zero";
}

.num {
  font-family: var(--font-display);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

.gold { color: var(--primary); }

.page-title {
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.025em;
}

.page-subtitle { color: var(--text-muted); margin-top: 4px; font-size: 0.95rem; }

.section-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
}

.section-label {
  font-size: 0.79rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.link-arrow svg { width: 15px; height: 15px; transition: transform var(--dur-fast) var(--ease-out); }
.link-arrow:hover svg { transform: translateX(3px); }
