/* Familie (template-parts/shows/familie.php).
   Outside: the flyer's misty mountains in grey-mauve, its mint letter
   (Josefin Sans). Inside: lamplight. The chalet's windows are the photos,
   with a warm glow and snow on the sills. */

.fa {
    --mist: #b8b3c0;
    --mauve: #6f6a7a;
    --night: #1f1c25;
    --mint: #2ff0c0;
    --snow: #eef0f2;
    --wood: #2a1d16;
    --lamp: #ffb45c;

    --show-accent: #13a582;
    --show-accent-ink: var(--paper);
    --show-accent-text: #0e7f64;
    --ghost-hover: var(--mint);
    --ghost-hover-ink: var(--night);

    color: var(--snow);
}

/* ---------- Hero: the misty mountains ---------- */

.fa-hero {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 88svh;
    padding-top: calc(var(--header-height) + var(--space-2xl));
    overflow: hidden;
    /* Dark grey-mauve sky, as on the flyer, so the mint reads. */
    background: linear-gradient(to bottom, #3f3b48 0%, #5a5565 40%, #8f8a98 100%);
}

/* Under the text, never behind it: the mountains fill the rest of the hero,
   their empty sky running up into the space below the dates. */
.fa-mountains {
    order: 1;
    flex: 1 1 0;
    width: 100%;
    min-height: clamp(13rem, 34vw, 22rem);
    margin-top: calc(-1 * var(--space-xl));
}

.fa-hero-text {
    position: relative;
}

.fa-kicker {
    font-family: 'Josefin Sans', var(--font-sans);
    font-size: var(--text-sm);
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #fff;
}

.fa-kicker span {
    color: var(--mint);
}

.fa-title {
    margin-top: var(--space-xs);
    font-family: 'Josefin Sans', var(--font-sans);
    font-size: clamp(3.5rem, 12vw, 8rem);
    font-weight: 700;
    line-height: 0.95;
    text-transform: uppercase;
    color: var(--mint);
    text-shadow: 0 0.04em 0.2em rgb(31 28 37 / 0.25);
}

.fa-title span {
    display: block;
    margin-top: var(--space-xs);
    font-size: 0.32em;
    font-weight: 600;
    text-transform: none;
}

.fa-meta {
    margin-top: var(--space-md);
    font-family: 'Josefin Sans', var(--font-sans);
    font-size: var(--text-base);
    font-weight: 600;
    line-height: 1.5;
    color: #fff;
}

/* ---------- The body: from the mountain's foot into the night ---------- */

.fa-body {
    position: relative;
    padding-top: var(--space-2xl);
    background: linear-gradient(to bottom, #2b2833 0%, var(--night) 40%, #141218 100%);
}

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

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

.fa-story-text p:first-child {
    font-family: 'Josefin Sans', var(--font-sans);
    font-size: var(--text-lg);
    font-weight: 600;
    color: var(--mint);
}

/* The second paragraph's opening: the father's invitation, large. */
.fa-story-text p:nth-child(2) {
    font-size: var(--text-lg);
    line-height: 1.55;
}

/* ---------- At the table: place cards ---------- */

.fa-table {
    margin-top: var(--space-3xl);
}

.fa-heading {
    margin-bottom: var(--space-lg);
    font-family: 'Josefin Sans', var(--font-sans);
    font-size: var(--text-2xl);
    font-weight: 600;
    color: var(--mint);
}

.fa-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
    list-style: none;
}

/* A folded place card: light paper, the fold as a line across the top. */
.fa-card {
    position: relative;
    display: grid;
    gap: 0.15rem;
    padding: 1.1rem 0.9rem 0.8rem;
    background: linear-gradient(to bottom, #e3e0e8 0 0.5rem, #f6f5f8 0.5rem);
    color: var(--night);
    text-align: center;
    box-shadow: 0 0.6rem 1.2rem rgb(0 0 0 / 0.35);
}

.fa-card:nth-child(odd) {
    transform: rotate(-1.5deg);
}

.fa-card:nth-child(even) {
    transform: rotate(1.2deg);
}

.fa-card-role {
    font-family: 'Josefin Sans', var(--font-sans);
    font-size: var(--text-xl);
    font-weight: 700;
    line-height: 1.1;
}

.fa-card-actor {
    font-size: var(--text-xs);
    color: #5d5866;
}

/* ---------- The chalet at night ---------- */

.fa-chalet {
    margin-top: var(--space-4xl);
}

.fa-roof {
    display: block;
    width: min(100%, var(--frame-max));
    height: clamp(5rem, 13vw, 11rem);
    margin-inline: auto;
}

/* The front: dark planks; the windows are the photos. */
.fa-front {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-auto-flow: dense;
    gap: var(--space-lg) var(--space-md);
    padding-block: var(--space-xl) var(--space-2xl);
    background:
        repeating-linear-gradient(to right, transparent 0 2.4rem, rgb(0 0 0 / 0.35) 2.4rem calc(2.4rem + 2px)),
        var(--wood);
}

/* A lit window: a frame, a cross, snow on the sill, warm light spilling out. */
.fa-window {
    position: relative;
    display: block;
    aspect-ratio: 1;
    padding: 0;
    border: 0.45rem solid #4a362a;
    background: #000;
    cursor: zoom-in;
    box-shadow: 0 0 2.5rem rgb(255 180 92 / 0.28);
}

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

/* The cross of the window frame. */
.fa-window::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to right, transparent calc(50% - 0.2rem), #4a362a calc(50% - 0.2rem) calc(50% + 0.2rem), transparent calc(50% + 0.2rem)),
        linear-gradient(to bottom, transparent calc(50% - 0.2rem), #4a362a calc(50% - 0.2rem) calc(50% + 0.2rem), transparent calc(50% + 0.2rem));
    pointer-events: none;
}

/* Snow on the sill. */
.fa-window::after {
    content: '';
    position: absolute;
    left: -0.9rem;
    right: -0.9rem;
    bottom: -1.1rem;
    height: 0.8rem;
    border-radius: 0.5rem 0.5rem 0.2rem 0.2rem;
    background: var(--snow);
    box-shadow: 0 0.2rem 0 #9aa0a8;
}

.fa-window--wide,
.fa-window--pair,
.fa-window--pano {
    grid-column: span 2;
    aspect-ratio: 2 / 1;
}

.fa-window--tall {
    grid-row: span 2;
    aspect-ratio: auto;
}

.fa-window:hover {
    box-shadow: 0 0 3.5rem rgb(255 180 92 / 0.45);
}

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

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

.fa-credits {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2xs) var(--space-md);
    font-family: 'Josefin Sans', var(--font-sans);
    font-size: var(--text-sm);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: rgb(238 240 242 / 0.75);
}

.fa-credits strong {
    color: var(--mint);
}

.fa-all .btn--ghost {
    color: var(--snow);
}

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

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

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

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

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

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

@media (min-width: 1024px) {
    .fa-hero {
        min-height: 100svh;
    }

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

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

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

    .fa-cards {
        grid-template-columns: repeat(6, 1fr);
    }

    /* Three rows of four: no gaps in the front. */
    .fa-window--tall,
    .fa-window--pair {
        grid-column: span 1;
        grid-row: span 1;
        aspect-ratio: 1;
    }

    .fa-window--pano {
        grid-column: 1 / -1;
        aspect-ratio: 3.2 / 1;
    }

    .fa-front {
        grid-template-columns: repeat(4, 1fr);
        gap: var(--space-2xl) var(--space-xl);
        padding: var(--space-2xl) var(--space-2xl) var(--space-3xl);
    }
}
