body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
}

header {
    position: fixed;
    top: 0;
    z-index: 1;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 10px;
    box-sizing: border-box;
}

header a {
    color: black;
    text-decoration: none;
}

header a:hover {
    text-decoration: underline;
}

h1 {
    font-weight: 200;
}

p {
    line-height: 3rem;
    font-size: 1.5em;
}

/* Everything stays put in the middle of the screen; scrolling only drives the faces and the story */
main {
    position: fixed;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-size: 1.5em;
    box-sizing: border-box;
}

h1 {
    margin: 0 0 20px;
}

.faces {
    position: relative;
    height: min(70vh, 90vw * 1086 / 771);
    aspect-ratio: 771 / 1086;
}

.faces img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    image-rendering: pixelated;
}

/* The story is clipped to the face. White text with difference blending inverts against
   the face beneath it, so both stay visible */
.story {
    position: absolute;
    inset: 0;
    padding: 10% 0;
    box-sizing: border-box;
    overflow: hidden;
    font-size: 1.4em;
    color: white;
    mix-blend-mode: difference;
}

.story-text p:first-child {
    margin-top: 0;
}

.story-text p:last-child {
    margin-bottom: 0;
}

@media (max-width: 900px) {
    main {
        font-size: 1.2em;
    }
}
