header {
    display: flex;
    justify-content: center;
}

body {
    font-family: 'Georgia', serif;
    line-height: 1.6;
    font-size: 18px;
    background-color: #fafafa;
    color: #333;
    padding: 20px;
    margin: 0 auto;
    max-width: 800px;
}

.post-box {
    border: 1px solid #343030; /* Border color */
    border-radius: 0px; /* Rounded corners */
    padding: 20px; /* Inner spacing */
    margin: 10px 0; /* Outer spacing between posts */
    background-color: #f9f9f9; /* Background color */
}

.blog-page ul {
 list-style: none;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Merriweather', serif;
    color: #2c3e50;
}

.container {
    padding: 20px;
}

main {
    text-align: justify;
    padding: 20px 0;
}

footer {
    margin-top: 50px;
    text-align: center;
    font-size: 14px;
    color: #7f8c8d;
}

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

.social-links a {
    text-decoration: none;
    margin: 0 0.5em;
    transition: opacity 0.2s;
}

.social-links a:hover {
    opacity: 0.7;
}

/* Featured posts */
.featured-posts {
    margin-bottom: 2em;
    padding-bottom: 2em;
    border-bottom: 1px solid #ddd;
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1em;
}

.featured-card {
    background: #f5f5f5;
    padding: 1em;
    border-radius: 4px;
    border-left: 3px solid #2c3e50;
}

.featured-card h3 {
    margin: 0 0 0.3em 0;
    font-size: 1.1em;
}

.featured-card .date {
    color: #888;
    font-size: 0.85em;
}

.featured-card p {
    margin: 0.5em 0 0 0;
    font-size: 0.9em;
    color: #555;
}

/* Archive section */
.archive-section h2 {
    margin-bottom: 0.5em;
}

.archive-filters {
    margin-bottom: 1.5em;
    padding: 0.8em;
    background: #f9f9f9;
    border-radius: 4px;
    font-size: 0.9em;
}

.tag-link {
    margin-left: 0.5em;
    padding: 0.2em 0.5em;
    background: #e0e0e0;
    border-radius: 3px;
    text-decoration: none;
    color: #333;
}

.tag-link:hover {
    background: #2c3e50;
    color: #fff;
}

.year-group {
    margin-bottom: 1.5em;
}

.year-heading {
    color: #2c3e50;
    border-bottom: 1px solid #ddd;
    padding-bottom: 0.3em;
    margin-bottom: 0.5em;
}

.post-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.post-list li {
    padding: 0.4em 0;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.5em;
}

.post-list .date {
    color: #888;
    font-size: 0.85em;
    min-width: 50px;
}

.post-tags {
    margin-left: auto;
}

.tag {
    font-size: 0.75em;
    background: #e8e8e8;
    padding: 0.1em 0.4em;
    border-radius: 2px;
    color: #666;
    margin-left: 0.3em;
}

/* Tags page */
.tag-section {
    margin-bottom: 2em;
}

.tags-page h2 {
    color: #2c3e50;
    border-bottom: 1px solid #ddd;
    padding-bottom: 0.3em;
}

nav ul {
    list-style-type: none;
    display: flex;
    justify-content: center;
}

nav ul li{
    margin-right: 20px;
}

nav ul li:last-child {
    margin-right: 0;
}

nav a.current {
    font-weight: bold;
    text-decoration: underline;
}

/* Hero section */
.hero {
    text-align: center;
    padding: 2em 0 1em;
    border-bottom: 1px solid #ddd;
    margin-bottom: 2em;
}

.hero h2 {
    font-size: 1.3em;
    color: #555;
    font-weight: normal;
    margin-bottom: 0.5em;
}

.hero p {
    max-width: 600px;
    margin: 0 auto;
    font-size: 1.1em;
}

/* Two column layout */
.two-columns {
    display: flex;
    gap: 2em;
    margin-bottom: 2em;
}

.column {
    flex: 1;
    padding: 1.5em;
    background: #f5f5f5;
    border-radius: 4px;
}

.column h3 {
    margin-top: 0;
    border-bottom: 2px solid #2c3e50;
    padding-bottom: 0.5em;
}

.column ul {
    padding-left: 1.2em;
    margin-bottom: 1.5em;
}

.column li {
    margin-bottom: 0.5em;
}

/* Buttons */
.button {
    display: inline-block;
    padding: 0.6em 1.2em;
    background: #2c3e50;
    color: #fff;
    text-decoration: none;
    border-radius: 3px;
    font-size: 0.95em;
}

.button:hover {
    background: #1a252f;
}

/* Recent writing */
.recent-writing {
    padding-top: 1em;
    border-top: 1px solid #ddd;
}

.recent-writing ul {
    list-style: none;
    padding: 0;
}

.recent-writing li {
    padding: 0.5em 0;
    border-bottom: 1px solid #eee;
}

.recent-writing .date {
    color: #888;
    font-size: 0.9em;
    margin-left: 0.5em;
}

/* Responsive */
@media (max-width: 700px) {
    body {
        font-size: 16px;
        padding: 10px;
    }
    
    .container {
        padding: 10px;
    }
    
    main {
        padding: 10px 0;
    }
    
    h1 {
        font-size: 1.5em;
    }
    
    .hero {
        padding: 1em 0 0.5em;
        margin-bottom: 1em;
    }
    
    .hero h2 {
        font-size: 1em;
    }
    
    .hero p {
        font-size: 0.95em;
    }
    
    .two-columns {
        flex-direction: column;
        gap: 1em;
        margin-bottom: 1em;
    }
    
    .column {
        padding: 1em;
    }
    
    .column ul {
        margin-bottom: 1em;
    }
    
    nav ul {
        flex-wrap: wrap;
        gap: 0.5em;
    }
    
    nav ul li {
        margin-right: 10px;
    }
    
    footer {
        margin-top: 20px;
    }
}

