.site-layout {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.site-sidebar {
    width: 240px;
    position: sticky;
    top: 1rem;
}

.site-title {
    margin-top: 0;
    margin-bottom: 1rem;
}

.site-nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}

.site-social {
    display: flex;
    gap: 0.75rem;
}

.site-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    font-size: 1.25rem;
    text-decoration: none;
}

.site-nav-heading {
    font-size: 1rem;
    margin-top: 0;
    margin-bottom: 0.5rem;
}

.site-post-list {
    margin: 0;
    padding-left: 1rem;
}

.site-post-list li {
    margin-bottom: 0.35rem;
}

.site-main {
    flex: 1;
    min-width: 0;
}

.site-main> :first-child {
    margin-top: 0;
}

:root {
    color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
    body {
        background-color: #0d1117;
        color: #c9d1d9;
    }

    .markdown-body {
        color: #c9d1d9;
        background-color: transparent;
    }

    .markdown-body a,
    .site-nav a,
    .site-social a {
        color: #58a6ff;
    }

    .markdown-body hr,
    .site-sidebar hr {
        border-color: #30363d;
    }

    .markdown-body pre,
    .markdown-body code {
        background-color: #161b22;
    }
}

@media (max-width: 900px) {
    .site-layout {
        flex-direction: column;
    }

    .site-sidebar {
        width: 100%;
        position: static;
    }

    .site-post-list {
        columns: 2;
    }
}

@media (max-width: 600px) {
    .site-post-list {
        columns: 1;
    }
}
