/* Interaction 1 – Flow: lines slide horizontally, hover to pause and highlight (after Night Walk 20). */
html,
body {
    margin: 0;
    padding: 0;
    height: 100%;
    overflow: hidden;
    font-family: "Adobe Jenson Pro", Georgia, serif;
    background-color: #1C1000;
    color: #fff;
}

.page-main {
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    min-height: 100vh;
    box-sizing: border-box;
}

.poem-container {
    max-width: 600px;
    margin: 0;
    margin-left: -48px; /* align left edge with sidebar border (cancel page-main padding) */
    line-height: 0.3;
    font-size: clamp(1.05rem, 2.6vh, 1.55rem);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 40px 0 1em; /* lines start just right of sidebar border */
    box-sizing: border-box;
}

.line {
    margin: 0.5vh 0;
    opacity: 0.7;
    position: relative;
    cursor: default;
    animation: slide 10s linear infinite;
    transition: all 0.3s ease;
    padding: 8px 0;
    color: #260B00;
}

@keyframes slide {
    0% { transform: translateX(0); }
    100% { transform: translateX(100%); }
}

.line:hover,
.line:hover ~ .line:nth-child(-n+3),
.line:has(~ .line:hover):nth-last-child(-n+3) {
    animation: none;
    opacity: 1;
    transform: translateX(0);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.line:nth-child(3n) { animation-duration: 7.8s; }
.line:nth-child(3n+1) { animation-duration: 8s; }
.line:nth-child(3n+2) { animation-duration: 10.2s; }

.line:nth-child(2n) { animation-delay: -0.3s; }
.line:nth-child(3n) { animation-delay: -0.6s; }
.line:nth-child(4n) { animation-delay: -0.9s; }
