/* TYPOGRAPHY STANDARDS - Ideas Before Time */
/* Apply to all pages for consistent font sizes and colors */

:root {
    /* Font Sizes */
    --font-size-h1: 2.5rem;      /* 40px */
    --font-size-h2: 2rem;        /* 32px */
    --font-size-h3: 1.5rem;      /* 24px */
    --font-size-h4: 1.25rem;     /* 20px */
    --font-size-h5: 1.125rem;    /* 18px */
    --font-size-h6: 1rem;        /* 16px */
    --font-size-body: 1rem;      /* 16px */
    --font-size-small: 0.875rem; /* 14px */
    --font-size-tiny: 0.75rem;   /* 12px */
    
    /* Colors */
    --color-heading: #2563eb;
    --color-text: #333;
    --color-text-secondary: #555;
    --color-text-light: #666;
    --color-link: #007acc;
    --color-link-hover: #005a9e;
    --color-white: #ffffff;
    
    /* Line Heights */
    --line-height-tight: 1.2;
    --line-height-normal: 1.5;
    --line-height-relaxed: 1.8;
    
    /* Font Weights */
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
}

/* Headings */
h1 {
    font-size: var(--font-size-h1);
    color: var(--color-heading);
    font-weight: var(--font-weight-bold);
    line-height: var(--line-height-tight);
    margin-bottom: 1rem;
}

h2 {
    font-size: var(--font-size-h2);
    color: var(--color-heading);
    font-weight: var(--font-weight-bold);
    line-height: var(--line-height-tight);
    margin-bottom: 0.875rem;
}

h3 {
    font-size: var(--font-size-h3);
    color: var(--color-heading);
    font-weight: var(--font-weight-semibold);
    line-height: var(--line-height-tight);
    margin-bottom: 0.75rem;
}

h4 {
    font-size: var(--font-size-h4);
    color: var(--color-text);
    font-weight: var(--font-weight-semibold);
    line-height: var(--line-height-normal);
    margin-bottom: 0.625rem;
}

h5 {
    font-size: var(--font-size-h5);
    color: var(--color-text);
    font-weight: var(--font-weight-medium);
    line-height: var(--line-height-normal);
    margin-bottom: 0.5rem;
}

h6 {
    font-size: var(--font-size-h6);
    color: var(--color-text);
    font-weight: var(--font-weight-medium);
    line-height: var(--line-height-normal);
    margin-bottom: 0.5rem;
}

/* Body Text */
body {
    font-size: var(--font-size-body);
    color: var(--color-text);
    line-height: var(--line-height-relaxed);
    font-weight: var(--font-weight-normal);
}

p {
    font-size: var(--font-size-body);
    color: var(--color-text);
    line-height: var(--line-height-relaxed);
    margin-bottom: 1rem;
}

/* Links */
a {
    color: var(--color-link);
    text-decoration: none;
}

a:hover {
    color: var(--color-link-hover);
    text-decoration: underline;
}

/* Small Text */
small, .small-text {
    font-size: var(--font-size-small);
    color: var(--color-text-secondary);
}

.tiny-text {
    font-size: var(--font-size-tiny);
    color: var(--color-text-light);
}

/* Lists */
ul, ol {
    font-size: var(--font-size-body);
    color: var(--color-text);
    line-height: var(--line-height-relaxed);
    margin-bottom: 1rem;
}

li {
    margin-bottom: 0.5rem;
}

/* Blockquotes */
blockquote {
    font-size: var(--font-size-body);
    color: var(--color-text-secondary);
    line-height: var(--line-height-relaxed);
    border-left: 4px solid var(--color-heading);
    padding-left: 1rem;
    margin: 1.5rem 0;
    font-style: italic;
}

/* Code */
code {
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    background: #f5f5f5;
    padding: 2px 6px;
    border-radius: 3px;
    color: #d32f2f;
}

pre {
    font-family: 'Courier New', monospace;
    font-size: 0.875rem;
    background: #f5f5f5;
    padding: 1rem;
    border-radius: 5px;
    overflow-x: auto;
    margin: 1rem 0;
}

/* Buttons */
button, .btn {
    font-size: var(--font-size-body);
    font-weight: var(--font-weight-semibold);
    line-height: var(--line-height-normal);
}

/* Form Elements */
input, textarea, select {
    font-size: var(--font-size-body);
    color: var(--color-text);
    line-height: var(--line-height-normal);
}

label {
    font-size: var(--font-size-body);
    color: var(--color-text);
    font-weight: var(--font-weight-medium);
}

/* Tables */
table {
    font-size: var(--font-size-body);
    color: var(--color-text);
}

th {
    font-weight: var(--font-weight-semibold);
    color: var(--color-heading);
}

/* Utility Classes */
.text-large {
    font-size: 1.125rem;
}

.text-small {
    font-size: var(--font-size-small);
}

.text-tiny {
    font-size: var(--font-size-tiny);
}

.text-bold {
    font-weight: var(--font-weight-bold);
}

.text-semibold {
    font-weight: var(--font-weight-semibold);
}

.text-primary {
    color: var(--color-heading);
}

.text-secondary {
    color: var(--color-text-secondary);
}

.text-light {
    color: var(--color-text-light);
}

/* Responsive Typography */
@media (max-width: 768px) {
    :root {
        --font-size-h1: 2rem;        /* 32px */
        --font-size-h2: 1.75rem;     /* 28px */
        --font-size-h3: 1.375rem;    /* 22px */
        --font-size-h4: 1.125rem;    /* 18px */
    }
}

@media (max-width: 480px) {
    :root {
        --font-size-h1: 1.75rem;     /* 28px */
        --font-size-h2: 1.5rem;      /* 24px */
        --font-size-h3: 1.25rem;     /* 20px */
    }
}
