* {
    box-sizing: border-box;
}

html {
    background-color: #f1f0eb;
}

body {
    width: 90%;
    max-width: 1000px;
    margin: 2em auto;
    padding: 1.5em;
    background-color: white;
    color: #282828;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
    line-height: 1.5;
}

header {
    margin-bottom: 1.5em;
    padding: 1.25em;
    background-color: #dde6d7;
    border-bottom: 2px solid #40563b;
}

h1 {
    margin: 0 0 0.4em;
    color: #30442c;
    font-size: 2em;
}

h2 {
    margin: 0 0 0.6em;
    color: #30442c;
    font-size: 1.35em;
}

p {
    margin: 0 0 0.75em;
}

.story {
    margin-bottom: 1.5em;
    padding-bottom: 1.25em;
    border-bottom: 1px solid #b7b7a8;
}

.story-image {
    float: left;
    width: 28%;
    max-width: 100%;
    height: auto;
}

.story-text {
    float: right;
    width: 68%;
}

.clear {
    clear: both;
}

a:link {
    color: #245236;
}

a:visited {
    color: #604469;
}

a:hover, a:active {
    color: #7a321c;
}

a:focus {
    outline: 2px solid #245236;
}

footer {
    font-size: 0.9em;
}

@media screen and (min-width: 400px) and (max-width: 800px) {
    body {
        width: 96%;
        margin: 1em auto;
        padding: 1em;
    }

    header {
        margin-bottom: 1em;
        padding: 1em;
    }

    h1 {
        font-size: 1.75em;
    }

    .story-image {
        width: 35%;
    }

    .story-text {
        width: 61%;
    }

    .story {
        margin-bottom: 1em;
        padding-bottom: 1em;
    }
}

@media screen and (width < 400px) {
    body {
        width: 100%;
        margin: 0;
        padding: 0.5em;
        font-size: 15px;
    }

    header {
        margin-bottom: 0.75em;
        padding: 0.75em;
    }

    h1 {
        font-size: 1.6em;
    }

    h2 {
        font-size: 1.2em;
    }

    .story-image {
        display: none;
    }

    .story-text {
        float: none;
        width: 100%;
    }

    .story {
        margin-bottom: 0.75em;
        padding-bottom: 0.75em;
    }
}
