﻿* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    min-height: 100%;
}

#wrapper {
    max-width: 660px;
    margin: 16px auto;
    border: 1px solid #231f20;
    padding: 45px 30px 5px 90px;
    overflow: hidden;
    color: #231f20;
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    line-height: 26px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    background: url(background.jpg) center no-repeat;
    background-size: cover;
}

header {
    padding: 0 30px 30px;
    display: flex;
    justify-content: flex-end;
}

article {
    position: relative;
}

figure {
    position: absolute;
    right: 22px;
    z-index: 1;
    bottom: -20px;
}

.font-size {
    font-size: 22px;
    line-height: 35px;
}

.font {
    font-size: 18px;
}

p {
    margin: 0 0 16px;
}

h1 {
    margin: 25px 0;
    font-size: 43px;
    line-height: 49px;
    font-weight: 700;
}

h1 small {
    font-size: 16px;
}

h1 span {
    display: block;
    font-size: 23px;
    line-height: 30px;
    margin: 2px 0 0;
    font-weight: 500;
}

h2 {
    font-size: 24px;
    padding: 32px 0 45px;
    line-height: 28px;
    font-weight: 700;
}

a {
    color: #231f20;
    text-decoration: none;
}

img {
    max-width: 100%;
}

@media all and (max-width: 659px) {
    #wrapper {
        padding: 16px;
        border: none;
        letter-spacing: 0;
        margin: 0 auto;
    }

    header {
        justify-content: center;
        padding: 0 0 16px;
    }

    figure {
        position: static;
        display: flex;
        justify-content: center;
        margin: 0 0 20px;
    }

    article br {
        display: none;
    }

    .font-size {
        line-height: 1.5;
    }

    h1 {
        font-size: 32px;
        line-height: 1.3;
    }

    h1 span {
        font-size: 21px;
        line-height: 28px;
    }

    h2 {
        padding: 0 0 20px;
        font-size: 22px;
    }

    p span {
        white-space: nowrap;
    }
}