@font-face {
    font-display: swap;
    font-family: 'Titillium Web';
    font-style: normal;
    font-weight: 400;
    src: url('../fonts/titillium-web-v15-latin-regular.woff2') format('woff2'), url('../fonts/titillium-web-v15-latin-regular.woff') format('woff');
}

@font-face {
    font-display: swap;
    font-family: 'Titillium Web';
    font-style: normal;
    font-weight: 700;
    src: url('../fonts/titillium-web-v15-latin-700.woff2') format('woff2'), url('../fonts/titillium-web-v15-latin-700.woff') format('woff');
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    min-height: 100%;
}

body {
    color: #fff;
    font-family: 'Titillium Web', Arial, sans-serif;
    font-size: 16px;
    line-height: 20px;
    font-weight: 400;
}

#wrapper {
    max-width: 412px;
    height: 278px;
    margin: 1rem auto;
    border: 1px solid #000;
    background-color: #fff;
    background: url('../images/background.jpg') no-repeat;
    position: relative;
}

header {
    position: absolute;
    top: 5px;
    right: 5px;
}

article {
    padding: 40px 25px 22px;
}

footer {
    padding: 10px 25px;
    background: #fff;
}

footer p {
    color: #726347;
}

p:not(:first-of-type) {
    margin-top: 10px;
}

h1 {
    font-size: 26px;
    line-height: 1.1;
    padding: 27px 0 15px;
}

img {
    max-width: 100%;
    display: block;
}

:is(h1, h2, strong) {
    font-weight: 700;
}

:is(a:link, a:visited, a:hover, a:active) {
    color: #726347;
    text-decoration: none;
    white-space: nowrap;
}

@media only screen and (max-width:412px) {
    #wrapper {
        border: none;
        margin: 0;
        background: none;
        height: auto;
    }

    header {
        position: static;
        background: #fff;
        padding: 10px;
        display: flex;
        justify-content: center;
    }

    article {
        background: url('../images/background-mobile.jpg') no-repeat;
    }

    :is(article, footer) {
        padding: 16px
    }

    p {
        hyphens: auto;
        text-wrap: pretty
    }

    p span {
        white-space: nowrap;
    }

    footer p {
        text-align: center;
    }
}