@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@500;700;800;900&family=Open+Sans:wght@400;600;700&display=swap');

:root {
    --stage: #14161f;
    --stage-raised: #1d2030;
    --paper: #f4f5f2;
    --ink: #14161f;
    --tape: #b7bcc4;
    --cobalt: #2b3bff;
    --cobalt-light: #a3abff;
    --muted-on-stage: #b4b8c6;
    --muted-on-paper: #4d5263;
    --page-pad: clamp(1.25rem, 5vw, 4rem);
    --content-max: 72rem;
    --font-head: 'Montserrat', system-ui, sans-serif;
    --font-body: 'Open Sans', system-ui, sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 5rem;
}

body {
    margin: 0;
    background: var(--stage);
    color: #fff;
    font-family: var(--font-body);
    font-size: 1.0625rem;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
}

:focus-visible {
    outline: 3px solid var(--cobalt-light);
    outline-offset: 3px;
}

.on-paper :focus-visible {
    outline-color: var(--cobalt);
}

.wrap {
    width: min(100%, var(--content-max));
    margin-inline: auto;
    padding-inline: var(--page-pad);
}

.heading {
    font-family: var(--font-head);
    margin: 0;
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.02em;
    font-size: clamp(2.25rem, 6vw, 4rem);
}

.text-muted {
    color: var(--muted-on-stage);
}

.text-measure {
    max-width: 62ch;
}

/* Header */

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: var(--stage);
    border-bottom: 1px solid rgb(255 255 255 / 0.12);
}

.site-header__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem 2rem;
    padding-block: 0.75rem;
}

.brand {
    font-family: var(--font-head);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    font-weight: 800;
    font-size: 1.05rem;
    letter-spacing: 0;
}

.brand img {
    height: 2.5rem;
    width: auto;
}

.nav {
    font-family: var(--font-head);
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem 1.5rem;
    font-weight: 500;
}

.nav a {
    text-decoration: none;
    padding-block: 0.25rem;
    border-bottom: 2px solid transparent;
}

.nav a:hover {
    border-bottom-color: var(--cobalt-light);
}

/* Hero */

.hero {
    display: grid;
    grid-template-columns: 1fr;
}

.hero__text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1.5rem;
    padding: clamp(2.5rem, 6vw, 5rem) var(--page-pad);
}

.hero__date {
    display: flex;
    align-items: flex-end;
    align-items: last baseline;
    gap: 1rem;
    margin: 0 0 0.75rem;
}

.hero__day {
    font-family: var(--font-head);
    font-weight: 800;
    line-height: 0.8;
    letter-spacing: -0.05em;
    font-size: clamp(6rem, 18vw, 11rem);
    color: var(--cobalt-light);
}

.hero__month {
    font-family: var(--font-head);
    font-weight: 600;
    font-size: clamp(1.4rem, 3.5vw, 2.25rem);
    line-height: 1.1;
}

.hero__title {
    font-family: var(--font-head);
    margin: 0;
    font-weight: 700;
    font-size: clamp(1.5rem, 3.4vw, 2.25rem);
    line-height: 1.15;
    max-width: 20ch;
}

.hero__meta {
    margin: 0;
    color: var(--muted-on-stage);
}

.hero__secret {
    color: var(--stage);
}

.hero__photo {
    min-height: 18rem;
    background: var(--stage-raised);
}

.hero__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (min-width: 56rem) {
    .hero {
        grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
        min-height: min(40rem, 80vh);
    }

    .hero__text {
        padding-left: max(var(--page-pad), calc((100vw - var(--content-max)) / 2 + var(--page-pad)));
    }
}

/* Buttons */

.btn {
    font-family: var(--font-head);
    display: inline-block;
    align-self: flex-start;
    padding: 0.8rem 1.5rem;
    border: 0;
    border-radius: 0.25rem;
    background: var(--cobalt);
    color: #fff;
    font: inherit;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

.btn:hover {
    background: #1c2be0;
}

.btn--plain {
    background: transparent;
    color: inherit;
    box-shadow: inset 0 0 0 2px currentColor;
}

.btn--plain:hover {
    background: var(--ink);
    color: var(--paper);
}

.btn--small {
    padding: 0.5rem 1rem;
    font-size: 0.95rem;
}

/* Setlist (agenda) */

.section {
    padding-block: clamp(3.5rem, 9vw, 7rem);
}

.section--flush {
    padding-top: 0;
}

.on-paper {
    background: var(--paper);
    color: var(--ink);
}

.setlist {
    position: relative;
    margin-top: 2.5rem;
}

.setlist::before,
.setlist::after {
    content: '';
    position: absolute;
    top: -1.1rem;
    width: 5.5rem;
    height: 2rem;
    background: var(--tape);
    opacity: 0.85;
}

.setlist::before {
    left: -0.5rem;
    transform: rotate(-6deg);
}

.setlist::after {
    right: -0.5rem;
    transform: rotate(5deg);
}

.setlist__sheet {
    margin: 0;
    padding: 0;
    list-style: none;
    background: #fff;
    box-shadow: 0 1px 0 rgb(20 22 31 / 0.15), 0 14px 30px -18px rgb(20 22 31 / 0.5);
}

.set-row {
    display: grid;
    grid-template-columns: 5.5rem 1fr;
    gap: 0.25rem 1.25rem;
    align-items: center;
    padding: 1.5rem clamp(1rem, 3vw, 2rem);
    border-bottom: 2px dashed var(--tape);
}

.set-row:last-child {
    border-bottom: 0;
}

.set-row__date {
    grid-row: span 2;
    text-align: center;
    line-height: 1;
}

.set-row__day {
    font-family: var(--font-head);
    display: block;
    font-weight: 800;
    font-size: 3rem;
    letter-spacing: -0.04em;
    color: var(--cobalt);
}

.set-row__month {
    font-family: var(--font-head);
    display: block;
    font-weight: 600;
    font-size: 0.95rem;
}

.set-row__main {
    min-width: 0;
}

.set-row__title {
    font-family: var(--font-head);
    margin: 0;
    font-weight: 700;
    font-size: clamp(1.25rem, 2.6vw, 1.6rem);
    line-height: 1.1;
}

.set-row__meta {
    margin: 0;
    color: var(--muted-on-paper);
}

.set-row__action {
    grid-column: 2;
    margin-top: 0.5rem;
}

@media (min-width: 40rem) {
    .set-row {
        grid-template-columns: 6rem 1fr auto;
    }

    .set-row__date {
        grid-row: auto;
    }

    .set-row__action {
        grid-column: auto;
        margin-top: 0;
    }
}

.set-row--played .set-row__day,
.set-row--played .set-row__month {
    color: var(--muted-on-paper);
}

.set-row--played .set-row__title {
    color: var(--muted-on-paper);
    text-decoration: line-through;
    text-decoration-thickness: 3px;
}

.set-row--played .set-row__day {
    font-size: 2rem;
}

.set-row--played {
    padding-block: 1rem;
}

.setlist__subhead {
    font-family: var(--font-head);
    margin: 3rem 0 0;
    font-weight: 700;
    font-size: 1.25rem;
}

.setlist-empty {
    margin: 0;
    padding: 2rem clamp(1rem, 3vw, 2rem);
    background: #fff;
    font-size: 1.2rem;
}

/* Photo wall */

.edition {
    margin-top: 3.5rem;
}

.edition__title {
    font-family: var(--font-head);
    margin: 0 0 1rem;
    font-weight: 700;
    font-size: 1.75rem;
}

.wall {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.wall__item {
    position: relative;
    height: 12rem;
    max-width: 30rem;
    margin: 0;
    background: var(--stage-raised);
    overflow: hidden;
}

.wall__btn {
    display: block;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    background: none;
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: zoom-in;
}

.wall__btn img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.25s ease;
}

.wall__btn:hover img {
    transform: scale(1.04);
}

.wall__caption {
    position: absolute;
    inset: auto 0 0 0;
    padding: 1.5rem 0.75rem 0.6rem;
    background: linear-gradient(to top, rgb(20 22 31 / 0.85), transparent);
    font-size: 0.95rem;
    font-weight: 500;
}

/* Lightbox */

.lightbox {
    width: 100%;
    max-width: none;
    height: 100%;
    max-height: none;
    padding: 0;
    border: 0;
    background: rgb(10 11 18 / 0.94);
    color: #fff;
}

.lightbox[open] {
    display: grid;
    grid-template-rows: 1fr auto;
    justify-items: center;
    gap: 0.75rem;
    padding: 3.5rem 4rem 1.25rem;
}

.lightbox::backdrop {
    background: rgb(10 11 18 / 0.94);
}

.lightbox__img {
    min-height: 0;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.lightbox__caption {
    margin: 0;
    font-family: var(--font-head);
    font-weight: 600;
}

.lightbox__nav,
.lightbox__close {
    position: absolute;
    display: grid;
    place-items: center;
    width: 3rem;
    height: 3rem;
    border: 0;
    border-radius: 50%;
    background: var(--cobalt);
    color: #fff;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
}

.lightbox__nav:hover,
.lightbox__close:hover {
    background: #1c2be0;
}

.lightbox__nav {
    top: 50%;
    transform: translateY(-50%);
}

.lightbox__nav--prev {
    left: 0.75rem;
}

.lightbox__nav--next {
    right: 0.75rem;
}

.lightbox__close {
    top: 0.75rem;
    right: 0.75rem;
}

@media (max-width: 40rem) {
    .lightbox[open] {
        padding-inline: 0.5rem;
    }

    .lightbox__nav {
        top: auto;
        bottom: 0.75rem;
        transform: none;
    }
}

/* About + contact */

.about {
    display: grid;
    gap: 2.5rem;
}

@media (min-width: 56rem) {
    .about {
        grid-template-columns: 1fr 1fr;
        gap: 5rem;
    }
}

.about p {
    margin: 0 0 1.25rem;
}

.facts {
    margin: 0;
    display: grid;
    gap: 1.75rem;
}

.facts dt {
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 1.25rem;
}

.facts dd {
    margin: 0.25rem 0 0;
    color: var(--muted-on-paper);
    font-style: normal;
}

.facts address {
    font-style: normal;
}

.facts a {
    color: var(--cobalt);
    font-weight: 600;
}

.socials {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 0.75rem;
}

/* Sponsors + footer */

.sponsors {
    padding-block: 3rem;
}

.sponsors__label {
    margin: 0 0 1.5rem;
    color: var(--muted-on-stage);
}

.sponsors__logos {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.5rem 3rem;
}

.sponsors__logos img {
    height: 4rem;
    width: auto;
    object-fit: contain;
}

.logo-invert {
    filter: invert(1);
}

.site-footer {
    padding-block: 2rem;
    border-top: 1px solid rgb(255 255 255 / 0.12);
    color: var(--muted-on-stage);
    font-size: 0.95rem;
}

/* Dialog */

.dialog {
    width: min(42rem, calc(100% - 2rem));
    max-height: calc(100dvh - 2rem);
    padding: 0;
    border: 0;
    background: var(--paper);
    color: var(--ink);
    overflow-y: auto;
}

.dialog::backdrop {
    background: rgb(10 11 18 / 0.8);
}

.dialog__photo {
    width: 100%;
    height: 16rem;
    object-fit: cover;
}

.dialog__body {
    padding: 1.75rem clamp(1.25rem, 4vw, 2.25rem) 2rem;
}

.dialog__when {
    margin: 0 0 0.5rem;
    font-weight: 600;
    color: var(--cobalt);
}

.dialog__title {
    font-family: var(--font-head);
    margin: 0 0 1rem;
    font-weight: 800;
    font-size: clamp(1.75rem, 5vw, 2.25rem);
    line-height: 1.15;
}

.dialog__body p {
    margin: 0 0 1rem;
    max-width: 62ch;
}

.dialog__lineup {
    margin: 1.5rem 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 0.75rem;
}

.dialog__lineup strong {
    display: block;
}

.dialog__where {
    color: var(--muted-on-paper);
}

@media (prefers-reduced-motion: no-preference) {
    .hero__day {
        animation: day-in 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) both;
    }

    @keyframes day-in {
        from {
            opacity: 0;
            transform: translateY(0.4em);
        }
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}
