:root {
    color-scheme: dark;
    --green: #37946e;
    --green-dark: #133f30;
    --green-mid: #70bea0;
    --text: #fff;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    background: var(--green);
    color: var(--text);
    font: 1rem/1.65 Georgia, "Times New Roman", serif;
}

.site {
    width: min(100% - 2rem, 38rem);
    margin: 0 auto;
    padding: clamp(4rem, 12vh, 8rem) 1rem;
}

.hero {
    display: grid;
    place-items: center;
    margin-bottom: 3rem;
}

.mark {
    display: block;
    width: 6rem;
    height: 6rem;
    object-fit: contain;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

h1,
h2,
p {
    margin-top: 0;
}

h2 {
    margin-bottom: 2rem;
    color: var(--text);
    font: 700 0.75rem/1.2 Arial, sans-serif;
    letter-spacing: 0.18em;
    text-align: center;
    text-transform: uppercase;
}

.post-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 0.35rem;
}

.post-list li {
    margin: 0;
}

.post-list a {
    display: grid;
    grid-template-columns: 3.25rem 1fr;
    gap: 0.5rem;
    align-items: baseline;
    padding: 0.7rem 0.85rem;
    border-radius: 0.55rem;
    color: inherit;
    text-decoration: none;
    transition: background-color 150ms ease, transform 150ms ease;
}

.post-list a:hover,
.post-list a:focus-visible {
    background: rgb(255 255 255 / 10%);
    outline: none;
    transform: translateX(0.2rem);
}

.post-list a:hover span,
.post-list a:focus-visible span {
    text-decoration: underline;
    text-underline-offset: 0.2em;
}

.post-list time,
.post-header time {
    color: var(--text);
    font: 700 0.72rem/1.65 Arial, sans-serif;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.post-list span {
    font-size: 1.05rem;
    line-height: 1.35;
}

.empty {
    padding: 1rem 0;
    color: var(--text);
    text-align: center;
}

.back {
    display: inline-block;
    margin-bottom: 4rem;
    color: var(--text);
    font: 700 0.75rem/1.2 Arial, sans-serif;
    letter-spacing: 0.06em;
    text-decoration: none;
    text-transform: uppercase;
}

.back:hover,
.back:focus-visible {
    text-decoration: underline;
    text-underline-offset: 0.2em;
}

.post-header {
    margin-bottom: 2.5rem;
}

.post-header h1 {
    margin: 0.35rem 0 0;
    color: var(--text);
    font-size: clamp(2rem, 8vw, 3.5rem);
    font-weight: 400;
    line-height: 1.05;
}

.content h1,
.content h2,
.content h3,
.content h4,
.content h5,
.content h6 {
    margin: 2em 0 0.5em;
    color: var(--text);
    font-family: Arial, sans-serif;
}

.content h2 {
    margin-top: 3rem;
    margin-bottom: 1rem;
    padding-block: 0.25rem;
}

.content a {
    color: inherit;
}

.content code {
    padding: 0.12rem 0.3rem;
    border-radius: 0.2rem;
    background: color-mix(in srgb, var(--green-dark) 25%, transparent);
    font-size: 0.9em;
}

.content pre {
    padding: 1rem;
    overflow-x: auto;
    border: 1px solid var(--green-mid);
}

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

@media (max-width: 32rem) {
    .post-list a {
        grid-template-columns: 3.25rem 1fr;
        gap: 0.5rem;
    }
}

.post-page {
    background: #fff;
    color: #111;
    color-scheme: light;
}

.post-page .site {
    width: 100%;
    margin: 0;
    padding: 0;
}

.post-banner {
    background: var(--green);
}

.post-banner-inner,
.post-article {
    width: min(100% - 2rem, 38rem);
    margin: 0 auto;
}

.post-banner-inner {
    padding: clamp(2rem, 8vh, 4rem) 1rem;
}

.post-page .back {
    margin: 0;
    color: #fff;
}

.post-article {
    padding: clamp(3rem, 9vh, 6rem) 1rem;
}

.post-page .post-header h1,
.post-page .post-header time,
.post-page .content h1,
.post-page .content h2,
.post-page .content h3,
.post-page .content h4,
.post-page .content h5,
.post-page .content h6 {
    color: #111;
}

.post-page .content {
    color: #111;
}

.post-page .content a {
    color: #111;
    text-decoration-color: var(--green-dark);
}

.post-page .content code {
    background: #f0f0f0;
}

.post-page .content pre {
    border-color: #ddd;
    background: #f7f7f7;
}

.post-list a:hover span,
.post-list a:focus-visible span {
    text-decoration: none;
}

.post-article {
    padding-bottom: clamp(6rem, 16vh, 10rem);
}

.post-page {
    background: #f5f5f1;
}

@media (prefers-color-scheme: dark) {
    :root {
        --green: #1f5d46;
        --green-dark: #103b2b;
        --green-mid: #5aa888;
    }

    .post-page {
        background: #252525;
        color: #eeeeea;
        color-scheme: dark;
    }

    .post-page .post-header h1,
    .post-page .post-header time,
    .post-page .content,
    .post-page .content h1,
    .post-page .content h2,
    .post-page .content h3,
    .post-page .content h4,
    .post-page .content h5,
    .post-page .content h6,
    .post-page .content a {
        color: #eeeeea;
    }

    .post-page .content a {
        text-decoration-color: #9d9d98;
    }

    .post-page .content code {
        background: #343434;
    }

    .post-page .content pre {
        border-color: #4d4d4d;
        background: #2e2e2e;
    }
}

.post-mark {
    display: flex;
    justify-content: center;
    margin-top: clamp(4rem, 12vh, 7rem);
}

.post-mark img {
    display: block;
    width: 2.5rem;
    height: 2.5rem;
    object-fit: contain;
}
