html, body {
    margin: 0;
    padding: 0;
}

body {
    min-width: 300px;
    font-size: 14pt;
    font-family: Palatino, serif;
    line-height: 1.6;
    color: #444;
    background-color: #eee;
    padding-bottom: 20px;
}

h1, h2, h3 {
    line-height: 1.2;
    color: #333;
    font-family: "Trebuchet MS", sans-serif;
}

hr {
    border: 1px solid #444;
    margin-top: 25px;
    margin-bottom: 25px;
}

pre {
    background-color: #ddd;
    border-radius: 0;
    padding: 10px;
    font-size: 12pt;
    font-family: "Lucida Console", monospace;
    overflow-x: auto;
}

code {
    font-size: 12pt;
    font-family: "Lucida Console", monospace;
}

small {
    font-size: .8em;
}

mark {
    background-color: #ff8;
    color: #444;
}

img, video, iframe.youtube {
    width: 650px;
    padding: 0;
    margin: 1em auto;
    display: block;
}

iframe.youtube {
    height: 368px;
}

dt {
    font-weight: bold;
}

@media (max-width: 800px) {
    img, video, iframe.youtube {
        max-width: 85vw;
    }
    iframe.youtube {
        max-height: 48vw;
    }
}

a {
    text-decoration: none;
    color: #00c;
}

a:hover {
    text-decoration: underline;
}

.article-link * {
    padding: 0;
    margin: 0;
}

.article-link {
    margin: 25px 0 25px 25px;
}

.expandable {
    border: none;
    cursor: pointer;
    width: 100%;
    font-size: 100%;
    font-family: inherit;
    line-height: 28px;  /* match child images */
    color: inherit;
    background-color: #ddd;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 3px 8px;
}

.expandable img {
    width: 28px;
    margin: 0;
    transform: rotate(0deg);
    transition: all 0.15s ease-in-out;
}

.expandable span::before {
    content: "Show ";
}

.expandable.open span::before {
    content: "Hide ";
}

.expandable.open img {
    transform: rotate(180deg);
}

#content {
    margin: 0 auto;
    max-width: 900px;
}

#navbar {
    position: fixed;
    top: 0;
    left: 0;
    color: #ccc;
    background-color: #666;
}

#navbar a {
    color: #ccc;
}

#navbar ul {
    list-style-type: none;
    list-style-position: outside;
    margin: 0;
    padding: 5px 0 0 20px;
}

/* wide view */
@media (min-width: 1001px) {
    #navbar {
        height: 100%;
        max-width: 250px;
        padding-left: 15px;
        padding-right: 15px;
    }

    #profile {
        width: 150px;
        height: 150px;
        padding: 15px 0 5px 0;
        margin: 0;
    }

    #content {
        padding: 0 0 0 200px;
    }
}

/* narrow view */
@media (max-width: 1000px) {
    #navbar {
        max-height: 90px;
        width: 100%;
        padding-top: 5px;
        padding-bottom: 5px;
        padding-left: 5px;
    }

    #navbar li {
        float: left;
        margin: 0 15px 0 0;
        padding: 1px 0 5px 0;
    }

    .nav-secondary {
        display: none;
    }

    #profile {
        float: left;
        width: 40px;
        height: 40px;
        padding: 0 10px 0 0;
        margin: 0;
    }

    #content {
        margin-top: 80px;
        padding: 0 5% 0 5%;
    }
}
