:root {
    font-size: 16px;
}

@font-face {
    font-display: swap;
    font-family: 'Epunda Slab';
    font-style: normal;
    font-weight: 400;
    src: url('../fonts/epunda-slab-v2-latin-regular.eot');
    src: url('../fonts/epunda-slab-v2-latin-regular.eot?#iefix') format('embedded-opentype'), url('../fonts/epunda-slab-v2-latin-regular.woff2') format('woff2'), url('../fonts/epunda-slab-v2-latin-regular.woff') format('woff'), url('../fonts/epunda-slab-v2-latin-regular.ttf') format('truetype'), url('../fonts/epunda-slab-v2-latin-regular.svg#EpundaSlab') format('svg');
}

@font-face {
    font-display: swap;
    font-family: 'Epunda Slab';
    font-style: normal;
    font-weight: 700;
    src: url('../fonts/epunda-slab-v2-latin-700.eot');
    src: url('../fonts/epunda-slab-v2-latin-700.eot?#iefix') format('embedded-opentype'), url('../fonts/epunda-slab-v2-latin-700.woff2') format('woff2'), url('../fonts/epunda-slab-v2-latin-700.woff') format('woff'), url('../fonts/epunda-slab-v2-latin-700.ttf') format('truetype'), url('../fonts/epunda-slab-v2-latin-700.svg#EpundaSlab') format('svg');
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    color: #fff;
    font-family: "Epunda Slab", Times, serif;
    font-size: 19px;
    line-height: 23px;
    font-weight: 400;
}

#wrapper {
    max-width: 800px;
    margin: 16px auto;
    background: url('../images/background.jpg') no-repeat;
    position: relative;
    height: 347px;
    overflow: hidden;
}

header {
    opacity: 0;
    position: absolute;
    top: 0;
    right: 0;
}

article {
    padding: 36px 40px 0;
}

.logo {
    opacity: 0;
    position: absolute;
    bottom: 21px;
    right: 0;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 1px;
}

.margin {
    margin: 0 0 0 46px;
    color: #cd2531;
}

p {
    margin: 0 0 18px;
}

:is(strong, h1, h2) {
    font-weight: 700;
}

h1 {
    margin: 0 0 20px;
    font-size: 32px;
    line-height: 34px;
    transform: rotate(-2deg);
    color: #cd2531;
}

h1 small {
    font-size: 22px;
}

h1 span {
    margin: 0 0 0 54px;
}

h2 {
    margin: 0 0 12px;
    font-size: 37px;
    line-height: 1.2;
    transform: rotate(2deg);
}

:is(a:link, a:visited, a:hover, a:active) {
    color: inherit;
    text-decoration: none;
    white-space: nowrap;
}

img {
    max-width: 100%;
}

@media all and (max-width: 799px) {
    #wrapper {
        margin: 0 auto;
        height: auto;
        background: #35c2f2;
    }

    header {
        position: static;
        display: flex;
        justify-content: space-between;
        opacity: 1;
        padding: 0 0 0 16px;
        align-items: center;
    }

    .logo {
        position: static;
        opacity: 1;
        justify-content: flex-start;
        align-items: flex-start;
        padding: 16px 0 0;
        gap: 10px;
    }

    article {
        padding: 16px 16px 0;
    }

    footer {
        padding: 0 16px 16px;
    }

    .margin {
        margin: 0;
        background: #fff;
        padding: 10px 16px;
    }

    :is(h1, h2, p) {
        text-align: center;
    }

    p {
        hyphens: auto;
        text-wrap: pretty;
    }

    h1 {
        transform: none;
        background: #fff;
        text-align: center;
        padding: 10px 16px;
        line-height: 1.2;
    }

    h1 span {
        margin: 0;
    }

    h2 {
        transform: none;
        background: #cd2531;
        padding: 10px 16px;
        text-align: center;
    }

    br {
        display: none;
    }
}

@media all and (max-width: 600px) {
    header {
        flex-direction: column;
        align-items: flex-end;
        gap: 16px;
    }

    .logo {
        justify-content: center;
        align-items: center;
        width: 100%;
    }
}