@charset "utf-8";
:root {
    font-size: 16px;
}
* {
    box-sizing: border-box;
    margin: 0;
}
html {
    min-height: 100%;
}
body {
    color: #000000;
    font: 400 1.25em/1.3em "Lucida Sans Unicode", "Lucida Grande", Arial, sans-serif;
}
#wrapper {
    position: relative;
    max-width: 510px;
    margin: 1rem auto;
    border: solid 1px #000;
    background: #fff url('../images/bg.jpg') top left no-repeat;
    overflow: hidden;
    padding: 5rem 2rem 2.5rem 5rem;
}
p {
    padding-bottom: 1rem;
}
:is(a:link, a:visited, a:hover, a:active) {
    color: inherit;
    text-decoration: none;
}
img {
    max-width: 100%;
    height: auto;
}
h1 {
    margin: 0 0 1rem;
    font-size: 1.5em;
    line-height: 1.1em;
}
h2 {
    font-size: 2em;
    line-height: 1.3em;
    margin-bottom: 2rem;
}
h3 {
    font-size: 1.25em;
    line-height: 1.3em;
    margin-bottom: 2.5rem;
}
header {
    padding: 0;
}
article {
    width: fit-content;
    margin-left: auto;
}

figure {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
}
footer {
    display: flex;
    justify-content: center;
    margin: 1rem 3rem 0 0;
}
@media only screen and (max-width: 509px) {
    body {
        font-size: 1em;
        line-height: 1.3;
    }
    #wrapper {
        border: none;
        margin: 0 auto;
        background-image: none;
        padding: 1rem;
    }
    p {
        -moz-hyphens: auto;
        -o-hyphens: auto;
        -webkit-hyphens: auto;
        -ms-hyphens: auto;
        hyphens: auto;
    }
    p :is(span, a) {
        display: inline-block;
    }
    article {
        width: auto;
    }
    :is(header, article) br {
        display: none;
    }
}