html {
    margin: 0px;
    padding: 0;
}

body {
    font-size: 0.9em;
    line-height: 1.4em;
    font-family: "Verdana", sans-serif;
    text-align: left;
    margin-left: 50px;
    margin-right: auto;
    color: #222;
}

/*****************************************************************************/

a {
    color: #567;
}

div#footer a {
    text-decoration: none;
    padding-bottom: 30px;
}

/*****************************************************************************/

code, pre {
    font-family: "SFMono-Regular", "Consolas", "Menlo", monospace;
}

pre {
    background: #f6f6f6;
    padding: 10px;
    overflow-x: auto;
}

/*****************************************************************************/
/* Normal tables */
table {
    border-collapse: collapse;
    width: 100%;
    text-align: center;
}
td, tr {
    border: 1px solid grey;
}
th {
    border-bottom: 2px solid black;
}

div.shelf {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 20px;
    margin: 20px 0 30px 0;
    padding-bottom: 14px;
    border-bottom: 8px solid #8d6748;
}

div.shelf figure {
    margin: 0;
    width: 90px;
    text-align: center;
}

div.shelf a {
    display: block;
}

div.shelf img {
    width: 90px;
    height: auto;
    display: block;
    margin: 0 0 6px 0;
    box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.35);
    transition: transform 0.15s ease;
}

div.shelf a:hover img {
    transform: translateY(-4px);
}

div.shelf figcaption {
    font-size: 0.8em;
    line-height: 1.2em;
}

/*****************************************************************************/
/* Main page title */
div#header h1 {
    font-size: 250%;
    font-family: "SFMono-Regular", "Consolas", "Menlo", monospace;
    margin-bottom: 0;
}

div#header p.tagline {
    margin-top: 4px;
    color: #888;
}

/*****************************************************************************/

ul {
    list-style-type: none;
    list-style-position: inside;
    text-indent: -20px;
    padding-left: 30px;
    margin-top: 0;
}

/*****************************************************************************/

img {
    margin-right: 10px;
}

img.avatar {
    border-radius: 50%;
    object-fit: cover;
    display: block;
    margin: 0 0 15px 0;
    border: 1px solid #ccc;
}

p.note {
    background: #fff8e1;
    border: 1px solid #ffe082;
    padding: 8px 12px;
    font-size: 0.95em;
}

p.note img {
    vertical-align: middle;
    margin-right: 8px;
}

div.caption {
    text-align: center;
}

div.stackbox {
    text-align: center;
    border: 1px solid #ccc;
    font-size: 120%;
    padding: 10px;
}

div.stack {
    width: 50%;
    text-align: center;
    margin: 10px auto;
}

a.stackbox {
    text-decoration: none;
    color: #000;
}

/*****************************************************************************/
/* Secondary header */
h1 {
    font-size: 160%;
}
h2 {
    font-size: 140%;
    margin-top: 1em;
}

/* Page and header backgrounds */
div#content {
    padding: 1px 1px 30px 20px;
    width: 600px;
}

div#header {
    padding-top: 20px;
}

/*****************************************************************************/
/* Footer styles */
p#copyright {
    float: right;
    color: #888;
}

p#icons {
    float: left;
}

.icon-link {
    padding-left: 10px;
    display: inline-block;
    vertical-align: middle;
}

.icon-link svg {
    width: 18px;
    height: 18px;
    fill: #567;
    vertical-align: middle;
}

.icon-link:hover svg {
    fill: #222;
}

hr {
    color: #ddd;
}

/*****************************************************************************/
/* Project list */
div.project {
    display: flex;
    gap: 15px;
    border: 1px solid #ccc;
    padding: 10px 15px;
    margin-bottom: 15px;
}
div.project img.thumbnail {
    width: 100px;
    height: 100px;
    object-fit: cover;
    flex-shrink: 0;
    margin-right: 0;
}
div.project .project-body {
    min-width: 0;
}
div.project h3 {
    margin: 0 0 5px 0;
}
div.project .meta {
    color: #888;
    font-size: 0.9em;
    margin-bottom: 6px;
}

/*****************************************************************************/
/* Top navigation bar */
ul#navlist {
    padding-left: 20px;
}
ul#navlist li {
    display: inline;
    padding-right: 20px;
    padding-left: 0;
}
ul#navlist li#active a {
    font-weight: bold;
}

/*****************************************************************************/
@media (max-width: 700px) {
    body {
        margin-left: 0px;
        width: 100%;
        line-height: 180%;
    }
    div#header {
        width: 90%;
        padding-left: 20px;
    }
    div#content {
        width: 80%;
        padding: 1px 20px 30px 20px;
        font-size: 120%;
    }

    div.stack {
        width: 90%;
    }

    ul#navlist li {
        display: block;
    }
}

hr {
    height: 1px;
    border: none;
    background-color: #ccc;
}
