* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body, html {
    background: rgb(6, 6, 6);
    color: #fff;
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    min-height: 100vh;
    margin: 0;
    padding: 0;
}

.container {
    max-width: 75rem;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.header {
    text-align: center;
    margin: 0 0 2rem 0;
    padding: 1rem 0 0 0;
}

.subtitle {
    color: #fff;
    font-size: 1rem;
    margin: 0;
    opacity: 0.8;
    font-weight: 400;
}

.rainbow {
    background: linear-gradient(90deg, #2800bc, #3d0098, #6c00c2, #8100ec);
    background-size: 400% 400%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: rainbow 4s ease infinite;
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.0625rem;
    display: inline-block;
    padding: 0 0.625rem;
}

@keyframes rainbow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(18.75rem, 1fr));
    gap: 2rem;
    padding: 1rem 0;
}

.entry-card {
    background: #1a1a1a;
    overflow: hidden;
    border: 0.0625rem solid #2a2a2a;
    text-align: center;
    padding: 1rem;
}

.entry-image {
    width: 100%;
    height: 12.5rem;
    object-fit: cover;
    display: block;
}

.entry-content {
    padding: 1.5rem;
}

.entry-title {
    font-size: 1.2rem;
    margin: 0.5rem 0;
    display: inline-block;
    padding: 0 0.3125rem;
}

.entry-description {
    color: #aaa;
    font-size: 0.85rem;
    line-height: 1.4;
    text-align: center;
    margin: 0;
}

@media (max-width: 48em) {
    .rainbow {
        font-size: 2rem;
    }
    
    .grid-container {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

@media (max-width: 30em) {
    .rainbow { font-size: 1.6rem; }
    .entry-image { height: 10rem; }
}

@media (prefers-reduced-motion: reduce) {
    .rainbow { animation: none; }
    .sparkle { animation: none; }
}

a {
    color: #fff;
}

.sparkle {
    pointer-events: none;
    position: fixed;
    font-family: monospace;
    font-weight: bold;
    font-size: 0.5rem;
    animation: sparkle-fade 0.8s forwards;
    z-index: 1000;
    text-shadow: 0 0 0.1875rem currentColor;
}

@keyframes sparkle-fade {
    0% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
    50% {
        opacity: 0.8;
        transform: scale(0.9) translateY(-0.625rem);
    }
    100% {
        opacity: 0;
        transform: scale(0.6) translateY(-1.25rem);
    }
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgb(6,6,6);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    z-index: 9999;
}

.overlay-button {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 1.3rem;
    text-decoration: none;
    cursor: pointer;
    padding: 0.5rem 1rem;
    appearance: none;
    -webkit-appearance: none;
}

.overlay-button:hover {
    text-decoration: underline;
}

.overlay-button:focus {
    outline: none;
}