:root {
    --accent: #22d3ee;
    /* cyan */
    --accent-2: #8b5cf6;
    /* violet */
    --accent-2-rgb: 139, 92, 246;
    /* for rgba() fills */
    --bg-dark: #0b0f14;
    /* page background */
    --bg-card: #0f141b;
    /* cards and elevated surfaces */
    --bg-hero: linear-gradient(180deg, #0d1117 0%, #0b0f14 100%);
    --text-main: #e6edf3;
    --text-muted: #9fb0c0;
    --border: #1c2633;
}

/* Page */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    background: var(--bg-dark);
    color: var(--text-main);
}

/* ==== HERO HEADER ==== */
.hero {
    position: relative;
    color: #f0f0f0;
    padding: 0 20px;
    text-align: center;
    overflow: hidden;
    /* Layered background: vignette + radial glow */
    background:
        radial-gradient(120% 80% at 50% 10%, rgba(79, 70, 229, 0.2), rgba(12, 16, 24, 0.05) 60%, rgba(11, 15, 20, 1) 100%),
        radial-gradient(85% 70% at 50% 20%, rgba(56, 189, 248, 0.35), rgba(37, 99, 235, 0.25) 35%, rgba(11, 15, 20, 0.6) 70%),
        radial-gradient(120% 100% at 50% 0%, #0e1622 0%, #0b0f14 60%);
    height: 44vh;
    min-height: 260px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
}


/* Hero text content */
.hero-content {
    position: relative;
    z-index: 3;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-inner {
    display: grid;
    gap: 16px;
    place-items: center;
    max-width: 960px;
    padding: 24px 0;
}

.hero-title {
    margin: 0;
    text-transform: uppercase;
    color: #ffffff;
    font-family: 'Archivo Black', sans-serif;
    font-weight: 900;
    font-size: clamp(3rem, 12vw, 6rem);
    line-height: 0.8;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    margin: 0;
    max-width: 780px;
    color: var(--text-muted);
    font-size: 1.05rem;
}



/* Responsive */
@media (max-width: 600px) {
    .hero {
        padding: 80px 16px 100px;
    }

    .hero-subtitle {
        font-size: .96rem;
    }
}

/* Responsive header */
@media (max-width: 600px) {
    header {
        padding: 32px 16px 24px;
    }


    .hero-subtitle {
        font-size: 0.95rem;
    }
}


h1 {
    margin: 0;
    font-size: 1.1rem;
    letter-spacing: .3px;
}

main {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Section titles */
.section-year {
    margin-top: 4px;
}

/* Sticky year header */
.year-title {
    position: sticky;
    top: 0;
    background: rgba(13, 17, 23, 0.9);
    backdrop-filter: blur(4px);
    margin: 0;
    padding: 0 10px;
    line-height: 56px;
    /* taller header without padding */
    z-index: 3;
    font-size: 1.4rem;
    font-weight: 700;
    border-left: 4px solid var(--accent);
}

.month-title {
    margin: 14px 0 8px;
    font-size: .95rem;
    opacity: .8;
}

/* Grid */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 8px;
}

/* Card */
.card {
    background: var(--bg-card);
    border-color: var(--border);
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    min-height: 100%;
    transition: transform 0.2s ease, box-shadow 0.3s ease;
}

.card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, .35);
    border-color: #263243;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.5);
}

/* Square thumb placeholder (use real images later) */
.thumb {
    width: 100%;
    aspect-ratio: 1/1;
    background: radial-gradient(120% 80% at 0% 0%, #121822, #0f141b);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .9rem;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border);
}

.thumb .badge {
    font-size: .7rem;
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(34, 211, 238, 0.12);
    border: 1px solid rgba(34, 211, 238, 0.25);
    color: var(--text-main);
}

/* Caption */
.caption {
    padding: 8px 10px;
    display: grid;
    gap: 4px;
}

.caption .title {
    font-weight: 600;
    font-size: .92rem;
    color: var(--text-main);
}

.caption .meta {
    font-size: .8rem;
    color: var(--text-muted);
    opacity: .85;
}

/* Skeleton while month renders */
.month-skeleton {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 8px;
}

.skel {
    height: 160px;
    border-radius: 12px;
    background: linear-gradient(90deg, #101621, #0f141b, #101621);
    background-size: 200% 100%;
    animation: shine 1.2s linear infinite;
}

@keyframes shine {
    0% {
        background-position: 200% 0
    }

    100% {
        background-position: -200% 0
    }
}

/* Modal (stays for future) */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(3, 6, 12, .85);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 50;
}

.modal:not(.hidden) {
    display: flex;
}

.modal-content {
    position: relative;
    width: 90%;
    max-width: 900px;
    background: #000;
    border-radius: 10px;
    overflow: hidden;
}

.modal-content iframe {
    width: 100%;
    height: 500px;
}

.close {
    position: absolute;
    top: 8px;
    right: 12px;
    color: #fff;
    background: transparent;
    border: 0;
    font-size: 32px;
    cursor: pointer;
}

/* Responsive modal */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        max-width: none;
    }

    .modal-content iframe {
        height: 55vw;
    }

    .close {
        font-size: 28px;
        top: 4px;
        right: 8px;
    }
}

@media (max-width: 480px) {
    .modal-content iframe {
        height: 60vw;
    }
}

/* Sentinel spacer */
#sentinel {
    height: 80px;
}