/* ============================================================
   Auditorium — CSS Reset
   Современный сброс стилей на основе:
   - Andy Bell's Modern CSS Reset
   - WordPress core styles
   ============================================================ */

/* Box-sizing для всех элементов */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Убираем стандартные отступы */
html {
    -moz-text-size-adjust: none;
    -webkit-text-size-adjust: none;
    text-size-adjust: none;
    scroll-behavior: smooth;
}

/* Базовые стили body */
body {
    min-height: 100vh;
    font-family: var(--font-body);
    font-size: var(--fs-16-reg);
    font-weight: var(--fw-16-reg);
    line-height: var(--lh-16-reg);
    color: var(--color-text);
    background-color: var(--color-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Улучшаем отображение медиа */
img,
picture,
video,
canvas,
svg {
    display: block;
    max-width: 100%;
    height: auto;
}

/* Убираем обводку у сфокусированных элементов (кроме клавиатурной навигации) */
:focus:not(:focus-visible) {
    outline: none;
}

:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

/* Ссылки */
a {
    color: inherit;
    text-decoration: none;
}

a:hover {
    color: var(--color-primary);
}

/* Списки */
ul,
ol {
    list-style: none;
}

/* Заголовки */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: var(--fw-h1);
    line-height: var(--lh-h1);
    color: var(--color-text);
    overflow-wrap: break-word;
}

h1 { font-size: var(--fs-h1); }

/* Параграфы */
p {
    overflow-wrap: break-word;
}

/* Кнопки */
button,
input,
select,
textarea {
    font: inherit;
    color: inherit;
    border: none;
    background: none;
}

button {
    cursor: pointer;
}

/* Таблицы */
table {
    border-collapse: collapse;
    width: 100%;
}

/* Формы */
input,
textarea {
    width: 100%;
}

/* Убираем стандартный вид fieldset */
fieldset {
    border: none;
}

/* Спрятанные элементы (доступные для скринридеров) */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}

.screen-reader-text:focus {
    background-color: var(--color-white);
    clip: auto !important;
    clip-path: none;
    display: block;
    font-size: var(--fs-14-bold);
    font-weight: var(--fw-14-bold);
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
}

/* Убираем стрелки в input[type=number] */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
input[type="number"] {
    -moz-appearance: textfield;
}

/* Сброс для WordPress-классов */
.alignleft  { float: left; margin-right: 1.5em; }
.alignright { float: right; margin-left: 1.5em; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }

.wp-caption {
    max-width: 100%;
}
.wp-caption-text {
    font-size: var(--fs-14-reg);
    color: var(--color-text2);
}

/* Стики-футер (прижимаем подвал к низу) */
.site {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.site-main {
    flex: 1;
}
