/* ========================================
   TYPOGRAPHY
   ======================================== */

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-normal);
    line-height: var(--line-height-normal);
    color: var(--color-text);
    background-color: var(--color-bg);
}

/* Display Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    color: var(--color-primary);
    font-weight: var(--font-weight-semibold);
    letter-spacing: -0.02em;
}

h1, .h1 {
    font-size: var(--font-size-7xl);
    line-height: var(--line-height-tight);
    font-weight: var(--font-weight-bold);
}

h2, .h2 {
    font-size: var(--font-size-5xl);
    line-height: var(--line-height-tight);
}

h3, .h3 {
    font-size: var(--font-size-3xl);
    line-height: var(--line-height-tight);
}

h4, .h4 {
    font-size: var(--font-size-2xl);
    line-height: var(--line-height-tight);
}

/* Text Utilities */
.text-gradient {
    background: linear-gradient(135deg, var(--color-black) 0%, var(--color-accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-muted {
    color: var(--color-text-muted);
}

.text-light {
    color: var(--color-text-light);
}

/* Links */
a {
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--color-accent);
}

/* Selection */
::selection {
    background-color: var(--color-accent);
    color: var(--color-white);
}

::-moz-selection {
    background-color: var(--color-accent);
    color: var(--color-white);
}

/* Responsive Typography */
@media (max-width: 768px) {
    html {
        font-size: 14px;
    }

    h1, .h1 {
        font-size: var(--font-size-5xl);
    }

    h2, .h2 {
        font-size: var(--font-size-4xl);
    }

    h3, .h3 {
        font-size: var(--font-size-2xl);
    }

    h4, .h4 {
        font-size: var(--font-size-xl);
    }
}
