/*
 * Базовые стили дизайн-системы
 *
 * Подключение шрифта ALS Kraft, reset, типографические базовые
 * классы. Все значения берутся из tokens.css — base.css должен
 * подключаться после него.
 */

@font-face {
    font-family: 'ALS Kraft';
    src: url('../fonts/ALS-Kraft.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* ─── Reset ─── */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    font-size: var(--fs-md);
    font-weight: var(--fw-regular);
    line-height: 1.5;
    color: var(--ink);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-feature-settings: 'kern' 1, 'liga' 1;
    transition: background-color var(--duration-base) var(--ease-out),
                color var(--duration-base) var(--ease-out);
}

img,
svg,
video {
    display: block;
    max-width: 100%;
}

button,
input,
textarea,
select {
    font: inherit;
    color: inherit;
}

button {
    background: none;
    border: none;
    cursor: pointer;
}

a {
    color: inherit;
    text-decoration: none;
}

ul,
ol {
    list-style: none;
}

/* ─── Базовая типографика ─── */
.h1 {
    font-family: var(--font-body);
    font-size: var(--fs-3xl);
    font-weight: var(--fw-bold);
    line-height: 1.04;
    letter-spacing: -0.025em;
}

.h2 {
    font-family: var(--font-body);
    font-size: var(--fs-2xl);
    font-weight: var(--fw-bold);
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.h3 {
    font-family: var(--font-body);
    font-size: var(--fs-xl);
    font-weight: var(--fw-semibold);
    line-height: 1.25;
    letter-spacing: -0.01em;
}

.lead {
    font-size: var(--fs-lg);
    line-height: 1.55;
    color: var(--ink-muted);
}

.eyebrow {
    font-family: var(--font-display);
    font-size: var(--fs-xs);
    font-weight: var(--fw-regular);
    text-transform: uppercase;
    letter-spacing: 0.22em;
    color: var(--primary);
}

.caption {
    font-size: var(--fs-xs);
    color: var(--ink-muted);
}

/* ─── Утилиты focus ─── */
:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* ─── Тонкие скроллбары — глобально на всех scroll-областях кабинета ─── */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--ink-faint) transparent;
}
*::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
*::-webkit-scrollbar-track {
    background: transparent;
}
*::-webkit-scrollbar-thumb {
    background: var(--ink-faint);
    border-radius: var(--radius-pill);
    border: 2px solid transparent;
    background-clip: padding-box;
}
*::-webkit-scrollbar-thumb:hover {
    background: var(--ink-muted);
    background-clip: padding-box;
    border: 2px solid transparent;
}
