﻿@font-face {
    font-display: swap;
    font-family: 'Roboto Slab';
    font-style: normal;
    font-weight: 400;
    src: url('../fonts/roboto-slab-v34-latin-regular.eot');
    src: url('../fonts/roboto-slab-v34-latin-regular.eot?#iefix') format('embedded-opentype'), url('../fonts/roboto-slab-v34-latin-regular.woff2') format('woff2'), url('../fonts/roboto-slab-v34-latin-regular.woff') format('woff'), url('../fonts/roboto-slab-v34-latin-regular.ttf') format('truetype'), url('../fonts/roboto-slab-v34-latin-regular.svg#RobotoSlab') format('svg');
}

@font-face {
    font-display: swap;
    font-family: 'Roboto Slab';
    font-style: normal;
    font-weight: 700;
    src: url('../fonts/roboto-slab-v34-latin-700.eot');
    src: url('../fonts/roboto-slab-v34-latin-700.eot?#iefix') format('embedded-opentype'), url('../fonts/roboto-slab-v34-latin-700.woff2') format('woff2'), url('../fonts/roboto-slab-v34-latin-700.woff') format('woff'), url('../fonts/roboto-slab-v34-latin-700.ttf') format('truetype'), url('../fonts/roboto-slab-v34-latin-700.svg#RobotoSlab') format('svg');
}

:root {
    font-size: 16px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    line-height: 1.25rem;
    font-size: 1rem;
    font-family: 'Roboto Slab', Arial, sans-serif;
    color: #000;
    font-weight: 400;
}

#wrapper {
    position: relative;
    max-width: 415px;
    margin: 1rem auto;
    border: 1px solid #000;
    overflow: hidden;
    background-color: #c09d8c;
}

article {
    padding: 0 10px;
}

footer {
    padding: 0 10px 30px;
    position: relative;
}

:is(strong, h1, h2, h3) {
    font-weight: 700;
}

h1 {
    font-size: 42px;
    line-height: 26px;
    background: #e4c5b3;
    padding: 20px 10px;
    margin: 0 94px 3px -10px;
    position: relative;
    border-top-right-radius: 50px;
    border-bottom-right-radius: 50px;
}

h1 span {
    font-weight: normal;
    font-size: 16px;
    display: block;
    position: absolute;
    top: 15px;
    left: 127px;
    line-height: 1.2;
}

h2 {
    font-size: 26px;
    margin: 2rem 0;
    line-height: 27px;
}

h2 span {
    color: #FFF;
    padding: 0 0 0 35px;
    white-space: nowrap;
}

h3 {
    font-size: 1rem;
    line-height: 1.125rem;
    background: #e4c5b3;
    border-top-left-radius: 50px;
    border-bottom-left-radius: 50px;
    width: 105px;
    position: absolute;
    top: 0;
    right: 0;
    padding: 1rem;
    text-align: center;
}

:is(a:link, a:visited, a:hover, a:active) {
    color: #FFF;
    white-space: nowrap;
    text-decoration: none;
}

img {
    max-width: 100%;
    vertical-align: bottom;
}

.color {
    color: #FFF;
}

.title {
    background: #e4c5b3;
    padding: 10px;
    margin: 0 -10px;
    font-size: 18px;
    line-height: 23px;
}

@media all and (max-width:414px) {
    #wrapper {
        margin: 0 auto;
        border: none;
    }

    :is(p, h1) {
        hyphens: auto;
        text-wrap: pretty;
    }

    article {
        padding: 0 1rem
    }

    h1 {
        margin-right: 0
    }

    footer {
        padding: 0 1rem 10px;
    }

    h1 {
        margin: 0 -16px 3px;
    }

    .title {
        padding: 10px 16px;
        margin: 0 -16px;
    }

    h2 span {
        padding-left: 0;
    }

    br:not(footer br) {
        display: none;
    }
}

@media all and (max-width:400px) {
    h3 {
        position: static;
        width: 100%;
        margin: 0 0 12px;
        border-radius: 0;
    }

    h1 {
        padding: 1rem 1rem 1px;
    }

    h1 span {
        position: static;
        margin: 1rem 0;
    } }