/*
------------------------------------
Typography System
------------------------------------
*/

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

/* Headings */

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: var(--leading-tight);
    letter-spacing: -0.02em;
    color: var(--color-primary);
}

h1 {
    font-size: var(--text-h1);
}

h2 {
    font-size: var(--text-h2);
}

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

h4 {
    font-size: 1.25rem;
}

h5 {
    font-size: 1.125rem;
}

h6 {
    font-size: 1rem;
}

/* Display styles */

.display {
    font-family: var(--font-heading);
    font-size: var(--text-display);
    font-weight: 800;
    line-height: 0.95;
    letter-spacing: -0.04em;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: var(--text-hero);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.03em;
}

/* Body text */

.lead {
    font-size: var(--text-body-lg);
    line-height: var(--leading-relaxed);
    color: var(--color-text-muted);
    max-width: 70ch;
}

.text-body {
    font-size: var(--text-body);
    line-height: var(--leading-normal);
}

.text-small {
    font-size: var(--text-small);
    line-height: 1.5;
}

.text-caption {
    font-size: var(--text-caption);
    line-height: 1.4;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-text-light);
}

/* Utilities */

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

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

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

.text-center {
    text-align: center;
}

.text-balance {
    text-wrap: balance;
}

/* Reading width */

.prose {
    max-width: 72ch;
}

.prose p + p {
    margin-top: var(--space-6);
}