@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: 680px;
    margin: 1rem auto;
    border: 1px solid #000;
    background: #F3F0EB url('../images/bg.jpg') no-repeat;
    overflow: hidden;
    padding: 4.1rem 1.25rem 1rem;
}
:is(a:link, a:visited, a:hover, a:active) {
    color: inherit;
    text-decoration: none;
}
p {
    padding-bottom: 0.5rem;
}
h1 {
    margin: 0 0 5rem 5.75rem;
    text-indent: -5.5rem;
    font-size: 2.55em;
    line-height: 1.5;
    color: #00415D;
    text-transform: uppercase;
    transform: rotate(-3deg);
}
h2 {
    font-size: 1.313em;
    line-height: 1.3;
    background: #00415D;
    width: fit-content;
    padding: 0.25rem 0.75rem;
    margin-bottom: 0.5rem;
}
img {
    max-width: 100%;
    height: auto;
    vertical-align: middle;
}
.box {
    display: flex;
    gap: 0 1.25rem;
    align-items: flex-end;
    flex-wrap: wrap;
    position: absolute;
    right: 1.5rem;
    bottom: 1rem;
}
header {
    display: none;
}
footer {
    padding: 9.5rem 0 0 3.5rem;
}
@media only screen and (max-width:679px) {
    #wrapper {
        border: none;
        margin: 0 auto;
        padding: 0;
        background: #00415D;
    }
    p a, span {
        display: inline-block;
    }
    h1, p {
        text-align: center;
    }
    h1 {
        background: #F3EFEA;
        margin: 0 0 1rem;
        text-indent: 0;
        transform: none;
        padding: 0.5rem;
        line-height: 1.3;
        font-size: 2em;
    }
    .box {
        position: static;
        justify-content: center;
        margin: 0.5rem 0;
    }
    header {
        display: block;
    }
    header img {
        width: 100%;
    }
    article {
        padding: 1rem;
    }
    footer {
        padding: 1rem;
        display: flex;
        justify-content: center;
        background: #F3EFEA;
    }
}