:root {
    --bg: #0a0a0a;
    --text: #e0e0e0;
    --text-muted: #666;
    --accent: #fff;
    --link-hover: #888;
    --border: #222;
}

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

html {
    font-size: 16px;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    font-weight: 300;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--text);
    text-decoration: none;
    transition: color 0.15s;
}

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

main {
    max-width: 700px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Home */
.home {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.home h1 {
    font-size: 2.5rem;
    font-weight: 400;
    margin-bottom: 3rem;
    letter-spacing: -0.02em;
}

.home h1 a {
    color: var(--accent);
}

.home h1 a:hover {
    color: var(--link-hover);
}

.home-nav h2 {
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: 0.5rem;
}

.home-nav h2 a {
    color: var(--text-muted);
}

.home-nav h2 a:hover {
    color: var(--accent);
}

/* Pages */
.page {
    padding: 4rem 0;
}

.page h1 {
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 2rem;
    letter-spacing: -0.01em;
}

.page h1 a {
    color: var(--text-muted);
}

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

/* Blog list */
.posts-list {
    margin-bottom: 2rem;
}

.post-item {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border);
    gap: 1rem;
}

.post-item a {
    color: var(--text);
}

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

.date {
    color: var(--text-muted);
    font-size: 0.85rem;
    white-space: nowrap;
}

/* Post */
.post h1 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.post-meta {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 2rem;
}

.post-meta .tags {
    margin-left: 1rem;
}

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

.post-cover img {
    max-width: 100%;
    display: block;
}

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

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

.post-content h2 {
    font-size: 1.3rem;
    font-weight: 400;
    margin: 2rem 0 1rem;
}

.post-content h3 {
    font-size: 1.1rem;
    font-weight: 400;
    margin: 1.5rem 0 0.75rem;
}

.post-content blockquote {
    border-left: 2px solid var(--border);
    padding-left: 1rem;
    color: var(--text-muted);
    margin: 1.5rem 0;
}

.post-content code {
    background: #1a1a1a;
    padding: 0.15rem 0.4rem;
    font-size: 0.9em;
}

.post-content pre {
    background: #1a1a1a;
    padding: 1rem;
    overflow-x: auto;
    margin: 1.5rem 0;
}

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

.post-content img {
    max-width: 100%;
    display: block;
    margin: 1.5rem 0;
}

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

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

.post-content a {
    color: var(--accent);
    border-bottom: 1px solid var(--border);
}

.post-content a:hover {
    border-color: var(--link-hover);
}

/* Back link */
.back-link {
    display: inline-block;
    margin-top: 3rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.back-link:hover {
    color: var(--accent);
}

/* Pagination */
.pagination {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

/* Projects */
.projects-list {
    margin-top: 1rem;
}

.project-item {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border);
}

.project-item a {
    color: var(--accent);
}

.project-item a:hover {
    color: var(--link-hover);
}

/* About */
.about-content {
    line-height: 1.8;
}

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

.about-content a {
    color: var(--accent);
    border-bottom: 1px solid var(--border);
}

.about-content a:hover {
    border-color: var(--link-hover);
}

/* Utils */
.muted {
    color: var(--text-muted);
}

/* Mobile */
@media (max-width: 600px) {
    html {
        font-size: 14px;
    }

    .home h1 {
        font-size: 2rem;
    }

    .home-nav h2 {
        font-size: 1.2rem;
    }

    .post-item {
        flex-direction: column;
        gap: 0;
    }

    .page {
        padding: 2rem 0;
    }
}
