/* ========================================
   POEM PAGE CSS
   ======================================== */

.poem-layout {
    display: flex;
    gap: 35px;
    align-items: flex-start;
    max-width: 880px;
    margin: 0 auto;
    padding-bottom: 80px;
}

.poem-image-container {
    flex: 0 0 270px;
    position: sticky;
    top: 20px;
    background: #8b0000;
    padding: 14px;
    border: 2px dashed rgba(255, 255, 255, 0.3);
    border-radius: 5px;
}

.poem-image {
    width: 100%;
    max-width: 270px;
    height: auto;
    display: block;
}

.poem-content {
    flex: 1;
    min-width: 0;
}

.poem-title {
    font-family: var(--font-serif);
    font-size: 2.1rem;
    font-weight: normal;
    color: var(--white);
    text-decoration: underline;
    margin-bottom: 18px;
}

.poem-divider {
    border: none;
    border-top: 1px solid var(--white);
    margin: 16px 0;
}

.poem-text {
    font-family: var(--font-serif);
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--white);
    white-space: pre-line;
    margin-bottom: 28px;
}

.poem-text p {
    margin-bottom: 16px;
}

.poem-citation {
    font-family: var(--font-serif);
    font-size: 1.15rem;
    font-style: italic;
    color: var(--white);
    margin-bottom: 14px;
}

.poem-availability {
    font-family: var(--font-serif);
    font-size: 1.05rem;
    color: var(--white);
    margin-bottom: 16px;
}

.poem-buy-notice {
    font-family: var(--font-serif);
    font-size: 1.15rem;
    font-style: italic;
    color: var(--white);
    margin-bottom: 28px;
    line-height: 1.6;
}

.poem-buy-notice p {
    margin-bottom: 10px;
}

.poem-buy-btn {
    display: inline-block;
    margin-top: 18px;
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
    .poem-layout {
        flex-direction: column;
        align-items: center;
        padding: 12px;
        padding-bottom: 70px;
    }

    .poem-image-container {
        position: static;
        flex: none;
    }

    .poem-image {
        max-width: 200px;
    }

    .poem-title {
        font-size: 1.5rem;
        text-align: center;
    }

    .poem-text {
        font-size: 0.95rem;
    }

    .poem-citation {
        font-size: 1rem;
    }

    .poem-content {
        padding: 0 5px;
    }
}

@media (max-width: 480px) {
    .poem-layout {
        padding: 8px;
        padding-bottom: 60px;
        gap: 18px;
    }

    .poem-image {
        max-width: 160px;
    }

    .poem-title {
        font-size: 1.3rem;
    }

    .poem-text {
        font-size: 0.9rem;
        line-height: 1.6;
    }

    .poem-citation {
        font-size: 0.9rem;
    }

    .poem-buy-btn {
        display: block;
        text-align: center;
    }
}
