:root {
    --orange: #ff6600;
    --ink: #202020;
    --muted: #6d6d6d;
    --line: #e5e5e5;
    --paper: #ffffff;
    --soft: #fafafa;
}

* {
    box-sizing: border-box;
}

html {
    min-width: 320px;
}

body {
    background: var(--paper);
    color: var(--ink);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.6;
    margin: 0;
}

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

    a:hover,
    a:focus-visible {
        text-decoration: underline;
    }

h1, h2, h3 {
    color: var(--orange)
}

.site-header {
    align-items: center;
    background: var(--orange);
    display: flex;
    height: 100px;
    padding: 0 30px;
}

    .site-header img {
        display: block;
        max-width: 100%;
        width: auto;
    }

.site-layout {
    display: grid;
    gap: 32px;
    grid-template-columns: 150px minmax(0, 1fr) 220px;
    margin: 0 auto;
    max-width: 1440px;
    padding: 30px;
}

.site-nav {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

    .site-nav ul {
        list-style-type: none;
        border: solid 0px;
        margin: 0px 0px 0px 0px;
        padding: 0px 0px 0px 0px;
    }

    .site-nav li {
        margin: 4px 0px 11px 0px;
        padding: 0px 0px 0px 0px;
    }

    .site-nav a {
        font-size: 1rem;
        font-weight: 700;
    }

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

    .site-main p,
    .site-main li {
        font-size: 1rem;
    }

.page-header {
    border-bottom: 2px solid var(--orange);
    margin-bottom: 32px;
    padding-bottom: 14px;
}

    .page-header h1 {
        font-size: 1.35rem;
    }

    .page-header h1,
    .page-header h2 {
        margin: 0;
    }

    .page-header p {
        color: var(--muted);
        margin: 6px 0 0;
    }

.section-heading {
    align-items: baseline;
    border-bottom: 1px solid var(--line);
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 8px;
}

    .section-heading h2 {
        font-size: 1.25rem;
        margin: 0;
    }

.post-card {
    border-bottom: 1px solid var(--line);
    margin-bottom: 24px;
    padding: 0 0 24px;
}

    .post-card h2 {
        font-size: 1.35rem;
        line-height: 1.25;
        margin: 6px 0 8px;
    }

    .post-card time,
    .post-meta,
    .post-card .read-more {
        color: var(--muted);
        font-size: .9rem;
    }

    .post-card .read-more {
        color: var(--orange);
        font-weight: 700;
    }

.post-content {
    font-size: 1.05rem;
}

    .post-content img,
    .post-content video,
    .post-content iframe {
        height: auto;
        max-width: 100%;
    }

    .post-content pre {
        background: #282a36;
        border-radius: 3px;
        color: #f8f8f2;
        overflow-x: auto;
        padding: 16px;
    }

    .post-content code {
        background: #f1f1f1;
        padding: 2px 4px;
    }

    .post-content pre code {
        background: transparent;
        padding: 0;
    }

    .post-content table {
        border-collapse: collapse;
        margin: 24px 0;
        width: 100%;
    }

    .post-content th,
    .post-content td {
        border: 1px solid var(--line);
        padding: 8px;
        text-align: left;
    }

    .post-content th {
        background: var(--soft);
    }

.site-main table {
    border-collapse: collapse;
    margin: 24px 0;
    width: 100%;
}

.site-main th,
.site-main td {
    border: 1px solid var(--line);
    padding: 8px;
    text-align: left;
}

.site-main th {
    background: var(--soft);
}

.video-frame {
    aspect-ratio: 16 / 9;
    border: 0;
    display: block;
    margin: 24px 0;
    width: 100%;
}

.site-aside h2 {
    color: var(--orange);
    font-size: 1.1rem;
    margin: 0 0 12px;
    border-bottom: 2px solid var(--orange);
}

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

.site-aside li {
    border-bottom: 1px solid var(--line);
    margin-bottom: 14px;
    padding: 0 0 14px;
}

    .site-aside li a,
    .site-aside li span {
        display: block;
    }

    .site-aside li a {
        font-size: .95rem;
        font-weight: 700;
    }

    .site-aside li span {
        color: var(--muted);
        font-size: .85rem;
        line-height: 1.4;
        margin-top: 3px;
    }

.site-footer {
    border-top: 1px solid var(--line);
    color: var(--muted);
    margin: 0 auto;
    max-width: 1440px;
    padding: 18px 30px;
}

    .site-footer p {
        margin: 0;
    }

.twitter {
    fill: #1da1f2;
}



@media (max-width: 900px) {
    .site-layout {
        grid-template-columns: 130px minmax(0, 1fr);
    }

    .site-aside {
        display: none;
    }
}

@media (max-width: 620px) {
    .site-header {
        height: 72px;
        padding: 0 16px;
    }

        .site-header img {
            max-height: 52px;
        }

    .site-layout {
        display: block;
        padding: 22px 16px 30px;
    }

    .site-nav {
        border-bottom: 1px solid var(--line);
        flex-direction: row;
        flex-wrap: wrap;
        gap: 8px 18px;
        margin-bottom: 28px;
        padding-bottom: 14px;
    }

        .site-nav a {
            font-size: .95rem;
        }
}
