/* ==========================================================================
   TYPOGRAPHY SYSTEM - DANIEL WOŹNIAK
   ========================================================================== */

/* Google Fonts Import */
/* Font imports moved to HTML head for better performance */

/* Base body typography */
body {
    font-family: var(--font-family-base);
    font-weight: var(--font-weight-normal);
    line-height: var(--line-height-normal);
    color: var(--text-primary-light);
}

/* Typography Scale */
.text-xs { font-size: clamp(0.75rem, 1.5vw, 0.875rem); }
.text-sm { font-size: clamp(0.875rem, 2vw, 1rem); }
.text-base { font-size: clamp(1rem, 2.2vw, 1.125rem); }
.text-lg { font-size: clamp(1.125rem, 2.5vw, 1.25rem); }
.text-xl { font-size: clamp(1.25rem, 3vw, 1.5rem); }
.text-2xl { font-size: clamp(1.5rem, 4vw, 2rem); }
.text-3xl { font-size: clamp(2rem, 5vw, 3rem); }
.text-4xl { font-size: clamp(2.5rem, 6vw, 4rem); }
.text-5xl { font-size: clamp(3rem, 7vw, 5rem); }

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

h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: var(--font-weight-bold);
}

h2 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: var(--font-weight-bold);
}

h3 {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: var(--font-weight-semibold);
}

h4 {
    font-size: clamp(1.25rem, 3vw, 2rem);
    font-weight: var(--font-weight-semibold);
}

h5 {
    font-size: clamp(1.125rem, 2.5vw, 1.5rem);
    font-weight: var(--font-weight-medium);
}

h6 {
    font-size: clamp(1rem, 2vw, 1.25rem);
    font-weight: var(--font-weight-medium);
}

/* Paragraphs */
p {
    margin-bottom: 1em;
    line-height: var(--line-height-relaxed);
}

/* Lead text */
.lead {
    font-size: clamp(1.125rem, 2.5vw, 1.25rem);
    font-weight: var(--font-weight-normal);
    line-height: var(--line-height-normal);
    color: var(--text-light);
}

/* Small text */
.small {
    font-size: clamp(0.875rem, 2vw, 1rem);
    line-height: var(--line-height-normal);
}

/* Code and monospace */
code, pre, .mono {
    font-family: var(--font-family-mono);
    font-size: 0.9em;
}

/* Links */
a {
    color: var(--accent-blue);
    transition: var(--transition-fast);
}

a:hover {
    color: var(--accent-blue-light);
}

/* Text utilities */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.text-light { color: var(--text-light); }
.text-muted { color: var(--text-muted); }
.text-primary { color: var(--text-primary); }
.text-accent { color: var(--accent-blue); }

.font-light { font-weight: var(--font-weight-light); }
.font-normal { font-weight: var(--font-weight-normal); }
.font-medium { font-weight: var(--font-weight-medium); }
.font-semibold { font-weight: var(--font-weight-semibold); }
.font-bold { font-weight: var(--font-weight-bold); }

/* Text effects */
.text-shadow {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.text-shadow-lg {
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
}

/* Selection styling */
::selection {
    background: var(--accent-blue);
    color: var(--white);
}

::-moz-selection {
    background: var(--accent-blue);
    color: var(--white);
}