﻿/* reset all */

html {
    box-sizing: border-box;
}

* {
    margin: 0;
    padding: 0;
}

:root {
    font: 16px;
}



*,
*:before,
*:after {
    box-sizing: inherit;
}

a,
img {
    outline: none;
    border: none;
}

img {
    display: inline-block;
    width: 100%;
}


/* main style */

a {
    color: inherit;
    display: inline-block;
    text-decoration: none;
    white-space: nowrap;
}

u {
    text-decoration: underline;
}

a:hover,
a:focus {
    outline: none;
    text-decoration: underline;
}

p {
    margin: 0 0 10px;
}

h1 {
    color: #fff;
    display: block;
    font-size: 1.5rem;
    font-weight: bold;
    line-height: 1;
    margin: 0;
    text-align: left;
}

h1 span {
    font-size: 0.7em;
    font-weight: normal;
}

h2 {
    text-align: left;
    font-size: .875rem;
    line-height: 1;
    margin: 0 0 .937rem;
}

section h2:nth-of-type(2) {
    margin-bottom: .312rem;
}

h3 {
    font-size: .875rem;
    font-weight: normal;
    color: #008065;
    margin-bottom: 6px;
}

ul {
    padding: 0;
    margin: 0 0 1.875rem 0;
    list-style: none;
}

ul:last-of-type {
    margin-bottom: .625rem;
}

ul li {
    padding-left: 1.562rem;

}

ul li:before {
    content: "\2022";
    float: left;
    margin-left: -1.562rem;
    font-size: 1rem;
    line-height: 1.2;
}

.clearfix:after {
    content: ".";
    clear: both;
    display: block;
    visibility: hidden;
    height: 0;
}

/* layout  */

#wrapper {
    display: block;
    max-width: 900px;
    margin: 0.75em auto;
    padding: 2.187rem;
    border: 1px solid #9C9EA1;
    position: relative;
}

/* body set-up */

body {
    font-family: 'Roboto Condensed', sans-serif;
    font-size: .875rem;
    line-height: 1.3;
    color: #373737;
    background: #fff;
    font-weight: normal;
}


/* content */

header {
    margin: -2.187rem -2.187rem 0;
    padding: 0;
    position: relative;
}

header a {
    display: block;
    margin: .625rem 2.187rem;
    float: left;
}

header > img:first-of-type {
    float: left;
    max-width: 29.062rem;
}

header > img:last-of-type {
    display: none;
    max-width: 29.062rem;
}

header img {
    display: block;
}

aside {
    background: #69737A;
    margin: 0 -2.187rem 10px;
    padding: .625rem 2.187rem;
}

article {
    position: relative;
    margin: 0;
}

article section:first-of-type {
    width: 49%;
    float: left;
}

article section:last-of-type {
    width: 49%;
    float: right;
}

#wrapper > img {
    position: absolute;
    display: block;
    max-width: 7.812rem;
    top: .812rem;
    right: 1.875rem;
}

@media only screen and (max-width:899px) {
    #wrapper {
        margin: 0 auto;
        border: 0;
        padding: .625rem;
    }

    header {
        margin: -.625rem -.625rem 0;
        padding: 0;
    }

    header a {
        float: none;
        margin: .625rem auto 0;
        max-width: 11.937rem;
    }

    header > img:first-of-type {
        display: none;
    }

    header > img:last-of-type {
        display: block;
        max-width: 29.062rem;
        margin: 0 auto;
    }

    aside {
        margin: 0 -.625rem .625rem;
        padding: .625rem;

    }

    article {
        margin: 0;
    }

    article section:first-of-type,
    article section:last-of-type {
        width: auto;
        float: none;
        letter-spacing: normal;
    }

    #wrapper > img {
        position: static;
        margin: 10px auto;
    }

    article br {
        display: none;
    }

    h1 {
        font-size: 1.5rem;
    }

    h2 {
        font-size: .875rem;
    }

    section h2:nth-of-type(2) {
        margin-bottom: .625rem;
    }

    a {
        font-weight: bold;
    }

    p {
        margin: 0 0 .625rem;
    }

    ul li {
        padding-left: .937rem;
    }

    ul li:before {
        margin-left: -.937rem;
    }

    p br,
    ul li br {
        display: none;
    }

    article section:last-of-type footer {
        display: block;
    }

    article section:first-of-type footer {
        display: none;
    }

}

@media only screen and (max-width:479px) {
    body {
        font-size: .812rem;
    }

    h1 {
        font-size: 1.125rem;
    }

}
