* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Bodoni Moda', Georgia, serif;
    font-weight: 400;
    background: #fafaf8;
    color: #1a1a1a;
    overflow-x: hidden;
}

/* Scroll-snap container */
.poem-scroll {
    height: 100vh;
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
}

/* Each stanza is a full viewport */
.stanza {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    scroll-snap-align: start;
    padding: 3rem;
}

.stanza-text {
    max-width: 560px;
    font-size: 1.55rem;
    font-style: normal;
    font-variation-settings: 'opsz' 6;
    line-height: 1.9;
    text-align: left;
    white-space: pre-line;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeIn 0.8s ease forwards;
}

/* Title slide */
.stanza.title-slide {
    flex-direction: column;
    gap: 1rem;
}

.stanza.title-slide .stanza-text {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 2.4rem;
    font-style: normal;
    font-weight: 400;
    text-align: center;
    white-space: normal;
}

.stanza.title-slide .poem-meta {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.72rem;
    font-style: normal;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #999;
    opacity: 0;
    animation: fadeIn 0.8s ease 0.3s forwards;
}

/* End slide */
.stanza.end-slide .stanza-text {
    text-align: center;
    font-size: 1.1rem;
    font-style: normal;
    color: #999;
}

.stanza.end-slide .stanza-text a {
    color: #999;
    text-decoration: none;
    transition: color 0.2s;
}

.stanza.end-slide .stanza-text a:hover {
    color: #1a1a1a;
}

/* Scroll hint on first slide */
.scroll-hint {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    opacity: 0;
    animation: fadeIn 1.2s ease 1s forwards;
}

.scroll-hint span {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #bbb;
}

.scroll-hint .chevron {
    width: 20px;
    height: 20px;
    border-right: 1.5px solid #bbb;
    border-bottom: 1.5px solid #bbb;
    transform: rotate(45deg);
    animation: bounce 2s ease infinite;
}

@keyframes fadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {
    0%, 100% { transform: rotate(45deg) translateY(0); }
    50% { transform: rotate(45deg) translateY(6px); }
}

/* Intersection observer reveal */
.stanza-text.visible {
    animation: fadeIn 0.8s ease forwards;
}

/* Explore more poems (related by theme) */
.stanza.explore-slide {
    flex-direction: column;
    gap: 0;
}

.explore-text {
    text-align: center;
    max-width: 400px;
}

.explore-label {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #bbb;
    margin-bottom: 1.5rem;
}

.explore-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.explore-links a {
    font-family: 'Bodoni Moda', Georgia, serif;
    font-size: 1.1rem;
    color: #999;
    text-decoration: none;
    transition: color 0.3s;
}

.explore-links a:hover {
    color: #1a1a1a;
}

.explore-cross {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.explore-cross a {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.85rem;
    color: #bbb;
    text-decoration: none;
    transition: color 0.3s;
}

.explore-cross a:hover {
    color: #1a1a1a;
}

/* Responsive */
@media (max-width: 768px) {
    .stanza {
        padding: 2rem 1.5rem;
    }

    .stanza-text {
        font-size: 1.25rem;
    }

    .stanza.title-slide .stanza-text {
        font-size: 1.8rem;
    }
}

/* Video poem stanza */
.stanza.video-stanza {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem 1.5rem;
    background: #111;
    color: #eee;
}

.video-stanza-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    width: 100%;
    max-width: 700px;
}

.video-label {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #888;
}

.video-pair {
    display: flex;
    gap: 0.75rem;
    width: 100%;
    justify-content: center;
}

.video-pair video {
    width: calc(50% - 0.375rem);
    max-height: 65vh;
    object-fit: cover;
    border-radius: 2px;
}

.video-credit {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.72rem;
    color: #666;
    text-align: center;
}

.video-credit a {
    color: #888;
    text-decoration: none;
}

.video-credit a:hover {
    color: #ccc;
}

@media (max-width: 600px) {
    .video-pair {
        flex-direction: column;
        align-items: center;
    }
    .video-pair video {
        width: 100%;
        max-height: 50vh;
    }
}
