/*
   If you are reading this, I need you to know that this css was written with blood, sweat, and mostly tears. I wrote the bones of this css as my very first web development project ever.
   Now, retrofitting it for a django project has been an enormously painful task.
   I'm doing this because I want to keep the spirit of my original design, rather than make something that looks like every other website today.

   2026/11: moved onto the shared base (css/site.css) and its dark tokens. The layout is the original one:
   a bordered page with a header band, the write-up, then the poster grid.
*/

.decade {
    border: 1px solid var(--line-strong);
    background: var(--stage);
}

.decade-header {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 48px 24px;
    background: var(--panel);
    border-bottom: 1px solid var(--line);
    text-align: center;
}

.decade-header h1 {
    font-size: clamp(30px, 4.5vw, 44px);
    line-height: 1.05;
}

.decade-subtitle {
    font-size: 19px;
    color: var(--text-soft);
}

.decade-description {
    margin: 0 auto;
    padding: 40px 32px;
}

.decade-figure {
    margin: 0 0 1em;
}

.decade-figure img {
    display: block;
    height: auto;
    border: 1px solid var(--line-strong);
}

.decade-figure figcaption {
    margin-top: 8px;
    font-size: 13px;
    color: var(--muted);
}

.section-label {
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.poster-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(200px, 100%), 1fr));
    gap: 16px;
    align-items: start;
    padding: 32px;
    border-top: 1px solid var(--line);
}

.poster {
    display: block;
    background: var(--panel);
    border: 1px solid var(--line);
    color: var(--text);
    text-decoration: none;
}

.poster:hover {
    border-color: var(--node);
}

.poster img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 2/3;
    object-fit: cover;
}

.poster p {
    padding: 14px;
    font-size: 15px;
    text-align: center;
}

@media (max-width: 480px) {
    .decade-description,
    .poster-grid {
        padding: 24px 16px;
    }

    .poster-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .poster p {
        padding: 10px;
        font-size: 14px;
    }
}
