:root {
    color-scheme: dark;
    --bg: #050806;
    --panel: #0c130f;
    --panel-strong: #111c16;
    --text: #e8f6ec;
    --muted: #9bb7a4;
    --green: #2ee67d;
    --green-soft: #8ff0b6;
    --line: #1e3427;
    --max: 860px;
}

* {
    box-sizing: border-box;
}

html {
    background: var(--bg);
}

body {
    margin: 0;
    color: var(--text);
    background: var(--bg);
    font-family: "JetBrains Mono", "IBM Plex Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
    font-size: 15px;
    line-height: 1.65;
    text-transform: lowercase;
}

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

.site-header,
.site-footer,
.site-main {
    width: min(var(--max), calc(100% - 32px));
    margin: 0 auto;
}

.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 20px 0;
    border-bottom: 1px solid var(--line);
}

.site-brand {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-size: 14px;
    font-weight: 600;
}

.site-brand-mark {
    width: 8px;
    height: 8px;
    background: var(--green);
    border-radius: 50%;
    box-shadow: 0 0 14px rgba(46, 230, 125, 0.55);
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 14px;
    color: var(--muted);
    font-size: 13px;
}

.site-nav a:hover,
.text-link:hover {
    color: var(--green);
}

.site-main {
    min-height: calc(100vh - 138px);
}

.feed-header {
    padding: 42px 0 18px;
}

.eyebrow {
    margin: 0 0 10px;
    color: var(--green);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0;
}

.feed-header h1,
.empty-state h1 {
    max-width: 680px;
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: 0;
}

.feed-header p:not(.eyebrow) {
    max-width: 650px;
    color: var(--muted);
    font-size: 14px;
}

.post-list {
    display: grid;
    gap: 0;
    padding-bottom: 48px;
    border-top: 1px solid var(--line);
}

.post-card {
    position: relative;
    display: grid;
    gap: 8px;
    padding: 18px 0;
    background: transparent;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
}

.post-card:hover {
    background: transparent;
    border-color: rgba(46, 230, 125, 0.36);
}

.post-card-link {
    display: grid;
    gap: 6px;
}

.post-card time,
.post-meta {
    color: var(--muted);
    font-size: 12px;
}

.post-card h2 {
    max-width: 760px;
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.35;
    letter-spacing: 0;
}

.post-card p {
    max-width: 720px;
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.55;
}

.post-tag {
    width: fit-content;
    color: var(--green-soft);
    font-size: 12px;
    font-weight: 500;
}

.post-full {
    max-width: 720px;
    padding: 44px 0 74px;
}

.post-full-header {
    display: grid;
    gap: 12px;
    padding-bottom: 26px;
    border-bottom: 1px solid var(--line);
}

.post-full-header h1 {
    margin: 0;
    font-size: clamp(24px, 5vw, 38px);
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: 0;
}

.post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.post-content {
    padding-top: 28px;
    font-size: 17px;
}

.post-content p {
    margin: 0 0 20px;
}

.post-content a {
    color: var(--green-soft);
    border-bottom: 1px solid rgba(143, 240, 182, 0.42);
}

.post-content hr {
    height: 1px;
    margin: 30px 0 20px;
    background: var(--line);
    border: 0;
}

.post-content .kg-width-wide {
    width: min(100%, 980px);
    max-width: calc(100vw - 32px);
}

.post-content .kg-width-full {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
}

.post-content .kg-width-full img,
.post-content .kg-width-wide img,
.feature-image img {
    width: 100%;
    height: auto;
}

.feature-image {
    margin: 34px 0 0;
}

.feature-image figcaption,
.page-excerpt {
    color: var(--muted);
}

.pagination {
    display: flex;
    justify-content: space-between;
    padding: 0 0 54px;
    color: var(--muted);
    font-size: 13px;
}

.empty-state {
    padding: 72px 0;
}

.text-link {
    display: inline-block;
    margin-top: 20px;
    color: var(--green-soft);
}

.site-footer {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 20px 0;
    color: var(--muted);
    border-top: 1px solid var(--line);
    font-size: 12px;
}

@media (max-width: 700px) {
    .site-header,
    .site-footer {
        align-items: flex-start;
        flex-direction: column;
    }

    .site-nav {
        flex-wrap: wrap;
    }

    .feed-header {
        padding-top: 32px;
    }

    .post-card {
        padding: 16px 0;
    }

    .post-content {
        font-size: 16px;
    }
}
