/* Blog List Page Styles */

/* Layout fix to anchor footer to bottom */
html, body {
    height: 100%;
    overflow-x: hidden;
}

body {
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

/* Force footer to bottom without huge margin if content is short */
.footer {
    margin-top: 0 !important;
}

.blog-list-container {
    max-width: 800px;
    margin-top: 4rem;
}

.year-section {
    margin-bottom: 4rem;
}

.year-title {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-color);
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
}

.blog-list {
    list-style: none;
    padding: 0;
    margin: 2rem 0;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.blog-item {
    display: flex;
    align-items: baseline;
    gap: 2rem;
    text-decoration: none;
    transition: all 0.2s ease;
}

.blog-date {
    font-size: 0.75rem;
    color: var(--heading-color);
    min-width: 100px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0.8;
}

.blog-link {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    color: var(--heading-color);
    text-decoration: none;
    transition: color 0.15s ease;
    line-height: 1.3;
}

.blog-item:hover .blog-link {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 4px;
    text-decoration-thickness: 1px;
    text-decoration-color: rgba(255, 255, 255, 0.3);
}

.blog-item:hover .blog-date {
    opacity: 1;
}

@media (max-width: 600px) {
    .blog-item {
        flex-direction: column;
        gap: 0.5rem;
    }
    .blog-date {
        min-width: auto;
    }
    .blog-link {
        font-size: 1.1rem;
    }
}
