.references-page {
    color: var(--tmava);
    background: white;
}

.references-years {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-block-start: clamp(20px, 3vw, 36px);
}

.references-years a {
    display: grid;
    place-items: center;
    min-width: 62px;
    min-height: 44px;
    padding: 4px 8px;
    border-radius: 8px;
    background: var(--brand-rust);
    color: white;
    text-decoration: none;
    font-weight: 700;
}

.references-years a:hover {
    background: white;
    color: #241e0e;
}

.references-years a:focus-visible {
    outline: 2px solid white;
    outline-offset: 3px;
}

.reference-year {
    padding-block: var(--page-section-space);
    scroll-margin-top: 18px;
}

.reference-year:nth-child(4n + 2) {
    background: var(--brand-peach-surface);
}

.reference-year:nth-child(4n) {
    background: var(--brand-honey-surface);
}

.reference-year-inner {
    display: grid;
    grid-template-columns: minmax(92px, 1fr) minmax(0, 5fr);
    gap: clamp(20px, 4vw, 60px);
}

.reference-year h2 {
    color: var(--brand-rust);
}

.reference-projects {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: clamp(24px, 4vw, 60px);
    row-gap: clamp(22px, 3vw, 38px);
}

.reference-description {
    margin-top: 8px;
    max-width: 61ch;
    line-height: 1.6;
    overflow-wrap: anywhere;
}

@media (max-width: 820px) {
    .reference-year-inner {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 575px) {
    .reference-projects {
        grid-template-columns: 1fr;
    }
}
