/* Typography System for The Real Vybe */

:root {
    /* Base Typography Scale */
    --font-size-base: 16px;
    /* Body text */
    --font-size-sm: 14px;
    /* Small text, captions */
    --font-size-lg: 18px;
    /* Lead paragraphs */
    --font-size-xl: 20px;
    /* Large body text */

    /* Headings */
    --font-size-h1: 3.5rem;
    /* 56px - Main page titles */
    --font-size-h2: 2.5rem;
    /* 40px - Section titles */
    --font-size-h3: 2rem;
    /* 32px - Subsection titles */
    --font-size-h4: 1.5rem;
    /* 24px - Card titles */
    --font-size-h5: 1.25rem;
    /* 20px - Small headings */
    --font-size-h6: 1rem;
    /* 16px - Smallest headings */

    /* Line Heights */
    --line-height-tight: 1.2;
    --line-height-normal: 1.6;
    --line-height-relaxed: 1.8;
}

/* Base Typography Styles */
body {
    font-size: var(--font-size-base);
    line-height: var(--line-height-relaxed);
}

/* Headings */
h1 {
    font-size: var(--font-size-h1);
    line-height: var(--line-height-tight);
}

h2 {
    font-size: var(--font-size-h2);
    line-height: var(--line-height-tight);
}

h3 {
    font-size: var(--font-size-h3);
    line-height: var(--line-height-normal);
}

h4 {
    font-size: var(--font-size-h4);
    line-height: var(--line-height-normal);
}

h5 {
    font-size: var(--font-size-h5);
    line-height: var(--line-height-normal);
}

h6 {
    font-size: var(--font-size-h6);
    line-height: var(--line-height-normal);
}

/* Paragraph Styles */
p {
    font-size: var(--font-size-base);
    line-height: var(--line-height-relaxed);
    margin-bottom: 1rem;
}

p.lead {
    font-size: var(--font-size-lg);
    line-height: var(--line-height-normal);
    font-weight: 300;
}

/* Utility Classes */
.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);
}

/* Responsive Typography */
@media (max-width: 992px) {
    :root {
        --font-size-h1: 2.5rem;
        /* 40px on tablets */
        --font-size-h2: 2rem;
        /* 32px on tablets */
        --font-size-h3: 1.75rem;
        /* 28px on tablets */
        --font-size-h4: 1.25rem;
        /* 20px on tablets */
    }
}

@media (max-width: 576px) {
    :root {
        --font-size-base: 15px;
        /* Slightly smaller on mobile */
        --font-size-h1: 2rem;
        /* 32px on mobile */
        --font-size-h2: 1.75rem;
        /* 28px on mobile */
        --font-size-h3: 1.5rem;
        /* 24px on mobile */
        --font-size-h4: 1.125rem;
        /* 18px on mobile */
        --font-size-lg: 17px;
        /* Adjust lead text */
    }
}