:root {
    color-scheme: light dark;
    /* let the UA style controls appropriately */
    /* Light palette */
    --bg: #ffffff;
    --fg: #111111;
    --primary: #276EF1;
    --muted: #f3f4f6;
    --border: rgba(0, 0, 0, .06);
    --shadow: #999;
}

@media (prefers-color-scheme: dark) {
    :root {
        /* Dark palette */
        --bg: #0b0e12;
        --fg: #e5e7eb;
        --primary: #8ab4ff;
        --muted: #111827;
        --border: rgba(255, 255, 255, .12);
        --shadow: #666;
    }
}


* {
    box-sizing: border-box
}

body {
    background: var(--bg);
    color: var(--fg);
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
    margin: 0;
    line-height: 1.6
}

a {
    color: var(--primary);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.wrap {
    max-width: 960px;
    margin: 0 auto;
    padding: 24px
}

.site-header,
.site-footer {
    border-bottom: 1px solid var(--border);
    border-top: 1px solid var(--border);
    background: var(--muted);
}

.site-title {
    font-family: "Mogra", sans-serif;
    font-weight: 700;
    text-decoration: none;
    color: var(--fg);
    font-size: 30px;
    margin-right: 20px;
}

.site-logo {
    width: 40px;
    height: 40px;
    border-radius: 5px;
    position: relative;
    top: 10px;
}

.site-main a {
    color: var(--primary);
    text-decoration: none;
}

.site-main a:hover {
    text-decoration: underline;
}

/* Home two-column that stacks on mobile */
.home-two-col {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    align-items: flex-start
}

.home-col {
    flex: 1 1 280px
}

.home-image img {
    width: 100%;
    height: auto;
    border-radius: 10px
}

/* TOC list */
.toc-list {
    list-style: disc;
    padding-left: 20px
}

.toc-list li {
    margin: 6px 0
}

.post-image {
    float: right;
}

.post-image img {
    margin: 10px;
    margin-left: 20px;
    border-radius: 20px;
    border: 1px solid var(--shadow);
    filter: drop-shadow(2px 2px 4px var(--shadow));
}

.post-image.left {
    float: left;
    margin-right: 20px;
}

.about-toc {
    float: right;
    max-width: 400px;
    margin-left: 10px;
}

.about-toc .home-posts {
    border: 1px solid var(--border);
    padding-left: 10px;
    border-radius: 20px;
}