/* =========================================================
 * ЕДИНАЯ ТИПОГРАФИКА И ОТСТУПЫ ДЛЯ ВСЕГО САЙТА
 * ========================================================= */

:root {

    /* --- Отступы по краям страницы (для шапки, футера, контента) --- */
    --wp--style--root--padding-left:  1.5rem;
    --wp--style--root--padding-right: 1.5rem;

    /* --- Ширина контента --- */
    --wp--style--global--content-size: 1080px;
    --wp--style--global--wide-size:    1280px;

    /* --- Шрифты. Переопределяем все возможные имена. --- */
    --wp--preset--font-family--body:     system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --wp--preset--font-family--heading:  system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --wp--preset--font-family--manrope:  system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --wp--preset--font-family--system:   system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --wp--preset--font-family--serif:    system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --wp--preset--font-family--literata: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

    /* --- Размеры шрифтов --- */
    --wp--preset--font-size--small:    0.875rem;
    --wp--preset--font-size--medium:   1rem;
    --wp--preset--font-size--large:    1.125rem;
    --wp--preset--font-size--x-large:  1.5rem;
    --wp--preset--font-size--xx-large: 2rem;
    --wp--preset--font-size--huge:     2.5rem;
}


/* =========================================================
 * BODY
 * ========================================================= */

body {
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important;
    font-size: 1.05rem !important;
    font-weight: 400 !important;
    line-height: 1.65 !important;
}


/* =========================================================
 * НАЗВАНИЕ САЙТА
 * ========================================================= */

.wp-block-site-title,
.wp-block-site-title a {
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important;
    font-weight: 400 !important;
    font-size: clamp(1.5rem, 2.5vw, 2rem) !important;
    line-height: 1.15 !important;
    letter-spacing: -0.01em !important;
    text-transform: uppercase;
    text-decoration: none !important;
}


/* =========================================================
 * ЗАГОЛОВКИ — везде sans-serif
 * Перечисляем все возможные селекторы темы, чтобы ничего не упустить.
 * ========================================================= */

h1, h2, h3, h4, h5, h6,
.wp-block-heading,
.wp-block-post-title,
.wp-block-post-title a,
.wp-block-query-title,
.wp-block-post-excerpt__excerpt,
.wp-block-post-content,
.wp-block-paragraph {
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important;
}

.wp-block-query-title {
    font-weight: 700 !important;
    font-size: clamp(2rem, 4vw, 3.2rem) !important;
    line-height: 1.15 !important;
    letter-spacing: -0.01em !important;
}

.wp-block-post-title,
.wp-block-post-title a {
    font-weight: 600 !important;
    line-height: 1.25 !important;
    text-decoration: none;
}


/* =========================================================
 * АРХИВ /plays/ — тот же контейнер, что и страница спектакля
 * ========================================================= */

.td-archive,
.td-single {
    max-width: 1080px;
    margin-left: auto;
    margin-right: auto;
    padding-top: 2rem;
    padding-bottom: 4rem;
}