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

html {
    font-family: sans-serif;
    line-height: 1.15;
}

body {
    margin: 0;
    color: var(--color-text);
    background: var(--color-white);
    border: 4px solid var(--color-surface);
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 32px;
    -webkit-font-smoothing: antialiased;
}

@media (min-width: 40em) {
    body {
        border-width: 8px;
    }
}

body,
h1,
h2,
h3,
h4,
h5,
h6,
p,
ul,
ol,
figure,
blockquote {
    margin: 0;
    padding: 0;
}

img {
    max-width: 100%;
    border: 0;
}

a {
    color: var(--color-text);
    text-decoration: none;
    transition: color 0.5s;
}

a:hover,
a:focus {
    color: var(--color-accent);
}

h1,
h2,
h3,
h4 {
    font-weight: inherit;
    line-height: 1.25;
}

h1 {
    font-size: 32px;
}

h2 {
    font-size: 28px;
}

button,
input {
    font-family: inherit;
}

.u-hidden-visually {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    border: 0;
}

.u-font-size-medium {
    font-size: 16px;
    line-height: 25px;
}

.u-font-weight-medium {
    font-weight: 500;
}

.u-font-size-tiny {
    font-size: 12px;
    line-height: 19px;
}

.u-mt-8 {
    margin-top: 8px;
}

.u-alert {
    display: none;
    font-family: var(--font-sans);
    font-size: 12px;
    font-weight: 500;
}

.u-alert--success {
    color: var(--color-success);
}

.u-alert--invalid,
.u-alert--error {
    color: var(--color-accent-deep);
}

.c-subscribe-form.success .u-alert--success,
.c-subscribe-form.invalid .u-alert--invalid,
.c-subscribe-form.error .u-alert--error {
    display: block;
}

.o-plain-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.c-off-canvas-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.c-off-canvas-container .o-wrapper {
    flex: 1 0 auto;
}
