/* http://meyerweb.com/eric/tools/css/reset/
v2.0 | 20110126
License: none (public domain)
 */

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    border: 0;
    /* messes the markdown styling up */
    /* font: inherit; */
    vertical-align: baseline;
}

/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
    display: block;
}

body {
    width: 100%;
    max-width: 850px;
    margin: 0 auto;
    line-height: 1;
}

ol, ul {
    list-style: none;
}

blockquote, q {
    quotes: none;
}

blockquote:before, blockquote:after,
q:before, q:after {
    content: '';
    content: none;
}

table {
    border-collapse: collapse;
    border-spacing: 0;
}

/* Mockingbird Theme by Nevan Scott nevanscott.com */

* {
    box-sizing: border-box;
}

body {
    font-family: 'DejaVu Serif', Georgia, serif;
    font-size: 17px;
    line-height: 1.5em;
    color: #444;
    background: #fdfdfa; /* oh jarek */

}

#header, #wrapper, #controls ul {
    padding: 0 20px;
}

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

.content p {
    text-align: justify;
}

.content a {
    text-decoration: underline;
}

.content img {
    max-width: 100%;
}

ul {
    list-style: outside disc;
}

ol {
    list-style: outside decimal;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'DejaVu Sans', sans-serif;
    font-weight: bold;
}

h1, h2, h3 {
    line-height: 1em;
    margin: 0.5em 0;
}

h1 {
    font-size: 1.33em;
}

h1.title {
    margin: 0;
}

h2 {
    font-size: 1.33em;
}

h3 {
    font-size: 1.25em;
}

p, h4, h5, h6 {
    margin: 1em 0;
}

blockquote {
    margin: 1.5em 1.5em 1.5em .75em;
    padding-left: .75em;
    border-left: 1px solid #EEE;
}

.date {
    margin: 0 15px 0 0;
    display: inline-block;
    width: 180px;
    color: #CCC;
    text-align: right;
    font-size: 1.25em;
}

.post.full .date {
    margin: 0;
    display: block;
    width: auto;
    font-size: 1em;
    text-align: center;
}

.post {
    width: 100%;
    display: inline-block;
    margin-bottom: 16px;
}

.post h1.title {
    display: inline;
}

.post.full h1.title {
    display: block;
    font-size: 1.6em;
    text-align: center;
}

.post:last-child {
    border-bottom: none;
}

.post.archives {
    margin-bottom: 1.5em;
}

.post.pinned {
    margin-left: 0;
    margin-bottom: 3em;
    background-color: #EEE;
    color: #000;
    padding: 1px 20px 10px;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    -o-border-radius: 5px;
    border-radius: 5px;
}

.info {
    font-family: sans-serif;
    text-align: right;
    color: #CCC;
}

.info a {
    color: inherit;
}

.info .tags a {
    background: #CCC;
    color: #FFF;
    display: inline-block;
    padding: 0 .3em;
    border: 1px transparent solid;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    -o-border-radius: 5px;
    border-radius: 5px;
}

.info .tags a:hover {
    background: inherit;
    color: inherit;
}

.info .tags a.selected {
    border: 1px #999 solid;
}

.post .controls {
    visibility: hidden;
}

.post:hover .controls {
    visibility: visible;
}

.page {
    margin: 0 90px;
}

div.codehilite {
    -moz-border-radius: 5px;
    -webkit-border-radius: 5px;
    border-radius: 5px;
}

code, pre {
    font-family: 'DejaVu Sans Mono', monospace;
    background-color: rgb(238, 238, 238);
    overflow: auto;
}

/*sub and sup stolen from Twitter bootstrap.*/
sub,
sup {
    position: relative;
    font-size: 75%;
    line-height: 0;
    vertical-align: baseline;
}

sup {
    top: -0.5em;
}


sub {
    bottom: -0.25em;
}

.post pre, .page pre {
    padding: .5em;
    font-size: 15px;
    font-family: Monospace;
    line-height: 1.3em;
}

form.inline_edit {
    margin: 4.5em 0;
    background-color: #DDD;
    color: #000;
    padding: 20px;
    -moz-border-radius: 5px;
    -webkit-border-radius: 5px;
    border-radius: 5px;
}

.inline_edit .sub {
    color: #888;
    white-space: nowrap;
}

.inline_edit label {
    width: 140px;
    margin-right: 20px;
}

.inline_edit .buttons {
    display: block;
    text-align: right;
}


#nav {
    list-style: none;
    padding: 0;
}

#nav a {
    display: block;
    padding: 4.5em 10px 10px 10px;
}

#nav a:hover {
    background-color: #DDD;
}

#nav li {
    display: inline-block;
}

#nav li.selected a {
    background-color: #222;
    color: #FFF;
}

#nav li.ephemeral.selected a {
    background-color: #FFF;
    color: #BBB;
}

#header {
    display: flex;
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
}

#header h1 {
    font-size: 1.5em;
    line-height: 1em;
    margin: 0;
}

#header h2 {
    font-size: 1em;
    margin: .3em 0;
    color: #DDD;
}

#content {
    margin-top: 2em;
}

.pages {
    font-family: sans-serif;
    line-height: 2.5em;
    margin: 4.5em 0 3em;
    background-color: #EEE;
    color: #444;
    -moz-border-radius: 5px;
    -webkit-border-radius: 5px;
    border-radius: 5px;
}

.pages a.next_page {
    width: 140px;
    text-align: center;
    -moz-border-radius-topright: 5px;
    -moz-border-radius-bottomright: 5px;
    -webkit-border-top-right-radius: 5px;
    -webkit-border-bottom-right-radius: 5px;
    border-top-right-radius: 5px;
    border-bottom-right-radius: 5px;
}

.pages a.prev_page {
    width: 140px;
    text-align: center;
    -moz-border-radius-topleft: 5px;
    -moz-border-radius-bottomleft: 5px;
    -webkit-border-top-left-radius: 5px;
    -webkit-border-bottom-left-radius: 5px;
    border-top-left-radius: 5px;
    border-bottom-left-radius: 5px;
}

.pages a {
    color: inherit;
    border: none;
}

.pages a:hover {
    background-color: #DDD;
}

.pages span {
    display: block;
    margin: 0 160px;
    text-align: center;
}

#footer {
    font-family: sans-serif;
    line-height: 2.5em;
    text-align: center;
    color: #CCC;
    margin: 3em 0;
    border: 1px solid #EEE;
    -moz-border-radius: 5px;
    -webkit-border-radius: 5px;
    border-radius: 5px;
}

#footer a { color: inherit; }

#footer p { margin: 0; }

.content p + ul {
    /* paragraph-list spacing looks ugly */
    margin-top: -0.75em;
}

th, td {
    padding: 1px 7px;
}

/* RESPONSIVE */

@media (max-width: 768px) {
    .date {
        display: block;
        margin: 0;
        text-align: left;
    }
    h1.title {
        display: inline;
        padding-top: 2px;
    }

    /* Conserve horizontal space */
    .page {
        margin: 0;
    }
}
