/* Vrij Theater: Derf (template-parts/shows/vrij-theater-derf.php).
   The flyer's peach Didone (Playfair Display) over a row of faded prints, the
   blue of the stage light, the skin tones of corsets and ballet tights. The
   dialogue as a duet: Zij left in peach, Hij right in cool blue. */

.df {
    --peach: #efc2a3;
    --skin: #e6c9b4;
    --stage: #0a0f22;
    --blue: #9fb4ff;
    --deep: #05070f;

    --show-accent: #b4704a;
    --show-accent-ink: var(--paper);
    --show-accent-text: #8f5536;
    --ghost-hover: var(--peach);
    --ghost-hover-ink: var(--deep);

    color: #f1ece8;
}

/* ---------- Hero: faded prints, "Derf" across them ---------- */

.df-hero {
    padding-top: var(--header-height);
    background-color: #000;
}

.df-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3px;
}

/* Faded like old prints, as the childhood photos on the flyer. */
.df-photo--print {
    aspect-ratio: 3 / 4;
}

.df-photo--print img {
    filter: grayscale(1) sepia(0.35) contrast(1.05) brightness(0.9);
    transition: filter 0.6s ease, transform 0.6s ease;
}

.df-photo--print:hover img {
    filter: none;
}

/* "Derf" lies over the prints; clicks go through it to the photos. */
.df-hero-text {
    position: relative;
    z-index: 1;
    margin-top: -0.62em;
    font-size: clamp(6rem, 30vw, 22rem);
    pointer-events: none;
}

.df-title {
    font-family: 'Playfair Display', var(--font-serif);
    font-size: 1em;
    font-weight: 900;
    line-height: 0.8;
    letter-spacing: -0.02em;
    color: var(--peach);
}

.df-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: var(--space-sm) var(--space-xl);
    margin: var(--space-md) 0 0;
    font-size: var(--text-sm);
    pointer-events: auto;
    font-weight: 600;
    line-height: 1.5;
}

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

.df-photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ---------- Body: the blue of the stage ---------- */

.df-body {
    position: relative;
    padding-top: var(--space-xl);
    background: linear-gradient(to bottom, #000 0%, var(--stage) 25%, #0d1636 55%, var(--deep) 100%);
}

/* ---------- The story and the duet ---------- */

.df-story {
    display: grid;
    gap: var(--space-md);
}

.df-text {
    max-width: 40rem;
    margin: 0 0 var(--space-lg);
    font-size: var(--text-base);
    line-height: 1.7;
}

.df-line {
    max-width: 26rem;
    margin: 0;
    line-height: 1.4;
}

.df-who {
    display: block;
    font-family: var(--font-sans);
    font-style: normal;
    margin-bottom: 0.2rem;
    font-size: var(--text-xs);
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    opacity: 0.7;
}

/* Zij: left, peach, her serif. */
.df-line--zij {
    justify-self: start;
    font-family: 'Playfair Display', var(--font-serif);
    font-size: var(--text-lg);
    font-style: italic;
    color: var(--peach);
}

/* Hij: right, cool, plain. */
.df-line--hij {
    justify-self: end;
    font-size: var(--text-base);
    text-align: right;
    color: var(--blue);
}

/* ---------- Three mothers, three sons ---------- */

.df-cast {
    position: relative;
    margin-top: var(--space-2xl);
}

.df-heading {
    margin-bottom: var(--space-xl);
    font-family: 'Playfair Display', var(--font-serif);
    font-size: var(--text-2xl);
    font-weight: 800;
    color: var(--peach);
}

.df-roles {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
}

.df-role h3 {
    margin-bottom: var(--space-sm);
    font-size: var(--text-sm);
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    opacity: 0.7;
}

.df-role li {
    font-family: 'Playfair Display', var(--font-serif);
    font-size: var(--text-lg);
    line-height: 1.35;
}

/* The mothers in peach, the sons in blue, facing each other. */
.df-role:first-child li {
    color: var(--peach);
}

.df-role:last-child {
    text-align: right;
}

.df-role:last-child li {
    color: var(--blue);
}

.df-slipper {
    position: absolute;
    right: var(--gutter);
    top: -1.5rem;
    width: 4.5rem;
    opacity: 0.7;
    transform: rotate(-12deg);
}

/* ---------- The photos dance in pairs along a ribbon ---------- */

.df-dance {
    position: relative;
    display: grid;
    gap: var(--space-2xl);
    margin-top: var(--space-2xl);
}

.df-ribbon {
    position: absolute;
    inset: -2rem 0;
    width: 100%;
    height: calc(100% + 4rem);
    pointer-events: none;
}

.df-pair {
    position: relative;
    display: grid;
}

.df-photo--lead {
    aspect-ratio: 3 / 2;
    box-shadow: 0 0 3rem rgb(80 110 255 / 0.25);
}

.df-photo--partner {
    justify-self: end;
    width: 58%;
    aspect-ratio: 3 / 2;
    margin-top: -3.5rem;
    outline: 0.4rem solid var(--stage);
}

.df-pair--right .df-photo--partner {
    justify-self: start;
}

/* ---------- Reviews of this show ---------- */

.df-reviews {
    margin-top: var(--space-2xl);
}

/* Like the duet: the reviews take turns, the second set in. */
.df-review + .df-review {
    margin-top: var(--space-xl);
}

.df-review:nth-of-type(even) {
    margin-left: 12%;
}

.df-review blockquote {
    max-width: 40rem;
    font-family: 'Playfair Display', var(--font-serif);
    font-size: var(--text-lg);
    font-style: italic;
    line-height: 1.45;
}

.df-review blockquote p {
    margin: 0;
}

.df-review figcaption {
    margin-top: var(--space-xs);
    font-size: var(--text-sm);
    color: var(--peach);
}

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

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

.df-credits {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2xs) var(--space-md);
    font-size: var(--text-sm);
    color: rgb(241 236 232 / 0.75);
}

.df-credits strong {
    font-weight: 600;
    color: var(--peach);
}

.df-all .btn--ghost {
    color: #f1ece8;
}

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

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

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

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

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

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

@media (min-width: 1024px) {
    .df-strip {
        width: min(100%, var(--frame-max));
        margin-inline: auto;
    }

    .df-photo--print {
        aspect-ratio: 4 / 3;
    }

    .df-story {
        gap: var(--space-lg);
    }

    .df-text {
        font-size: var(--text-lg);
    }

    .df-line--zij {
        font-size: var(--text-2xl);
        margin-left: 4%;
    }

    .df-line--hij {
        font-size: var(--text-lg);
        margin-right: 4%;
    }

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

    .df-role li {
        font-size: var(--text-2xl);
    }

    .df-pair {
        grid-template-columns: repeat(12, 1fr);
        column-gap: var(--space-md);
        align-items: end;
    }

    .df-pair--left .df-photo--lead {
        grid-column: 1 / 9;
        grid-row: 1;
    }

    .df-pair--left .df-photo--partner {
        grid-column: 8 / 13;
        grid-row: 1;
        width: auto;
        margin: 0 0 -4rem;
    }

    .df-pair--right .df-photo--lead {
        grid-column: 5 / 13;
        grid-row: 1;
    }

    .df-pair--right .df-photo--partner {
        grid-column: 1 / 6;
        grid-row: 1;
        width: auto;
        margin: 0 0 -4rem;
    }

    .df-body {
        padding-top: var(--space-2xl);
    }

    .df-cast,
    .df-dance,
    .df-reviews {
        margin-top: var(--space-4xl);
    }

    .df-dance {
        gap: var(--space-4xl);
    }

    /* Side by side, the second a line lower, as the duet answers. */
    .df-reviews {
        display: grid;
        grid-template-columns: 1fr 1fr;
        column-gap: var(--space-2xl);
        align-items: start;
    }

    .df-reviews .df-heading {
        grid-column: 1 / -1;
    }

    .df-review + .df-review {
        margin-top: 0;
    }

    .df-review:nth-of-type(even) {
        margin: var(--space-3xl) 0 0;
    }

    .df-review blockquote {
        font-size: var(--text-2xl);
    }
}
