/* Typography System - System UI Font Stack */

/* Root Typography Variables */
:root {
    --font-primary: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-fallback: "Helvetica Neue", Arial, sans-serif;
    
    /* Font Sizes */
    --text-hero: 36px;
    --text-section: 28px;
    --text-subtitle: 19px;
    --text-body: 17px;
    --text-small: 14px;
    --text-xs: 12px;
    
    /* Line Heights */
    --line-height-tight: 1.2;
    --line-height-normal: 1.5;
    --line-height-relaxed: 1.6;
    --line-height-loose: 1.8;
    
    /* Font Weights */
    --font-normal: 400;
    --font-medium: 500;
    --font-semibold: 600;
    --font-bold: 700;
}

/* Base Typography Reset */
body {
    font-family: var(--font-primary), var(--font-fallback);
    font-size: var(--text-body);
    line-height: var(--line-height-relaxed);
    font-weight: var(--font-normal);
}

/* Heading Styles */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary), var(--font-fallback);
    font-weight: var(--font-bold);
    line-height: var(--line-height-tight);
}

/* Typography Utility Classes */

/* Hero Text */
.text--hero {
    font-size: var(--text-hero);
    font-weight: var(--font-bold);
    line-height: var(--line-height-tight);
}

/* Section Headers */
.text--section {
    font-size: var(--text-section);
    font-weight: var(--font-bold);
    line-height: var(--line-height-tight);
}

/* Subtitle Text */
.text--subtitle {
    font-size: var(--text-subtitle);
    font-weight: var(--font-semibold);
    line-height: var(--line-height-normal);
}

/* Body Text */
.text--body {
    font-size: var(--text-body);
    line-height: var(--line-height-relaxed);
}

/* Small Text */
.text--small {
    font-size: var(--text-small);
    line-height: var(--line-height-normal);
}

/* Extra Small Text */
.text--xs {
    font-size: var(--text-xs);
    line-height: var(--line-height-normal);
}

/* Font Weight Modifiers */
.text--normal {
    font-weight: var(--font-normal);
}

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

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

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

/* Line Height Modifiers */
.leading--tight {
    line-height: var(--line-height-tight);
}

.leading--normal {
    line-height: var(--line-height-normal);
}

.leading--relaxed {
    line-height: var(--line-height-relaxed);
}

.leading--loose {
    line-height: var(--line-height-loose);
}

/* Responsive Typography */
@media (max-width: 640px) {
    :root {
        --text-hero: 30px;
        --text-section: 24px;
        --text-subtitle: 18px;
        --text-body: 16px;
    }
}

/* Override any conflicting Tailwind font classes */
.font-serif,
.font-sans,
.font-accent {
    font-family: var(--font-primary), var(--font-fallback) !important;
}

/* Ensure all text elements use Verdana */
p, a, li, span, div, button, input, textarea, select, label {
    font-family: inherit;
}

/* Special styles for testimonials (previously used Merriweather) */
.text-testimonial {
    font-size: var(--text-body);
    line-height: var(--line-height-relaxed);
    font-style: italic;
}