html {
    font-family: sans-serif;
}

body {
    margin: 0;
}

.titlepage-container {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    height: 100vh;
    flex-wrap: wrap;
}

.logo-name {
    margin: 16px 0;
    display: block;
}

.logo-name span {
    background: black;
    color: white;
    display: inline-block;
    text-transform: uppercase;
    margin-bottom: 1px;
    font-size: 3em;
    padding: 1px;
    line-height: 0.95em;
    font-weight: bold;
}

.connections {
    padding: 0;
}

.connections li {
    list-style-type: none;
    margin-bottom: 1px;
    font-size: 1.1em;
}

.connections svg {
    width: 1em;
    height: 1em;
    background: black;
    color: white;
    padding: 10px;
    vertical-align: middle;
}

.connections a {
    text-decoration: none;
    color: inherit;
}

.connections a:visited {
    color: inherit;
}

/** CV Page **/
.split-view {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    gap: 32px;
}

aside {
    padding: 0 32px;
}

.main-content-wrapper {
    padding: 0 32px;
    max-width: 720px;
}

aside section {
    margin-bottom: 16px;
}

aside ul {
    padding: 0;
    margin: 0;
    list-style: none;
}

header nav {
    display: flex;
    justify-content: flex-start;
    gap: 20px;
    padding: 16px 0;
}

header nav a {
    color: black;
    font-weight: bold;
    text-decoration: none;
    text-transform: uppercase;
}

main small {
    font-style: italic;
}

main ul li {
    padding-bottom: 8px;
}

.post-list {
    padding: 0;
    margin: 0;
    list-style-type: none;
}

.post-list li {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 4px;
    align-items: baseline;
    column-gap: 16px;
}

time {
    font-family: monospace;
}

figure {
    margin: 0
}

figcaption {
    font-size: .9rem;
    text-align: center;
    font-style: italic;
}

main img {
    max-width: 100%;
    height: auto;
}

h2,
h3,
h4,
h5,
h6 {
    position: relative;
}

h2:hover .anchor,
h3:hover .anchor,
h4:hover .anchor,
h5:hover .anchor,
h6:hover .anchor {
    opacity: 1;
}

.anchor {
    width: 28px;
    opacity: 0;
    position: absolute;
    top: 50%;
    left: -28px;
    transform: translateY(-50%);
}

pre {
    padding: 1rem 1.4rem;
    max-width: 100%;
    overflow: auto;
    border: 1px solid gray;
    font-size: 1.02rem;
    background-color: #f0f0f0;
}

blockquote {
    border-left: 4px solid gray;
    margin: 16px 0;
    padding-left: 16px;
}

footer {
    margin-top: 2rem;
    padding: 2rem 0;
    border-top: 1px solid black;
}

@media screen and (max-width: 1200px) {
    .titlepage-container {
        flex-direction: column;
        font-size: 24px;
    }

    .connections li {
        line-height: 2em;
    }

    .split-view {
        flex-direction: column;
    }

    .post-list li {
        flex-direction: column;
    }
}
