:root {
    color-scheme: light;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
        "Liberation Mono", "Courier New", monospace;
    color: #292d29;
    background: #fff;
    font-size: 16px;
    line-height: 1.7;
}

* { box-sizing: border-box; }

body {
    display: flex;
    flex-direction: column;
    min-height: 100svh;
    max-width: 860px;
    margin: 0 auto;
    padding: 0 clamp(20px, 5vw, 48px) 24px;
}

main { flex: 1; min-width: 0; }

.site-footer { padding-top: 64px; }
.site-footer nav { display: flex; justify-content: center; gap: 8px; }
.site-footer a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    color: #767676;
}
.site-footer a:hover,
.site-footer a:focus-visible { color: #292d29; }
.site-footer svg { display: block; }

a { color: inherit; text-underline-offset: 5px; }
a:hover { color: #496b40; }
a:focus-visible { outline: 2px solid #496b40; outline-offset: 6px; }

.site-header {
    padding: 30px 0;
    border-bottom: 1px solid #dcded5;
    margin-bottom: clamp(40px, 8vw, 80px);
}

.site-nav {
    display: flex;
    width: fit-content;
    margin-inline: auto;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.wordmark { font-weight: 700; text-decoration: none; }
.site-nav .wordmark { color: #767676; }
.site-nav .wordmark[aria-current] { color: #292d29; }
.site-nav .wordmark:hover,
.site-nav .wordmark:focus-visible { color: #496b40; }

.terminal {
    overflow: hidden;
    border: 1px solid #363c38;
    border-radius: 10px;
    background: #1c211e;
    color: #e2e7dd;
    box-shadow: 0 12px 30px #1c211e12;
}

.terminal-bar {
    display: grid;
    grid-template-columns: minmax(48px, 1fr) minmax(0, auto) minmax(48px, 1fr);
    align-items: center;
    gap: 16px;
    padding: 12px 18px;
    border-bottom: 1px solid #363c38;
    background: #272d29;
    color: #bcc5ba;
    font-size: 12px;
}

.window-dots { display: flex; gap: 6px; }
.editor-filename { overflow-wrap: anywhere; text-align: center; }
.window-dots i { width: 12px; height: 12px; border-radius: 50%; background: #ff5f57; }
.window-dots i:nth-child(2) { background: #febc2e; }
.window-dots i:nth-child(3) { background: #28c840; }
.terminal-body {
    padding: clamp(20px, 4vw, 32px);
    max-height: min(60vh, 32rem);
    max-height: min(60svh, 32rem);
    overflow-y: auto;
    color-scheme: dark;
    scrollbar-width: thin;
    scrollbar-color: #566153 #1c211e;
}
.terminal-body:focus-visible { outline: 2px solid #a6c795; outline-offset: -3px; }
.terminal-body .chroma { background: transparent; color: #e2e7dd; }
.terminal-body .chroma .line { display: inline; }
.terminal-body .chroma .gh,
.terminal-body .chroma .gu { color: #a6c795; font-weight: 700; }
.terminal-body .chroma .ge { color: #d7c39a; font-style: italic; }
.terminal-body .chroma .gs { color: #f1dfb4; font-weight: 700; }
.terminal-body .chroma .s,
.terminal-body .chroma .sb,
.terminal-body .chroma .sc { color: #d7c39a; }
.terminal-body .chroma .na,
.terminal-body .chroma .nt { color: #9fc5db; }
.terminal-body .chroma .k,
.terminal-body .chroma .p { color: #b7a8cf; }
.terminal:focus-visible,
.copy-button:focus-visible { outline: 2px solid #a6c795; outline-offset: 4px; }
.copy-button {
    justify-self: end;
    font: inherit;
    color: #e2e7dd;
    background: #363e37;
    border: 1px solid #566153;
    border-radius: 4px;
    padding: 4px 10px;
    cursor: pointer;
}
.copy-button:hover { background: #465141; }
.copy-button svg { display: block; }
.editor-status {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 4px 16px;
    min-height: 38px;
    padding: 8px 18px;
    border-top: 1px solid #363c38;
    color: #bcc5ba;
    font-size: 12px;
}
pre, code { font: inherit; }
pre { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
h1 { font-size: 1.6rem; line-height: 1.3; margin: 0 0 16px; }
.muted { color: #62695f; }

.post-list { list-style: none; padding: 0; }
.post-list li { margin: 24px 0; }
.post-list time { display: block; font-size: 0.85rem; }
.post { overflow-wrap: anywhere; }
.post h2 { font-size: 1.25rem; margin-top: 2rem; }
.post pre { padding: 20px; border-radius: 8px; background: #1c211e; color: #e2e7dd; }
.post :not(pre) > code { background: #eeefea; padding: 2px 5px; border-radius: 3px; }
.post blockquote { border-left: 3px solid #dcded5; margin-left: 0; padding-left: 20px; }
.post img { max-width: 100%; height: auto; }
