/* Mobile */
:root {
    --primary-font: "Literata", serif; /* Light 300, Regular 400, Medium 500, SemiBold 600, Bold 700 */
    --secondary-font: "Nunito", sans-serif; /* Light 300, Regular 400, Medium 500, SemiBold 600, Bold 700 */
    --primary-color: #FFFBDB;
    --secondary-color: #979372;
    --border-color: #E9E6B9;
    --max-width: 100vw;
}

/* Tablet */
@media (min-width: 800px) {
    :root {
        --max-width: 30rem;
    }
}
/* Desktop */
@media (min-width: 1280px) {
    :root {
        --max-width: 30rem;
    }
}

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

html {
    scroll-behavior: smooth; /* Плавная прокрутка при клике на якорные ссылки */
    scroll-snap-type: y mandatory;
}

/* Изображения никогда не вылезут за пределы своего контейнера */
img, 
picture, 
video, 
canvas, 
svg {
    display: block;
    max-width: 100%;
}

/* Убираем стандартные маркеры у списков */
ul, 
ol {
    list-style: none;
}

/* Сбрасываем стили ссылок */
a {
    text-decoration: none;
    color: inherit;
}

/* Наследуем шрифты для элементов форм (по умолчанию они используют свои) */
input, 
button, 
textarea, 
select {
    font: inherit;
}

body {
    background-color: var(--primary-color);
    -webkit-font-smoothing: antialiased; /* Делает шрифты более гладкими на macOS */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: start;
}

.container {
    width: var(--max-width);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: start;
}

.screen {
    height: 100vh; /* 100vh означает 100% от высоты видимой части окна браузера (Viewport Height) */
    display: flex;
    flex-direction: column;
    align-items: center; /* Центрируем элементы по горизонтали */
    justify-content: space-evenly; /* Центрируем элементы по вертикали */
    text-align: center; /* Центрируем сам текст внутри его контейнера */
    padding: 20px; /* Добавляем внутренние отступы, чтобы на телефонах текст не прилипал к краям экрана */
    scroll-snap-align: start; /* Примагничиваемся верхним краем (началом) блока */
}