/*
Theme Name: VSTTS Theme
Theme URI: https://vstts.ru
Author: ЧПОУ «ВСТ ТС»
Description: Официальная тема ЧПОУ ВСТ ТС
Version: 1.0.0
Requires at least: 6.5
Requires PHP: 8.1
Text Domain: vstts-theme
*/

/*
  СИСТЕМНЫЙ РЕСЕТ И БАЗОВЫЕ НАСТРОЙКИ
*/
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: var(--vstts-bg-base);
    color: var(--vstts-text-primary);
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 16px;
    line-height: 1.2;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

main#primary {
    flex: 1 0 auto;
}

/*
  ЕДИНЫЕ ПРАВИЛА ДЛЯ ССЫЛОК И ВЫДЕЛЕНИЯ
*/
a {
    color: var(--bs-link-color);
    text-decoration: none;
    transition: color 0.15s ease, text-decoration 0.15s ease;
}

a:hover {
    color: var(--bs-link-hover-color);
}

/* Выделение текста на сайте фирменным цветом */
::selection {
    background-color: #ebf3fc;
    color: #1d3a54;
}

/*
  OCUS-VISIBLE
*/
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--vstts-focus-border);
    outline-offset: 2px;
}

/*
  МЕДИАФАЙЛЫ
*/
img, svg, video {
    max-width: 100%;
    height: auto;
    vertical-align: middle;
}

body, input, select, textarea, button {
    font-family: var(--vstts-font-family);
    line-height: 1.2;
    font-feature-settings: 'liga' off;
}
