body {
    font-family: 'Lato', sans-serif;
    background-color: #F8F5F2;
    color: #212121;
    margin: 0;
}

@keyframes rotate-counter-clockwise {
    from {
        transform: rotate(-180deg);
    }
    to {
        transform: rotate(0deg);
    }
}

.cursor {
    position: fixed;
    transform: translate(-50%, -50%) scale(1.6);
    pointer-events: none;
    transition: transform 0.3s ease-in-out, opacity .4s ease-in-out;
    z-index: 9999;
}

.cursor-icon {
    border-radius: 50px;
    padding: 10px;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(3px);
}

.cursor.is-hidden {
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
}

.text-group {
    fill: #f8f5f2;
}

.cursor:not(.is-hidden) .text-group {
    animation: rotate-counter-clockwise .7s ease-in-out 1;
}

.hero-section {
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    text-align: center;
    margin-bottom: 3rem;
}

.hero-title {
    font-family: 'Lora';
    font-size: 3.5rem;
    font-weight: 700;
    color: #212121;
    margin-bottom: 0.5rem;
}

.hero-subtitle {
    font-size: 1.125rem;
    color: #5c5c5c;
    max-width: 42rem;
    margin-left: auto;
    margin-right: auto;
}

.hero-button{
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: #212121;
    color: #f8f5f2;
    font-family: Lato;
    font-weight: 600;
    text-decoration: none;
    border-radius: 0.375rem;
    transition: transform 0.3s cubic-bezier(.72,0,.62,1.18);
}

.filter-bar {
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    padding-top: 1rem;
    padding-bottom: 1rem;
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    position: sticky;
}

.filter-link {
    padding: 0.5rem 0;
    border-bottom: 2px solid transparent;
    color: #6b7280;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s, border-color 0.2s;
    cursor: pointer;
}

.filter-link.active {
    color: #212121;
    border-bottom-color: #63280d;
}

.postopbar {
    position: relative;
    height: 1px;
    background-color: #000000;
    left: 50%;
    width: 0%;
    transition: all 1.5s ease-in-out;
}

#errormsg {
    display: none;
    position: relative;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    margin-top: 2rem;
    font-size: 4rem;
    font-weight: 700;
    width: 80%;
    height: 100%;
    color: #d9534f;
}

.posts-section {
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.posts-grid {
    column-count: 1;
    column-gap: 0;
}

.post-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.post-card {
    padding: 1.5rem;
    border-bottom-width: 1px;
    border-bottom-style: solid;
    border-bottom-color: #83838300;
    border-left-width: 1px;
    border-left-style: solid;
    border-left-color: #83838300;
    border-right-width: 1px;
    border-right-style: solid;
    border-right-color: #83838300;
    transition: background-color 0.3s ease;
    break-inside: avoid;
    width: 100%;
    box-sizing: border-box;
    transition: all 2s ease;
}

.post-card.hidden {
    display: none;
}

.post-card-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.875rem;
    color: #6b7280;
    text-transform: uppercase;
    margin-bottom: 1rem;
    font-weight: 500;
}

.post-card-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 0.25rem;
    display: block;
}

.post-card-content {
    padding-top: 1.5rem;
}

.post-card-title {
    font-family: 'Lora', serif;
    font-size: 1.5rem;
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 0.5rem;
}

.no-results-message {
    display: none;
    text-align: center;
    color: #6b7280;
    margin-top: 2rem;
}

.no-results-message.visible {
    display: block;
}

.no-results-message p {
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0;
}

.no-results-message span {
    font-size: 1rem;
}

.Footer {
    margin-top: 3rem;
    padding: 2rem 0;
    text-align: center;
    color: #6b7280;
}

.bottomSpacer {
    height: 2rem;
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    will-change: transform, opacity;
    transition: opacity 0.7s ease-out,
        transform 0.7s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.animate-on-scroll-for-cards {
    opacity: 0;
    transform: scale(0.8);
    will-change: transform, opacity;
    transition: opacity 0.7s ease-out,
        transform 0.7s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

.animate-on-scroll-for-cards.is-visible {
    opacity: 1;
    transform: scale(1);
}