@font-face {
    font-display: swap;
    font-family: 'Roboto';
    font-style: normal;
    font-weight: 400;
    src: url('../fonts/roboto-v30-latin-regular.eot');
    src: local(''), url('../fonts/roboto-v30-latin-regular.eot?#iefix') format('embedded-opentype'), url('../fonts/roboto-v30-latin-regular.woff2') format('woff2'), url('../fonts/roboto-v30-latin-regular.woff') format('woff'), url('../fonts/roboto-v30-latin-regular.ttf') format('truetype'), url('../fonts/roboto-v30-latin-regular.svg#Roboto') format('svg');
}

@font-face {
    font-display: swap;
    font-family: 'Roboto';
    font-style: normal;
    font-weight: 700;
    src: url('../fonts/roboto-v30-latin-700.eot');
    src: local(''), url('../fonts/roboto-v30-latin-700.eot?#iefix') format('embedded-opentype'), url('../fonts/roboto-v30-latin-700.woff2') format('woff2'), url('../fonts/roboto-v30-latin-700.woff') format('woff'), url('../fonts/roboto-v30-latin-700.ttf') format('truetype'), url('../fonts/roboto-v30-latin-700.svg#Roboto') format('svg');
}

:root {
    font-size: 16px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    color: #fff;
    font-family: 'Roboto', Arial, sans-serif;
    font-size: 17px;
    line-height: 22px;
    font-weight: 400;
}

#wrapper {
    max-width: 506px;
    margin: 16px auto;
    border: 1px solid #ccc;
    padding: 16px 20px 5px 171px;
    background: rgb(214, 204, 111);
    background: -moz-linear-gradient(-45deg, rgb(214, 204, 111) 0%, rgb(157, 188, 113) 50%, rgb(69, 172, 114) 100%);
    background: -webkit-linear-gradient(-45deg, rgb(214, 204, 111) 0%, rgb(157, 188, 113) 50%, rgb(69, 172, 114) 100%);
    background: linear-gradient(135deg, rgb(214, 204, 111) 0%, rgb(157, 188, 113) 50%, rgb(69, 172, 114) 100%);
    position: relative;
    overflow: hidden;
}

header {
    position: absolute;
    display: flex;
    flex-direction: column-reverse;
    bottom: 16px;
    left: 20px;
    gap: 110px;
}

p {
    margin: 0 0 12px;
}

strong {
    font-weight: 700;
}

.title {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-end;
    margin: 22px -20px 0 0;
}

:is(h1, h2, h3) {
    background: #951b82;
    font-family: "Times New Roman", Times, serif;
    text-align: right;
    padding: 9px 20px;
    font-weight: 400;
    display: inline-block;
    margin: 0 0 6px;
}

h1 {
    font-size: 35px;
    line-height: 1;
}

h2 {
    font-size: 24px;
    line-height: 30px;
    width: 100%;
}

h3 {
    font-size: 20px;
    line-height: 24px;
    padding: 6px 20px;
}

h4 {
    font-size: 22px;
    line-height: 27px;
    font-weight: 700;
}

:is(a:link, a:visited, a:hover, a:active) {
    color: inherit;
    text-decoration: none;
    white-space: nowrap;
}

img {
    max-width: 100%;
}

@media all and (max-width: 504px) {
    #wrapper {
        margin: 0 auto;
        border: none;
        padding: 16px 16px 6px;
    }

    header {
        position: static;
        flex-direction: row;
        justify-content: space-around;
        align-items: center;
        gap: 16px;
        padding: 0 0 10px;
    }

    .title {
        align-items: center;
        justify-content: center;
        margin: 16px 0;
    }

    :is(h1, h2, h3) {
        text-align: center;
        padding: 10px 16px;
    }

    h2 {
        width: auto;
    }

    p {
        hyphens: auto;
        text-wrap: pretty;
    }

    span {
        white-space: nowrap;
    }

    article br {
        display: none;
    }
}

@media all and (max-width: 374px) {
    a {
        white-space: normal !important;
    }
}