/**
 * Typography System (Dark Editorial Theme)
 */

 body {
    font-family: var(--font-body);
    font-weight: 400;
    line-height: 1.6;
    color: var(--color-text-muted);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.1;
    color: var(--color-text-main);
    margin-bottom: var(--space-24);
    letter-spacing: -0.03em;
}

/* Fluid Typography using clamp() */
h1 {
    font-size: clamp(var(--text-4xl), 8vw, var(--text-6xl));
    font-weight: 700;
    letter-spacing: -0.04em;
    text-transform: uppercase;
}

h2 {
    font-size: clamp(var(--text-3xl), 5vw, var(--text-5xl));
    letter-spacing: -0.02em;
}

h3 {
    font-size: clamp(var(--text-2xl), 3vw, var(--text-3xl));
}

h4 {
    font-size: clamp(var(--text-lg), 2vw, var(--text-2xl));
}

p {
    margin-bottom: var(--space-24);
    font-size: clamp(var(--text-base), 1.5vw, var(--text-lg));
    max-width: 65ch; /* Optimal reading length */
}

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

.text-outline {
    color: transparent;
    -webkit-text-stroke: 1px var(--color-secondary-light);
}

/* For staggered text reveals */
.split-line {
    overflow: hidden;
    display: block;
}

.split-line span {
    display: inline-block;
    transform: translateY(110%);
    transition: transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.split-line.is-visible span {
    transform: translateY(0);
}
