h1 {
    margin: 0 auto;
    text-align: center;
}

.blog-section {
    padding: 4rem 0;
}

.blog-section .section-header {
    margin-bottom: 3rem;
}

.blog-posts-header nav ul {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    max-width: 672px;
    margin: 0 auto;
}

.filter-button {
    border-radius: 2rem;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 2rem;
    border: 1px solid var(--color-muted-foreground);
    opacity: 0.6;
    transition: all 0.3s ease-out;
    font-size: 0.875rem;
    min-width: max-content;
    box-shadow: rgba(0, 0, 0, 0.05) 0px 1px 2px 0px;
    font-family: "Instrument Serif", serif;
    font-style: italic;
}

.filter-button.active.animate {
    opacity: 1;
    background-color: rgba(255, 255, 255, 0.6);
}

.filter-button > span {
    transition: transform 0.5s ease-out;
}

.filter-button.active > span {
    transform: scale(1.5);
}

.filter-button.active.animate > span {
    transform: scale(1);
}

.blog-posts-header {
    margin-bottom: 3rem;
}

.blog-posts-grid {
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));

    @media (max-width: 1024px) {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.blog-posts-grid > article {
    border-bottom: 1px solid var(--color-accent);
    border-left: 1px solid var(--color-accent);
    padding: 2rem;
    display: flex;
    flex-direction: column;

    @media (max-width: 1024px) {
        padding: 1rem;
    }
}

.blog-post-link {
    cursor: none;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-post-thumbnail {
    aspect-ratio: 16/10;
    overflow: hidden;
}

.blog-post-thumbnail img {
    object-fit: cover;
    width: 100%;
    height: 100%;
    transition: transform 0.3s ease, filter 0.3s ease;
    filter: grayscale(1);
}

.blog-post-link:hover img {
    transform: scale(1.1);
    filter: grayscale(0);
}

.blog-post-content {
    font-size: 0.75rem;
    padding: 1rem 0;
    display: flex;
    flex-direction: column;
    align-items: start;
    flex: 1;
}

.blog-post-title {
    font-size: 1.125rem;
    margin: 0.5rem 0;
    transition: background-color 0.3s ease;
}

.blog-post-link:hover .blog-post-title {
    background-color: var(--color-accent);
}

.blog-post-category {
    font-family: "Instrument Serif", serif;
    font-style: italic;
    background-color: var(--color-accent);
}

.blog-post-excerpt {
    margin-bottom: 2rem;
    color: var(--color-muted-foreground);
    letter-spacing: -0.025em;
    line-height: 1.5;
}

.blog-post-date {
    font-size: 0.75rem;
    color: var(--color-muted-foreground);
    margin-top: auto;
    margin-left: auto;
    letter-spacing: -0.025em;
}

.blog-posts-footer {
    padding: 3rem 0;
}

.pagination {
    font-size: 0.875rem;
    border: 1px solid var(--color-muted-foreground);
    border-radius: 0.5rem;
    width: fit-content;
    margin: 0 auto;
    padding: 0.5rem;
    background-color: rgba(255, 255, 255, 0.6);
    box-shadow: rgba(0, 0, 0, 0.05) 0px 1px 2px 0px;
}

.page-numbers {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.page-numbers li > a, .page-numbers li > span {
    padding: 0.5rem 1rem;
    border-radius: 0.25rem;
    font-family: "Instrument Serif", serif;
    font-style: italic;
}

.page-numbers li > span {
    background-color: var(--color-accent);
}