/* Typography Variables - Consolidated with main styles */
:root {
    /* Font Families */
    --font-family-primary: 'Poppins', sans-serif;
    --font-family-heading: 'Montserrat', sans-serif;
    
    /* Font Sizes - Using clamp for responsive scaling */
    --h1: clamp(2.5rem, 5vw, 3.5rem);
    --h2: clamp(2rem, 4vw, 2.8rem);
    --h3: clamp(1.5rem, 3vw, 2rem);
    --h4: clamp(1.25rem, 2.5vw, 1.5rem);
    --h5: clamp(1.1rem, 2vw, 1.25rem);
    --h6: clamp(1rem, 1.5vw, 1.1rem);
    --body: 1.1rem;
    --body-small: 1rem;
    --small: 0.875rem;

    /* Font Weights */
    --regular: 400;
    --medium: 500;
    --semibold: 600;
    --bold: 700;

    /* Line Heights */
    --heading-line-height: 1.2;
    --body-line-height: 1.6;
}

/* Base Typography - using CSS custom properties */
body {
    font-family: var(--font-family-primary);
    font-size: var(--body-small);
    line-height: var(--body-line-height);
    color: var(--text);
}

/* Headings - using CSS custom properties */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-family-heading);
    margin-top: 0;
    font-weight: var(--bold);
    line-height: var(--heading-line-height);
    color: var(--text);
}

h1 {
    font-size: var(--h1);
    letter-spacing: -0.5px;
}

h2 {
    font-size: var(--h2);
    margin-bottom: 1.5rem;
    letter-spacing: -0.3px;
}

h3 {
    font-size: var(--h3);
    margin-bottom: 1rem;
}

h4 {
    font-size: var(--h4);
    margin-bottom: 0.75rem;
}

h5 {
    font-size: var(--h5);
    margin-bottom: 0.5rem;
}

h6 {
    font-size: var(--h6);
    margin-bottom: 0.5rem;
}

/* Paragraphs */
p {
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: var(--body-small);
    line-height: var(--body-line-height);
}

/* Lists */
ul, ol {
    margin-top: 0;
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

li {
    margin-bottom: 0.5rem;
}

/* Text Emphasis */
strong, b {
    font-weight: 600;
}

em, i {
    font-style: italic;
}

/* Text Utilities */
.text-center {
    text-align: center;
}

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

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

.text-uppercase {
    text-transform: uppercase;
}

.text-lowercase {
    text-transform: lowercase;
}

.text-capitalize {
    text-transform: capitalize;
}

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

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

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

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

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

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

.text-large {
    font-size: var(--body);
}

.text-bold {
    font-weight: var(--semibold);
}

.text-italic {
    font-style: italic;
}

/* Special Text Elements */
.highlight {
    background-color: rgba(255, 193, 7, 0.2);
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
}

.lead {
    font-size: var(--body);
    font-weight: 300;
    line-height: var(--body-line-height);
    margin-bottom: 1.5rem;
}

.caption {
    font-size: var(--small);
    color: var(--text-light);
}

/* Quotes */
blockquote {
    padding: 1rem 1.5rem;
    margin: 0 0 1.5rem;
    font-size: 1.1rem;
    border-left: 4px solid var(--primary);
    background-color: rgba(76, 175, 80, 0.05);
    font-style: italic;
}

blockquote p {
    margin-bottom: 0;
}

blockquote cite {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-light);
    font-style: normal;
}

/* Code */
code {
    font-family: monospace;
    background-color: var(--light-gray);
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
    font-size: 0.875rem;
}

/* Responsive Typography - Simplified since clamp() handles responsive scaling */
@media (max-width: 768px) {
    body {
        font-size: 15px;
    }
    
    .lead {
        font-size: var(--body-small);
    }
}

/* Form Typography */
label {
    font-weight: var(--medium);
    margin-bottom: 0.5rem;
    display: block;
}

input, textarea {
    font-size: var(--body-small);
    line-height: var(--body-line-height);
}

/* Button Typography */
button, .button {
    font-weight: var(--medium);
    font-size: var(--body-small);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
