:root {
    --bg: #050805;
    --green: #00ff66;
    --green-dim: #00b847;
    --prompt: #007a32;
    --hover: #ffffff;
    --border: #063d1d;
    --max-width: 1100px;
}

* {
    box-sizing: border-box;
}

html {
    background: var(--bg);
    color-scheme: dark;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--green);
    font-family:
        "SFMono-Regular",
        "Cascadia Code",
        "Roboto Mono",
        "Liberation Mono",
        Menlo,
        Monaco,
        Consolas,
        monospace;
    font-size: 16px;
    line-height: 1.65;
    -webkit-text-size-adjust: 100%;
    text-rendering: optimizeLegibility;
}

a {
    color: inherit;
}

.site {
    width: min(calc(100% - 48px), var(--max-width));
    min-height: 100vh;
    margin: 0 auto;
}

.terminal {
    padding: 0;
}

.terminal-session {
    width: 100%;
}

.terminal-line {
    min-height: 1.65em;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.prompt {
    color: var(--prompt);
    user-select: none;
}

.prompt-path {
    color: #ffd700;
}

.prompt-dollar {
    color: var(--green);
}

.command {
    color: var(--green);
}

.command a {
    color: inherit;
    text-decoration: none;
}

.cursor {
    display: inline-block;
    width: 9px;
    height: 1.05em;
    margin-left: 3px;
    vertical-align: -0.13em;
    background: var(--green);
    animation: blink 1s steps(1, end) infinite;
}

@keyframes blink {
    0%,
    49% {
        opacity: 1;
    }

    50%,
    100% {
        opacity: 0;
    }
}

.terminal-output {
    color: var(--green);
}

.directory-list {
    display: flex;
    flex-wrap: wrap;
    column-gap: 28px;
    row-gap: 0;
    margin: 0;
    padding: 0;
}

.directory-list a {
    color: var(--green);
    text-decoration: none;
}

.directory-list a::before {
    content: "";
}

.project-tag {
    color: #ffffff;
    text-decoration: none;
}

.project-tag:hover,
.project-tag:focus-visible {
    color: var(--hover);
}

.directory-list a:hover,
.directory-list a:focus-visible,
.command a:hover,
.command a:focus-visible {
    color: var(--hover);
}

.terminal-post {
    display: flex;
    align-items: baseline;
    gap: 18px;
    min-height: 1.65em;
}

.post-meta {
    flex: 0 0 auto;
    color: var(--green);
    font-size: 14px;
    white-space: nowrap;
}

.post-link {
    color: #ffffff;
    text-decoration: none;
}

.post-link:hover,
.post-link:focus-visible {
    color: var(--hover);
}

.post-content {
    margin: 22px 0 0;
    color: #ffffff;
}

.post-content p {
    margin: 1em 0;
}

.terminal-output h1,
.terminal-output h2,
.terminal-output h3,
.terminal-output h4,
.terminal-output h5,
.terminal-output h6 {
    display: inline;
    margin: 0;
    padding: 0;
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
    color: #ffffff;
}

.post-content a {
    color: var(--green);
    text-decoration: underline;
    text-decoration-color: var(--green-dim);
    text-underline-offset: 3px;
}

.post-content a:hover {
    color: var(--hover);
    text-decoration-color: var(--hover);
}

.post-content strong {
    color: var(--hover);
}

.post-content code {
    color: var(--hover);
}

.post-content pre {
    overflow-x: auto;
    margin: 28px 0;
    padding: 18px;
    border: 1px solid var(--border);
    background: #030603;
    color: var(--green);
    font-size: 14px;
    line-height: 1.6;
}

.post-content pre code {
    color: var(--green);
}

.post-content blockquote {
    margin: 28px 0;
    padding-left: 18px;
    border-left: 2px solid var(--border);
    color: var(--green-dim);
}

.post-content figure {
    margin: 34px 0;
}

.post-content img {
    display: block;
    width: 100%;
    height: auto;
    border: 1px solid var(--border);
}

.post-content figcaption {
    margin-top: 8px;
    color: var(--green-dim);
    font-size: 13px;
}

a:focus-visible {
    outline: 1px solid var(--hover);
    outline-offset: 4px;
}

::selection {
    background: var(--green);
    color: var(--bg);
}

@media (max-width: 700px) {
    .site {
        width: min(calc(100% - 28px), var(--max-width));
    }

    .terminal-line {
        white-space: normal;
    }

    .directory-list {
        column-gap: 18px;
        row-gap: 0;
    }

    .terminal-post {
        display: block;
    }

    .post-meta {
        display: block;
        margin-bottom: 2px;
        font-size: 13px;
    }

    .post-content {
        margin-top: 18px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .cursor {
        animation: none;
    }
}
