/* ============================================
   Typography - Corporate Text Styles
   Aligneer Design System v1.0
   ============================================ */

/* ===== HEADINGS ===== */
h1, h2, h3, h4, h5, h6 {
    margin-bottom: var(--spacing-md);
    color: var(--text-primary);
    font-weight: var(--font-bold);
    line-height: var(--leading-tight);
}

h1 { 
    font-size: var(--font-3xl);
    letter-spacing: -0.5px;
}

h2 { 
    font-size: var(--font-2xl);
    letter-spacing: -0.3px;
}

h3 { 
    font-size: var(--font-xl);
}

h4 {
    font-size: var(--font-lg);
}

h5 {
    font-size: var(--font-base);
}

h6 {
    font-size: var(--font-sm);
    font-weight: var(--font-semibold);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ===== PARAGRAPHS ===== */
p {
    margin-bottom: var(--spacing-md);
    line-height: var(--leading-normal);
    color: var(--text-primary);
}

p.lead {
    font-size: var(--font-lg);
    line-height: var(--leading-relaxed);
    color: var(--text-secondary);
}

p:last-child {
    margin-bottom: 0;
}

/* ===== TEXT UTILITIES ===== */
.text-sm {
    font-size: var(--font-sm);
}

.text-base {
    font-size: var(--font-base);
}

.text-lg {
    font-size: var(--font-lg);
}

.text-xl {
    font-size: var(--font-xl);
}

.text-2xl {
    font-size: var(--font-2xl);
}

.text-primary {
    color: var(--text-primary);
}

.text-secondary {
    color: var(--text-secondary);
}

.text-tertiary {
    color: var(--text-tertiary);
}

.text-brand {
    color: var(--primary);
}

.text-success {
    color: var(--success);
}

.text-warning {
    color: var(--warning);
}

.text-error {
    color: var(--error);
}

/* ===== FONT WEIGHTS ===== */
.font-normal {
    font-weight: var(--font-normal);
}

.font-medium {
    font-weight: var(--font-medium);
}

.font-semibold {
    font-weight: var(--font-semibold);
}

.font-bold {
    font-weight: var(--font-bold);
}

/* ===== TEXT ALIGNMENT ===== */
.text-left {
    text-align: left;
}

.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

/* ===== LINKS ===== */
a {
    color: var(--primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--primary-light);
}

/* ===== CODE ===== */
code {
    font-family: 'Courier New', monospace;
    background: var(--slate-100);
    padding: 0.125rem 0.375rem;
    border-radius: var(--radius-sm);
    font-size: 0.875em;
    color: var(--primary);
    border: 1px solid var(--border-color);
}

pre {
    background: var(--slate-100);
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    overflow-x: auto;
    border: 1px solid var(--border-color);
}

pre code {
    background: none;
    padding: 0;
    border: none;
}

/* ===== BLOCKQUOTE ===== */
blockquote {
    border-left: 4px solid var(--primary);
    padding-left: var(--spacing-lg);
    margin: var(--spacing-lg) 0;
    color: var(--text-secondary);
    font-style: italic;
}

/* ===== LISTS ===== */
ul, ol {
    margin-bottom: var(--spacing-md);
    padding-left: var(--spacing-xl);
}

li {
    margin-bottom: var(--spacing-xs);
    line-height: var(--leading-normal);
}
