/* ==================================================================
Header and Nav
================================================================== */

body {
    color: #555;
}

h1 {
    font-size: 40px;
}
h2 {
    font-size: 30px;
    line-height: 1;
}
h3 {
    font-size: 26px;
    line-height: 1.5;
}
h1, h2, h3 {
    font-family: 'helvetica neue', sans-serif;
    font-weight: 200;
}

hr {
    border: 0px solid #ddd;
    border-top-width: 1px;
    clear: both;
    height: 0px;
}

nav {
    width: 64%;
    display: inline-block;
    font-family: 'helvetica neue', sans-serif;
    font-weight: 500;
}

nav ul {
    padding-left: 0;
    margin-top: 0;
    margin-bottom: 0;
}

a {
    color: #628D9B;
}

nav li {
    display: inline-block;
}

nav li a {
    text-decoration: none;
    font-size: 18px;
    display: inline-block;
    float: center;
    padding-top: 10px;
    padding-right: 2px;
    padding-left: 2px;
    padding-bottom: 5px;
    margin-left: 7px;
    margin-right: 7px;
}

header {
    text-align: right;
    margin-top: 50px;
    margin-bottom: 50px;
    display: flex;
    align-items: center;
}

header .blog-name {
    width: 35%;
    display: inline-block;
    text-align: left;
    font-size: 18px;
    font-family: "Lucida Console", Monaco, monospace;
    padding-top: 10px;
}

header .blog-name a {
    color: #656463;
    text-decoration: none;
}

header li a:hover {
    color: black;
}

#menu-icon {
    display: none;
}

@media (max-width: 480px) {
    header {
        padding-left: 6%;
        padding-right: 6%;
    }
}

@media (min-width: 481px) {
    header {
        padding-left: 12.5%;
        padding-right: 12.5%;
    }
}

/* wide display: enforce maximum width of header to match content */
@media (min-width: 940px) {
    header {
        width: 705px;
        margin-left: auto;
        margin-right: auto;
    }
}

/*
medium display: nav goes under name
*/
@media (max-width: 760px) {
    header { display: block; }
    
    header .blog-name {
        display: block;
        width: 100%;
        padding-bottom: 10px;
    }
    
    nav {
        width: 100%;
    }
}

/*
narrow display: collapse the header (don't show the menu items)
instead, display a burger menu.
*/
@media (max-width: 500px) {
    header {
        height: 35px;
        display: flex;
        align-items: center;
    }
    
    header .blog-name {
        display: inline-block;
        width: 70%;
    }
    
    nav {
        display: inline-block;
        width: 27%;
    }
    
    nav ul,
    nav:active ul {
        display: none;
        position: absolute;
        
        /* padding: 20px; */
        background: #fff;
        border: 1px solid #444;
        right: 50px;
        top: 60px;
        width: 30%;
        border-radius: 4px 0 4px 4px;
        z-index: 1;
    }
    
    nav li {
        text-align: left;
        display: block;
        padding: 0;
        margin: 0;
    }
    header li a { border-bottom: none; }
    header li a:hover { border-bottom: none; }
    
    nav:hover ul {
        display: block;
    }
    
    #menu-icon {
        display: inline-block;
        margin-right: 10px;
        margin-top: 5px;
    }
}

table {
    line-height: 1em;
    margin-left: auto;
    margin-right: auto;
    border-collapse: collapse;
    text-align: center;
    margin-bottom: 1.5em;
}

tr:first-of-type {
    background: #eae9f4;
}

tr:first-of-type > th {
    text-align: center;
}

tr,
th,
td {
    padding: 10px;
    border: 1px solid lightgray;
}

table tbody tr td {
    border: 1px solid lightgray;
}

div.tagline {
    text-align: center;
    color: #aaa;
    font-family: 'helvetica neue', sans-serif;
    font-weight: 300;
    padding-bottom: 1.5em;
    padding-top: 1em;
    font-size: 22px;
}

ul.post-list {
    list-style-type: none;
}
ul.post-list li {
    margin: 1em;
}
ul.post-list li a {
    font-family: 'helvetica neue', sans-serif;
    font-weight: 300;
    padding-right: .2em;
}
