/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "SF Mono", Monaco, "Cascadia Code", "Roboto Mono", Consolas, "Liberation Mono", Menlo, Courier, monospace;
    line-height: 1.6;
    color: #e0e0e0;
    background-color: #000;
}

h1, h2, h3, h4, h5, h6 {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Container layout */
.container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

/* Navigation styles */
.sidebar {
    width: 100%;
    background-color: #000;
    position: sticky;
    top: 0;
    z-index: 100;
}

.sidebar-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 1rem 2rem;
}

/* Top navigation styles */

.author-info {
    margin-bottom: 0;
}

.author-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0;
    text-decoration: none;
    transition: color 0.2s ease;
}

.author-name:hover {
    color: #4a9eff;
}

.author-tagline {
    display: none;
}

.nav-section {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.sidebar-nav {
    margin-bottom: 0;
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    display: inline-block;
    color: #ccc;
    text-decoration: none;
    padding: 0.5rem 0;
    font-weight: 500;
    transition: color 0.2s ease;
}

.nav-link:hover {
    color: #fff;
}

.social-links {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
    display: flex;
    gap: 1rem;
    align-items: center;
}

.social-link {
    display: inline-block;
    color: #aaa;
    text-decoration: none;
    padding: 0.25rem 0;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.social-link:hover {
    color: #fff;
}

/* Main content area */
.content {
    flex: 1;
    padding: 2rem;
    width: 100%;
}

/* Error page styles */
.error-page {
    max-width: 600px;
    text-align: center;
    padding: 4rem 0;
    margin: 0 auto;
}

.error-page h1 {
    font-size: 3rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1rem;
}

.error-page p {
    font-size: 1.2rem;
    color: #aaa;
    margin-bottom: 2rem;
}

/* Post styles */
.post {
    max-width: 1200px;
    margin: 0 auto;
}

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

.post-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.post-date {
    color: #aaa;
    font-size: 0.9rem;
}

.post-content {
    font-size: 1.1rem;
    line-height: 1.7;
}

.post-content h1,
.post-content h2,
.post-content h3,
.post-content h4,
.post-content h5,
.post-content h6 {
    margin: 2rem 0 1rem 0;
    color: #fff;
    font-weight: 600;
}

.post-content h1 { font-size: 2rem; }
.post-content h2 { font-size: 1.75rem; }
.post-content h3 { font-size: 1.5rem; }
.post-content h4 { font-size: 1.25rem; }
.post-content h5 { font-size: 1.1rem; }
.post-content h6 { font-size: 1rem; }

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

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

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

.post-content blockquote {
    border-left: 4px solid #333;
    padding-left: 1rem;
    margin: 2rem 0;
    color: #aaa;
    font-style: italic;
}

.post-content code {
    background-color: #111;
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
    font-size: 0.9em;
    color: #e0e0e0;
}

.post-content pre {
    background-color: #111;
    padding: 1rem;
    border-radius: 6px;
    overflow-x: auto;
    margin: 1.5rem 0;
}

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

.post-content a {
    color: #4a9eff;
    text-decoration: none;
}

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

/* Post preview styles */
.posts {
    max-width: 1200px;
    margin: 0 auto;
}

.post-preview {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #333;
}

.post-preview:last-child {
    border-bottom: none;
}

.post-preview-header {
    margin-bottom: 1rem;
}

.post-preview-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.post-preview-title a {
    color: #fff;
    text-decoration: none;
}

.post-preview-title a:hover {
    color: #4a9eff;
}

.post-preview-date {
    color: #aaa;
    font-size: 0.9rem;
}

.post-preview-excerpt {
    color: #ccc;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.read-more {
    color: #4a9eff;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
}

.read-more:hover {
    text-decoration: underline;
}

.posts ul,
.posts ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
    margin-left: 0;
}

/* Responsive design */
@media (max-width: 959px) {
    .sidebar {
        padding: 1rem;
    }
    
    .sidebar-content {
        flex-direction: column;
        gap: 1rem;
    }
    
    .author-info {
        text-align: center;
    }
    
    .nav-section {
        flex-direction: column;
        gap: 1rem;
    }
    
    .sidebar-nav {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .social-links {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .content {
        padding: 1.5rem;
    }
    
    .post-title {
        font-size: 2rem;
    }
    
    .error-page h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 600px) {
    .sidebar-content {
        flex-direction: column;
        align-items: center;
    }
    
    .nav-section {
        flex-direction: column;
        align-items: center;
    }
    
    .sidebar-nav {
        width: 100%;
        justify-content: center;
    }
    
    .social-links {
        width: 100%;
        justify-content: center;
    }
    
    .content {
        padding: 1rem;
    }
    
    .post-title {
        font-size: 1.75rem;
    }
    
    .post-content {
        font-size: 1rem;
    }
    
    .error-page h1 {
        font-size: 2rem;
    }
}

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

.latest-posts-heading {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    color: #fff;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.post-list {
    list-style: none;
    padding-left: 0 !important;
    margin: 0;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.post-list-item {
    margin-bottom: 0.75rem;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}

.post-list-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
    transition: color 0.2s;
    flex: 1;
}

.post-list-title:hover {
    color: #4a9eff;
    text-decoration: underline;
}

.post-list-date {
    font-size: 0.85rem;
    color: #aaa;
    margin-left: 1rem;
    white-space: nowrap;
}

.author-link {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}

.author-link:hover {
    color: #4a9eff;
    text-decoration: underline;
}

.post-content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 2rem auto;
    box-sizing: border-box;
} 