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

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

body {
    font-family: "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-weight: 400;
    color: #333;
    background-color: #fff;
}

/* Container */
.container {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.site-header {
    padding: 40px 0 20px;
    border-bottom: 1px solid #eee;
    margin-bottom: 40px;
}

.header-content {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.avatar {
    margin-right: 20px;
}

.avatar img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
}

.site-info h1 {
    margin: 0;
}

.site-title a {
    color: #333;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.8rem;
}

.site-title a:hover {
    color: #007acc;
}

.site-description {
    color: #666;
    margin: 8px 0 0 0;
    font-style: italic;
}

/* Navigation */
.site-nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
    margin: 0;
}

.site-nav a {
    color: #666;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.site-nav a:hover {
    color: #007acc;
}

/* Main content */
.site-main {
    min-height: 60vh;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    color: #222;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 0.5em;
}

h1 { font-size: 2rem; }
h2 { font-size: 1.6rem; }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.1rem; }

p {
    margin-bottom: 1.2em;
}

a {
    color: #007acc;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Code styling */
code {
    font-family: "Ubuntu Mono", "Monaco", "Consolas", monospace;
    background-color: #f5f5f5;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 0.9em;
}

pre {
    background-color: #f8f8f8;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 15px;
    overflow-x: auto;
    margin: 1.5em 0;
}

pre code {
    background: none;
    padding: 0;
    border-radius: 0;
    font-size: 0.85em;
}

/* Post styling */
.recent-posts h2 {
    margin-bottom: 1.5em;
    padding-bottom: 0.5em;
    border-bottom: 1px solid #eee;
}

.post-preview {
    margin-bottom: 2.5em;
    padding-bottom: 2em;
    border-bottom: 1px solid #f0f0f0;
}

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

.post-preview h2,
.post-preview h3 {
    margin-bottom: 0.5em;
}

.post-preview h2 a,
.post-preview h3 a {
    color: #333;
    text-decoration: none;
}

.post-preview h2 a:hover,
.post-preview h3 a:hover {
    color: #007acc;
}

.post-meta {
    color: #888;
    font-size: 0.9em;
    margin-bottom: 0.8em;
}

.post-meta time {
    margin-right: 15px;
}

.reading-time {
    color: #aaa;
}

.post-summary {
    color: #555;
    line-height: 1.6;
}

.more-posts {
    margin-top: 2em;
    text-align: center;
}

.more-posts a {
    font-weight: 500;
}

/* Individual post */
.post-header {
    margin-bottom: 2em;
    padding-bottom: 1em;
    border-bottom: 1px solid #eee;
}

.post-title {
    margin-bottom: 0.5em;
}

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

.post-content h1,
.post-content h2,
.post-content h3,
.post-content h4 {
    margin-top: 2em;
    margin-bottom: 0.8em;
}

.post-content h1:first-child,
.post-content h2:first-child,
.post-content h3:first-child,
.post-content h4:first-child {
    margin-top: 0;
}

.post-tags {
    margin-top: 2em;
    padding-top: 1em;
    border-top: 1px solid #eee;
}

.post-tags h4 {
    margin-bottom: 0.5em;
    font-size: 0.9rem;
    color: #666;
}

.tag {
    display: inline-block;
    background-color: #f0f0f0;
    color: #666;
    padding: 3px 8px;
    margin: 2px 4px 2px 0;
    border-radius: 3px;
    font-size: 0.8em;
    text-decoration: none;
}

.tag:hover {
    background-color: #007acc;
    color: white;
    text-decoration: none;
}

/* Post navigation */
.post-nav {
    display: flex;
    justify-content: space-between;
    margin: 3em 0 2em;
    padding: 1.5em 0;
    border-top: 1px solid #eee;
}

.post-nav-prev,
.post-nav-next {
    flex: 1;
}

.post-nav-next {
    text-align: right;
}

.post-nav a {
    color: #666;
    text-decoration: none;
    display: block;
}

.post-nav a:hover {
    color: #007acc;
}

.nav-label {
    font-size: 0.85em;
    color: #888;
    display: block;
    margin-bottom: 4px;
}

.nav-title {
    font-weight: 500;
}

/* Page styling */
.page-header {
    margin-bottom: 2em;
    padding-bottom: 1em;
    border-bottom: 1px solid #eee;
}

.page-content {
    line-height: 1.7;
}

.blog-list .page-header {
    margin-bottom: 2.5em;
}

/* Footer */
.site-footer {
    margin-top: 60px;
    padding: 40px 0;
    border-top: 1px solid #eee;
    color: #666;
    font-size: 0.9em;
}

.social-links {
    margin-bottom: 1em;
}

.social-links a {
    color: #666;
    margin-right: 20px;
    text-decoration: none;
}

.social-links a:hover {
    color: #007acc;
}

/* Responsive design */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    .avatar {
        margin: 0 0 15px 0;
    }
    
    .site-nav ul {
        justify-content: center;
        gap: 20px;
    }
    
    .post-nav {
        flex-direction: column;
        gap: 1em;
    }
    
    .post-nav-next {
        text-align: left;
    }
    
    h1 { font-size: 1.6rem; }
    h2 { font-size: 1.4rem; }
    h3 { font-size: 1.2rem; }
}