@charset "utf-8";
:root {
    font-size: 16px;
}
* {
    box-sizing: border-box;
    margin: 0;
}
html {
    min-height: 100%;
}
body {
    color: #fff;
    font: 400 1em/1.3em Arial, sans-serif;
}
#wrapper {
    position: relative;
    max-width: 500px;
    margin: 1rem auto;
    border: solid 1px #000;
    background: #A81D2E url('../images/bg.jpg') bottom left no-repeat;
    overflow: hidden;
    padding: 2rem;
}
p {
    padding-bottom: 0;
    font-size: 2em;
    line-height: 1;
    position: relative;
    z-index: 2;
}
: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: 5em;
    line-height: 0.75;
    text-transform: uppercase;
    font-weight: 900;
}
h2 {
    font-size: 1.4375em;
    line-height: 1.3em;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}

h2 span {
    background: #191C1E;
    padding: 0.125rem 0.25rem 0;
}
figure {
    margin: -6rem -2rem 0;
}
footer {
    display: flex;
    justify-content: space-between;
    margin-top: -6.25rem;
}
@media only screen and (max-width:499px) {
    #wrapper {
        border: none;
        margin: 0 auto;
        padding: 1rem;
        background-image: none;
    }
    p {
        -moz-hyphens: auto;
        -o-hyphens: auto;
        -webkit-hyphens: auto;
        -ms-hyphens: auto;
        hyphens: auto;
    }
    p :is(span, a) {
        display: inline-block;
    }
    br {
        display: none;
    }
    h1 {
        font-size: 3em;
        line-height: 1;
    }
    figure {
        margin: 0 -1rem;
    }
    footer {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        margin: 0;
    }
}