/* fonts.css - Typography and Font Styles for Inner Bloom Mental Wellness */

/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600&family=Inter:wght@300;400;500;600&display=swap');

/* Font Variables */
:root {
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    --font-heading: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --font-size-xs: 0.75rem;    /* 12px */
    --font-size-sm: 0.875rem;   /* 14px */
    --font-size-base: 1rem;     /* 16px */
    --font-size-lg: 1.125rem;   /* 18px */
    --font-size-xl: 1.25rem;    /* 20px */
    --font-size-2xl: 1.5rem;    /* 24px */
    --font-size-3xl: 1.875rem;  /* 30px */
    --font-size-4xl: 2.25rem;   /* 36px */
    --font-size-5xl: 3rem;      /* 48px */
    --line-height-tight: 1.25;
    --line-height-normal: 1.5;
    --line-height-relaxed: 1.7;
    --letter-spacing-tight: -0.025em;
    --letter-spacing-normal: 0;
    --letter-spacing-wide: 0.025em;
}

/* Base Typography */
body {
    font-family: var(--font-primary);
    font-size: var(--font-size-base);
    line-height: var(--line-height-relaxed);
    font-weight: 400;
    letter-spacing: var(--letter-spacing-normal);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 500;
    line-height: var(--line-height-tight);
    letter-spacing: var(--letter-spacing-tight);
    margin-bottom: 0.5em;
}

h1 {
    font-size: var(--font-size-4xl);
    font-weight: 600;
}

h2 {
    font-size: var(--font-size-3xl);
    font-weight: 500;
}

h3 {
    font-size: var(--font-size-2xl);
    font-weight: 500;
}

h4 {
    font-size: var(--font-size-xl);
    font-weight: 500;
}

h5 {
    font-size: var(--font-size-lg);
    font-weight: 500;
}

h6 {
    font-size: var(--font-size-base);
    font-weight: 600;
}

/* Paragraphs */
p {
    margin-bottom: 1rem;
    font-size: var(--font-size-lg);
    line-height: var(--line-height-relaxed);
}

/* Links */
a {
    font-weight: 500;
    transition: all 0.2s ease-in-out;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
}

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

li {
    margin-bottom: 0.5rem;
    font-size: var(--font-size-lg);
    line-height: var(--line-height-normal);
}

/* Blockquotes */
blockquote {
    font-family: var(--font-heading);
    font-size: var(--font-size-xl);
    font-style: italic;
    line-height: var(--line-height-normal);
    margin: 2rem 0;
    padding-left: 2rem;
    border-left: 4px solid var(--accent-color);
}

/* Code and Pre */
code {
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: var(--font-size-sm);
    background-color: var(--light-bg);
    padding: 0.2em 0.4em;
    border-radius: 3px;
}

pre {
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: var(--font-size-sm);
    line-height: var(--line-height-normal);
    background-color: var(--light-bg);
    padding: 1rem;
    border-radius: 6px;
    overflow-x: auto;
    margin-bottom: 1rem;
}

/* Specific Typography Classes */
.site-title {
    font-family: var(--font-heading);
    font-size: var(--font-size-3xl);
    font-weight: 600;
    line-height: var(--line-height-tight);
    letter-spacing: var(--letter-spacing-tight);
    margin: 0;
}

.tagline {
    font-family: var(--font-primary);
    font-size: var(--font-size-sm);
    font-weight: 300;
    font-style: italic;
    line-height: var(--line-height-normal);
    letter-spacing: var(--letter-spacing-wide);
    margin-top: 0.25rem;
}

.logo-text {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: var(--font-size-2xl);
    letter-spacing: var(--letter-spacing-tight);
}

.mission-statement {
    font-family: var(--font-heading);
    font-size: var(--font-size-xl);
    font-style: italic;
    font-weight: 400;
    line-height: var(--line-height-normal);
    text-align: center;
    margin: 2rem 0;
}

.section-subtitle {
    font-family: var(--font-primary);
    font-size: var(--font-size-lg);
    font-weight: 400;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.card-title {
    font-family: var(--font-heading);
    font-size: var(--font-size-xl);
    font-weight: 500;
    line-height: var(--line-height-tight);
    margin-bottom: 0.75rem;
}

.card-text {
    font-size: var(--font-size-base);
    line-height: var(--line-height-normal);
    font-weight: 400;
}

.form-label {
    font-family: var(--font-primary);
    font-size: var(--font-size-sm);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: var(--letter-spacing-wide);
    margin-bottom: 0.5rem;
}

.button-text {
    font-family: var(--font-primary);
    font-size: var(--font-size-base);
    font-weight: 500;
    letter-spacing: var(--letter-spacing-normal);
}

.small-text {
    font-size: var(--font-size-sm);
    line-height: var(--line-height-normal);
    color: var(--text-secondary);
}

.caption {
    font-size: var(--font-size-xs);
    line-height: var(--line-height-normal);
    font-style: italic;
    color: var(--text-secondary);
    text-align: center;
    margin-top: 0.5rem;
}

/* Navigation Typography */
.nav-button {
    font-family: var(--font-primary);
    font-size: var(--font-size-sm);
    font-weight: 500;
    letter-spacing: var(--letter-spacing-wide);
    text-transform: uppercase;
}

/* Footer Typography */
footer {
    font-size: var(--font-size-sm);
    line-height: var(--line-height-normal);
}

/* Responsive Typography */
@media (max-width: 768px) {
    :root {
        --font-size-4xl: 2rem;      /* 32px */
        --font-size-3xl: 1.75rem;   /* 28px */
        --font-size-2xl: 1.375rem;  /* 22px */
        --font-size-xl: 1.125rem;   /* 18px */
        --font-size-lg: 1rem;       /* 16px */
    }
    
    .site-title {
        font-size: var(--font-size-2xl);
    }
    
    .tagline {
        font-size: var(--font-size-xs);
    }
    
    p {
        font-size: var(--font-size-base);
    }
    
    .mission-statement {
        font-size: var(--font-size-lg);
    }
}

@media (max-width: 480px) {
    :root {
        --font-size-4xl: 1.75rem;   /* 28px */
        --font-size-3xl: 1.5rem;    /* 24px */
        --font-size-2xl: 1.25rem;   /* 20px */
    }
    
    body {
        font-size: var(--font-size-sm);
    }
    
    .site-title {
        font-size: var(--font-size-xl);
    }
}

/* Print Styles */
@media print {
    body {
        font-family: Georgia, 'Times New Roman', serif;
        font-size: 12pt;
        line-height: 1.4;
        color: #000;
    }
    
    h1, h2, h3, h4, h5, h6 {
        font-family: Georgia, 'Times New Roman', serif;
        page-break-after: avoid;
    }
    
    p, li {
        orphans: 3;
        widows: 3;
    }
}