:root {
    --mono-font: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    --bg-main: #0a0a0a;
    --text-main: #c5c5c5;
    --text-headings: #e8e8e8;
    --text-title: #ffffff;
    --text-muted: #999999;
    --link-static: #8ec07c;
    --link-hover: #d3869b;
    --code-block-bg: #121212;
    --code-block-text: #d8d8d8;
    --inline-code-bg: #1a1a1a;
    --inline-code-text: #9d86d3;
    --border-subtle: #333333;
    --blockquote-border: #444444;
    --nav-bg: #0c0c0c;
    --nav-border: #333333;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    font-family: var(--mono-font);
    line-height: 1.7;
    background-color: var(--bg-main);
    color: var(--text-main);
    margin: 0 auto;
    max-width: 1200px;
    padding: 60px 0 0 0;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

main {
    margin-top: 2.5rem;
    margin-bottom: 2.5rem;
}

section {
    margin-bottom: 3rem;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: normal;
    line-height: 1.3;
    margin-top: 2.2em;
    margin-bottom: 1em;
    color: var(--text-headings);
}

h1 {
    font-size: 2.2em;
    margin-bottom: 0.5em;
    color: var(--text-title);
}

h2 {
    font-size: 1.7em;
    border-bottom: 1px dashed var(--border-subtle);
    padding-bottom: 0.3em;
    margin-bottom: 1.2em;
}

h3 {
    font-size: 1.05rem;
    color: var(--text-headings);
}

p,
ul,
ol,
pre,
figure,
blockquote,
table {
    margin-bottom: 1.3em;
}

ul,
ol {
    padding-left: 1.8em;
}

li {
    margin-bottom: 0.6em;
}

strong,
b {
    color: var(--text-headings);
    font-weight: bold;
}

em,
i {
    color: var(--inline-code-text);
    font-style: italic;
}

a {
    color: var(--text-main);
    text-decoration: none;
    border-bottom: 1px dotted var(--link-static);
    padding-bottom: 1px;
    transition: color 0.2s ease, border-color 0.2s ease;
}

a:hover {
    color: var(--link-hover);
    border-bottom-color: var(--link-hover);
}

nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 1.8rem;
    background-color: var(--nav-bg);
    border-bottom: 1px solid var(--nav-border);
    padding: 0.75rem 1.25rem;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    font-family: var(--mono-font);
    z-index: 9999;
}

nav a {
    color: var(--text-main);
    border-bottom: none;
    font-size: 0.95rem;
    letter-spacing: 0.06em;
    padding: 0.3rem 0;
}

nav a.active {
    color: var(--text-title);
}

.terminal-header {
    padding: 2rem 20px 0.5rem 20px;
    margin-bottom: 2rem;
}

.terminal-header h1 {
    font-size: 2.5rem;
    letter-spacing: -1px;
    margin: 0 0 0.5rem 0;
    color: var(--text-title);
}

.terminal-header p {
    font-size: 1rem;
    margin: 0;
    max-width: 52rem;
    color: var(--text-main);
}

.section {
    position: relative;
    padding-top: 0.25rem;
}

.section-header {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-subtle);
    padding-bottom: 0.5rem;
}

.section-title {
    font-size: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0;
    border-bottom: none;
    padding: 0;
}

.timeline {
    position: relative;
    padding-left: 20px;
}

.timeline::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 1px;
    background-color: var(--border-subtle);
}

.timeline-item {
    margin-bottom: 1.2rem;
    position: relative;
}

.timeline-item::before {
    content: "";
    position: absolute;
    left: -24px;
    top: 6px;
    width: 8px;
    height: 8px;
    background-color: var(--text-muted);
}

.timeline-item.current::before {
    background-color: var(--link-hover);
}

.timeline-item h3 {
    margin: 0;
}

.timeline-item p {
    margin: 0.2rem 0 0;
    font-size: 0.92rem;
    color: var(--text-muted);
}

.timeline-details {
    margin-top: 0.7rem;
    color: var(--text-main);
}

.timeline-details li {
    margin-bottom: 0.4rem;
}

.blog-posts {
    display: flex;
    flex-direction: column;
}

.blog-post {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
        "title date"
        "excerpt excerpt";
    column-gap: 1rem;
    padding: 0.85rem 0;
    border-bottom: 1px dotted var(--border-subtle);
}

.blog-post:last-child {
    border-bottom: none;
}

.blog-post h3 {
    grid-area: title;
    margin: 0;
}

.blog-post h3 a {
    border-bottom: 1px dotted var(--link-static);
}

.blog-post-date {
    grid-area: date;
    font-size: 0.75rem;
    color: var(--text-muted);
    white-space: nowrap;
    text-align: right;
}

.blog-excerpt {
    grid-area: excerpt;
    font-size: 0.88rem;
    line-height: 1.45;
    margin: 0.35rem 0 0;
    color: var(--text-muted);
}

.compact-post {
    grid-template-columns: 1fr;
    grid-template-areas: "title";
    padding: 0.7rem 0;
}

.compact-post h3 {
    font-size: 1rem;
}

.post-content {
    max-width: 900px;
}

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

.post-title {
    margin-top: 0;
    margin-bottom: 0.5rem;
    font-size: 2.2rem;
}

.post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 0.75rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.post-summary {
    max-width: 48rem;
    color: var(--text-main);
}

.content {
    max-width: 900px;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: 0.92rem;
}

th {
    text-align: left;
    border-bottom: 1px solid var(--border-subtle);
    padding: 0.5rem;
    font-weight: normal;
    text-transform: uppercase;
    font-size: 0.8rem;
    color: var(--text-headings);
}

td {
    padding: 0.5rem;
    border-bottom: 1px dotted var(--border-subtle);
    vertical-align: top;
}

blockquote {
    border-left: 2px solid var(--blockquote-border);
    margin-left: 0;
    padding-left: 1.5em;
    font-style: italic;
    color: var(--text-main);
}

code {
    color: var(--inline-code-text);
    background-color: var(--inline-code-bg);
    padding: 0.2em 0.4em;
    font-size: 0.88em;
}

pre {
    background-color: var(--code-block-bg);
    color: var(--code-block-text);
    padding: 0.8rem 1.25rem;
    overflow: auto;
    font-size: 0.92em;
    line-height: 1.5;
    border-left: 1px dashed var(--border-subtle);
}

pre code {
    background: transparent;
    color: inherit;
    padding: 0;
    font-size: 1em;
}

img {
    max-width: 100%;
    height: auto;
    border: 1px solid var(--border-subtle);
}

footer:not(.site-footer) {
    display: none !important;
}

.site-footer {
    display: flex !important;
    border-top: 1px solid var(--border-subtle);
    padding: 1.5rem 0;
    margin-top: 3rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-links {
    display: flex;
    gap: 1rem;
}

.footer-links a {
    color: var(--text-muted);
    border-bottom: none;
}

.footer-info {
    color: var(--text-muted);
}

@media (max-width: 920px) {
    body {
        font-size: 14px;
    }

    .container {
        max-width: 800px;
    }

    .blog-post {
        grid-template-columns: 1fr;
        grid-template-areas:
            "title"
            "date"
            "excerpt";
    }

    .blog-post-date {
        text-align: left;
        margin-top: 0.35rem;
    }
}

@media (max-width: 768px) {
    body {
        padding-top: 52px;
    }

    nav {
        gap: 1rem;
        padding: 0.55rem 0.9rem;
    }

    nav a {
        font-size: 0.85rem;
    }

    .terminal-header {
        padding-top: 1.5rem;
    }

    .terminal-header h1 {
        font-size: 2rem;
    }

    h1 {
        font-size: 1.8em;
    }

    h2 {
        font-size: 1.45em;
    }

    h3 {
        font-size: 1rem;
    }

    .footer-content {
        flex-direction: column;
        align-items: flex-start;
    }
}
