/* Misc */
body {
    background: #F6F8FA;
    color: #333;
}

.container {
    margin: 50px auto;
    max-width: 1000px;
    padding: 0 20px;
}

/* Alignment */
.alignright {
    float: right;
}

img.alignright {
    display: inherit;
    margin: 0 0 1em 1em;
}

/* Typography */
h1 {
    text-align: center;
    font-size: 50px;
}

p {
    line-height: 2;
}

a {
    color: #333;
}

a:hover {
    color: #329ab9;
    text-decoration: none;
}

main a {
    color: #0c8aa7;
}

h1 a {
    color: #333;
}

pre code {
    font-size: 13px;
}

li {
    line-height: 2em;
}

li p {
    line-height: 2em;
    margin: 0;
}

/* Tables */
table {
    border-collapse: collapse;
    margin: 0.5em 0;
}

thead, tr {
    border-bottom: 1px solid #ccc;
}

tr:last-child {
    border-bottom: none;
}

th, td {
    line-height: 1.5em;
    padding: 0.5em;
    vertical-align: top;
}

/* Images */
img {
    display: block;
    height: auto;
    max-width: 100%;
}

/* Labels */
.meta {
    margin-bottom: 50px;
    text-align: center;
}

.meta a:hover {
    color: #fff;
    text-decoration: none;
}

.published, .tag, .edit {
    border-radius: 3px;
    color: #fff;
    display: inline-block;
    font-size: 11px;
    font-weight: 500;
    padding: 3px 6px;
}
    
.published {
    background: #329ab9;
}

.tag {
    background: #a2b375;
}

.tag:hover {
    background: #92a65e;
}

.edit {
    background: #bbb;
}

.edit:hover {
    background: #aaa;
}

/* Nav */
nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    
    position: sticky;
    top: 0;    
    
    background: #fff;
    box-shadow: 1px 1px 3px 0 rgba(0,0,0,0.1);
    font-size: 13px;
    padding: 0 20px;
}

nav div:first-child {
    flex-grow: 1;
}

nav #brand {
    font-size: 16px;
    font-weight: 500;
}

nav a {
    color: #333;
    line-height: 50px;
    margin-right: 20px;
}

nav i {
    font-size: 16px;
}

nav form {
    display: inline;
}

nav input {
    border: 1px solid #e1e4e8;
    border-radius: 3px;
    padding: 3px 10px;
    width: 250px;
}

/* Pagination */
#pagination {
    margin-bottom: 50px;
    text-align: center;
}

#pagination a {
    margin: 0 2em;
}

/* Index */
#index h1 {
    font-size: 24px;
}

#index article {
    padding: 0 0 40px 0;
}

#index #meta {
    margin: 0;
}

/* Mobile */
@media (max-width: 1050px) {
    nav input {
        width: 200px;
    }
}
@media (max-width: 970px) {
    nav {
        flex-direction: column;
        padding-bottom: 20px;
        position: inherit;
        text-align: center;
    }
    nav #brand {
        display: block;
    }
    nav i {
        font-size: 25px;
    }
    nav form, nav input {
        width: 100%;
    }
    h1 {
        font-size: 24px;
    }
}