/* ================================
   LYRICS SHEET - Stylesheet for individual lyric pages
   Lives in assets_lyrics/ alongside the lyr_*.html files
   ================================ */

/* Google Fonts import */
@import url('https://fonts.googleapis.com/css2?family=Rosario:wght@300;400;600&family=IM+Fell+DW+Pica:wght@400&display=swap');

/* ================================
   PAGE LAYOUT
   White background with centered parchment sheet
   ================================ */
body {
    font-family: 'Rosario', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 16px;
    font-weight: 300;
    line-height: 1.5;
    color: #4a4a4a;
    margin: 0;
    padding: 40px 0;
    background-color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* ================================
   PARCHMENT SHEET
   8.5in wide page with aged paper effect and drop shadow
   ================================ */
.page {
    width: 8.5in;
    max-width: calc(100% - 40px);
    min-height: 11in;
    padding: 60px 70px;
    background-color: #fcfaf7;
    background-image:
        radial-gradient(ellipse at center, transparent 50%, rgba(175, 160, 135, 0.06) 100%),
        radial-gradient(ellipse at 15% 25%, rgba(180, 162, 125, 0.04) 0%, transparent 45%),
        radial-gradient(ellipse at 85% 15%, rgba(175, 158, 122, 0.03) 0%, transparent 35%),
        radial-gradient(ellipse at 70% 70%, rgba(178, 160, 128, 0.05) 0%, transparent 40%),
        radial-gradient(ellipse at 25% 80%, rgba(172, 155, 122, 0.03) 0%, transparent 35%),
        linear-gradient(160deg, rgba(185, 168, 135, 0.02) 0%, transparent 25%, rgba(178, 160, 128, 0.03) 50%, transparent 75%, rgba(175, 158, 122, 0.02) 100%);
    position: relative;
    box-shadow:
        0 1px 3px rgba(0, 0, 0, 0.08),
        0 4px 12px rgba(0, 0, 0, 0.06),
        0 8px 24px rgba(0, 0, 0, 0.04);
}

/* Watercolor paper texture */
.page::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    opacity: 0.28;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='500' height='500'%3E%3Cfilter id='wc'%3E%3CfeTurbulence type='turbulence' baseFrequency='0.015' numOctaves='6' seed='2' stitchTiles='stitch' result='noise'/%3E%3CfeDiffuseLighting in='noise' lighting-color='%23faf8f4' surfaceScale='1.2' result='lit'%3E%3CfeDistantLight azimuth='225' elevation='55'/%3E%3C/feDiffuseLighting%3E%3CfeComposite in='lit' operator='in' in2='noise'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23wc)'/%3E%3C/svg%3E");
}

/* Fine grain overlay */
.page::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    opacity: 0.12;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='fg'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.5' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23fg)' opacity='0.5'/%3E%3C/svg%3E");
}

/* ================================
   CONTENT - Keep above texture layers
   ================================ */
.song-title,
.lyrics,
.copyright {
    position: relative;
    z-index: 2;
}

/* ================================
   SONG TITLE
   ================================ */
.song-title {
    font-family: 'IM Fell DW Pica', serif;
    font-size: 22px;
    font-weight: 400;
    color: #4a4a4a;
    text-align: left;
    margin-bottom: 14px;
}

/* ================================
   LYRICS
   ================================ */
.lyrics {
    text-align: left;
    margin-bottom: 16px;
}

.lyrics.indented {
    margin-left: 40px;
}

/* ================================
   COPYRIGHT
   ================================ */
.copyright {
    font-size: 12px;
    color: #999;
    margin-top: 30px;
}

/* ================================
   RESPONSIVE
   ================================ */
@media (max-width: 768px) {
    body {
        padding: 20px 0;
    }

    .page {
        padding: 40px 30px;
        min-height: auto;
        max-width: calc(100% - 24px);
    }

    .song-title {
        font-size: 20px;
    }

    .lyrics.indented {
        margin-left: 28px;
    }
}

/* ================================
   PRINT STYLES
   Clean black-on-white output, no backgrounds or shadows
   ================================ */
@media print {
    body {
        padding: 0;
        background: white;
    }

    .page {
        width: 100%;
        max-width: 100%;
        min-height: auto;
        padding: 0;
        background: white;
        background-image: none;
        box-shadow: none;
        border: none;
    }

    .page::before,
    .page::after {
        display: none;
    }

    .song-title,
    .lyrics,
    .copyright {
        color: black;
    }

    .copyright {
        color: #666;
    }
}
