body {
    font-family: sans-serif;
    margin: 40px auto;
    max-width: 750px;
    line-height: 1.6;
    font-size: 18px;
    color: #444;
    background: #F2F2F2;
    padding: 0 10px;
}

@media (max-width: 600px) {
    body {
        margin: 20px auto;
        padding: 0 16px;
    }
}

h1,
h2,
h3 {
    line-height: 1.2;
}

.date {
    margin-top: -0.5em;
    color: #666;
    font-size: 0.85em;
}

blockquote {
    margin: 1em 0;
    padding: 0.2em 1em;
    border-left: 3px solid #ccc;
    color: #666;
}

/* nav bar */

.site-nav {
    margin-bottom: 1.5em;
    padding-bottom: 0.5em;
    border-bottom: 1px solid #ddd;
}

.site-nav a {
    margin-right: 2em;
}

/* math */

.equation {
    position: relative;
    text-align: center;
}

.equation .eq-number {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
}

/* image */

figure {
    text-align: center;
    margin: 1.5em auto;
}

figure img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
}

figcaption {
    text-align: center;
    color: #666;
    font-size: 0.85em;
}

/* code block */

code {
    font-family: monospace;
    background: #e8e8e8;
    padding: 0.1em 0.3em;
    border-radius: 3px;
    font-size: 0.9em;
}

pre {
    border: 1px solid #ccc;
    border-radius: 3px;
    padding: 0.8em 1em;
    overflow-x: auto;
}

pre code {
    background: none;
    padding: 0;
    font-size: inherit;
}