/* Color scheme with light mode support */
:root {
    --bg: #3a3a3a;
    --bg-secondary: #4a4a4a;
    --text: #e0e0e0;
    --text-muted: #a0a0a0;
    --accent: #7fdbdb;
    --accent-hover: #9fefef;
    --font-mono: 'SF Mono', 'Fira Code', 'Consolas', monospace;
    --font-sans: system-ui, -apple-system, sans-serif;
    --max-width: 680px;
}

@media (prefers-color-scheme: light) {
    :root {
        --bg: #f5f5f5;
        --bg-secondary: #e8e8e8;
        --text: #2a2a2a;
        --text-muted: #666666;
        --accent: #0077aa;
        --accent-hover: #005580;
    }
}

/* Reset */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Base */
html {
    font-size: 16px;
    line-height: 1.6;
}

body {
    font-family: var(--font-mono);
    background-color: var(--bg);
    color: var(--text);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 2rem 1rem;
}

/* Links */
a {
    color: var(--accent);
    text-decoration: underline;
}

a:hover {
    color: var(--accent-hover);
}

/* Header */
.site-header {
    text-align: center;
    margin-bottom: 3rem;
}

.site-title {
    font-size: 1.75rem;
    font-weight: normal;
    margin-bottom: 0.5rem;
}

.site-title a {
    color: var(--text);
    text-decoration: underline;
}

.site-tagline {
    color: var(--text);
    font-size: 1rem;
    margin-bottom: 1rem;
}

.site-nav {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.site-nav a {
    color: var(--accent);
}

/* Content */
.content {
    max-width: var(--max-width);
    margin: 0 auto;
    width: 100%;
    flex: 1;
}

/* Post list (homepage) */
.post-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.post-item {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: baseline;
}

.post-date {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.post-separator {
    color: var(--text-muted);
}

.post-item .post-title {
    color: var(--accent);
}

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

.post-header .post-title {
    font-size: 1.75rem;
    font-weight: normal;
    margin-bottom: 0.5rem;
}

.post-meta {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.post-author {
    color: var(--accent);
}

.post-tag {
    color: var(--accent);
}

.post-image {
    width: 100%;
    max-width: 100%;
    height: auto;
    margin-bottom: 2rem;
}

/* Post content */
.post-content {
    font-family: var(--font-sans);
    line-height: 1.7;
}

.post-content h1,
.post-content h2,
.post-content h3,
.post-content h4 {
    font-family: var(--font-mono);
    font-weight: normal;
    margin: 2rem 0 1rem;
}

.post-content h2 {
    font-size: 1.4rem;
}

.post-content h3 {
    font-size: 1.2rem;
}

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

.post-content ul,
.post-content ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.post-content li {
    margin-bottom: 0.25rem;
}

.post-content blockquote {
    border-left: 3px solid var(--accent);
    padding-left: 1rem;
    margin: 1rem 0;
    color: var(--text-muted);
    font-style: italic;
}

.post-content pre {
    background: var(--bg-secondary);
    padding: 1rem;
    overflow-x: auto;
    margin-bottom: 1rem;
    font-family: var(--font-mono);
    font-size: 0.9rem;
}

.post-content code {
    font-family: var(--font-mono);
    font-size: 0.9em;
}

.post-content p code {
    background: var(--bg-secondary);
    padding: 0.1rem 0.3rem;
}

.post-content img {
    max-width: 100%;
    height: auto;
}

.post-content a {
    color: var(--accent);
}

/* Page (about, etc) */
.page h1 {
    font-size: 1.75rem;
    font-weight: normal;
    margin-bottom: 1rem;
}

.page p {
    margin-bottom: 1rem;
}

/* Footer */
.site-footer {
    text-align: center;
    margin-top: 3rem;
    padding-top: 1rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

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

.site-footer a:hover {
    color: var(--accent);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.social-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.15s ease;
}

.social-links a:hover {
    color: var(--accent);
}

/* Responsive */
@media (max-width: 600px) {
    body {
        padding: 1rem 0.75rem;
    }
    
    .site-title {
        font-size: 1.5rem;
    }
    
    .post-header .post-title {
        font-size: 1.5rem;
    }
}
