@layer base {
/* База и типографика */
html {
    scrollbar-gutter: stable;
}

body {
    margin: 0;
    font-family: var(--font-sans);
    font-size: var(--text-body);
    line-height: 1.6;
    color: var(--color-text-primary);
    background: var(--color-background);
    -webkit-font-smoothing: antialiased;
}

/* Высота админ-бара WP (32px / 46px), доступна только у залогиненных */
body.admin-bar {
    --rz-admin-bar-h: var(--wp-admin--admin-bar--height, 32px);
}

h1, h2, h3, h4, h5, h6 {
    margin: 0;
    font-family: var(--font-sans);
    font-weight: 400;
}

h1 {
    font-size: var(--text-h1);
    font-family: var(--font-display);
    line-height: 1.1;
    letter-spacing: -0.02em;
}

h2 {
    font-size: var(--text-h2);
    font-family: var(--font-display);
    line-height: 1.15;
    letter-spacing: -0.01em;
}

h3 {
    font-size: var(--text-h3);
    font-weight: 600;
    line-height: 1.3;
}

h4 {
    font-size: var(--text-h4);
    font-weight: 500;
    line-height: 1.4;
}

h5 {
    font-size: var(--text-h5);
    font-weight: 600;
    line-height: 1.4;
}

h6 {
    font-size: var(--text-h6);
    font-weight: 500;
    line-height: 1.4;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

p {
    margin: 0 0 var(--space-4);
}

a {
    color: var(--color-accent-dark);
    text-decoration: none;
    transition: color var(--transition-base);
}

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

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
    outline: 3px solid var(--color-primary);
    outline-offset: 2px;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul, ol {
    margin: 0 0 var(--space-4);
    padding-left: 1.25rem;
}
}
