/* Layout after a classic Posthaven blog: left sidebar, one 500px reading column. */
:root {
    --bg: #ffffff;
    --text: #555555;
    --heading: #222222;
    --link: #2b6cc2;
    --link-hover: #1d4f91;
    --muted: #999999;
    --serif: "Crimson Text", Georgia, serif;
    --sans: "Oxygen", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--sans);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--link); text-decoration: none; }
a:hover { color: var(--link-hover); }

.page {
    display: grid;
    grid-template-columns: 215px 500px;
    column-gap: 55px;
    justify-content: center;
    padding: 60px 20px 100px;
}

/* Sidebar */
.sidebar {
    font-weight: 300;
    font-size: 14px;
    padding-top: 8px;
    position: sticky;
    top: 40px;
    align-self: start;
}
.sidebar-name {
    display: block;
    font-family: var(--serif);
    font-size: 20px;
    color: var(--heading);
    margin-bottom: 10px;
}
.sidebar-about { margin: 0 0 16px; }
.sidebar-link { font-size: 14px; }

/* Header */
.site-header h1 {
    font-family: var(--serif);
    font-weight: 400;
    font-size: 50px;
    line-height: 1;
    letter-spacing: -0.015em;
    margin: 0 0 20px;
}
.site-header h1 a { color: var(--heading); }

/* Posts */
.post { margin: 40px 0 80px; }
.post-title {
    font-family: var(--serif);
    font-weight: 400;
    font-size: 26px;
    line-height: 1.1;
    letter-spacing: -0.015em;
    color: var(--heading);
    margin: 0;
}
.post-title a { color: var(--link); }
.post-body p { margin: 24px 0; }

/* Headings inside a long post */
.post-body .part-title {
    font-family: var(--serif);
    font-weight: 400;
    font-size: 22px;
    line-height: 1.2;
    color: var(--heading);
    margin: 56px 0 0;
}
.post-body .section-title {
    font-family: var(--serif);
    font-weight: 400;
    font-style: italic;
    font-size: 19px;
    line-height: 1.3;
    color: var(--heading);
    margin: 36px 0 -8px;
}
.post-body .part-title + .section-title { margin-top: 16px; }

.post-nav { font-size: 14px; margin-top: -40px; }

/* Archive */
.archive { margin-top: 40px; }
.archive-list { list-style: none; padding: 0; margin: 24px 0 0; }
.archive-list li { margin: 0 0 12px; }

/* Phones and small windows: single column, sidebar below the posts */
@media (max-width: 820px) {
    .page {
        grid-template-columns: minmax(0, 1fr);
        max-width: 540px;
        margin: 0 auto;
        padding: 32px 20px 60px;
    }
    .sidebar {
        order: 2;
        position: static;
        border-top: 1px solid #eee;
        padding-top: 24px;
    }
    .site-header h1 { font-size: 34px; }
}
.post-body > .part-title:first-child { margin-top: 28px; }
