/* Reset and base */
*, *::before, *::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 18px;
    line-height: 1.7;
    color: #dcdccc;
    background: #3f3f3f;
}

/* Layout */
.container {
    display: flex;
    min-height: 100vh;
    max-width: 1200px;
    margin: 0 auto;
}

/* Sidebar */
.sidebar {
    width: 280px;
    flex-shrink: 0;
    background: #383838;
    border-right: 1px solid #4f4f4f;
}

.sidebar-content {
    position: sticky;
    top: 0;
    padding: 3rem 2rem;
}

.site-title {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 1.4rem;
    font-weight: 600;
    margin: 0 0 1.5rem 0;
    color: #f0dfaf;
}

.bio {
    font-size: 0.95rem;
    color: #9fafaf;
    margin: 0 0 2rem 0;
    line-height: 1.6;
}

.links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.links a {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 0.9rem;
    color: #8cd0d3;
    text-decoration: none;
}

.links a:hover {
    text-decoration: underline;
}

/* Main content */
.content {
    flex: 1;
    padding: 3rem 4rem;
    background: #3f3f3f;
    max-width: 800px;
}

article {
    max-width: 650px;
}

/* Post header */
.post-header {
    margin-bottom: 2.5rem;
}

.post-header h1 {
    font-size: 2.2rem;
    line-height: 1.3;
    margin: 0 0 0.5rem 0;
    color: #f0dfaf;
}

.post-header time {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 0.9rem;
    color: #7f9f7f;
}

/* Typography */
h2 {
    font-size: 1.4rem;
    margin: 2.5rem 0 1rem 0;
    color: #e0cf9f;
}

p {
    margin: 0 0 1.2rem 0;
}

hr {
    border: none;
    border-top: 1px solid #4f4f4f;
    margin: 2rem 0;
}

/* Special sections */
.editors-note {
    color: #9fafaf;
    font-size: 0.95rem;
}

.next-post {
    background: #484848;
    padding: 1.2rem 1.5rem;
    border-radius: 4px;
    font-size: 0.95rem;
}

/* Post list (index page) */
.post-list {
    list-style: none;
    padding: 0;
    margin: 2rem 0;
}

.post-list li {
    margin-bottom: 1.5rem;
}

.post-list a {
    color: #f0dfaf;
    text-decoration: none;
    font-size: 1.2rem;
}

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

.post-list time {
    display: block;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 0.85rem;
    color: #7f9f7f;
    margin-top: 0.3rem;
}

/* Mobile responsive */
@media (max-width: 900px) {
    .container {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #4f4f4f;
    }

    .sidebar-content {
        position: static;
        padding: 2rem;
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 1rem 2rem;
    }

    .site-title {
        margin: 0;
    }

    .bio {
        margin: 0;
        flex: 1;
        min-width: 200px;
    }

    .links {
        flex-direction: row;
        gap: 1rem;
    }

    .content {
        padding: 2rem;
    }
}

@media (max-width: 600px) {
    body {
        font-size: 17px;
    }

    .post-header h1 {
        font-size: 1.8rem;
    }

    .content {
        padding: 1.5rem;
    }

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