 /* 
Punainen: #B32442
Vihreä: #4A7E56
Tumma taustavihreä: #C1D7D4
Vaalea taustavihreä: #E3F6F3
 */

 @font-face {
  font-family: donau;
  src: url("assets/donau.otf") format("opentype");
}

@font-face {
    font-family: openSans;
    src: url('https://fonts.googleapis.com/css?family=Open Sans');
}

* {
    scroll-behavior: smooth !important;
}

body {
    width: 92%;
    max-width: 640px;
    margin:  1em auto 3em auto;
    padding: 0;
    font-size: 16px;
    font-family: 'Open Sans',sans-serif;
    color: #1E1E1E;
    background-color: #fafafa;
}

h1, h2, h3, h4 {
    font-family: donau, sans-serif;
    color: #4A7E56;
    font-weight: 200;
    text-transform: uppercase;
}

p {
    line-height: 150%;
}

main {
    background: #fafafa;
}

section {
    padding: 0.5em 1em 1em 1em;
    margin-bottom: 1em;
    background: #FFF;
    border: 1px solid #C1D7D4;
    border-radius: 8px;
}

ul {
    list-style-type: none;
    list-style-position: inside;
    padding: 0;
    line-height: 150%;
}

li::before {
    content: "» ";
    color: #4A7E56;
}

a {
    text-transform: uppercase;
    color: #4A7E56;
    text-decoration: none;
    font-weight: 600;
}

a:hover {
    color: #4A7E56;
    background: #E3F6F3;
}

nav {
    margin-top: 2em;
}

nav a {
    display: block;
    margin: 0 0 0.5em 0;
}

footer {
    text-align: center;
    color: #606060;
    margin-top: 2em;
}

#hero {
    padding: 3em 1em;
    background-image: url('assets/background-crop-gray.png');
    background-repeat: no-repeat;
    background-position: 100% 80%;
    background-size: auto 60%;
}

#hero h1 {
    font-size: 84px;
    line-height: 100%;
    padding: 0;
    margin: 0 0 8px 0;
    letter-spacing: -4%;
}

#hero span {
    font-weight: 200;
    text-transform: uppercase;
    color: #4A7E56;
    letter-spacing: -3%;
    font-size: 15px;
}

#contact {
    text-align: center;
    overflow: hidden;
}

.person img {
    max-width: 50%;
}

.person:last-of-type {
    margin-top: 3em;
}

@media (min-width: 640px) {

    section {
        padding: 2em 3em 2em 3em;
    }

    #hero {
        padding: 4em 3em;
        background-position: 100% 50%;
        background-size: auto 60%;
    }

    #hero h1 {
        font-size: 128px;
        margin: 0 0 8px 0;
    }

    #hero span {
        font-size: 23.5px;
        letter-spacing: -4%;
    }

    nav a {
        display: inline;
        margin: 0 0.5em 0 0;
    }

    .person {
        width: 50%;
        float: left;
    }

    .person:last-of-type {
        margin-top: 0;
    }
}

@media (min-width: 1200px) {

    #hero {
        background-image: none;
        text-align: center;
    }

    body {
        background-image: url('assets/background-crop-gray.png');
        background-repeat: no-repeat;
        background-attachment: fixed;
        background-position: /*25% 50%*/ 0% 50%;
        background-size: /*66% auto*/ calc(50% - 320px) auto;
    }
}