/* Typography - Light Theme */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
}

body {
    font-family: var(--font-sans);
    font-size: var(--font-size);
    line-height: var(--line-height-normal);
    color: var(--text);
}

/* Display Typography */
.display {
    font-size: var(--font-size-4xl);
    font-weight: 800;
    line-height: var(--line-height-tight);
    letter-spacing: -0.025em;
}

.display-lg {
    font-size: var(--font-size-3xl);
    font-weight: 800;
    line-height: var(--line-height-tight);
    letter-spacing: -0.025em;
}

.display-md {
    font-size: var(--font-size-2xl);
    font-weight: 700;
    line-height: var(--line-height-tight);
    letter-spacing: -0.015em;
}

.display-sm {
    font-size: var(--font-size-xl);
    font-weight: 700;
    line-height: var(--line-height-tight);
}

/* Heading Typography */
h1, .h1 {
    font-size: var(--font-size-3xl);
    font-weight: 800;
    line-height: var(--line-height-tight);
    letter-spacing: -0.025em;
}

h2, .h2 {
    font-size: var(--font-size-2xl);
    font-weight: 700;
    line-height: var(--line-height-tight);
    letter-spacing: -0.015em;
}

h3, .h3 {
    font-size: var(--font-size-xl);
    font-weight: 600;
    line-height: var(--line-height-tight);
}

h4, .h4 {
    font-size: var(--font-size-lg);
    font-weight: 600;
    line-height: var(--line-height-normal);
}

h5, .h5 {
    font-size: var(--font-size);
    font-weight: 600;
    line-height: var(--line-height-normal);
}

h6, .h6 {
    font-size: var(--font-size-sm);
    font-weight: 600;
    line-height: var(--line-height-normal);
}

/* Body Typography */
p, .body {
    font-size: var(--font-size);
    font-weight: var(--font-weight-normal);
    line-height: var(--line-height-relaxed);
    color: var(--text-secondary);
}

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

p-lg {
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-normal);
    line-height: var(--line-height-relaxed);
    color: var(--text-secondary);
}

/* Small Text */
small {
    font-size: var(--font-size-sm);
    line-height: var(--line-height-normal);
}

/* Font Weights */
.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); }
.font-extrabold { font-weight: var(--font-weight-extrabold); }

/* Text Color Utilities */
.text-primary { color: var(--primary); }
.text-secondary { color: var(--text-secondary); }
.text-muted { color: var(--text-muted); }
.text-success { color: var(--success); }
.text-warning { color: var(--warning); }
.text-error { color: var(--error); }

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

/* Letter Spacing Utilities */
.tight { letter-spacing: -0.025em; }
.normal { letter-spacing: 0; }
.wider { letter-spacing: 0.025em; }

/* Text Transform Utilities */
.lowercase { text-transform: lowercase; }
.uppercase { text-transform: uppercase; }
.capitalize { text-transform: capitalize; }

/* Inline Elements */
a {
    color: var(--primary);
    font-weight: var(--font-weight-medium);
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--primary-dark);
}

code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.875em;
    padding: 0.125rem 0.25rem;
    background: var(--surface-light);
    border-radius: var(--radius-sm);
}

/* Strikethrough */
del, s {
    text-decoration: line-through;
    text-decoration-color: var(--text-muted);
    text-decoration-thickness: 1px;
}

/* Underline */
u {
    text-decoration: underline;
    text-decoration-color: var(--primary);
    text-underline-offset: 0.125rem;
}

/* Initial Cap */
.initial-cap::first-letter {
    font-size: 1.5em;
    font-weight: 700;
    line-height: 0.8;
    float: left;
    margin-right: 0.125rem;
    color: var(--primary);
}

/* Blockquote */
blockquote {
    font-size: var(--font-size-lg);
    font-style: italic;
    color: var(--text-secondary);
    border-left: 4px solid var(--primary);
    padding-left: var(--spacing);
    margin: var(--spacing) 0;
}

/* Horizontal Rule */
hr {
    border: none;
    height: 1px;
    background: var(--border-light);
    margin: var(--spacing-xl) 0;
}
