@charset "utf-8";
@import url('https://fonts.googleapis.com/css2?family=REM:ital,wght@0,100..900;1,100..900&display=swap');
:root {
    font-size: 16px;
}
* {
    box-sizing: border-box;
    margin: 0;
}
html {
    min-height: 100%;
}
body {
    color: #FFF;
    font: 1em/1.4em 'REM', sans-serif;
}
#wrapper {
    position: relative;
    max-width: 640px;
    min-width: 250px;
    margin: 1rem auto;
    border: solid 1px #000;
    background: url('bg.jpg') no-repeat top left;
    overflow: hidden;
    padding: 0;
}
p {
    padding-bottom: 1rem;
    font-size: 1.063em;
    line-height: 1.3em;
}
h1 {
    margin: 0 0 0.5rem;
    font-size: 1.375em;
    line-height: 1.2;
}
h1 span {
    font-size: 0.7em;
    display: inline-block;
}
h1+p {
    padding-bottom: 0.35rem;
}
h2 {
    font-size: 1em;
    line-height: 1.3;
    font-weight: normal;
    margin: 0 0 0.5rem 1rem;
}
a {
    color: #FFF;
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
}
img {
    max-width: 100%;
    height: auto;
    display: inline-block;
}
ul {
    padding: 0 0 1rem ;
    list-style: none;
}
li {
    padding: 0 0 0.25rem 1rem;
}
ul li:before {
    content: "•";
    float: left;
    margin-left: -1rem;
}
main {
    margin-left: 13.5rem;
    padding: 2.125rem 0.25rem 0 1rem;
    background: url('bg-f.jpg') no-repeat top left;
    background-size: 100% 100%;
}
header {
    padding: 0 0 0.5rem;
    display: flex;
    justify-content: center;
}
article section {
    background: #FFF;
    padding: 0.75rem 1rem 0.5rem;
    border-radius: 10px;
    margin: 0 0 0.5rem;
}
article section :is(p, h1) {
    color: #000;
}
section p {
    font-weight: 300;
}
footer figure {
    margin: 0;
    position: absolute;
    bottom: 4rem;
    right: 1.5rem;
}
footer p {
    position: absolute;
    bottom: 0.75rem;
    right: 1.5rem;
    font-size: 1.7em;
}
@media only screen and (max-width: 639px) {
    #wrapper {
        border: none;
        margin: 0 auto;
        height: auto;
    }
    main {
        background: #8390A1;
        margin: 0;
        padding: 1rem;
    }
    ul {
        padding-left: 0;
    }
    p {
        text-align: left;
    }
    p span{
        display: inline-block;
    }
    br {
        display: none;
    }
    header {
        justify-content: center;
    }
    footer figure, footer p {
        position: static;
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 0.5rem;
    }
}
@media only screen and (max-width:480px) {
    article :is(h2, ul) {
        margin: 0;
    }
}