/* ========================================
   Professional Typography System
   ======================================== */

/* Font Families:
   - Playfair Display: Elegant serif for headings
   - Poppins: Modern, clean sans-serif for body text
   - Lora: Sophisticated serif for quotes and accents
*/

/* Enhanced Body Text */
body {
    font-synthesis: none;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Heading Refinements */
.hero-title,
.section-title,
.about-hero h3,
.mission-hero h3 {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 800;
    letter-spacing: -1px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Subtitle and Description Text */
.hero-subtitle,
.section-subtitle,
.mission-text {
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    line-height: 1.8;
    letter-spacing: 0.3px;
}

/* Special Text Elements */
.mission-text,
.about-hero p {
    font-family: 'Lora', Georgia, serif;
    font-size: 1.15rem;
    line-height: 1.9;
    font-weight: 500;
    letter-spacing: 0.2px;
}

/* Card Titles */
.method-card h3,
.tutorial-card h3,
.video-card h3,
.about-card h3,
.value-card h3,
.team-card h3,
.resource-card h3 {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: -0.5px;
    margin-bottom: 1rem;
}

/* Card Descriptions */
.method-card p,
.tutorial-card p,
.video-card p,
.about-card p,
.value-card p,
.resource-card p {
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    line-height: 1.7;
    font-weight: 400;
    letter-spacing: 0.2px;
}

/* Navigation Text */
.nav-menu a,
.nav-brand span {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-size: 0.9rem;
}

/* Button Text */
.btn,
.btn-primary,
.btn-secondary,
.filter-btn {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    font-size: 0.95rem;
}

/* Form Labels and Inputs */
label,
input,
textarea,
select {
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    letter-spacing: 0.3px;
}

label {
    font-weight: 600;
    font-size: 0.95rem;
}

/* Lists */
ul li,
ol li {
    font-family: 'Poppins', sans-serif;
    font-size: 1.05rem;
    line-height: 1.8;
    letter-spacing: 0.2px;
    margin-bottom: 0.5rem;
}

/* Quotes and Testimonials */
blockquote,
.testimonial {
    font-family: 'Lora', Georgia, serif;
    font-size: 1.2rem;
    line-height: 1.9;
    font-weight: 500;
    font-style: italic;
    letter-spacing: 0.2px;
}

/* Hero Section Typography */
.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    letter-spacing: -1.5px;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.25rem;
    font-weight: 400;
    letter-spacing: 0.5px;
    line-height: 1.7;
}

/* Section Titles */
.section-title {
    font-size: 2.8rem;
    font-weight: 800;
    letter-spacing: -1.2px;
    margin-bottom: 1rem;
    text-align: center;
}

.section-subtitle {
    font-size: 1.2rem;
    font-weight: 400;
    letter-spacing: 0.3px;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-light);
}

/* Footer Text */
.footer {
    font-family: 'Poppins', sans-serif;
}

.footer h4 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: -0.3px;
}

.footer p,
.footer li {
    font-size: 0.95rem;
    line-height: 1.7;
    letter-spacing: 0.2px;
}

/* Documentation and Modal Text */
.docs-content h3,
.modal-header h2 {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 700;
    letter-spacing: -0.8px;
}

.docs-content p,
.modal-body p {
    font-family: 'Poppins', sans-serif;
    font-size: 1.05rem;
    line-height: 1.8;
    letter-spacing: 0.2px;
}

/* Code and Technical Text */
code,
pre {
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.9rem;
    letter-spacing: 0;
}

/* Badges and Tags */
.badge,
.tag,
.status-badge {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* Small Text */
small,
.small-text {
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    font-weight: 400;
    letter-spacing: 0.2px;
}

/* Strong/Bold Text */
strong,
b {
    font-weight: 700;
    letter-spacing: 0.2px;
}

/* Emphasis/Italic Text */
em,
i.text {
    font-family: 'Lora', Georgia, serif;
    font-style: italic;
}

/* Links */
a {
    font-weight: 500;
    letter-spacing: 0.2px;
    transition: all 0.3s ease;
}

/* Table Text */
table {
    font-family: 'Poppins', sans-serif;
}

th {
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

td {
    font-size: 1rem;
    line-height: 1.6;
    letter-spacing: 0.2px;
}

/* Calculator and Form Results */
.calculator-result,
.form-result,
#resultDiv {
    font-family: 'Poppins', sans-serif;
    font-size: 1.1rem;
    font-weight: 500;
    letter-spacing: 0.3px;
    line-height: 1.7;
}

/* Step Numbers in Tutorials */
.step-number {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 800;
    font-size: 2rem;
    letter-spacing: -1px;
}

/* FAQ Text */
.faq-question {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 1.15rem;
    letter-spacing: 0.2px;
}

.faq-answer {
    font-family: 'Poppins', sans-serif;
    font-size: 1.05rem;
    line-height: 1.8;
    letter-spacing: 0.2px;
}

/* Team Member Names */
.team-name {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 700;
    font-size: 1.4rem;
    letter-spacing: -0.5px;
}

.team-role {
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    font-size: 1rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--primary-color);
}

/* Statistics and Numbers */
.stat-number {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 800;
    font-size: 3rem;
    letter-spacing: -1.5px;
}

.stat-label {
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    font-size: 1rem;
    letter-spacing: 0.3px;
}

/* Responsive Typography */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
        letter-spacing: -1px;
    }

    .section-title {
        font-size: 2rem;
        letter-spacing: -0.8px;
    }

    h1 { font-size: 2.2rem; }
    h2 { font-size: 1.8rem; }
    h3 { font-size: 1.5rem; }

    p {
        font-size: 1rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .section-subtitle {
        font-size: 1.05rem;
    }

    .stat-number {
        font-size: 2.2rem;
    }
}

/* High DPI Display Optimization */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    body {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
        font-weight: 400;
    }
    
    h1, h2, h3, h4, h5, h6 {
        font-weight: 700;
    }
}

/* Print Styles */
@media print {
    body {
        font-family: 'Lora', Georgia, serif;
        font-size: 12pt;
        line-height: 1.6;
    }

    h1, h2, h3, h4, h5, h6 {
        font-family: 'Playfair Display', Georgia, serif;
        page-break-after: avoid;
    }
}
