/* Typography Foundation */

body {
    font-family: var(--font-primary);
    color: var(--text-primary);
    font-size: 16px;
    line-height: 1.6;
    font-weight: 400;
}

/* Headings Base */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-primary);
    color: var(--text-primary);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
    /* Gives a tight, modern SaaS feel */
}

/* Fluid Typography Setup (approximated with clamp) */
h1,
.text-h1 {
    /* Scales from 2.5rem on mobile to 4.5rem on desktop */
    font-size: clamp(2.5rem, 5vw + 1rem, 4.5rem);
    letter-spacing: -0.04em;
    margin-bottom: var(--space-6);
}

h2,
.text-h2 {
    font-size: clamp(2rem, 4vw + 1rem, 3.5rem);
    letter-spacing: -0.03em;
    margin-bottom: var(--space-4);
}

h3,
.text-h3 {
    font-size: clamp(1.5rem, 3vw + 1rem, 2.5rem);
    letter-spacing: -0.02em;
    margin-bottom: var(--space-4);
}

h4,
.text-h4 {
    font-size: clamp(1.125rem, 2vw + 1rem, 1.5rem);
    letter-spacing: -0.01em;
    margin-bottom: var(--space-3);
}

/* Body Text Variants */
p,
.text-body {
    margin-bottom: var(--space-4);
    color: var(--text-secondary);
}

.text-lead {
    font-size: clamp(1.125rem, 2vw + 0.5rem, 1.25rem);
    line-height: 1.7;
    color: var(--text-secondary);
}

.text-small {
    font-size: 0.875rem;
    /* 14px */
    line-height: 1.5;
    color: var(--text-secondary);
}

.text-caption {
    font-size: 0.75rem;
    /* 12px */
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
    color: var(--text-secondary);
}

/* Accents & Utilities */
.text-accent {
    color: var(--accent-primary);
}

.text-white {
    color: var(--bg-primary);
}

.font-medium {
    font-weight: 500;
}

.font-semibold {
    font-weight: 600;
}

.text-center {
    text-align: center;
}

/* Link & Gradient Text */
.text-gradient {
    background: linear-gradient(135deg, var(--accent-primary), #173d6e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}