/* ===================================== */
/*            TYPOGRAPHY                 */
/* ===================================== */

/* Заголовки */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    letter-spacing: -0.02em;
}

h1 {
    font-size: clamp(32px, 5vw, 48px);
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

/* Текст */
.text-gradient {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-dim {
    color: var(--text-dim);
}

.text-muted {
    color: var(--text-muted);
}

.text-accent {
    color: var(--accent);
}

/* Размеры текста */
.text-xs { font-size: 12px; }
.text-sm { font-size: 14px; }
.text-base { font-size: 16px; }
.text-lg { font-size: 18px; }
.text-xl { font-size: 20px; }
.text-2xl { font-size: 24px; }
.text-3xl { font-size: 30px; }

/* Начертания */
.font-normal { font-weight: 400; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.font-extrabold { font-weight: 800; }

/* Ссылки */
a, .link {
    color: var(--accent);
    text-decoration: none;
    transition: var(--transition-fast);
    cursor: pointer;
}

a:hover, .link:hover {
    filter: brightness(1.2);
    text-decoration: underline;
}

/* Моноширинный текст */
.font-mono {
    font-family: 'SF Mono', 'Menlo', 'Monaco', 'Cascadia Code', 'Consolas', monospace;
}

/* Выравнивание */
.text-left { text-align: left; }
.text-center { text-align: center; }
.text-right { text-align: right; }

/* Перенос слов */
.break-word {
    word-break: break-word;
    overflow-wrap: break-word;
}

.no-wrap {
    white-space: nowrap;
}

/* Скрытие текста */
.text-truncate {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Многострочное скрытие */
.line-clamp-1 {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}