@import url('https://fonts.googleapis.com/css?family=Roboto:100,300,300i,400');

html, body {
    min-height: 100vh;

    margin: 0;
    padding: 0;
}

body {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;

    font-family: 'Roboto', sans-serif;
}

h1 {
    margin: 0;
}

#about-text > h1 {
    font-weight: 400;
    font-size: 1.5rem;
}

nav {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    width: 100%;

    font-weight: 300;

    box-shadow: 0 0.1rem 0.2rem #0076df;
}

article {
    width: 90%;
    margin-bottom: auto;
    padding-top: 1em;
    font-weight: 300;
    color: #333333;
}

article, .ashor-index-content {
    line-height: 1.4;
}

a, .ashor-index-link {
    text-decoration: none;
    color: #0076df;
}

strong {
    font-weight: 400;
}

hr {
    width: 90%;

    margin: 0.5rem 0;
    border-style: solid none none;
    border-color: #ccc;
    border-width: 1px;
}

#name {
    margin-top: 0.2em;
    margin-bottom: 0.125em;
    font-size: 2em;
    font-weight: 300;
}

#links {
    display: flex;
    flex-direction: row;
    justify-content: center;
    min-width: 100%;
    
    /*! margin: 1em 1.5em 1em 0; */

    font-size: 1.5em;
}

#links a {
    width: 49%;
    text-align: center;
    padding-top: 0.2em;
    padding-bottom: 0.4em;

    border-width: 0.015em;
    border-color: #0076df;
}

#about-link {
    border-right: solid;
}

#blog-link {
    border-left: solid;
}

#quote {
    max-width: 50rem;
    margin: 1.5rem 2rem;
    font-weight: 100;
}

#quote-text {
    font-size: 2rem;
}

#quote-attribution {
    margin-top: 1rem;
    font-size: 1.5em;
    text-align: right;
}

#s-links {
    padding-bottom: 0;

    text-align: center;
}

/* The quote picture is in a div on its own so that inset shadows work */
#quote-picture-container {
    display: flex; /* needed for z-index to work */

    box-shadow: 0 0 0.5rem black inset;
}

/* Removes extraneous 4px (or so) of height from the bottom which gets added */
picture {
    display: flex;
}

source {
    display: none;
}

#quote-picture {
    z-index: -1; /* For inset shadows */
}

#quote-picture, #quote-picture > * {
    width: 100%;
}

/* Fix Safari (desktop) */
#quote-picture img {
    height: min-intrinsic;
}

.spacer {
    margin-top: auto;
    margin-bottom: auto;
}

footer {
    width: 100%;
    font-weight: 300;
    text-align: center;
    color: #666;
    margin-top: 1em;
    margin-bottom: 1em;
}

/* For large-format devices */
@media screen and (min-width: 600px) {
    article {
        width: 50rem;
        margin: 0 0 auto 0;
        padding-top: 0;
        max-width: 90%; /* Landscape portable devices */
    }

    p {
        margin: 0;
        padding: 0.5em 0;
    }

    hr {
        width: 50rem;

        margin: 1.5rem 0 0.5rem;
    }

    #about-text h1 {
        font-size: 2rem;
        margin-top: 0.75em;
    }

    #about-text > p {
        font-size: 1.25rem;
    }

    #name {
        font-size: 2.5em;
    }

    #links {
        font-size: 2em;
        min-width: auto;
    }

    #links a {
        width: auto;
        padding: 1rem 1.5rem;
    }

    #quote-text {
        font-size: 2.5rem;
    }

    #quote-attribution {
        font-size: 2em;
    }

    footer { 
        margin-bottom: 1em;
    }
}

@media screen and (min-width: 1441px) {
    #quote-picture, #quote-picture > * {
        width: initial;
    }
}