/* Typography System
 * Based on Jekyll audit site typography
 */

/* === HEADINGS === */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  color: var(--text);
}

h1 {
  font-size: 1.9rem;        /* 30.4px */
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0 0 0.4rem;
}

h2 {
  font-size: 1.25rem;       /* 20px */
  letter-spacing: -0.01em;
  margin: 2.5rem 0 0.9rem;
}

h3 {
  font-size: 1rem;          /* 16px */
  margin: 1.75rem 0 0.5rem;
}

h4 {
  font-size: 0.95rem;
  margin: 1.5rem 0 0.5rem;
}

h5, h6 {
  font-size: 0.875rem;
  margin: 1.25rem 0 0.5rem;
}

/* Remove top margin from first heading */
h1:first-child,
h2:first-child,
h3:first-child {
  margin-top: 0;
}

/* === PARAGRAPHS === */
p {
  margin: 0 0 1rem;
}

/* === LEAD/INTRO TEXT === */
.lede {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin: 0 0 2rem;
  max-width: 62ch;          /* Readable line length */
}

/* === CODE === */
code, pre {
  font-family: var(--mono);
  font-size: 0.9em;
}

code {
  background: var(--bg-sunken);
  padding: 0.15rem 0.35rem;
  border-radius: 3px;
  color: var(--text);
}

pre {
  background: var(--bg-sunken);
  padding: 1rem;
  border-radius: var(--radius);
  overflow-x: auto;
  line-height: 1.5;
}

pre code {
  background: none;
  padding: 0;
}

/* === BLOCKQUOTE === */
blockquote {
  margin: 1.5rem 0;
  padding-left: 1.25rem;
  border-left: 3px solid var(--border-strong);
  color: var(--text-muted);
  font-style: italic;
}

/* === TEXT UTILITIES === */
.text-muted {
  color: var(--text-muted);
}

.text-small {
  font-size: 0.875rem;
}

.text-large {
  font-size: 1.125rem;
}

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

.font-medium {
  font-weight: 500;
}

.font-semibold {
  font-weight: 600;
}

.font-bold {
  font-weight: 700;
}

.uppercase {
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
