/* De Vliegenier (template-parts/shows/vliegenier.php).
   The flyer's charcoal and cyan, Rubik for the cube set, and the cubes in the
   colours of a Rubik's cube around the photo of the set. The flyer's green
   vines grow in from the corners: the top ones at the start, the bottom ones
   at the end. */

.vl {
    --charcoal: #222324;
    --deep: #111213;
    --cyan: #5fd3e0;
    --chalk: #f4f4f0;

    --show-accent: #0f8f9c;
    --show-accent-ink: var(--paper);
    --show-accent-text: #0b6f79;
    --ghost-hover: var(--cyan);
    --ghost-hover-ink: var(--deep);

    color: var(--chalk);
}

/* ---------- Hero: the title and the cube wall around the set ---------- */

.vl-hero {
    position: relative;
    overflow: hidden;
    padding: calc(var(--header-height) + var(--space-xl)) 0 var(--space-3xl);
    background-color: var(--deep);
}

/* The flyer's vines, in the corners only. The svg is drawn for the top left
   corner; the others mirror it. */
.vl-vines {
    position: absolute;
    width: clamp(9rem, 24vw, 22rem);
    height: auto;
    pointer-events: none;
}

.vl-vines--top-left {
    top: 0;
    left: 0;
}

.vl-vines--top-right {
    top: 0;
    right: 0;
    transform: scaleX(-1);
}

.vl-vines--bottom-left {
    bottom: 0;
    left: 0;
    transform: scaleY(-1);
}

.vl-vines--bottom-right {
    bottom: 0;
    right: 0;
    transform: scale(-1);
}

.vl-hero-inner {
    position: relative;
    z-index: 1;
    display: grid;
    gap: var(--space-xl);
    align-items: center;
}

.vl-cancelled {
    display: inline-block;
    margin-bottom: var(--space-md);
    padding: 0.3rem 0.8rem;
    border: 2px solid var(--cyan);
    font-family: 'Rubik', var(--font-sans);
    font-size: var(--text-sm);
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--cyan);
    transform: rotate(-3deg);
}

.vl-title {
    font-family: 'Rubik', var(--font-sans);
    font-size: clamp(3.25rem, 11vw, 7rem);
    font-weight: 900;
    line-height: 0.92;
    letter-spacing: -0.02em;
}

.vl-meta {
    margin-top: var(--space-md);
    font-size: var(--text-sm);
    line-height: 1.6;
    color: rgb(244 244 240 / 0.8);
}

.vl-meta s {
    text-decoration-color: #c41e3a;
    text-decoration-thickness: 2px;
}

/* The wall: cubes as on stage, a coloured sticker inside a black frame. */
.vl-wall {
    display: grid;
    gap: 3px;
}

.vl-wall--hero {
    grid-template-columns: repeat(6, 1fr);
}

.vl-cube {
    aspect-ratio: 1;
    padding: 12%;
    background-color: #050505;
}

.vl-cube::before {
    content: '';
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 12%;
    background-color: var(--c);
}

/* The photo of the set takes a block of cubes in the middle of the wall. */
.vl-photo--set {
    grid-column: 2 / 6;
    grid-row: 2 / 5;
}

.vl-photo {
    position: relative;
    display: block;
    padding: 0;
    border: 0;
    overflow: hidden;
    background: #000;
    cursor: zoom-in;
}

.vl-photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.vl-photo:hover img {
    transform: scale(1.03);
}

/* ---------- The body: charcoal like the flyer ---------- */

.vl-body {
    position: relative;
    padding-top: var(--space-3xl);
    background: linear-gradient(to bottom, var(--charcoal) 0%, var(--charcoal) 60%, var(--deep) 100%);
}

.vl-story {
    position: relative;
}

.vl-toaster {
    width: 3.5rem;
    margin-bottom: var(--space-sm);
}

.vl-story-text {
    max-width: 42rem;
}

.vl-story-text p {
    margin-bottom: var(--space-md);
    line-height: 1.7;
}

/* The flyer's quote about the toaster. */
.vl-story-text p:first-child {
    font-family: 'Rubik', var(--font-sans);
    font-size: var(--text-xl);
    font-weight: 600;
    line-height: 1.25;
    color: var(--cyan);
}

/* ---------- Timeline: what happened ---------- */

.vl-timeline {
    margin-top: var(--space-4xl);
}

.vl-heading {
    margin-bottom: var(--space-xl);
    font-family: 'Rubik', var(--font-sans);
    font-size: var(--text-2xl);
    font-weight: 800;
}

.vl-steps {
    position: relative;
    display: grid;
    gap: var(--space-2xl);
    padding-left: var(--space-xl);
    list-style: none;
}

/* The line down the steps, a stem of the vines. */
.vl-steps::before {
    content: '';
    position: absolute;
    top: 0.5rem;
    bottom: 0.5rem;
    left: 0.45rem;
    width: 3px;
    background: linear-gradient(to bottom, #71ab38, #3f7a21 70%, rgb(255 255 255 / 0.15));
}

.vl-step {
    position: relative;
}

.vl-step::before {
    content: '';
    position: absolute;
    top: 0.35rem;
    left: calc(-1 * var(--space-xl));
    width: 1.1rem;
    height: 1.1rem;
    border: 3px solid var(--charcoal);
    border-radius: 3px;
    background: var(--cyan);
}

.vl-when {
    margin-bottom: var(--space-2xs);
    font-family: 'Rubik', var(--font-sans);
    font-size: var(--text-lg);
    font-weight: 700;
    color: var(--cyan);
}

.vl-what {
    max-width: 34rem;
    margin: 0;
    line-height: 1.6;
}

.vl-dates {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2xs) var(--space-md);
    margin-top: var(--space-sm);
    list-style: none;
    font-variant-numeric: tabular-nums;
    color: rgb(244 244 240 / 0.6);
}

.vl-dates s {
    text-decoration-color: #c41e3a;
    text-decoration-thickness: 2px;
}

/* The poster with the sticker, pinned beside the dates. */
.vl-photo--poster {
    width: min(55%, 13rem);
    aspect-ratio: 3 / 4;
    margin-top: var(--space-lg);
    transform: rotate(3deg);
    outline: 0.4rem solid var(--chalk);
    box-shadow: 0 1rem 2rem rgb(0 0 0 / 0.4);
}

.vl-photo--empty {
    aspect-ratio: 4 / 3;
    margin-top: var(--space-lg);
    max-width: 36rem;
    filter: grayscale(0.4);
}

/* ---------- The end: the vines grow up around the last line ---------- */

/* Phone: the line above the vines. Desktop: the line between them, as tall
   as they are (the svg is 260/400 of its width tall). */
.vl-end {
    position: relative;
    display: grid;
    align-content: center;
    min-height: calc(clamp(9rem, 24vw, 22rem) * 0.65);
    margin-top: var(--space-4xl);
    padding-bottom: 5.5rem;
}

.vl-last {
    position: relative;
    z-index: 1;
    max-width: 34rem;
    margin-inline: auto;
    text-align: center;
    text-wrap: balance;
    font-family: 'Rubik', var(--font-sans);
    font-size: var(--text-lg);
    font-weight: 500;
    color: rgb(244 244 240 / 0.75);
}

/* ---------- Credits ---------- */

.vl-about {
    display: grid;
    gap: var(--space-lg);
    margin-top: var(--space-3xl);
}

.vl-credits {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2xs) var(--space-md);
    font-family: 'Rubik', var(--font-sans);
    font-size: var(--text-sm);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: rgb(244 244 240 / 0.75);
}

.vl-credits strong {
    font-weight: 700;
    color: var(--cyan);
}

.vl-all .btn--ghost {
    color: var(--chalk);
}

.vl-all .btn--ghost:hover {
    color: var(--ghost-hover-ink);
}

/* ---------- The fixed block, falling into the review ---------- */

.vl-info {
    position: relative;
    z-index: 1;
    margin-top: var(--space-2xl);
    margin-bottom: calc(-1 * var(--space-2xl));
}

.vl-info .show-info {
    box-shadow: 0 1.5rem 3rem rgb(0 0 0 / 0.35);
    border-top: 4px solid #c41e3a;
}

.show-design + .foyer {
    padding-top: calc(var(--space-2xl) + var(--space-lg));
}

/* ---------- Desktop ---------- */

@media (min-width: 1024px) {
    .vl-hero-inner {
        grid-template-columns: 5fr 7fr;
        gap: var(--space-2xl);
    }

    .vl-story {
        display: grid;
        grid-template-columns: auto 1fr;
        gap: var(--space-lg);
        align-items: start;
    }

    .vl-toaster {
        width: 5rem;
        margin: 0.4rem 0 0;
    }

    .vl-story-text p:first-child {
        font-size: var(--text-2xl);
    }

    .vl-heading {
        font-size: var(--text-4xl);
    }

    /* The steps with photos sit beside them. */
    .vl-step--dates,
    .vl-step:has(.vl-photo--empty) {
        display: grid;
        grid-template-columns: 1fr auto;
        /* The text rows keep their height; the photo's extra height goes last. */
        grid-template-rows: auto auto 1fr;
        column-gap: var(--space-2xl);
        align-items: start;
    }

    .vl-step--dates > .vl-photo,
    .vl-step > .vl-photo--empty {
        grid-column: 2;
        grid-row: 1 / span 3;
        margin-top: 0;
    }

    .vl-photo--poster {
        width: 13rem;
    }

    .vl-photo--empty {
        width: 30rem;
    }

    .vl-end {
        padding-bottom: 0;
    }

    .vl-last {
        font-size: var(--text-2xl);
    }
}
