:root {
    --primary-bg: #fcf9f2;
    --secondary-bg: #f1f4e8;
    --accent-color: #d6a7a7;
    --text-color: #4a4a4a;
    --soft-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--primary-bg);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: 'Lora', serif;
    font-weight: 400;
}

.noise-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: url('data:image/svg+xml;utf8,<svg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"><filter id="noiseFilter"><feTurbulence type="fractalNoise" baseFrequency="0.65" numOctaves="3" stitchTiles="stitch"/></filter><rect width="100%" height="100%" filter="url(%23noiseFilter)" opacity="0.05"/></svg>');
    pointer-events: none;
    z-index: 1000;
}

.scrolly-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    position: relative;
}

.bg-alt {
    background-color: var(--secondary-bg);
}

.content {
    max-width: 900px;
    width: 100%;
}

.hero {
    text-align: center;
}

.hero-label {
    
    letter-spacing: 1px;
    font-size: 0.8rem;
    margin-bottom: 20px;
    opacity: 0.6;
}

h1 {
    font-size: 4rem;
    margin-bottom: 10px;
}

.subtitle {
    font-style: italic;
    font-size: 1.2rem;
    opacity: 0.7;
}

.scroll-indicator {
    position: absolute;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.5rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {transform: translateY(0) translateX(-50%);}
    40% {transform: translateY(-10px) translateX(-50%);}
    60% {transform: translateY(-5px) translateX(-50%);}
}

.collage {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.photo {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 4px;
    filter: sepia(0.2) brightness(0.9);
    transition: transform 0.5s ease;
}

.photo:hover {
    transform: scale(1.02);
}

h2 {
    font-size: 3rem;
    margin-bottom: 100px;
    text-align: center;
}

.soft-title {
    font-style: italic;
}

.manifest-card {
    background: white;
    padding: 60px;
    border-radius: 8px;
    box-shadow: var(--soft-shadow);
    text-align: center;
}

.manifest-text {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
}

.tagline {
    text-align: center;
    font-size: 1.1rem;
    margin-bottom: 100px;
    opacity: 0.6;
    
    letter-spacing: 0.5px;
}

.timeline {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.event-card {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: var(--soft-shadow);
    display: flex;
    gap: 30px;
}

.event-time {
    font-weight: bold;
    min-width: 120px;
    color: #b1854d;
}

.options-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.option-card {
    cursor: pointer;
}

.option-card input {
    display: none;
}

.card-content {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: var(--soft-shadow);
    height: 100%;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.option-card:hover .card-content {
    transform: translateY(-5px);
}

.option-card input:checked + .card-content {
    border-color: var(--accent-color);
    background-color: #fdfaf7;
}

.card-img-placeholder {
    width: 100%;
    height: 150px;
    background: #eee;
    border-radius: 4px;
    margin-bottom: 15px;
    overflow: hidden;
}

.card-img-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.theme {
    font-weight: bold;
    font-size: 0.8rem;
    
    letter-spacing: 1px;
    margin: 10px 0;
    color: var(--accent-color);
}

.maps-link {
    display: inline-block;
    margin-top: 15px;
    font-size: 0.8rem;
    color: #b1854d;
    text-decoration: none;
    border-bottom: 1px dashed #b1854d;
}

.hidden { display: none; }

#selection-result {
    text-align: center;
    margin-top: 40px;
    font-family: 'Lora', serif;
    font-style: italic;
    font-size: 1.2rem;
    color: var(--accent-color);
}

.options-container.horizontal {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

footer {
    padding: 100px 20px;
    text-align: center;
}

.footer-love {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.footer-sign {
    font-family: 'Lora', serif;
    font-style: italic;
    font-size: 1.5rem;
}

.fade-in-up {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s ease-out;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 768px) {
    .collage { grid-template-columns: repeat(2, 1fr); }
    .options-container { grid-template-columns: 1fr; }
    h1 { font-size: 2.5rem; }
}

/* POLAROID ENGINE & UPLOADS */
.polaroid-gallery { display: flex; gap: 20px; overflow-x: auto; padding: 20px 0; margin-top: 30px; }
.polaroid-item {
    min-width: 160px; background: white; padding: 10px 10px 40px 10px;
    border-radius: 4px; box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    position: relative; transition: transform 0.3s ease;
}
.polaroid-item:nth-child(1) { transform: rotate(-3deg); }
.polaroid-item:nth-child(2) { transform: rotate(2deg) translateY(10px); }
.polaroid-item:nth-child(3) { transform: rotate(-1deg); }

.polaroid-screen {
    width: 100%; aspect-ratio: 1/1; background: #eee;
    border-radius: 2px; overflow: hidden; display: flex;
    align-items: center; justify-content: center; position: relative;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.05); border: none;
}
.polaroid-screen img { width: 100%; height: 100%; object-fit: cover; display: none; filter: sepia(0.2) contrast(1.05) brightness(0.95); }
.polaroid-screen span { font-size: 24px; color: #aaa; }

.p-input { position: absolute; top: 0; left: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; z-index: 2; }
.polaroid-caption { position: absolute; bottom: 12px; width: 100%; text-align: center; font-family: 'Lora', serif; font-size: 14px; color: #666; left:0; }

.polaroid-item.is-filled .polaroid-screen span { display: none; }
.polaroid-item.is-filled { box-shadow: 0 15px 40px rgba(0,0,0,0.12); }
.polaroid-item.is-filled .polaroid-screen { box-shadow: inset 0 3px 10px rgba(0,0,0,0.1); }
.polaroid-item.is-loading .polaroid-screen span { animation: blink 1s infinite; }
@keyframes blink { 0%, 100% { opacity: 0.2; } 50% { opacity: 0.8; } }

/* POLAROID ENGINE & UPLOADS */
.polaroid-gallery { display: flex; gap: 20px; overflow-x: auto; padding: 20px 0; margin-top: 30px; }
.polaroid-item {
    min-width: 160px; background: white; padding: 10px 10px 40px 10px;
    border-radius: 4px; box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    position: relative; transition: transform 0.3s ease;
}
.polaroid-item:nth-child(1) { transform: rotate(-3deg); }
.polaroid-item:nth-child(2) { transform: rotate(2deg) translateY(10px); }
.polaroid-item:nth-child(3) { transform: rotate(-1deg); }

.polaroid-screen {
    width: 100%; aspect-ratio: 1/1; background: #eee;
    border-radius: 2px; overflow: hidden; display: flex;
    align-items: center; justify-content: center; position: relative;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.05); border: none;
}
.polaroid-screen img { width: 100%; height: 100%; object-fit: cover; display: none; filter: sepia(0.2) contrast(1.05) brightness(0.95); }
.polaroid-screen span { font-size: 24px; color: #aaa; }

.p-input { position: absolute; top: 0; left: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; z-index: 2; }
.polaroid-caption { position: absolute; bottom: 12px; width: 100%; text-align: center; font-family: 'Lora', serif; font-size: 14px; color: #666; left:0; }

.polaroid-item.is-filled .polaroid-screen span { display: none; }
.polaroid-item.is-filled { box-shadow: 0 15px 40px rgba(0,0,0,0.12); }
.polaroid-item.is-filled .polaroid-screen { box-shadow: inset 0 3px 10px rgba(0,0,0,0.1); }
.polaroid-item.is-loading .polaroid-screen span { animation: blink 1s infinite; }
@keyframes blink { 0%, 100% { opacity: 0.2; } 50% { opacity: 0.8; } }

/* REFINEMENT: Soft Image Filters */
.photo, .option-card-new img, .polaroid-screen img {
    filter: sepia(0.15) brightness(0.95) contrast(0.95);
    border-radius: 4px;
}

/* SCRAPBOOK ELEMENTS */
.hand-arrow {
    position: absolute;
    width: 60px;
    height: auto;
    opacity: 0.7;
    transform: rotate(15deg);
    pointer-events: none;
}

.hero .hand-arrow {
    top: -40px;
    right: -20px;
    transform: rotate(110deg);
}

.title-wrapper {
    position: relative;
    display: inline-block;
}

.washi-tape {
    position: absolute;
    width: 100px;
    height: 25px;
    background-color: rgba(220, 210, 190, 0.6);
    top: -10px;
    left: 50%;
    transform: translateX(-50%) rotate(-3deg);
    z-index: 10;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    border-radius: 2px;
}

.washi-tape {
    position: absolute;
    width: 80px;
    height: 20px;
    background-color: rgba(230, 220, 205, 0.7);
    top: -8px;
    left: 50%;
    transform: translateX(-50%) rotate(-3deg);
    z-index: 10;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
    border-radius: 1px;
}
.polaroid-item:nth-child(2) .washi-tape {
    transform: translateX(-50%) rotate(2deg);
    background-color: rgba(220, 210, 195, 0.7);
}
.polaroid-item:nth-child(3) .washi-tape {
    transform: translateX(-50%) rotate(-1deg);
    width: 90px;
}

/* REFINEMENT: Bouncing Scroll Arrow */
@keyframes bounce-soft {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(15px); }
}
.scroll-indicator {
    animation: bounce-soft 2.5s infinite ease-in-out;
}


/* Sunday Extensions & Reward */
.polaroid-item:nth-child(4) { transform: rotate(3deg); }
.polaroid-item:nth-child(5) { transform: rotate(-2deg) translateY(5px); }
.polaroid-item:nth-child(4) .washi-tape { transform: translateX(-50%) rotate(-4deg); }
.polaroid-item:nth-child(5) .washi-tape { transform: translateX(-50%) rotate(3deg); width: 85px; }

.hidden-reward {
    text-align: center; margin: 60px 20px 40px 20px;
    opacity: 0; transform: scale(0.9); transition: all 1.2s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: none;
}
.hidden-reward.show { display: block; }
.hidden-reward.visible-anim { opacity: 1; transform: scale(1) rotate(-2deg); }

.stamp {
    display: inline-block; padding: 15px 30px;
    border: 4px solid var(--accent-color); color: var(--accent-color);
    font-family: 'Lora', serif; font-size: 1.8rem; font-weight: bold;
    text-transform: uppercase; letter-spacing: 2px;
    border-radius: 8px; box-shadow: 0 4px 15px rgba(194, 122, 94, 0.15);
}
