* {
    box-sizing: border-box;
}

:root {
    --accent: #2f7d32;
    --accent-hover: #1f5f22;
    --ink: #22302d;
    --muted: #66736f;
    --rule: #e4e8e3;
    --paper: #fbfaf7;
    --thumb-bg: #f3f5f2;
}

html {
    background: var(--paper);
    color: var(--ink);
    font: 400 16px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    text-rendering: optimizeLegibility;
}

body {
    margin: 0;
}

a {
    color: inherit;
}

.site-shell {
    width: min(100% - 48px, 1040px);
    margin: 0 auto;
}

.site-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 28px;
    padding: 26px 0 20px;
}

.site-mark {
    display: inline-flex;
    line-height: 0;
}

.site-mark img {
    width: 225px;
    max-width: 100%;
    height: auto;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 22px;
    color: var(--accent);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .04em;
    line-height: 1;
    text-transform: uppercase;
    white-space: nowrap;
}

.site-nav a {
    border-bottom: 1px solid rgba(47, 125, 50, .28);
    padding-bottom: 4px;
    text-decoration: none;
}

.site-nav a:hover,
.site-nav a:focus {
    border-bottom-color: currentColor;
    color: var(--accent-hover);
}

.post-index {
    border-top: 1px solid var(--rule);
}

.post-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.post-item {
    border-bottom: 1px solid var(--rule);
}

.post-card {
    display: grid;
    grid-template-columns: 168px minmax(0, 1fr);
    gap: 30px;
    align-items: center;
    min-height: 132px;
    padding: 22px 0;
    text-decoration: none;
}

.post-card:hover .post-title,
.post-card:focus .post-title {
    color: var(--accent);
}

.post-thumb {
    display: block;
    width: 168px;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border: 1px solid rgba(34, 48, 45, .08);
    border-radius: 8px;
    background: var(--thumb-bg);
}

.post-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.post-summary {
    display: block;
    max-width: 680px;
    min-width: 0;
}

.post-title,
.post-description,
.post_tags {
    display: block;
}

.post-title {
    color: #17221f;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.post-description {
    color: #34423f;
    margin-top: 4px;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.post_tags {
    color: var(--muted);
    margin-top: 12px;
    font-size: 14px;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.post_tags span:before {
    content: "/";
    margin: 0 7px;
    color: #a7b0ac;
}

.site-footer {
    padding: 24px 0 42px;
}

@media (max-width: 720px) {
    .site-shell {
        width: min(100% - 32px, 1040px);
    }

    .site-header {
        display: block;
        padding: 20px 0 18px;
    }

    .site-mark img {
        width: min(285px, 100%);
    }

    .site-nav {
        flex-wrap: wrap;
        gap: 16px;
        margin-top: 18px;
    }

    .post-card {
        grid-template-columns: 1fr;
        gap: 14px;
        min-height: 0;
        padding: 24px 0 26px;
    }

    .post-thumb {
        width: min(220px, 68vw);
    }

    .post-summary {
        max-width: none;
    }

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

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

@media (max-width: 420px) {
    .site-shell {
        width: calc(100% - 28px);
    }

    .post-thumb {
        width: min(200px, 76vw);
    }
}
