/* Hannah en haar Zussen (template-parts/shows/hannah-en-haar-zussen.php).
   Like the flyer at first: sky blue, Oswald narrow capitals in blue, the
   sisters with New York hanging upside down beneath them. Then the light goes
   down to the black of the cinema, where the photos run past on strips of
   film. */

.hz {
    --sky: #a9d4f2;
    --sky-deep: #1d7fc4;
    --dusk: #1b3557;
    --night: #0b1220;
    --hz-ink: #10223a;
    --film: #f4f1e8;

    --show-accent: var(--sky-deep);
    --show-accent-ink: var(--paper);
    --show-accent-text: #155f94;
    --ghost-hover: var(--film);
    --ghost-hover-ink: var(--night);

    color: var(--hz-ink);
}

/* On the sky blue the header is navy until the page scrolls (written out:
   the header sits outside .hz).
   Without the dark gradient, also once scrolled: it would appear at once
   while the ink fades in. */
body:has(.hz) .site-header {
    background-image: none;
}

body:has(.hz) .site-header:not(.scrolled) {
    color: #10223a;
}

/* ---------- Hero: the flyer ---------- */

.hz-hero {
    padding: calc(var(--header-height) + var(--space-xl)) 0 0;
    background-color: var(--sky);
}

.hz-hero-inner {
    display: grid;
    gap: var(--space-xl);
}

.hz-dateline {
    padding-bottom: var(--space-sm);
    border-bottom: 1px solid var(--sky-deep);
    font-family: 'Oswald', var(--font-sans);
    font-size: var(--text-lg);
    font-weight: 500;
    color: var(--sky-deep);
}

.hz-title {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0 0.25em;
    margin: var(--space-md) 0;
    font-family: 'Oswald', var(--font-sans);
    font-weight: 600;
    line-height: 0.95;
    text-transform: uppercase;
    color: var(--sky-deep);
}

.hz-title-big {
    font-size: clamp(4rem, 15vw, 8.5rem);
}

.hz-title-big:first-child {
    flex-basis: 100%;
}

.hz-title-small {
    font-size: clamp(1.75rem, 6vw, 3.5rem);
    font-weight: 300;
}

.hz-meta {
    font-size: var(--text-sm);
    line-height: 1.6;
}

/* The sisters, with the city hanging from them: the sky ends at the roofs,
   the towers hang on into the white below. (The skyline is 240/586 of its
   width tall; a margin in % is of the column's width, as the width is.) */
.hz-sisters {
    --hang: calc(min(100%, 26rem) * 0.24);
    position: relative;
    z-index: 1;
    justify-self: center;
    width: min(100%, 26rem);
    margin-bottom: calc(-1 * var(--hang));
    color: var(--hz-ink);
}

.hz-photo--sisters {
    aspect-ratio: 4 / 5;
}

.hz-photo--sisters img {
    object-position: 50% 30%;
}

.hz-skyline {
    display: block;
    width: 100%;
    height: auto;
}

/* Upside down, under the photo, as on the flyer. */
.hz-skyline--hanging {
    margin-top: -1px;
    transform: scaleY(-1);
}

/* ---------- The description, on white ---------- */

/* Phone: room above the text for the towers hanging into the white. */
.hz-film {
    padding: calc(min(100vw - 2 * var(--gutter), 26rem) * 0.24 + var(--space-xl)) 0 var(--space-3xl);
    background-color: var(--paper);
}

.hz-story-text {
    max-width: 40rem;
}

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

.hz-story-text p:first-child {
    font-family: 'Oswald', var(--font-sans);
    font-size: var(--text-xl);
    font-weight: 500;
    line-height: 1.25;
}

/* The last line of the description is the flyer's credit line: as small caps. */
.hz-story-text p:last-child {
    font-family: 'Oswald', var(--font-sans);
    font-size: var(--text-sm);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* ---------- The cinema: the light goes down ---------- */

.hz-cinema {
    position: relative;
    overflow-x: clip;
    padding-top: 14rem;
    background:
        linear-gradient(to bottom, var(--paper) 0, var(--sky) 4rem, var(--dusk) 9rem, var(--night) 14rem, var(--night) 60%, #05080f 100%);
}

/* ---------- The reels: strips of film, tilted across the dark ---------- */

.hz-reels {
    display: grid;
    /* One column the width of the screen: a longer strip is centred in it and
       runs past both edges equally. */
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-3xl);
    justify-items: center;
}

/* A strip: frames between two rows of sprocket holes. Phone: upright, the
   holes left and right. */
.hz-strip {
    --hole: rgb(169 212 242 / 0.22);
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: min(100% - 2 * var(--gutter), 22rem);
    padding: 0.6rem 1.6rem;
    background-color: #050505;
    box-shadow: 0 1.25rem 2.5rem rgb(0 0 0 / 0.45);
    transform: rotate(calc(var(--tilt) / 2));
}

.hz-strip::before,
.hz-strip::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 0.6rem;
    background: repeating-linear-gradient(to bottom, transparent 0 0.45rem, var(--hole) 0.45rem 1.05rem, transparent 1.05rem 1.5rem);
    border-radius: 2px;
}

.hz-strip::before {
    left: 0.5rem;
}

.hz-strip::after {
    right: 0.5rem;
}

/* A frame: a photo. */
.hz-frame {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 3 / 2;
    margin: 0;
    padding: 0;
    border: 0;
    overflow: hidden;
    background: #000;
}

button.hz-frame {
    cursor: zoom-in;
}

.hz-frame img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(0.9);
    transition: filter var(--duration-normal) ease, transform 0.6s ease;
}

button.hz-frame:hover img {
    filter: saturate(1.05) brightness(1.06);
    transform: scale(1.03);
}

.hz-photo {
    position: relative;
    display: block;
    padding: 0;
    border: 0;
    overflow: hidden;
    background: rgb(255 255 255 / 0.06);
    cursor: zoom-in;
}

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

/* ---------- The jury report ---------- */

.hz-jury {
    display: grid;
    gap: var(--space-lg);
    margin-top: var(--space-4xl);
    color: var(--film);
}

.hz-photo--prize {
    width: min(70%, 20rem);
    aspect-ratio: 4 / 3;
    transform: rotate(-2deg);
    outline: 0.5rem solid var(--film);
}

.hz-card {
    font-family: var(--font-serif);
    font-size: var(--text-2xl);
    font-weight: 500;
    line-height: 1.15;
    color: var(--film);
}

.hz-card--jury {
    margin: 0 0 var(--space-md);
}

.hz-jury-quote {
    max-width: 36rem;
    font-family: var(--font-serif);
    font-size: var(--text-lg);
    font-style: italic;
    line-height: 1.45;
}

.hz-jury-quote p {
    margin: 0;
}

.hz-jury-source {
    margin-top: var(--space-sm);
    font-size: var(--text-sm);
    color: var(--sky);
}

/* ---------- Credits, as on the flyer ---------- */

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

.hz-credits {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2xs) var(--space-md);
    font-family: 'Oswald', var(--font-sans);
    font-size: var(--text-sm);
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.hz-credits strong {
    font-weight: 600;
}

.hz-all .btn--ghost {
    color: var(--film);
}

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

/* New York at night, small, in the corner above the fixed block, with a few lit windows. */
.hz-night {
    margin-top: var(--space-2xl);
}

.hz-skyline--night {
    height: 5rem;
    color: #16253d;
}

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

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

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

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

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

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

    .hz-hero-text {
        padding-bottom: var(--space-3xl);
    }

    .hz-sisters {
        justify-self: end;
    }

    /* The text keeps to the left column, clear of the towers on the right. */
    .hz-film {
        padding-top: var(--space-3xl);
    }

    .hz-story {
        display: grid;
        grid-template-columns: 7fr 5fr;
        gap: var(--space-2xl);
    }

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

    /* The first strip runs across the screen, a little past both edges. */
    .hz-reels {
        gap: var(--space-4xl);
        padding-block: var(--space-xl);
    }

    .hz-strip {
        --frame-w: calc(min(100vw, var(--frame-max)) * 0.92 / 3.5);
        flex-direction: row;
        width: max-content;
        padding: 1.6rem 0.6rem;
        transform: rotate(var(--tilt));
    }

    .hz-strip::before,
    .hz-strip::after {
        left: 0;
        right: 0;
        width: auto;
        height: 0.6rem;
        background: repeating-linear-gradient(to right, transparent 0 0.45rem, var(--hole) 0.45rem 1.05rem, transparent 1.05rem 1.5rem);
    }

    .hz-strip::before {
        top: 0.5rem;
        bottom: auto;
    }

    .hz-strip::after {
        top: auto;
        bottom: 0.5rem;
    }

    .hz-frame {
        flex: none;
        width: var(--frame-w);
    }

    .hz-jury {
        grid-template-columns: 5fr 7fr;
        align-items: center;
        gap: var(--space-2xl);
    }

    .hz-photo--prize {
        width: 100%;
    }

    .hz-card {
        font-size: var(--text-4xl);
    }

    .hz-jury-quote {
        font-size: var(--text-xl);
    }

    .hz-skyline--night {
        height: 7rem;
    }
}
