* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Georgia, serif;
    line-height: 1.5;
    color: #000;
    background-color: #fff;
    padding: 2rem;
}

a {
    color: #00e;
    text-decoration: underline;
}

a:visited {
    color: #551a8b;
}

a:hover {
    background-color: #00e;
    color: #fff;
}

/* Navigation */
nav {
    margin-bottom: 2rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #000;
}

.nav-container {
    display: flex;
    gap: 2rem;
    align-items: baseline;
}

nav h1 {
    font-size: 1rem;
    font-weight: normal;
}

nav h1 a {
    color: #000;
    text-decoration: none;
}

nav h1 a:hover {
    background-color: transparent;
    text-decoration: underline;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 1rem;
}

nav ul li::before {
    content: '[';
}

nav ul li::after {
    content: ']';
}

/* Main content */
main {
    min-height: calc(100vh - 200px);
}

.container {
    max-width: 900px;
}

h2 {
    font-size: 1rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

/* Post preview (index page) */
.post-preview {
    margin-bottom: 0.5rem;
    display: flex;
    gap: 2rem;
}

.post-preview h3 {
    font-size: 1rem;
    font-weight: normal;
    margin: 0;
}

.post-preview h3 a {
    text-decoration: none;
}

.post-preview h3 a:hover {
    text-decoration: underline;
}

.post-meta {
    color: #666;
    font-size: 1rem;
    white-space: nowrap;
}

.post-excerpt {
    display: none;
}

/* Blog post page */
.post-header {
    margin-bottom: 2rem;
}

.post-header h2 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.post-content {
    line-height: 1.6;
}

.post-content p {
    margin-bottom: 1rem;
}

.post-content h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 1rem;
    font-weight: bold;
}

.post-content ul {
    margin-left: 2rem;
    margin-bottom: 1rem;
}

.post-content code {
    background-color: #f0f0f0;
    padding: 0.1rem 0.2rem;
}

.post-content pre {
    background-color: #f0f0f0;
    padding: 1rem;
    overflow-x: auto;
    margin-bottom: 1rem;
}

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

/* Footer */
footer {
    margin-top: 3rem;
    padding-top: 1rem;
    border-top: 1px solid #000;
    font-size: 0.9rem;
    color: #666;
}

/* Dark mode */
@media (prefers-color-scheme: dark) {
    body {
        background-color: #1a1d23;
        color: #c9d1d9;
    }

    a {
        color: #8cf;
    }

    a:visited {
        color: #c9f;
    }

    a:hover {
        background-color: #8cf;
        color: #1a1d23;
    }

    nav {
        border-bottom-color: #c9d1d9;
    }

    nav h1 a {
        color: #c9d1d9;
    }

    nav h1 a:hover {
        background-color: transparent;
    }

    .post-meta {
        color: #8b949e;
    }

    .post-content code {
        background-color: #2d333b;
    }

    .post-content pre {
        background-color: #2d333b;
    }

    footer {
        border-top-color: #c9d1d9;
        color: #8b949e;
    }
}
