* {
    box-sizing: border-box;
}

:root {
    --bg-color: #F9F8F4;
    --text-color: #2C2C2C;
    --accent-color: #8B1E1E;
    --gold-color: #C5A059;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'Montserrat', sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.05'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 999;
    opacity: 0.15;
}

h1, h2 {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 600;
    letter-spacing: 1px;
    text-align: center;
    margin-top: 0;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    animation: fadeIn 2s ease-in;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 10px;
}

.date {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #666;
    margin-bottom: 30px;
    cursor: help;
    transition: opacity 0.3s;
}

.date:hover::after {
    content: " - 2026.";
    color: var(--accent-color);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.timeline-container {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 50px auto;
    padding: 20px 0;
}

.timeline-container::after {
    content: '';
    position: absolute;
    width: 2px;
    background-color: var(--gold-color);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1px; 
    z-index: 0;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    background-color: transparent;
    width: 50%;
}

.left {
    left: 0;
    text-align: right;
}

.right {
    left: 50%;
    text-align: left;
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    background-color: var(--bg-color);
    border: 2px solid var(--gold-color);
    top: 15px;
    border-radius: 50%;
    z-index: 1;
}

.left::after {
    right: -11px;
}

.right::after {
    left: -11px;
}

.year {
    font-weight: bold;
    color: var(--gold-color);
    display: block;
    margin-bottom: 5px;
    font-family: 'Courier New', monospace;
}

#missing-frame-section {
    min-height: 60vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    width: 100%;
}

.frame-container {
    max-width: 500px;
    padding: 20px;
}

.photo-placeholder {
    width: 300px;
    height: 400px;
    border: 2px dashed #999;
    margin: 0 auto 30px auto;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 4px;
    transition: all 0.3s ease;
    background-color: #fff;
}

.plus-icon {
    font-size: 40px;
    color: #ccc;
    font-weight: 100;
}

.photo-placeholder:hover {
    border-color: var(--gold-color);
    cursor: pointer;
}

.photo-placeholder:hover .plus-icon {
    color: var(--gold-color);
}

.caption-text h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 10px;
}

.caption-text p {
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    color: #666;
    letter-spacing: 1px;
    text-transform: uppercase;
}

#palette-section {
    padding: 40px 20px;
    text-align: center;
}
.palette-grid {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-top: 20px;
}
.swatch {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 80px;
}
.color-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-bottom: 10px;
    border: 1px solid #ddd;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.swatch span {
    font-family: 'Courier New', monospace;
    font-size: 0.7rem;
    color: #888;
    text-transform: uppercase;
}

#playlist-section {
    padding: 60px 20px;
    display: flex;
    justify-content: center;
    width: 100%;
}

.playlist-container {
    width: 100%;
    max-width: 500px;
    background: #fff;
    padding: 20px;
    border: 1px solid #e0e0e0;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.playlist-header h3 {
    font-family: 'Playfair Display', serif;
    margin-top: 0;
    margin-bottom: 5px;
    color: #333;
    text-align: center;
}

.playlist-header p {
    font-family: 'Courier New', monospace;
    font-size: 0.8rem;
    color: #888;
    text-align: center;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

#gallery-section {
    padding: 60px 20px;
    background-color: var(--bg-color);
    width: 100%;
}

.gallery-container {
    max-width: 800px;
    margin: 0 auto;
}

.gallery-header h3 {
    font-family: 'Playfair Display', serif;
    margin-bottom: 5px;
    color: #333;
    text-align: center;
}

.gallery-header p {
    font-family: 'Courier New', monospace;
    font-size: 0.8rem;
    color: #888;
    margin-bottom: 40px;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
}

.photo-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-top: 20px;
}

.grid-item, .album-wrapper {
    aspect-ratio: 1 / 1;
    width: 100%;
    overflow: hidden;
    cursor: pointer;
}

.grid-item.placeholder, 
.album-photo.placeholder {
    aspect-ratio: 1 / 1;
    background-color: #1a1a1a !important;
    border: none !important;
    border-radius: 2px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff !important;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    position: relative;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    border-right: none !important;
}

.grid-item.placeholder::before, .grid-item.placeholder::after,
.album-photo.placeholder::before, .album-photo.placeholder::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 15px;
    background-image: radial-gradient(circle, #F9F8F4 3px, transparent 4px);
    background-size: 100% 20px;
    background-position: center;
    z-index: 2;
}

.grid-item.placeholder::before, .album-photo.placeholder::before { left: 5px; }
.grid-item.placeholder::after, .album-photo.placeholder::after { right: 5px; }

.grid-item.placeholder:hover, 
.album-photo.placeholder:hover {
    color: var(--gold-color) !important;
    background-color: #000 !important;
}

.album-wrapper {
    position: relative;
    border-radius: 4px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    background: #fff;
}

.mini-album {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    height: 100%;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.mini-album::-webkit-scrollbar {
    display: none;
}

.album-photo {
    flex: 0 0 100%;
    scroll-snap-align: start;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.album-label {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    font-size: 0.7rem;
    padding: 4px 8px;
    border-radius: 12px;
    font-family: sans-serif;
    pointer-events: none;
    backdrop-filter: blur(2px);
}

.jiji-stamp {
    margin-top: 60px;
    opacity: 0.6;
    transform: scale(0.9);
    transition: all 0.3s ease;
}
.jiji-stamp:hover {
    opacity: 1;
    transform: scale(1) rotate(5deg);
}
.jiji-stamp p {
    font-family: 'Courier New', monospace;
    font-size: 0.7rem;
    margin-top: 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.signature {
    font-family: 'Sacramento', cursive;
    font-size: 3rem; 
    color: var(--accent-color);
    margin-top: 15px;
    display: block;
    transform: rotate(-5deg);
}

h2 {
    width: 100%;
    text-align: center;
    margin-top: 50px;
    display: block;
}

@media screen and (max-width: 768px) {
    .timeline-container::after {
        left: 31px;
    }
    
    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }
    
    .left, .right {
        left: 0; 
        text-align: left;
    }
    
    .left::after, .right::after {
        left: 21px;
        right: auto;
    }

    .photo-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.music-control {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
}

.music-btn {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 30px;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.8rem;
    color: #333;
    outline: none;
}

.music-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
    border-color: var(--gold-color);
    color: var(--gold-color);
}

.music-btn .icon {
    font-size: 1.2rem;
}

.music-btn.playing {
    border-color: var(--gold-color);
    color: var(--gold-color);
    background-color: #FDFCF8;
}

.music-btn.playing .icon {
    animation: spin 2s linear infinite;
    display: inline-block;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@media screen and (max-width: 600px) {
    .music-control {
        bottom: 20px;
        right: 20px;
    }
    .music-btn {
        padding: 8px 15px;
    }
}

.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.9);
}

.modal-content {
    margin: auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    width: 80%;
    max-width: 1000px;
}

.modal-content img {
    width: 100%;
    max-width: 400px;
    height: auto;
    object-fit: contain;
    border-radius: 5px;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

.close-modal:hover,
.close-modal:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

.polaroid-wrapper {
    background: #fff;
    padding: 15px 15px 40px 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    display: inline-block;
    transform: rotate(-2deg);
    margin-bottom: 30px;
    transition: transform 0.3s ease;
}

.polaroid-wrapper:hover {
    transform: rotate(0deg) scale(1.02);
}

.cat-photo {
    max-width: 100%;
    width: 300px;
    height: auto;
    display: block;
    filter: sepia(20%) contrast(90%);
}

.letter-body {
    max-width: 600px;
    margin: 40px auto 100px auto;
    text-align: left;
}

.letter-body p {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.25rem;
    color: #333;
    margin-bottom: 20px;
    line-height: 1.8;
}

.greeting {
    font-weight: 600;
    font-size: 1.5rem;
    margin-bottom: 30px;
}

.closing {
    font-style: italic;
    margin-bottom: 5px;
}

@media screen and (max-width: 600px) {
    .letter-body {
        padding: 0 15px;
        text-align: left;
    }
}

#letter-section {
    padding: 60px 20px;
    display: flex;
    justify-content: center;
    background-color: transparent;
}

.paper-letter {
    background-color: #FFFCF5;
    width: 100%;
    max-width: 650px;
    padding: 60px 50px;
    box-shadow: 
        0 1px 1px rgba(0,0,0,0.05), 
        0 10px 30px rgba(0,0,0,0.1);
    position: relative;
    border-radius: 2px;
}

.paper-letter::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%239C92AC' fill-opacity='0.03' fill-rule='evenodd'/%3E%3C/svg%3E");
    pointer-events: none;
}

.polaroid-wrapper {
    background: #fff;
    padding: 10px 10px 30px 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
    width: fit-content;
    margin: 0 auto 40px auto;
    display: block;
    transform: rotate(-2deg);
    transition: transform 0.3s ease;
}

.polaroid-wrapper:hover {
    transform: rotate(0deg) scale(1.02);
}

.cat-photo {
    width: 250px;
    height: auto;
    display: block;
    filter: sepia(10%);
}

.letter-header {
    text-align: center;
    margin-bottom: 40px;
}

.letter-header h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    color: #333;
    margin-bottom: 5px;
    letter-spacing: 1px;
}

.letter-header p {
    font-family: 'Courier New', monospace;
    font-size: 0.75rem;
    color: #888;
    text-transform: uppercase;
}

.divider-line {
    width: 40px;
    height: 1px;
    background-color: var(--accent-color);
    margin: 15px auto 0 auto;
}

.actual-text {
    text-align: left;
    color: #2c2c2c;
}

.actual-text p {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 20px;
}

.greeting {
    font-weight: 600;
    font-size: 1.4rem;
    margin-bottom: 30px;
}

.closing {
    margin-bottom: 5px;
    font-style: italic;
}

@media screen and (max-width: 600px) {
    .paper-letter {
        padding: 40px 25px;
    }
}

.return-container {
    margin-top: 80px; 
    text-align: center;
    border-top: 1px solid #eee; 
    padding-top: 30px;
}

.return-btn {
    font-family: 'Courier New', monospace;
    font-size: 0.8rem;
    color: #aaa; 
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.3s ease;
    padding-bottom: 5px;
}

.return-btn:hover {
    color: var(--accent-color);
    letter-spacing: 4px; 
    border-bottom: 1px solid var(--accent-color);
}

/* ARCHIVE MODE TWEAKS */
body {
    --text-color: #222; /* Slightly darker for better reading */
}

.hero p {
    font-style: italic;
    color: #555;
}
/* === THE FLORAL ARCHIVE === */
#floral-archive {
    padding: 60px 20px;
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.archive-header h3 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: #2C2C2C;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.archive-header p {
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    color: #888;
    margin-bottom: 20px;
}

/* Flexbox Grid for the photos */
.floral-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-top: 40px;
}

.photo-frame {
    background: #FDFCF8;
    padding: 15px 15px 25px 15px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.05);
    border: 1px solid #E5E0D8;
    max-width: 300px;
    transition: transform 0.3s ease;
}


.photo-frame:hover {
    transform: translateY(-5px) scale(1.02);
}

.photo-frame img {
    width: 100%;
    height: auto;
    display: block;
    filter: sepia(10%) contrast(110%); 
}

.photo-caption {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.1rem;
    color: #444;
    font-style: italic;
    margin-top: 15px;
    margin-bottom: 0;
}


.album-photo, .photo-frame img {
    filter: grayscale(100%) contrast(90%);
    transition: all 0.5s ease;
}


.album-wrapper:hover .album-photo, 
.photo-frame:hover img {
    filter: grayscale(0%) contrast(100%);
}