/* Site-wide styles. normalize.css is linked separately in Pages/_Layout.cshtml. */

html {
    font-family: 'Arvo', serif;
}

header {
    margin-bottom: 1em;

    h1 {
        font-family: 'Nixie One', sans-serif;
        font-size: 2.5em;
        letter-spacing: 0.2em;
        margin-bottom: 0.1em;

        a {
            text-decoration: none;
            color: #000;

            &:visited, &:hover, &:active {
                text-decoration: none;
            }
        }
    }

    h2 {
        font-family: 'Nixie One', sans-serif;
        font-size: 0.95em;
        letter-spacing: 0.1em;
        margin-top: 0;
        margin-bottom: 2em;
        color: #989899;
    }
}

#content h1 {
    font-family: 'Nixie One', sans-serif;
    font-size: 1.5em;
    letter-spacing: 0.1em;
    margin-top: 0;
    margin-bottom: 0.5em;
}

nav {
    hr {
        border: 0;
        border-top: 1px solid #D7D7D7;
    }

    ul {
        margin: 0;
        padding: 0;
        list-style-type: none;
        font-size: larger;

        li {
            display: inline-block;
        }

        a {
            /* Block links make the whole area clickable, not just the text, and let us set a width. */
            display: block;
            width: 5em;
            color: #939090;
            text-decoration: none;
        }
    }
}

html, body {
    /* Meg wants her footer to always be at the bottom of the page: http://stackoverflow.com/a/25218797/1367 */
    width: 100%;
    margin: 0;
    height: 100%;
    display: table;
    color: #000;
}

body {
    margin: 0 auto;
    max-width: 60em; /* The EMs have it: http://blog.cloudfour.com/the-ems-have-it-proportional-media-queries-ftw/ */
}

#page-outer {
    width: 100%;
    height: 100%;
    margin: 0;
}

#page-inner {
    margin: 0 0.5em;
    display: table;
    height: 100%;
    width: 100%;
}

@media screen and (max-width: 30em) {
    #page-inner {
        margin: 0;
    }
}

footer {
    font-size: 0.8em;
    color: #808080;
    text-align: right;

    /* Meg wants her footer to always be at the bottom of the page: http://stackoverflow.com/a/25218797/1367 */
    display: table-row;
    height: 0;
}

.clearfix {
    content: " ";
    visibility: hidden;
    display: block;
    height: 0;
    clear: both;
}
