/* Fonts */

@import url('http://fonts.googleapis.com/css?family=Roboto+Slab|Merriweather:400,400italic,700,700italic|Merriweather+Sans:300');

/* Body */

body {

    font-family: 'Merriweather', Palatino, serif;
    font-size: 1em;
    color: #1d1d1b;
    -webkit-text-size-adjust: none;
    -moz-text-size-adjust: none;
    -ms-text-size-adjust: none;
    text-size-adjust: none;

}

/* Links */

a {

    text-decoration: none;
    color: #b04343;

}

a:hover {

    text-decoration: underline;

}

/* Lists */

ul {

    padding-left: 1em;
    list-style: none;

}

li {

    margin: 0.75em;

}

/* Back */

i.back {

    display: inline-block;
    width: 30px;
    height: 30px;
    background-image: url('../img/back.png');
    opacity: 0.2;

}

i.back:hover {

    opacity: 0.3;

}

span.back {

    display: none;

}

/* Header */

header {

    margin: 2.369em 0;
    padding-bottom: 0.563em;
    border-bottom: 2px solid #d9d9d9;

}

h1, h2 {

    margin: 0.422em 0;
    line-height: 1.333em;

}

h1 {

    font-family: 'Roboto Slab', Rockwell, serif;
    font-size: 3.750em;
    font-weight: 400;

}

h2 {

    margin-top: 1em;
    font-family: 'Merriweather Sans', Helvetica, sans-serif;
    font-size: 1.777em;
    font-weight: 300;

}

header address {

    font-style: italic;
    text-align: right;
    color: #484848;

}

/* Article */

article {

    width: 700px;
    margin: 5% auto;
    line-height: 1.777em;

}

article.red h1 {

    color: #d87070;

}

article.green h1 {

    color: #85b28a;

}

article.blue h1 {

    color: #69b5cf;

}

article.yellow h1 {

    color: #eecb74;

}

/* Paragraph */

p {

    margin: 1.333em 0;
    text-align: justify;
    -webkit-hyphens: auto;
    -moz-hyphens: auto;
    -ms-hyphens: auto;
    hyphens: auto;

}

html[lang='fi'] p {

    text-indent: 1em;

}

/* Dialogue */

section.dialogue p {

    text-indent: 0;

}

/* Email */

section.email p.title, section.email p.title + p {

    text-indent: 0;

}

/* Figure */

figure {

    margin-top: 2.369em;
    margin-bottom: 2.369em;

}

/* Blockquote */

blockquote p:first-child {

    text-indent: 0;

}

blockquote p {

    margin: 0.563em 0;

}

figcaption {

    text-align: right;

}

/* Footer */

article > footer {

    margin-top: 3.157em;
    font-size: 0.75em;
    line-height: 1.333em;

}

article > footer p {

    text-indent: 0 !important;

}

/* Responsiveness */

@media screen and (min-device-width: 320px) and (max-device-width: 480px) {

    /* Body */

    body {

        font-size: 2.369em;

    }

    /* Back */

    i.back {

        display: none;

    }

    /* Article */

    article {

        width: 90%;

    }
}

@media screen and (min-device-width: 320px) and (max-device-width: 480px) and (orientation: landscape) {

    /* Body */

    body {

        font-size: 1.777em;

    }
}
