* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
    background: #050505;
}

body {
    min-height: 100svh;
    color: #fff8ef;
    font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
}

img {
    display: block;
}

.storyboard {
    width: 100%;
}

.story-panel {
    position: relative;
    min-height: 90vh;
    min-height: 90svh;
    width: 100%;
    overflow: hidden;
    isolation: isolate;
    background: #111;
}

.story-panel::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    transition: all 1s;
}

/* .story-panel:has(.copy-link:hover)::after,
.story-panel:has(.copy-link:focus-visible)::after,
.story-panel:has(.brand-link:hover)::after,
.story-panel:has(.brand-link:focus-visible)::after {
    background: var(--hover-color, #ff355e);
    mix-blend-mode: difference;
    opacity: 0.2;
} */

.story-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: var(--image-position, 50% 50%);
}

.story-overlay {
    position: relative;
    z-index: 2;
    min-height: 90vh;
    min-height: 90svh;
    display: grid;
    place-items: center;
    padding: 7vh 6vw;
    text-align: center;
}

.copy-link,
.brand-link {
    color: var(--copy-color, #fff7f0);
    text-decoration: none;
    transition: text-shadow 0.2s;
    text-shadow: var(--copy-shadow, 0 0 3px rgba(0, 0, 0, 0.1));
}

.copy-link:hover,
.copy-link:focus-visible,
.brand-link:hover,
.brand-link:focus-visible {
    text-shadow:
        var(
            --copy-hover-shadow,
            -1px 1px 0 rgba(0, 0, 0, 1),
            -2px 2px 0 rgba(0, 0, 0, 1),
            -3px 3px 0 rgba(0, 0, 0, 1),
            -4px 4px 0 rgba(0, 0, 0, 1)
        );
}

.copy-link:focus-visible,
.brand-link:focus-visible {
    outline: 0.12em solid rgba(255, 255, 255, 0.84);
    outline-offset: 0.18em;
}

.copy-link {
    max-width: min(92vw, 32ch);
    font-family: "Germania One", serif;
    font-size: clamp(3.4rem, 4.4vw + 2.4vh, 7.6rem);
    line-height: 0.95;
    letter-spacing: 0.01em;
    text-wrap: balance;
}

.brand-link {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 1em;
}

.brand-mark {
    font-family: "Helvetica Neue", Arial, sans-serif;
    font-size: clamp(2.8rem, 5.2vw + 2.8vh, 8.4rem);
    line-height: 0.9;
    font-weight: 700;
}

.brand-sub {
    font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
    font-size: clamp(1.4rem, 2.1vw + 1.2vh, 3.4rem);
    line-height: 1;
    letter-spacing: -0.04em;
    font-weight: 400;
}

.story-panel--inverted {
    --copy-color: #130f0b;
    --copy-shadow: 0 0 3px rgba(255, 255, 255, 0.18);
    --copy-hover-shadow:
        -1px 1px 0 rgba(255, 255, 255, 0.8),
        -2px 2px 0 rgba(255, 255, 255, 0.8),
        -3px 3px 0 rgba(255, 255, 255, 0.8),
        -4px 4px 0 rgba(255, 255, 255, 0.8);
}

@media (min-aspect-ratio: 4 / 3) {
    .copy-link {
        max-width: min(72vw, 32ch);
        font-size: clamp(3.6rem, 4.8vw + 2vh, 10rem);
    }

    .brand-mark {
        font-size: clamp(4rem, 5.6vw + 2.6vh, 10rem);
    }

    .brand-sub {
        font-size: clamp(1.8rem, 1.8vw + 1vh, 3.8rem);
    }
}
