/* ============================================
   TYPOGRAPHY
   ============================================ */

body {
    font-family: var(--font-body);
    font-size: var(--font-size-base);
    line-height: var(--line-height-normal);
    color: var(--text-primary);
}

/* ==========================================
   HEADINGS
   ========================================== */

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: var(--font-weight-semibold);
    line-height: var(--line-height-tight);
    margin: 0;
}

h1 {
    font-size: var(--font-size-4xl);
}

h2 {
    font-size: var(--font-size-3xl);
}

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

h4 {
    font-size: var(--font-size-xl);
}

h5 {
    font-size: var(--font-size-lg);
}

h6 {
    font-size: var(--font-size-md);
}

/* ==========================================
   TEXT ELEMENTS
   ========================================== */

p {
    margin: 0 0 var(--spacing-md) 0;
    line-height: var(--line-height-relaxed);
}

strong, b {
    font-weight: var(--font-weight-semibold);
}

em, i {
    font-style: italic;
}

small {
    font-size: var(--font-size-sm);
}

code {
    font-family: var(--font-mono);
    font-size: var(--font-size-sm);
    background: var(--bg-secondary);
    padding: 2px 6px;
    border-radius: var(--radius-sm);
    color: var(--color-magenta);
}

pre {
    font-family: var(--font-mono);
    font-size: var(--font-size-sm);
    background: var(--bg-code);
    color: var(--text-code);
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    overflow-x: auto;
}

pre code {
    background: transparent;
    padding: 0;
    color: inherit;
}

/* ==========================================
   UTILITY CLASSES
   ========================================== */

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

.text-secondary {
    color: var(--text-secondary);
}

.text-muted {
    color: var(--text-muted);
}

.text-magenta {
    color: var(--color-magenta);
}

.text-cyan {
    color: var(--color-cyan);
}

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

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

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

.font-bold {
    font-weight: var(--font-weight-bold);
}

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

.font-medium {
    font-weight: var(--font-weight-medium);
}

.text-xs {
    font-size: var(--font-size-xs);
}

.text-sm {
    font-size: var(--font-size-sm);
}

.text-base {
    font-size: var(--font-size-base);
}

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

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

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