@charset "utf-8";
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap');

:root {
    font-size: 16px;
}

* {
    box-sizing: border-box;
    margin: 0;
}

html {
    min-height: 100%;
}

body {
    color: #000;
    font-family: 'Roboto', sans-serif;
    font-size: 1em;
    line-height: 1.3;
}

#wrapper {
    position: relative;
    max-width: 670px;
    min-width: 250px;
    margin: 1rem auto;
    border: solid 20px #DCDDDF;
    background: url('bg.jpg') no-repeat top right;
    overflow: hidden;
    padding: 1rem 1rem 0;
}

p {
    padding-bottom: 1rem;
}

h1 {
    margin: 0 0 0.5rem;
    font-size: 2.192em;
    line-height: 1.1;
}

small {
    font-weight: normal;
    font-size: 60%;
}

h1 span {
    font-size: 0.6em;
}

h2 {
    font-size: 1em;
    line-height: 1.3;
    margin-bottom: 0;
}

a {
    color: #000;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

img {
    max-width: 100%;
    height: auto;
    display: inline-block;
}

header {
    position: relative;
}

article {
    padding-top: 1rem;
}

header a img {
    position: absolute;
    top: 5rem;
    right: -1rem;
}

footer aside {
    margin-left: 5rem;
}

@media only screen and (max-width:670px) {
    #wrapper {
        border: none;
        margin: 0 auto;
        height: auto;
        padding: 1rem;
        background: #FFF;
    }

    h1 {
        font-size: 1.5rem;
    }

    h1 span, small {
        font-size: 0.75em;
    }

    header a img {
        position: static;
        margin: 1rem 0;
    }

    p {
        text-align: left;
    }

    br {
        display: none;
    }

    footer br {
        display: block;
    }

    footer aside {
        margin: 0;
        display: flex;
        justify-content: center;
    }
}