:root {
    font-family: Inter, sans-serif;
    font-feature-settings:
        "liga" 1,
        "calt" 1; /* fix for Chrome */
}
@supports (font-variation-settings: normal) {
    :root {
        font-family: InterVariable, sans-serif;
    }
}

html {
    font-size: 1rem;
    overflow-x: hidden;
}

body {
    background-color: #fffff8;
    color: #111;
    line-height: 1.25;
    margin: 0;
}

body .wrapper {
    display: flex;
    width: 100vw;
    padding: 20px;
    /*padding-top: 25vh;*/
}

@media only screen and (max-width: 600px) {
    .wrapper {
        flex-flow: column;
    }
    .sidebar {
        position: relative !important;
        text-align: center;
        padding-bottom: 10px;
        width: 100% !important;
    }
    .sidebar li,
    .sidebar ul {
        list-style: none !important;
        padding-left: 0 !important;
    }
    footer {
        display: none !important;
    }
    .content {
        margin-top: 0 !important;
    }
}

.sidebar {
    position: sticky;
    display: flex;
    top: 20px;
    flex-direction: column;
    width: 222px;
    margin-right: 20px;
    max-height: 95vh;
    line-height: 1.5;
    text-align: right;
    font-family: "Berkeley Mono", Menlo, Monaco, monospace;
}
.sidebar img {
    object-fit: cover;
    aspect-ratio: 1/1;
    width: 100%;
    transition: transform 0.2s;
}
.sidebar .about {
    margin-bottom: 1rem;
}
.sidebar email {
    font-family: monospace;
    font-size: 0.8rem;
    display: inline-block;
    text-align: center;
    width: 100%;
}
.sidebar a {
    padding-right: 10px;
}
.sidebar a.active::before {
    content: "\2192 ";
    opacity: 0.75;
}

.content {
    flex: 1;
    max-width: 600px;
    margin-top: -20px;
}

.list {
    margin-top: 20px;
    line-height: 1.5;
}

.list li {
    overflow: hidden;
    text-overflow: ellipsis;
    list-style: none;
    white-space: nowrap;
}

article {
    width: 100%;
    padding-top: 1rem;
    font-size: 1.1rem;
    font-family: "Charter";
}
article img {
    width: auto;
    max-height: 300px;
    margin-bottom: 10px;
}

img {
    display: block;
    margin-left: auto;
    margin-right: auto;
    max-width: 100%;
}

.content p {
    font-family: "Charter";
    font-size: 1.1rem;
}
.content a::after {
    content: "]]";
    opacity: 0.25;
}
.content a::before {
    content: "[[";
    opacity: 0.25;
}
a {
    color: #111;
    text-decoration: none;
}
a:hover {
    color: darkgreen;
    text-decoration: underline;
}
a.external {
    color: #567;
}
a.external::before {
    content: none;
}
a.external::after {
    content: "\2197";
    opacity: 0.75;
}
a.external:hover {
    color: #567;
}

.post-time {
    display: inline-flex;
    min-width: 100px;
    justify-content: space-between;
}

span {
    color: #767676;
}

article,
ul {
    list-style-type: none;
    padding-left: 0;
}

ul ul {
    margin-left: 2rem;
}

article,
li {
    margin-top: 10px;
}
