/* global layout */

html {
    height: 100%;
    margin: 0;
}

body {
    color: #333;
    font-family: Merriweather, serif;
    height: 100%;
    margin: 0px 5px;
    line-height: 1.6;
}

.page-content {
    margin: 0px auto;
    padding: 0px 15px;
    max-width: 650px;
}


/* general */

a {
    color: #777;
    text-decoration: none;
}

a:hover {
    color: #999;
}

code.highlighter-rouge {
    color: #a61717;
}

pre {
    margin-left: 30px;
    overflow: scroll;
}

blockquote {
    font-style: italic;
}

/* header/footer */

.site-header {
    border-bottom: 1px solid #ddd;
    margin-bottom: 40px;
}

.site-footer {
    border-top: 1px solid #ddd;
    height: 30px;
}

.push {
    height: 71px;
}

.wrapper {
    min-height: 100%;
    height: auto !important;
    height: 100%;
    margin: 0 auto -31px;
}

header, footer, nav {
    width: 100%;
    text-align: center;
}

.links-list ul, .links-list li {
    display: inline-block;
    margin: 0px;
}

.links-list ul {
    padding: 5px 15px;
}

.links-list li {
    padding: 0px 5px;
}


/* list of posts */

ul.posts, .posts li {
    display: block;
    padding: 0px;
    margin: 0px;
}

.post-block, .posts li {
    margin: 0px auto;
    max-width: 90%;
}

.posts a {
    color: #333;
}

div.post-date {
    display: inline-block;
    margin: 0px;
    margin-right: 10px;
    margin-left: auto;
    max-width: 12%;
    vertical-align: top;
    text-align: right;
    color: #aaa;
}

@media (max-width: 400px) {
    div.post-date {
        max-width: 83%;
        margin-bottom: 10px;
    }
}

.post-excerpt {
    display: inline-block;
    margin: 0px;
    margin-left: auto;
    max-width: 83%;
}

.post-excerpt :first-child {
    margin-top: 0px;
}

.post-excerpt :last-child {
    margin-bottom: 0px;
}

div.post-block {
    cursor: pointer;
}

div.post-excerpt div.footnotes {
    display: none;
}

div.post-excerpt sup[id^=fnref] {
    display: none;
}

/* individual post */

div.post-wrapper {
    max-width: 90%;
    margin: 0px auto;
}

article.post-content {
    display: inline-block;
    max-width: 85%;
}

article.post-content > p > img {
    /* images in posts not in any other markup */
    width: 95%;
    margin: 0px auto;
}

article.post-content > p > img.half-width {
    width: 45%;
}

div.post-meta {
    display: inline-block;
    margin: 0px;
    margin-right: 10px;
    margin-left: auto;
    max-width: 10%;
    vertical-align: top;
    text-align: right;
    color: #aaa;
}

article > :first-child {
    margin-top: 0px;
}

div.footnotes {
    border-top: 1px solid #bbb;
}

@media print {
    header.site-header {
        display: none;
    }
    footer.site-footer {
        display: none;
    }
    div.push {
        display: none;
    }
    div.post-meta {
        display: block;
        max-width: 100%;
    }
    article.post-content {
        display: block;
        max-width: 100%;
    }
}
