.festival-list,
.festival-reading {
    --festival-ink: #39251d;
    --festival-accent: #963b19;
    --festival-muted: #694d40;
    --festival-line: #e9d6c5;
    --festival-paper: #fffdf8;
}

.festival-heading {
    margin-block: 8px 16px;
}

.festival-heading h1 {
    margin: 0 0 6px;
    color: var(--festival-ink);
    font-size: clamp(1.7rem, 4.5vw, 2.6rem);
    line-height: 1.3;
}

.festival-heading p {
    margin: 4px 0;
    color: var(--festival-muted);
}

.festival-date-list time {
    color: var(--festival-accent);
    font-size: 1.12rem;
    font-weight: 700;
}

.festival-location {
    font-size: .92rem;
    color: var(--festival-muted);
}

.festival-location a {
    color: var(--festival-accent);
    text-decoration: underline;
}

.festival-date-list {
    margin: 8px 0;
    padding: 0;
    list-style: none;
}

.festival-date-list li {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 3px 10px;
    margin-bottom: 4px;
}

.festival-years {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 12px;
    margin-block: 0 14px;
    border-block-end: 1px solid var(--festival-line);
}

.festival-years .chip {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 6px 12px;
    color: var(--festival-muted);
    background: transparent;
    border: 0;
    border-block-end: 2px solid transparent;
    border-radius: 0;
    box-shadow: none;
    text-decoration: none;
    font-weight: 700;
}

.festival-years .chip:is(:hover, [aria-current="page"]) {
    color: var(--festival-accent);
    border-block-end-color: var(--festival-accent);
}

.festival-filter {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr) auto;
    align-items: end;
    gap: 6px 10px;
    max-width: 760px;
    margin-block: 10px 16px;
}

.festival-filter label {
    min-width: 0;
    color: var(--festival-ink);
    font-size: .88rem;
    font-weight: 700;
}

.festival-filter input[type="search"],
.festival-filter select {
    display: block;
    width: 100%;
    min-height: 44px;
    margin-block-start: 4px;
    padding: 6px 8px;
    border: 1px solid #bb9e8c;
    border-radius: 7px;
    background: #fff;
    color: var(--festival-ink);
    font: inherit;
    font-weight: 400;
}

.festival-filter .btn {
    min-height: 44px;
}

#festival-list-results {
    scroll-margin-block-start: 7rem;
}

.festival-filter-status {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .1rem .85rem;
}

.festival-filter-status p {
    margin: 0;
}

.festival-filter-status a {
    display: inline-flex;
    align-items: center;
    min-block-size: 44px;
}

.festival-months {
    display: flex;
    gap: 5px;
    overflow-x: auto;
    padding: 3px 3px 5px;
    scrollbar-width: thin;
    border-block-end: 1px solid var(--festival-line);
    margin-block: 4px 12px;
}

.festival-months a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 3px 8px;
    white-space: nowrap;
    color: var(--festival-accent);
    font-size: .92rem;
}

.festival-month > h2 {
    margin-block: 22px 1px;
    color: var(--festival-ink);
    font-size: 1.28rem;
    scroll-margin-block-start: 140px;
}

.festival-entries {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0 20px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.festival-entries li {
    min-width: 0;
    border-block-end: 1px solid var(--festival-line);
}

.festival-entry {
    display: flex;
    align-items: center;
    gap: 12px;
    height: 100%;
    padding: 12px 2px;
    color: var(--festival-ink);
    text-decoration: none;
    overflow-wrap: anywhere;
}

.festival-entry:hover h3 {
    text-decoration: underline;
    text-underline-offset: .18em;
}

.festival-entry img {
    display: block;
    flex: 0 0 auto;
    width: clamp(76px, 22vw, 144px);
    height: auto;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    border-radius: 7px;
    background: var(--festival-paper);
}

.festival-entry time {
    color: var(--festival-accent);
    font-size: .88rem;
    font-weight: 700;
}

.festival-entry h3 {
    margin: 2px 0;
    font-size: 1.1rem;
    line-height: 1.35;
}

.festival-estimate {
    display: inline-block;
    margin-inline-start: 5px;
    color: #644018;
    font-size: .78rem;
    font-weight: 600;
}

.festival-entry p {
    margin: 0;
    color: var(--festival-muted);
    font-size: .94rem;
    line-height: 1.5;
}

.festival-photo {
    display: block;
    max-width: min(100%, 540px);
    height: auto;
    border-radius: 10px;
    margin-block: 12px 18px;
}

.festival-copy {
    max-width: 67ch;
    margin-block: 19px;
    line-height: 1.7;
}

.festival-copy h2 {
    margin: 0 0 5px;
    color: var(--festival-ink);
    font-size: 1.25rem;
}

.festival-copy p,
.festival-copy ol {
    margin-block: 4px 10px;
}

.festival-copy li {
    padding-block: 2px;
}

.festival-sources {
    margin-block: 14px 8px;
    color: var(--festival-muted);
    font-size: .94rem;
}

.festival-sources summary {
    width: fit-content;
    min-height: 44px;
    padding-block: 8px;
    cursor: pointer;
    font-weight: 700;
}

.festival-sources ul {
    margin-block: 0 8px;
}

.festival-sources a {
    color: var(--festival-accent);
    text-decoration: underline;
    text-underline-offset: .16em;
}

.festival-list a:focus-visible,
.festival-reading a:focus-visible,
.festival-filter :is(input, select, button):focus-visible,
.festival-sources summary:focus-visible {
    outline: 2px solid #22635b;
    outline-offset: 2px;
}

@media (max-width: 1040px) {
    .festival-entries {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 620px) {
    .festival-entries {
        grid-template-columns: minmax(0, 1fr);
    }

    .festival-entry img {
        width: clamp(76px, 24vw, 118px);
    }

    .festival-years {
        column-gap: 4px;
    }

    .festival-years .chip {
        padding-inline: 8px;
    }

    .festival-filter {
        gap: 6px;
    }

    .festival-filter .btn {
        padding-inline: 9px;
    }
}
