@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;600&display=swap');

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

body {
    background: #1a2e1a;
    color: #b8c9b0;
    font-family: 'IBM Plex Mono', 'Menlo', 'Consolas', monospace;
    font-size: 14px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

#site {
    max-width: 680px;
    margin: 0 auto;
    padding: 48px 24px 80px;
}

/* --- Typography --- */

h1.h1 {
    color: #d4e4cc;
    font-weight: 600;
    font-size: 18px;
    margin-bottom: 4px;
}

h2.label {
    color: #7a9e6e;
    font-weight: 400;
    font-size: 14px;
    margin-bottom: 8px;
}

p {
    margin-bottom: 8px;
}

.indent {
    padding-left: 2ch;
    margin-bottom: 12px;
    font-size: 13px;
    opacity: 0.85;
}

.right-link {
    margin-bottom: 8px;
}

/* --- Rows (table-like alignment) --- */

.row {
    display: flex;
    gap: 2ch;
    line-height: 1.7;
}

.col-title {
    flex: 0 0 18ch;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.col-org {
    flex: 1;
    min-width: 0;
}

.col-desc {
    flex: 1;
    min-width: 0;
    opacity: 0.75;
}

.col-date {
    flex: 0 0 12ch;
    text-align: right;
    white-space: nowrap;
}

.col-lang {
    flex: 0 0 8ch;
    text-align: right;
    opacity: 0.65;
}

.col-extra {
    flex: 0 0 4ch;
    text-align: right;
    color: #c9b87a;
}

.hl {
    color: #d4e4cc;
}

/* --- Dividers --- */

hr {
    border: none;
    border-top: 1px solid #2a3e2a;
    margin: 20px 0;
}

/* --- Links --- */

a {
    color: #8ab87a;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* --- Blog post pages --- */

.back {
    display: inline-block;
    margin-bottom: 16px;
    color: #7a9e6e;
    font-size: 13px;
}

.post-header {
    margin-bottom: 24px;
}

.post-title {
    font-size: 18px;
    font-weight: 600;
    color: #d4e4cc;
    margin-bottom: 4px;
}

.post-date {
    font-size: 13px;
    color: #7a9e6e;
}

.post-content {
    line-height: 1.8;
}

.post-content h2 {
    color: #d4e4cc;
    font-size: 15px;
    font-weight: 600;
    margin: 28px 0 8px;
}

.post-content h3 {
    color: #d4e4cc;
    font-size: 14px;
    font-weight: 600;
    margin: 20px 0 8px;
}

.post-content p {
    margin-bottom: 12px;
}

.post-content ul,
.post-content ol {
    margin: 0 0 12px 2ch;
}

.post-content li {
    margin-bottom: 4px;
}

.post-content blockquote {
    border-left: 2px solid #3a5e3a;
    padding-left: 2ch;
    color: #8a9a82;
    margin: 12px 0;
}

.post-content pre {
    background: #0f1f0f;
    border: 1px solid #2a3e2a;
    padding: 12px 16px;
    overflow-x: auto;
    margin: 12px 0;
    font-size: 13px;
    line-height: 1.6;
}

.post-content code {
    background: #0f1f0f;
    padding: 1px 4px;
    font-size: 13px;
}

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

.post-content a {
    color: #8ab87a;
}

.post-content img {
    max-width: 100%;
    margin: 12px 0;
}

/* --- Selection --- */

::selection {
    background: #3a5e3a;
    color: #e0f0d8;
}

/* --- Responsive --- */

@media (max-width: 520px) {
    #site {
        padding: 32px 16px 60px;
        font-size: 13px;
    }

    h1.h1 {
        font-size: 16px;
    }

    .col-title {
        flex: 0 0 14ch;
    }

    .col-desc {
        display: none;
    }

    .col-lang {
        display: none;
    }
}
