* {
    box-sizing: border-box;
}

body {
    margin: 0;

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    background: #f4f1e8;

    color: #243447;
}

.historical-page {
    width: min(1100px, 92%);

    margin: 0 auto;

    padding: 70px 0;
}

.historical-header {
    text-align: center;

    max-width: 750px;

    margin: 0 auto 60px;
}

.archive-kicker {
    margin: 0 0 10px;

    font-size: 0.9rem;

    font-weight: 700;

    letter-spacing: 0.15em;

    text-transform: uppercase;
}

.historical-header h1 {
    margin: 0 0 18px;

    font-size: clamp(2rem, 5vw, 3.5rem);

    line-height: 1.1;
}

.historical-header p:last-child {
    margin: 0;

    font-size: 1.1rem;

    line-height: 1.6;
}


/* ==========================================
   Year Grid
   ========================================== */

.archive-years h2 {
    margin-bottom: 25px;

    text-align: center;
}

.year-grid {
    display: grid;

    grid-template-columns:
        repeat(auto-fit, minmax(180px, 1fr));

    gap: 20px;
}

.year-card {
    display: flex;

    flex-direction: column;

    justify-content: center;

    min-height: 170px;

    padding: 25px;

    text-align: center;

    background: white;

    border: 1px solid #ddd8ca;

    border-radius: 12px;

    text-decoration: none;

    color: inherit;

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.year-card:hover,
.year-card:focus-visible {
    transform: translateY(-4px);

    box-shadow:
        0 8px 20px rgba(0, 0, 0, 0.12);

    outline: none;
}

.year-card .year {
    font-size: 2rem;

    font-weight: 700;
}

.year-card .year-title {
    margin-top: 8px;

    font-size: 0.95rem;

    font-weight: 600;
}

.year-card .photo-count {
    margin-top: 12px;

    font-size: 0.85rem;

    opacity: 0.7;
}


/* ==========================================
   Empty Archive Message
   ========================================== */

.archive-message {
    max-width: 700px;

    margin: 50px auto 0;

    padding: 25px;

    text-align: center;

    border-radius: 10px;

    background: rgba(255, 255, 255, 0.7);
}

.archive-message:empty {
    display: none;
}


/* ==========================================
   Mobile
   ========================================== */

@media (max-width: 600px) {

    .historical-page {
        padding: 45px 0;
    }

    .year-grid {
        grid-template-columns:
            repeat(2, 1fr);

        gap: 12px;
    }

    .year-card {
        min-height: 140px;

        padding: 18px;
    }

    .year-card .year {
        font-size: 1.6rem;
    }

}