* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Raleway', sans-serif;
    color: #2f2a2a;
    background-color: #fff8f5;
    line-height: 1.6;
    min-height: 100vh;
}

img, video {
    display: block;
    width: 100%;
    border-radius: 18px;
    object-fit: cover;
}

.contain-fit {
    object-fit: contain;
    background: #fff8f5;
    height: auto !important;
}

.hidden {
    display: none !important;
}

a {
    color: inherit;
}

.overlay {
    position: fixed;
    inset: 0;
    background: rgba(24, 18, 28, 0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    z-index: 9999;
}

.overlay-content {
    max-width: 420px;
    text-align: center;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 28px;
    padding: 48px 36px;
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff7f1;
}

.overlay-content h1 {
    font-family: 'Playfair Display', serif;
    font-size: 2.6rem;
    margin-bottom: 12px;
}

.overlay-content p {
    margin-bottom: 20px;
}

.overlay-content form {
    display: flex;
    gap: 12px;
    justify-content: center;
    align-items: center;
}

.overlay-content input {
    padding: 12px 16px;
    border-radius: 999px;
    border: none;
    min-width: 180px;
    font-size: 1rem;
    outline: none;
}

.overlay-content button {
    padding: 12px 26px;
    border-radius: 999px;
    border: none;
    background: linear-gradient(135deg, #ff9a9e, #fad0c4 60%, #fad6a8);
    color: #321b28;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.overlay-content button:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 18px rgba(255, 154, 158, 0.3);
}

.overlay .error {
    margin-top: 12px;
    color: #ffbaba;
    font-size: 0.95rem;
}

.hero {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 24px;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(160deg, rgba(28, 16, 23, 0.75), rgba(28, 16, 23, 0.35));
    z-index: -1;
}

.hero-content {
    text-align: center;
    color: #fff0ea;
    max-width: 720px;
}

.hero-sound-toggle {
    position: absolute;
    bottom: 40px;
    right: 40px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 999px;
    border: none;
    background: rgba(255, 240, 234, 0.9);
    color: #371924;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(55, 25, 36, 0.25);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    z-index: 3;
}

.hero-sound-toggle:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 26px rgba(55, 25, 36, 0.25);
}

.hero-sound-toggle[aria-pressed="true"] {
    background: rgba(255, 207, 210, 0.9);
}

.hero-sound-toggle .sound-icon {
    font-size: 1.2rem;
}

.hero-eyebrow {
    font-size: 1rem;
    letter-spacing: 0.2rem;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(3rem, 5vw, 4.8rem);
    margin-bottom: 16px;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 32px;
}

.hero-button {
    padding: 14px 36px;
    border-radius: 999px;
    border: none;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    background: #fff7f1;
    color: #2f131f;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hero-button:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 24px rgba(255, 220, 210, 0.35);
}

.section {
    padding: clamp(60px, 10vw, 120px) clamp(20px, 10vw, 120px);
}

.section-header {
    max-width: 720px;
    margin: 0 auto 48px auto;
    text-align: center;
}

.section-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.2rem, 4vw, 3.2rem);
    margin-bottom: 12px;
}

.section-header p {
    color: rgba(47, 42, 42, 0.75);
}

.masonry-grid {
    columns: 1;
    column-gap: 24px;
}

.masonry-item {
    break-inside: avoid;
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
}

.masonry-item img {
    transition: transform 0.4s ease;
    width: 100%;
    height: auto;
}

.masonry-item:hover img {
    transform: scale(1.05);
}

.masonry-item figcaption {
    margin-top: 12px;
    font-size: 0.95rem;
    color: rgba(47, 42, 42, 0.75);
}

@media (min-width: 768px) {
    .masonry-grid {
        columns: 2;
    }
}

@media (min-width: 1200px) {
    .masonry-grid {
        columns: 3;
    }
}

.story-section {
    background: linear-gradient(135deg, #fff4ee, #ffe7f0);
}

.story-container {
    display: grid;
    gap: 40px;
}

@media (min-width: 992px) {
    .story-container {
        grid-template-columns: 1.3fr 1fr;
        align-items: center;
    }
}

.story-text h2 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 3vw, 2.8rem);
    margin-bottom: 16px;
}

.story-text p {
    margin-bottom: 18px;
}

.story-highlight {
    background: rgba(255, 255, 255, 0.7);
    border-radius: 24px;
    padding: 28px;
    border: 1px solid rgba(255, 156, 171, 0.2);
    box-shadow: 0 18px 30px rgba(255, 187, 201, 0.25);
}

.story-highlight h3 {
    font-size: 1.6rem;
    margin-bottom: 16px;
}

.story-highlight ul {
    list-style: none;
    display: grid;
    gap: 14px;
}

.milestone-date {
    display: block;
    font-weight: 700;
    color: #e36a8d;
}

.milestone-text {
    color: rgba(47, 42, 42, 0.75);
}

.video-grid {
    display: grid;
    gap: 32px;
}

@media (min-width: 768px) {
    .video-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.video-grid figure {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.video-grid video {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: rgba(0, 0, 0, 0.05);
}

.slideshow-section .video-grid video,
.video-section .video-grid video {
    object-fit: contain;
    background: #fff8f5;
}

.video-grid figcaption {
    font-size: 0.95rem;
    color: rgba(47, 42, 42, 0.75);
}

.notes-grid {
    display: grid;
    gap: 24px;
}

@media (min-width: 768px) {
    .notes-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1200px) {
    .notes-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.note {
    background: #fff;
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 14px 28px rgba(255, 190, 205, 0.25);
    border: 1px solid rgba(255, 173, 190, 0.2);
    font-size: 1rem;
}

.playlist-section {
    background: linear-gradient(180deg, rgba(255, 237, 244, 0.5), rgba(255, 248, 245, 0.95));
}

.playlist-card {
    display: grid;
    gap: 32px;
    align-items: center;
    background: rgba(255, 255, 255, 0.75);
    border-radius: 28px;
    padding: clamp(28px, 5vw, 48px);
    box-shadow: 0 24px 46px rgba(255, 149, 167, 0.2);
    border: 1px solid rgba(255, 193, 209, 0.35);
}

@media (min-width: 992px) {
    .playlist-card {
        grid-template-columns: 1fr 1.2fr;
    }
}

.playlist-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 260px;
}

.vinyl {
    position: absolute;
    width: clamp(220px, 35vw, 320px);
    height: clamp(220px, 35vw, 320px);
    background: radial-gradient(circle at center, #2f131f 0%, #2f131f 35%, #12060e 36%, #12060e 100%);
    border-radius: 50%;
    box-shadow: inset 0 0 0 8px rgba(255, 255, 255, 0.05);
    animation: spinVinyl 20s linear infinite;
}

.cover-art {
    position: relative;
    width: clamp(180px, 28vw, 240px);
    height: clamp(180px, 28vw, 240px);
    background: linear-gradient(135deg, #ff9a9e, #fad0c4 50%, #fad6a5);
    border-radius: 20px;
    display: grid;
    place-items: center;
    color: #351924;
    text-align: center;
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    letter-spacing: 0.05em;
    box-shadow: 0 18px 34px rgba(255, 178, 190, 0.45);
}

.cover-art small {
    display: block;
    font-family: 'Raleway', sans-serif;
    font-size: 0.85rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-top: 6px;
}

.playlist-content {
    display: grid;
    gap: 20px;
}

.playlist-intro {
    color: rgba(47, 42, 42, 0.7);
}

.playlist-player {
    background: rgba(255, 237, 244, 0.75);
    border-radius: 18px;
    padding: 18px;
    border: 1px solid rgba(255, 193, 209, 0.4);
    box-shadow: inset 0 12px 24px rgba(255, 205, 214, 0.35);
}

.responsive-iframe {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    overflow: hidden;
    border-radius: 14px;
}

.playlist-iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.playlist-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 28px;
    border-radius: 999px;
    background: #2f131f;
    color: #fff0ea;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.playlist-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(47, 19, 31, 0.35);
}

@keyframes spinVinyl {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.letter-section {
    background: #fff8f5;
}

.letter-card {
    display: grid;
    gap: 32px;
    border-radius: 28px;
    padding: clamp(28px, 6vw, 56px);
    background: #ffffff;
    box-shadow: 0 28px 42px rgba(255, 165, 186, 0.18);
    border: 1px solid rgba(255, 186, 204, 0.35);
}

@media (min-width: 1024px) {
    .letter-card {
        grid-template-columns: 0.9fr 1.8fr;
        align-items: start;
    }
}

.letter-meta {
    display: grid;
    gap: 22px;
    background: linear-gradient(160deg, rgba(255, 210, 223, 0.25), rgba(255, 240, 245, 0.65));
    border-radius: 24px;
    padding: 24px;
}

.meta-stamp {
    font-size: 2.4rem;
}

.meta-label {
    font-size: 0.75rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: rgba(47, 42, 42, 0.55);
    margin-bottom: 6px;
}

.meta-value {
    font-weight: 600;
    color: #2f131f;
}

.meta-sub {
    font-weight: 400;
    color: rgba(47, 42, 42, 0.6);
    margin-top: 4px;
}

.letter-body {
    display: grid;
    gap: 18px;
    color: rgba(47, 42, 42, 0.78);
    font-size: 1.05rem;
    line-height: 1.7;
}

.letter-body p:first-child {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    color: #2f131f;
}

.letter-body em {
    font-style: italic;
}

.letter-body strong {
    color: #d36186;
}

.letter-songs {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 10px;
}

.letter-songs li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border-radius: 14px;
    background: rgba(255, 237, 244, 0.7);
    border: 1px solid rgba(255, 193, 209, 0.35);
}

.song-title {
    font-weight: 600;
    color: #2f131f;
}

.letter-songs a {
    text-decoration: none;
    font-weight: 600;
    color: #d36186;
}

.letter-signoff {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    color: #2f131f;
}

.footer {
    text-align: center;
    padding: 36px 24px 48px;
    color: rgba(47, 42, 42, 0.7);
    font-size: 0.95rem;
}

.footer p {
    margin-top: 12px;
}

/* Utility for tall and wide masonry items */
.masonry-item.tall img {
    height: 420px;
    object-fit: cover;
}

.masonry-item.wide img {
    height: 340px;
    object-fit: cover;
}

.masonry-item.tall .contain-fit,
.masonry-item.wide .contain-fit {
    height: auto;
    max-height: 100%;
}

@media (max-width: 576px) {
    .overlay-content {
        padding: 36px 24px;
    }

    .overlay-content form {
        flex-direction: column;
    }

    .overlay-content input,
    .overlay-content button {
        width: 100%;
    }

    .hero {
        padding: 64px 20px;
    }

    .hero-subtitle {
        font-size: 1.05rem;
    }

    .hero-button {
        width: 100%;
    }

    .hero-sound-toggle {
        position: static;
        margin: 24px auto 0;
        justify-content: center;
    }
}

