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

body {
  font-family: var(--font-serif);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  color: var(--color-ink);
  background-color: var(--color-bg);
}

/* Headings */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 500;
  line-height: var(--leading-tight);
  color: var(--color-ink);
}

h1 {
  font-size: var(--text-4xl);
  letter-spacing: -0.02em;
}

h2 {
  font-size: var(--text-2xl);
  letter-spacing: -0.01em;
}

h3 {
  font-size: var(--text-xl);
}

h4 {
  font-size: var(--text-lg);
}

/* Body text */
p {
  margin-bottom: var(--space-md);
  line-height: var(--leading-relaxed);
}

p:last-child {
  margin-bottom: 0;
}

/* Links */
a {
  color: var(--color-teal);
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-teal-light);
}

/* Small caps for UI text */
.small-caps {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Monospace accents */
.mono {
  font-family: var(--font-mono);
  font-size: 0.85em;
}

/* Blockquote */
blockquote {
  border-left: 3px solid var(--color-teal);
  padding-left: var(--space-lg);
  margin: var(--space-xl) 0;
  font-style: italic;
  color: var(--color-ink-light);
  line-height: var(--leading-relaxed);
}

/* Inline code */
code {
  font-family: var(--font-mono);
  font-size: 0.875em;
  background-color: var(--color-parchment);
  padding: 0.1em 0.35em;
  border-radius: 3px;
}

/* Strong / emphasis */
strong {
  font-weight: 600;
}

em {
  font-style: italic;
}

/* Superscript (for citations) */
sup {
  font-size: 0.7em;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
  top: -0.5em;
}

sup a {
  color: var(--color-teal);
  text-decoration: none;
}

sup a:hover {
  text-decoration: underline;
}
