:root {
    --soft-pink: #fdf2f4;
    --dusty-rose: #e5b0a3;
    --text-dark: #4a4a4a;
    --white: #ffffff;
    --accent: #d4af37;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
    overflow-x: hidden;
}

body {
    background-color: var(--white);
    font-family: 'Jost', sans-serif;
    color: var(--text-dark);
    line-height: 1.7;
    overflow-x: hidden;
}

/* Preloader */
#preloader {
    position: fixed; inset: 0; background: var(--white);
    display: flex; justify-content: center; align-items: center; z-index: 9999;
}
.initials { font-family: 'Playfair Display'; font-size: 3rem; letter-spacing: 10px; color: var(--dusty-rose); display: block; margin-bottom: 10px; }

/* Hero */
.hero {
    height: 100vh; position: relative;
    display: flex; align-items: center; justify-content: center;
    background: url('assets/bg.jpeg') center/cover no-repeat fixed;
    text-align: center; color: var(--white);
}
.hero-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.2); }
.hero-content { position: relative; z-index: 1; }
.eyebrow { text-transform: uppercase; letter-spacing: 6px; font-size: 0.8rem; }
.main-title { font-family: 'Playfair Display'; font-size: 7rem; font-weight: 400; margin: 10px 0; }
.hero-sub { font-family: 'Cormorant Garamond'; font-style: italic; font-size: 1.5rem; }

/* Sections */
.narration { padding: 120px 20px; text-align: center; }
.narration.grey { background: #fafafa; }
.chapter-num { font-family: 'Cormorant Garamond'; color: var(--dusty-rose); font-style: italic; display: block; margin-bottom: 10px; }
.narration-box h2 { font-family: 'Playfair Display'; font-size: 2.5rem; margin-bottom: 30px; font-weight: 400; }
.narration-box p { max-width: 650px; margin: 0 auto 20px; font-weight: 300; font-size: 1.1rem; }

/* Gallery */
.photo-journal { padding: 80px 5%; }
.section-tag { font-size: 0.7rem; letter-spacing: 4px; text-transform: uppercase; margin-bottom: 30px; }
.journal-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.journal-item { position: relative; overflow: hidden; height: 400px; }
.journal-item img { width: 100%; height: 100%; object-fit: cover; transition: 1s cubic-bezier(0.16, 1, 0.3, 1); }
.journal-item:hover img { transform: scale(1.05); }
.wide { grid-column: span 2; height: 600px; }
.tall { grid-row: span 2; height: 820px; }

/* Little Things */
.little-things { padding: 100px 20px; background: var(--soft-pink); }
.things-flex { display: flex; justify-content: space-around; gap: 30px; margin-top: 50px; }
.thing-item { text-align: center; max-width: 300px; }
.num { font-family: 'Playfair Display'; font-size: 2rem; color: var(--dusty-rose); display: block; margin-bottom: 15px; }

/* Parallax */
.parallax-section {
    height: 50vh; background: url('assets/4.jpeg') center/cover no-repeat fixed;
    display: flex; align-items: center; justify-content: center;
}
.poetic-text { font-family: 'Great Vibes'; font-size: 3rem; color: white; text-shadow: 0 0 10px rgba(0,0,0,0.3); }

/* Wishes */
.wishes-section { padding: 100px 5%; background: white; }
.wishes-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 15px; margin-top: 50px; }
.wish-card { padding: 40px; border: 1px solid #eee; text-align: center; transition: 0.3s; }
.wish-card:hover { border-color: var(--dusty-rose); background: var(--soft-pink); }

/* Music Player Floating */
.music-player {
    position: fixed; bottom: 30px; right: 30px; z-index: 100;
    display: flex; align-items: center; gap: 15px; background: white;
    padding: 10px 20px; border-radius: 50px; cursor: pointer; box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}
.bars { display: flex; gap: 3px; align-items: flex-end; height: 15px; }
.bars span { width: 3px; background: var(--dusty-rose); transition: 0.3s; }
.bars span:nth-child(1) { height: 100%; }
.bars span:nth-child(2) { height: 60%; }
.bars span:nth-child(3) { height: 80%; }
.playing span { animation: barAnim 1s infinite alternate; }
@keyframes barAnim { from { height: 20%; } to { height: 100%; } }

/* Envelope Animation */
.envelope-container { width: 150px; height: 100px; background: var(--dusty-rose); margin: 0 auto 30px; position: relative; cursor: pointer; }
.envelope-card { position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 80%; height: 60%; background: white; display: flex; align-items: center; justify-content: center; font-size: 0.8rem; transition: 0.5s; }
.envelope-container:hover .envelope-card { transform: translate(-50%, -40px); }

@media (max-width: 768px) {
    .main-title { font-size: 4rem; }
    .journal-grid { grid-template-columns: 1fr; }
    .wide, .tall { grid-column: span 1; grid-row: span 1; height: 400px; }
    .things-flex { flex-direction: column; }
}