:root {
    --bg: oklch(15% 0.006 220);
    --text: oklch(88% 0.006 90);
    --accent: oklch(72% 0.1 195);
    --meta: oklch(58% 0.03 220);
    --border: oklch(25% 0.008 220);
    --border-strong: oklch(28% 0.008 220);
    --font-sans: 'IBM Plex Sans', system-ui, sans-serif;
    --font-mono: 'JetBrains Mono', ui-monospace, monospace;
}

*, html {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
}

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.7;
}

a {
    color: var(--text);
    text-decoration: none;
    transition: color .15s ease;
}

a:hover {
    color: var(--accent);
}

h1, h2 {
    font-family: var(--font-sans);
    font-weight: 500;
    margin: 0;
}

.site-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 28px 44px;
    border-bottom: 1px solid var(--border-strong);
}

.site-nav .brand {
    font-size: 19px;
    font-weight: 500;
}

.site-nav .links {
    display: flex;
    gap: 28px;
    font-family: var(--font-mono);
    font-size: 13px;
}

main {
    max-width: 680px;
    margin: 0 auto;
    padding: 32px 44px 64px;
}

.row {
    display: flex;
}

.margin {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--meta);
    width: 96px;
    flex: none;
    padding-top: 3px;
}

.kicker {
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent);
}

.kicker-row {
    margin-bottom: 20px;
}

.post-row {
    padding: 11px 0;
    border-top: 1px solid var(--border);
    align-items: baseline;
}

.post-row:last-child {
    border-bottom: 1px solid var(--border);
}

.post-title {
    font-size: 16.5px;
}

.post-title::before,
.post-body h2::before {
    content: '';
    display: inline-block;
    width: 12px;
    height: 2px;
    background: var(--accent);
    margin-right: 10px;
    vertical-align: middle;
}

.post-title-row {
    margin-bottom: 18px;
}

.post-title-row h1 {
    font-size: 28px;
}

.post-body p {
    margin: 0 0 18px;
}

.post-body h2 {
    font-size: 19px;
    margin: 0 0 12px;
}

.post-body ul {
    margin: 0 0 18px;
    padding-left: 18px;
}

.post-body li {
    margin-bottom: 8px;
}

.post-body pre {
    padding: 1rem;
    border-radius: 4px;
    overflow-x: auto;
    margin: 0 0 18px;
}

@media (max-width: 620px) {
    .site-nav {
        padding: 20px 24px;
    }
    main {
        padding: 24px 24px 48px;
    }
    .row {
        flex-direction: column;
    }
    .margin {
        width: auto;
        margin-bottom: 4px;
        padding-top: 0;
    }
}
