:root {
    --bg: #ffffff;
    --text: #333333;
    --link: #0066cc;
    --link-hover: #004499;
    --border: #dddddd;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #1a1a1a;
        --text: #e0e0e0;
        --link: #66aaff;
        --link-hover: #99ccff;
        --border: #444444;
    }
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    font-size: 18px;
}

.container {
    max-width: 650px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

header {
    margin-bottom: 3rem;
}

header h1 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

header h1 a {
    color: var(--text);
    text-decoration: none;
}

nav {
    font-size: 1rem;
}

nav a {
    margin-right: 1rem;
    color: var(--link);
    text-decoration: none;
}

nav a:hover {
    color: var(--link-hover);
    text-decoration: underline;
}

nav a.active {
    font-weight: 600;
    text-decoration: underline;
}

main {
    margin-bottom: 4rem;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
    line-height: 1.3;
}

h1 {
    font-size: 2rem;
}

h2 {
    font-size: 1.5rem;
}

h3 {
    font-size: 1.25rem;
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--link);
    text-decoration: none;
}

a:hover {
    color: var(--link-hover);
    text-decoration: underline;
}

ul,
ol {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

li {
    margin-bottom: 0.25rem;
}

code {
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, Courier, monospace;
    background: var(--border);
    padding: 0.2em 0.4em;
    border-radius: 3px;
    font-size: 0.9em;
}

pre {
    background: var(--border);
    padding: 1rem;
    border-radius: 5px;
    overflow-x: auto;
    margin-bottom: 1rem;
}

pre code {
    background: none;
    padding: 0;
}

.posts ul {
    list-style: none;
    margin-left: 0;
}

.posts li {
    margin-bottom: 0.75rem;
    display: flex;
    gap: 1rem;
}

.posts time {
    color: #666666;
    font-size: 0.9rem;
    min-width: 6rem;
    flex-shrink: 0;
}

@media (prefers-color-scheme: dark) {
    .posts time {
        color: #999999;
    }
}

article.post header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

article.post time {
    color: #666666;
    font-size: 0.9rem;
}

@media (prefers-color-scheme: dark) {
    article.post time {
        color: #999999;
    }
}

footer {
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    color: #666666;
    font-size: 0.9rem;
}

@media (prefers-color-scheme: dark) {
    footer {
        color: #999999;
    }
}