@layer base;

@layer base {
    body {
        font-family: var(--font-body);
        font-size: var(--text-base);
    }

    h1,
    h2,
    h3,
    h4,
    h5,
    h6 {
        font-family: var(--font-display);
        font-weight: 700;
        line-height: 1.1;
        text-wrap: balance;
        color: var(--color-text-primary);
    }

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

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

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

    @media (min-width: 768px) {
        h1 {
            font-size: var(--text-6xl);
        }

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

    p {
        max-width: 65ch;
        color: var(--color-text-secondary);
    }

    :focus-visible {
        outline: 3px solid var(--color-primary);
        outline-offset: 3px;
        border-radius: var(--radius-sm);
    }

    :focus:not(:focus-visible) {
        outline: none;
    }
}