
/* Elegant lyric font; original UI colours/layout remain unchanged */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;500;600;700&display=swap');

/* =========================
   GLOBAL DESIGN
========================= */

:root {
    --pink: #f47ab6;
    --light-pink: #ffc2df;
    --muted-pink: #bd91ad;
    --plum: #24101f;
    --panel: rgba(45, 19, 39, 0.88);
    --white: #fff4fb;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--white);

    background:
        linear-gradient(
            rgba(36, 16, 31, 0.28),
            rgba(36, 16, 31, 0.28)
        ),
        url("images/scrapbook-bg.png") center center / cover fixed no-repeat;

    font-family: Arial, Helvetica, sans-serif;
    overflow-x: hidden;
}

/* Optional video background */

.background-video {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.13;
    z-index: -2;
    pointer-events: none;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(28, 8, 25, 0.65);
    z-index: -1;
    pointer-events: none;
}

/* =========================
   MAIN TWO-COLUMN LAYOUT
========================= */

.page-container {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
    grid-template-areas: "lyrics photo";
    align-items: center;
    gap: clamp(35px, 5vw, 75px);
    width: min(1250px, 90%);
    min-height: 88vh;
    margin: 0 auto;
    padding: 55px 0;
}

.lyrics-section {
    grid-area: lyrics;
    min-width: 0;
}

.photo-section {
    grid-area: photo;
    min-width: 0;
}

.eyebrow {
    color: var(--pink);
    font-size: 11px;
    font-weight: bold;
    letter-spacing: 3px;
    margin-bottom: 22px;
}

h1 {
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(42px, 5vw, 67px);
    line-height: 1.03;
    font-weight: normal;
    letter-spacing: -2px;
    margin: 0;
}

h1 span {
    color: var(--pink);
    font-style: italic;
}

.intro-text {
    color: #d2b7ca;
    font-size: 14px;
    margin: 18px 0 30px;
}

/* =========================
   ALBUM AND VINYL RECORD
========================= */

.vinyl-area {
    position: relative;
    display: flex;
    align-items: center;
    width: min(100%, 410px);
    height: 210px;
    margin: 8px 0 26px;
    isolation: isolate;
}

/* Album sleeve */

.album-sleeve {
    position: absolute;
    left: 0;
    top: 0;
    width: 205px;
    height: 205px;
    border-radius: 5px;
    z-index: 2;
    background: linear-gradient(145deg, #a43e77, #41172f 70%);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.45);
    overflow: hidden;
}

.album-art {
    position: absolute;
    inset: 8px;
    border: 1px solid rgba(255, 206, 232, 0.38);
    background:
        radial-gradient(circle at 50% 40%, rgba(255, 159, 210, 0.4), transparent 38%),
        linear-gradient(145deg, #69274f, #24101f);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.album-heart {
    color: #ffc0df;
    font-size: 34px;
    margin-bottom: 8px;
}

.album-art p {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 19px;
    line-height: 1.15;
    letter-spacing: 2px;
    margin: 0;
}

.album-small-text {
    margin-top: 15px;
    color: #e4afce;
    font-size: 8px;
    letter-spacing: 2px;
}

/* Vinyl disc slides out of the sleeve */

.vinyl-record {
    position: absolute;
    left: 120px;
    top: 5px;
    width: 195px;
    height: 195px;
    border-radius: 50%;
    z-index: 1;
    background: repeating-radial-gradient(
        circle,
        #19171b 0px,
        #19171b 3px,
        #302b31 4px,
        #171519 5px,
        #171519 7px
    );
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.55);
    display: grid;
    place-items: center;
    transition: left 0.8s ease;
}

/* Move disc further out while playing */

.vinyl-area.playing .vinyl-record {
    left: 180px;
}

.vinyl-grooves {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: repeating-radial-gradient(
        circle,
        transparent 0px,
        transparent 5px,
        rgba(255, 255, 255, 0.07) 6px,
        transparent 7px
    );
    animation: vinyl-spin 4s linear infinite;
    animation-play-state: paused;
}

.vinyl-area.playing .vinyl-grooves {
    animation-play-state: running;
}

.vinyl-label {
    width: 66px;
    height: 66px;
    border-radius: 50%;
    background: radial-gradient(circle, #ffb0d6, #c64c8e 72%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #40142e;
    border: 3px solid #e88ab9;
    box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.45);
}

.vinyl-label span {
    font-size: 23px;
    line-height: 1;
}

.vinyl-label small {
    font-size: 6px;
    letter-spacing: 1px;
    margin-top: 3px;
}

@keyframes vinyl-spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* =========================
   SONG DETAILS
========================= */

.song-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 15px 0 18px;
}

.now-playing {
    color: var(--pink);
    font-size: 10px;
    font-weight: bold;
    letter-spacing: 2px;
    margin: 0 0 8px;
}

.song-info h2 {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 25px;
    font-weight: normal;
    margin: 0 0 5px;
}

#song-artist {
    color: var(--muted-pink);
    font-size: 13px;
    margin: 0;
}

/* =========================
   LYRICS — ELEGANT + SMOOTH
========================= */

.lyrics-container {
    min-height: 135px;
    margin: 18px 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 7px;
    overflow: hidden;
    position: relative;
}

.lyric {
    margin: 0;
    font-family: 'Cormorant Garamond', Georgia, "Times New Roman", serif;
    line-height: 1.35;
    will-change: transform, opacity;
    animation: lyric-arrive 480ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.lyric.previous,
.lyric.next {
    color: #bd91ad;
    opacity: 0.48;
    font-size: 17px;
    font-weight: 400;
    letter-spacing: 0.15px;
}

.lyric.previous {
    animation-delay: 35ms;
}

.lyric.active {
    color: var(--light-pink);
    opacity: 1;
    font-family: 'Cormorant Garamond', Georgia, "Times New Roman", serif;
    font-size: clamp(27px, 3vw, 35px);
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: 0.15px;
    text-shadow: 0 0 18px rgba(244, 122, 182, 0.22);
    animation-delay: 0ms;
}

.lyric.next {
    animation-delay: 70ms;
}

@keyframes lyric-arrive {
    from {
        opacity: 0;
        transform: translateY(13px);
    }
    to {
        transform: translateY(0);
    }
}

/* =========================
   MUSIC PLAYER
========================= */

.music-player {
    max-width: 430px;
    margin-top: 20px;
    padding: 18px;
    background: var(--panel);
    border: 1px solid rgba(255, 168, 211, 0.12);
    border-radius: 14px;
    backdrop-filter: blur(12px);
}

.progress-container {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) 34px;
    align-items: center;
    gap: 9px;
}

.progress-container span {
    color: #cbaec1;
    font-size: 10px;
    font-variant-numeric: tabular-nums;
}

#progress-bar {
    width: 100%;
    height: 4px;
    cursor: pointer;
    accent-color: var(--pink);
}

.player-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 28px;
    margin: 19px 0 12px;
}

.player-controls button {
    cursor: pointer;
    border: none;
    font: inherit;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.player-controls button:hover {
    transform: scale(1.08);
}

.control-button {
    color: #f5c4de;
    background: transparent;
    font-size: 17px !important;
    padding: 8px;
}

.play-button {
    display: grid;
    place-items: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    color: #351329;
    background: var(--pink);
    font-size: 19px !important;
    padding-left: 3px;
    box-shadow: 0 0 25px rgba(244, 122, 182, 0.18);
}

.player-note {
    text-align: center;
    color: #b992ad;
    font-size: 10px;
    letter-spacing: 1px;
    margin: 12px 0 0;
}

/* =========================
   PHOTO ON THE RIGHT
========================= */

.photo-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 5;
    max-height: 620px;
    overflow: hidden;
    border: 1px solid rgba(255, 181, 220, 0.35);
    border-radius: 9px;
    background: #35182d;
    box-shadow: 0 25px 65px rgba(0, 0, 0, 0.38);
}

.photo-frame img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.95;
    transition: opacity 0.5s ease;
}

.photo-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(
        180deg,
        transparent 60%,
        rgba(35, 10, 28, 0.25)
    );
}

.photo-counter {
    text-align: right;
    color: #e8a9ce;
    font-size: 10px;
    letter-spacing: 2px;
    margin-top: 14px;
}

footer {
    text-align: center;
    color: #a9859e;
    font-size: 11px;
    padding: 0 15px 25px;
    letter-spacing: 1px;
}

/* =========================
   RESPONSIVE / MOBILE
========================= */

@media (max-width: 768px) {
    .page-container {
        width: min(520px, 88%);
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas:
            "lyrics"
            "photo";
        gap: 38px;
        padding: 38px 0;
    }

    h1 {
        font-size: 48px;
    }

    .vinyl-area {
        max-width: 350px;
        transform: scale(0.9);
        transform-origin: left center;
        margin-bottom: 10px;
    }

    .vinyl-area.playing .vinyl-record {
        left: 150px;
    }

    .album-sleeve {
        width: 180px;
        height: 180px;
    }

    .vinyl-record {
        width: 172px;
        height: 172px;
        left: 105px;
    }

    .photo-frame {
        max-height: 560px;
    }

    .lyrics-container {
        min-height: 115px;
    }

    .lyric.previous,
    .lyric.next {
        font-size: 15px;
    }

    .lyric.active {
        font-size: clamp(25px, 6vw, 31px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .vinyl-grooves {
        animation-duration: 20s;
    }

    .vinyl-record,
    .photo-frame img {
        transition: none;
    }

    .lyric {
        animation: none;
    }
}

/* Ornate frame over the slideshow */

.photo-frame {
    position: relative;
    overflow: visible;
}


.photo-frame #couple-photo {
    position: absolute;
    top: 14%;
    left: 14%;
    width: 72%;
    height: 72%;
    object-fit: cover;
    z-index: 1;
}

.photo-frame .photo-overlay {
    position: absolute;
    top: 14%;
    left: 14%;
    width: 72%;
    height: 72%;
    z-index: 2;
}

.photo-frame .ornate-frame {
    position: absolute;
    width: 140%;
    height: 140%;
    top: -20%;
    left: -20%;
    object-fit: fill;
    z-index: 3;
    pointer-events: none;
    transition: none;
}

/* ===================================
   LUXURY VINTAGE LOVE LETTER INTRO
=================================== */

#love-intro {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: auto;
    padding: 30px 16px;
    background:
        radial-gradient(ellipse at 50% 38%,
            rgba(111, 58, 82, 0.42),
            transparent 55%),
        linear-gradient(145deg, #321625, #180b16 75%);
    color: #f6e8d2;
    transition: opacity 1s ease, visibility 1s ease;
}

#love-intro.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.intro-content {
    width: 100%;
    max-width: 500px;
    text-align: center;
    animation: intro-arrive 1.2s ease both;
}

.intro-eyebrow {
    margin: 0 0 18px;
    color: #c6a56b;
    font-size: 10px;
    letter-spacing: 4px;
}

.intro-title {
    margin: 0;
    color: #ead3a0;
    font-family: Georgia, serif;
    font-size: clamp(32px, 7vw, 48px);
    font-weight: normal;
    font-style: italic;
}

.intro-subtitle {
    margin: 14px 0 35px;
    color: #d7bfc9;
    font-family: Georgia, serif;
    font-size: 14px;
    font-style: italic;
}

#open-letter {
    display: block;
    width: min(100%, 390px);
    margin: auto;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.envelope {
    position: relative;
    width: 100%;
    aspect-ratio: 1.55 / 1;
    perspective: 900px;
    filter: drop-shadow(0 22px 25px rgba(0, 0, 0, .42));
}

.envelope-back {
    position: absolute;
    inset: 0;
    border: 1px solid #b38b50;
    border-radius: 5px;
    background: linear-gradient(135deg, #6b3a4d, #3b1b30 65%, #241020);
}

.envelope-letter {
    position: absolute;
    z-index: 1;
    top: 5%;
    left: 8%;
    width: 84%;
    height: 90%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: #f0e2c6;
    color: #5a3040;
    font-family: Georgia, serif;
    font-size: clamp(11px, 3vw, 16px);
    font-style: italic;
    transition: transform 1s ease;
}

.letter-heart {
    color: #9d7046;
    font-size: 32px;
}

.envelope-left,
.envelope-right,
.envelope-bottom {
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
}

.envelope-left {
    background: linear-gradient(135deg, #593047, #3d1d32);
    clip-path: polygon(0 0, 53% 50%, 0 100%);
    border-left: 1px solid #b38b50;
}

.envelope-right {
    background: linear-gradient(225deg, #593047, #3d1d32);
    clip-path: polygon(100% 0, 47% 50%, 100% 100%);
}

.envelope-bottom {
    background: linear-gradient(15deg, #382033, #603249);
    clip-path: polygon(0 100%, 50% 43%, 100% 100%);
    border-bottom: 1px solid #b38b50;
}

.envelope-flap {
    position: absolute;
    inset: 0;
    z-index: 5;
    background: linear-gradient(160deg, #79485a, #482238);
    clip-path: polygon(0 0, 100% 0, 50% 59%);
    transform-origin: top center;
    transition: transform .85s ease, opacity .5s ease;
    backface-visibility: hidden;
}

.ribbon {
    position: absolute;
    z-index: 6;
    background: linear-gradient(
        90deg,
        #98713c,
        #f2d995,
        #c49b56,
        #f4dfaa
    );
    box-shadow: 0 1px 4px rgba(0, 0, 0, .3);
    pointer-events: none;
}

.ribbon-vertical {
    top: 0;
    bottom: 0;
    left: 46%;
    width: 8%;
}

.ribbon-horizontal {
    top: 44%;
    left: 0;
    right: 0;
    height: 12%;
}

.wax-seal {
    position: absolute;
    z-index: 8;
    top: 50%;
    left: 50%;
    width: 65px;
    height: 65px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0;
    border: 2px solid #e5c77e;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 25%,
        #b98d4b, #79502e 70%, #4a2a20);
    box-shadow:
        0 0 0 4px rgba(220, 182, 107, .16),
        0 4px 9px rgba(0, 0, 0, .35);
    color: #f9e8b5;
    transform: translate(-50%, -50%);
    font-family: Georgia, serif;
    font-size: 24px;
    font-style: italic;
    pointer-events: none;
}

.wax-seal small {
    font-size: 11px;
}

.intro-hint {
    margin: 30px 0 0;
    color: #c6a56b;
    font-size: 10px;
    letter-spacing: 2px;
}

.intro-signature {
    margin-top: 38px;
    color: #cbb0bd;
    font-family: Georgia, serif;
    font-size: 13px;
    font-style: italic;
}

/* Opening animation */

#love-intro.opening .envelope-flap {
    transform: rotateX(180deg);
    opacity: .35;
}

#love-intro.opening .wax-seal {
    animation: seal-open .65s ease forwards;
}

#love-intro.opening .ribbon {
    opacity: 0;
    transition: opacity .4s ease;
}

#love-intro.opening .envelope-letter {
    transform: translateY(-28%);
}

#love-intro.opening .envelope {
    animation: envelope-open 1.4s ease forwards;
}

@keyframes seal-open {
    to {
        opacity: 0;
        transform: translate(-50%, -50%) scale(1.35) rotate(18deg);
    }
}

@keyframes envelope-open {
    0%, 45% { transform: scale(1); }
    100% { transform: scale(1.08) translateY(-10px); }
}

@keyframes intro-arrive {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 480px) {
    .intro-subtitle {
        margin-bottom: 28px;
    }

    .wax-seal {
        width: 55px;
        height: 55px;
    }

    .intro-signature {
        margin-top: 28px;
    }
}

@media (prefers-reduced-motion: reduce) {
    #love-intro,
    .envelope *,
    .envelope {
        animation-duration: .01ms !important;
        transition-duration: .01ms !important;
    }
}


/* Laptop-only notice */
#laptop-notice {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 100000;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background:
        radial-gradient(ellipse, #48243a, transparent 70%),
        #1b0c18;
    color: #f5e7d1;
    text-align: center;
}

#laptop-notice .laptop-card {
    max-width: 420px;
}

.laptop-icon {
    color: #d8b46b;
    font-size: 42px;
}

.laptop-eyebrow {
    color: #c9a765;
    font-size: 10px;
    letter-spacing: 3px;
}

.laptop-card h1 {
    color: #f0d5a0;
    font-family: Georgia, serif;
    font-size: 38px;
    font-style: italic;
    font-weight: normal;
}

.laptop-card p {
    line-height: 1.7;
}

.laptop-divider {
    width: 70px;
    height: 1px;
    margin: 28px auto;
    background: #b89458;
}

.laptop-emoji {
    font-size: 42px;
}

.laptop-card h2 {
    color: #f0d5a0;
    font-family: Georgia, serif;
    font-size: 21px;
    font-weight: normal;
}

.laptop-small {
    color: #d3b9c7;
    font-size: 13px;
}

/* Show notice on phones and small touch screens */
@media (max-width: 767px), (hover: none) and (pointer: coarse) {
    #laptop-notice {
        display: flex;
    }

    #love-intro {
        display: none !important;
    }
}


