@font-face {
    font-family: 'Open Sans';
    font-style: normal;
    font-weight: 400;
    src: url('../fonts/open-sans-v34-latin-regular.eot');
    src: local(''), url('../fonts/open-sans-v34-latin-regular.eot?#iefix') format('embedded-opentype'), url('../fonts/open-sans-v34-latin-regular.woff2') format('woff2'), url('../fonts/open-sans-v34-latin-regular.woff') format('woff'), url('../fonts/open-sans-v34-latin-regular.ttf') format('truetype'), url('../fonts/open-sans-v34-latin-regular.svg#OpenSans') format('svg');
}

@font-face {
    font-family: 'Open Sans';
    font-style: normal;
    font-weight: 700;
    src: url('../fonts/open-sans-v34-latin-700.eot');
    src: local(''), url('../fonts/open-sans-v34-latin-700.eot?#iefix') format('embedded-opentype'), url('../fonts/open-sans-v34-latin-700.woff2') format('woff2'), url('../fonts/open-sans-v34-latin-700.woff') format('woff'), url('../fonts/open-sans-v34-latin-700.ttf') format('truetype'), url('../fonts/open-sans-v34-latin-700.svg#OpenSans') format('svg');
}

:root {
    font-size: 16px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    min-height: 100%;
}

body {
    font-family: 'Open Sans', Arial, sans-serif;
    font-weight: 400;
    font-size: 17px;
    line-height: 25px;
    color: #2e2113;
}

#wrapper {
    margin: 1rem auto;
    max-width: 700px;
    background: #fff url(../images/background.jpg) no-repeat left bottom;
    border: solid thin #cbcbcb;
    height: 985px;
}

header {
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

article {
    margin: -53px 0 0;
    padding: 0 20px 20px 39px;
}

:is(h1, strong) {
    font-weight: 700;
}

h1 {
    font-size: 43px;
    margin: 0 0 27px;
    color: #333f66;
    line-height: 1.2;
}

p {
    margin: 0 0 0 149px;
}

:is(a:link, a:visited, a:hover, a:active) {
    color: #2e2113;
    text-decoration: none;
}

img {
    max-width: 100%;
}

footer {opacity: 0;}

@media screen and (max-width: 699px) {
    #wrapper {
        border: none;
        margin: 0;
    }

    :is(h1, p) {
        hyphens: auto;
        text-wrap: pretty;
    }

    :is(p a, span) {
        white-space: nowrap;
    }
}

@media screen and (max-width: 674px) {
    #wrapper {
        height: auto;
        background: #f57039;
    }

    header {
        align-items: center;
        background: #f56f38;
        margin-bottom: 20px;
    }

    article {
        margin-top: 10px;
    }

    :is(h1, p) {
        text-align: center;
    }

    h1 {
        font-size: 34px;
    }

    p {
        margin: 0 0 20px;
    }

    br {
        display: none;
    }

    :is(footer, footer png) {
        display: block;
        opacity: 1;
    }
}