/* Typography CSS */
:root {
    --font-family: 'IBM Plex Mono', monospace;
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-bold: 700;
    
    --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 */
    
    --line-height-tight: 1.2;
    --line-height-normal: 1.5;
    --line-height-loose: 1.8;
    
    --letter-spacing-tight: -0.025em;
    --letter-spacing-normal: 0;
    --letter-spacing-wide: 0.025em;
    --letter-spacing-wider: 0.05em;
}

body {
    font-family: var(--font-family);
    font-weight: var(--font-weight-normal);
    font-size: var(--font-size-base);
    line-height: var(--line-height-normal);
    letter-spacing: var(--letter-spacing-normal);
}

h1, h2, h3, h4, h5, h6 {
    font-weight: var(--font-weight-bold);
    line-height: var(--line-height-tight);
    margin-bottom: 0.5em;
}

h1, .h1 {
    font-size: var(--font-size-3xl);
}

h2, .h2 {
    font-size: var(--font-size-2xl);
}

h3, .h3 {
    font-size: var(--font-size-xl);
}

h4, .h4 {
    font-size: var(--font-size-lg);
}

h5, .h5 {
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-bold);
}

h6, .h6 {
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-bold);
    text-transform: uppercase;
    letter-spacing: var(--letter-spacing-wide);
}

p {
    margin-bottom: 1rem;
}

.site-name {
    font-size: var(--font-size-4xl);
    font-weight: var(--font-weight-bold);
    letter-spacing: var(--letter-spacing-tight);
    margin-bottom: 0.25rem;
}

.site-tagline {
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-normal);
    color: var(--color-text-secondary);
    margin-bottom: 0;
}

.project-title {
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-bold);
    margin-bottom: 0.5rem;
}

.project-description {
    font-size: var(--font-size-sm);
    line-height: var(--line-height-normal);
    margin-bottom: 1rem;
}

.project-tag {
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-medium);
    letter-spacing: var(--letter-spacing-wide);
}

.project-link {
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-medium);
    letter-spacing: var(--letter-spacing-wide);
}

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

.copyright {
    font-size: var(--font-size-xs);
}

/* Responsive typography */
@media (max-width: 768px) {
    :root {
        --font-size-4xl: 2rem;    /* 32px */
        --font-size-3xl: 1.75rem; /* 28px */
        --font-size-2xl: 1.375rem; /* 22px */
    }
}

@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: 0.9375rem; /* 15px */
    }
}
