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

body {
    margin: 0;
    background: var(--vx-background);
    color: var(--vx-primary);
    font-family: var(--vx-font-body);
    font-size: 16px;
    line-height: 1.4;
    -webkit-font-smoothing: antialiased;
}

img,
svg {
    max-width: 100%;
}

.vx-container {
    width: 100%;
    max-width: calc(var(--vx-container) + 2 * var(--vx-page-pad));
    margin-inline: auto;
    padding-inline: var(--vx-page-pad);
}

/* TODO: тимчасово, поки немає шаблонів сторінок зі своїми відступами. */
.vx-main {
    padding-block: 64px;
    min-height: 40vh;
}

/* --- Типографіка ------------------------------------------------------- */

.vx-h1,
.vx-h2,
.vx-h3,
.vx-h4,
.vx-h5 {
    margin: 0;
    font-family: var(--vx-font-heading);
    color: var(--vx-primary);
}

.vx-h1 {
    font-size: 40px;
    font-weight: 600;
    line-height: 1.1;
}

.vx-h2 {
    font-size: 28px;
    font-weight: 600;
    line-height: 1.3;
}

.vx-h3 {
    font-size: 24px;
    font-weight: 600;
    line-height: 1.2;
}

.vx-h4 {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.2;
}

.vx-h5 {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;
    letter-spacing: 2px;
}

.vx-text-large {
    font-family: var(--vx-font-heading);
    font-size: 18px;
    font-weight: 600;
    line-height: 1.3;
}

.vx-text {
    font-size: 16px;
    font-weight: 400;
    line-height: 1.4;
}

.vx-text--bold {
    font-weight: 500;
}

.vx-text-secondary {
    font-size: 14px;
    font-weight: 400;
    line-height: 1.5;
}

.vx-text-secondary--bold {
    font-weight: 600;
}

.vx-text-small {
    font-size: 12px;
    font-weight: 400;
    line-height: 1.5;
}

/* --- Утиліти ----------------------------------------------------------- */

.vx-list-reset {
    margin: 0;
    padding: 0;
    list-style: none;
}

.vx-visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

.vx-skip-link {
    position: absolute;
    top: -100px;
    left: var(--vx-page-pad);
    z-index: 100;
    padding: 12px 16px;
    background: var(--vx-primary);
    color: var(--vx-white);
    font-family: var(--vx-font-heading);
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
}

.vx-skip-link:focus {
    top: 8px;
}
