body {
    margin: 0;

    height: 100vh;

    display: flex;
    justify-content: center;

    background-color: #2D2424;

    padding-top: 180px;
}

.container {
    text-align: center;
    max-width: 700px;

    animation: fadeIn 2s ease;
}

h1 {
    font-family: "Cormorant Garamond", serif;

    font-size: 64px;
    font-weight: 600;

    color: #EADBC8;

    letter-spacing: 2px;
    line-height: 1.2;

    margin-bottom: 10px;
}

p {
    font-family: "Cormorant Garamond", serif;

    font-size: 24px;
    font-weight: 400;

    color: #D8C7B5;

    letter-spacing: 1px;

    margin-top: 0;

    animation: fadeIn 2s ease 0.7s both;
}

.divider {
    font-family: "Cormorant Garamond", serif;

    font-size: 24px;

    color: #D8C7B5;

    letter-spacing: 3px;

    margin: 28px 0 40px 0;

    animation: fadeIn 2s ease 1.4s both;
}

button {
    font-family: "Cormorant Garamond", serif;

    font-size: 22px;

    padding: 14px 34px;

    border: 1px solid rgba(45,36,36,0.2);

    border-radius: 16px;

    background-color: #EADBC8;

    color: #2D2424;

    cursor: pointer;

    opacity: 1;

    transition: 
    opacity 1s ease, 
    transform 1s ease,
    box-shadow 0.4s ease;

    box-shadow: 0 8px 20px rgba(0,0,0,0.25);

}


button:hover {

    transform: translateY(-4px) scale(1.03);

    background-color: #F3E7D3;

    box-shadow: 0 12px 25px rgba(0,0,0,0.3);

}

@keyframes fadeIn {

    from {

        opacity: 0;

        transform: translateY(50px);

    }

    to {

        opacity: 1;

        transform: translateY(0);

    }

}

#message {
    margin-top: 0;

    font-family: "Cormorant Garamond", serif;

    font-size: 32px;

    color: #EADBC8;

    opacity: 0;

    transform: translateY(40px);

    transition: opacity 1.6s ease, transform 1.6s ease;

    min-height: 45px;
}

#message.show {
    opacity: 1;

    transform: translateY(0);
}

.letter-container {

    margin-top: 50px;

    display: flex;
    justify-content: center;

    opacity: 0;

    transform: translateY(40px);

    transition: opacity 1.5s ease, transform 1.5s ease;

}

.letter-container.show {
    
    opacity: 1;

    transform: translateY(0);

}

.letter {

     width: 380px;

    min-height: 350px;

    padding: 50px;

    background:
    radial-gradient(circle at 50% 50%, rgba(255,255,255,0.15), transparent 45%),
    radial-gradient(circle at 15% 20%, rgba(90,60,30,0.12), transparent 25%),
    radial-gradient(circle at 85% 80%, rgba(90,60,30,0.12), transparent 30%),
    radial-gradient(ellipse at center, #D6C69A 0%, #C9B78C 70%, #B8A477 100%);

    position: relative;

    color: #2D2424;

    border-radius: 18px 25px 20px 30px;

    box-shadow:
    0 15px 35px rgba(0,0,0,0.3),
    inset 0 0 30px rgba(80,50,20,0.15);

    border: 1px solid rgba(45,36,36,0.2);

    font-family: "Cormorant Garamond", serif;

    overflow: hidden;

    filter: contrast(95%) brightness(98%);

    transform: 
        min-height 1.2s ease,
        transform 1.2s ease;
       
}

.letter::before {

    content: "";

    position: absolute;

    inset: 10px;

    border: 1px solid rgba(80,50,20,0.18);

    border-radius: 12px;

    pointer-events: none;

}

.letter::after {
    
    content: "";

    position: absolute;

    inset: 0;

    background: 
     radial-gradient(circle at 20% 30%, rgba(80,50,20,0.08), transparent 20%),
     radial-gradient(circle at 80% 70%, rgba(80,50,20,0.08), transparent 25%);

    background-size: 11px 11px;

    opacity: 0.6;

    pointer-events: none;
    
}

.letter h2 {

    font-size: 42px;
    
    margin-top: 0;

    margin-bottom: 20px;

}

.letter p {

    color: #2D2424;

    font-size: 24px;

}

.letter.open {

    min-height: 700px;

    transform: translateY(-5px) scale(1.03);

    animation: parchmentOpen 1.5s ease;

}

@keyframes parchmentOpen {

    0% {

        transform: translateY(20px) scale(0.98);

        opacity: 0;

    }

    40% {

        transform: translateY(-20px) scale(1.03);

        opacity: 1;

    }
    
    100% {

        transform: translateY(-5px) scale(1.03);
        
        opacity: 1;

    }

}  

.touch {
    display: block;

    margin-top: 70px;

    font-size: 20px;

    font-style: italic;

    color: #5A4636;

    opacity: 0.8;

    animation: pulse 2s infinite;

}

@keyframes pulse {
    0% {
        opacity: 0.5;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0.5;
    }
}

.open-letter {
    
    display: none;

    font-family: "Cormorant Garamond", serif;

    font-size: 24px;

    line-height: 1.6;

    color: #2D2424;

    margin-top: 40px;

}

.letter.open .closed-letter {
    
    display: none;

}

.letter.open .open-letter {

    display: block;

    animation: letterOpen 1.5s ease forwards;

}

@keyframes letterOpen {

    from {

        opacity: 0;

        transform: translateY(30px);

    }

    to {

        opacity: 1;

        transform: translateY(0);

    }

}

.closed-letter {

    opacity: 1;

    transition: opacity 0.8s ease;

}

.closing {

    margin-top: 50px;

    font-size: 24px;

    color: #2D2424;
    
}

.signature {

    display: block;

    margin-top: 50px;

    text-align: right;

    font-size: 28px;

    font-style: italic;

    color: #5A4636;

}

@media (max-width: 600px) {

    body {

        padding-top: 100px;

    }

    h1 {

        font-size: 42px;

    }

    #message {

        font-size: 26px;

    }

    .letter h2 {

        font-size: 34px;

    }

    .letter p {

        font-size: 20px;

    }

    .open-letter {

        font-size: 20px;

    }

}

.greeting {

    display: block;

    font-size: 32px;

    font-weight: 600;

    text-align: left;

    margin-bottom: 25px;

    color: #2D2424;

}

@media (max-width: 600px) {

    body {

        padding-top: 80px;

    }

    .container {

        width: 100%;

    }

    h1 {

        font-size: 42px;

    }

    p {
        
        font-size: 20px;

    }

    .divider {

        font-size: 20px;

    }

    #message {

        font-size: 26px;

    }

    .letter {

        width: 260px;
        min-height: 450px;
        padding: 30px;

    }

    .letter h2 {

        font-size: 32px;

    }

    .letter p,
    .open-letter {

        font-size: 20px;
        line-height: 1.6;

    }

    .signature {

        font-size: 24px;

    }
    
}

.memories {

    margin-top: 90px;

    text-align: center;

}


.memories h2 {

    font-family: "Cormorant Garamond", serif;

    font-size: 42px;

    color: #EADBC8;

    font-weight: 600;

}


.memory-text {

    font-family: "Cormorant Garamond", serif;

    font-size: 26px;

    color: #D8C7B5;

}


.photo-area {

    display: grid;

    grid-template-columns: repeat(2, 370px);
    
    justify-content: center;

    gap: 50px 40px;

    margin-top: 50px;

}


.photo-card {

    width: 240px;

    height: auto;

    background-color: #C9B78C;

    padding: 15px;

    box-shadow:
     0 12px 30px rgba(0,0,0,0.25);

    font-family: "Cormorant Garamond", serif;

    font-size: 24px;

    color: #2D2424;
    
    transform: rotate(-2deg);

}

.photo-card {
    width: 370px;
    min-height: 520px;
    overflow: hidden;
    position: relative;
}

.photo-card img {
    width: 88%;
    height: 260px;
    
    object-fit: cover;
    
    display: block;

    margin: 25px auto 0;

    filter: sepia(8%);

    box-shadow: 0 8px 18px rgba(0,0,0,0.18);

}

.photo-card p {
    color: #2D2424; 

    margin-top: 25px;
    padding: 0 25px;
    font-size: 22px;
    line-height: 1.5;
}

.photo-card img {
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}

@media (max-width: 800px) {

    .photo-area {
        grid-template-columns: 1fr;
        gap: 40px;
    }

}

.photo-caption {
    font-family: "Cormorant Garamond", serif;

    font-size: 22px;
    line-height: 1.5;

    color: #EADBC8;

    text-align: center;

    padding: 0 25px;
    margin-top: 25px;
}

.photo-caption {
    display: block;
    position: relative;
    z-index: 2;

    margin: 20px 15px 0;
    padding: 0;

    font-size: 22px;
    line-height: 1.4;
    text-align: center;

    color: #F0E4D2;
}

.photo-card h3 {
    color: #2D2424;
    font-family: "Cormorant Garamond", serif;
    font-size: 26px;
    font-weight: 600;
    margin: 20px 0 0;
    text-align: center;
    font-weight: 600;
}

.future {

    margin-top: 150px;

    text-align: center;

    padding-bottom: 150px;

}


.future h2 {

    font-family: "Cormorant Garamond", serif;

    font-size: 44px;

    font-weight: 600;

    color: #EADBC8;

    margin-bottom: 25px;

}


.future-text {

    font-family: "Cormorant Garamond", serif;

    font-size: 25px;

    line-height: 1.6;

    color: #D8C7B5;

    max-width: 650px;

    margin: 0 auto;

}

.future-closing {

    font-family: "Cormorant Garamond", serif;

    font-size: 28px;

    font-weight: 600;

    color: #EADBC8;

    margin-top: 40px;

}

.final {
    text-align: center;
    padding: 80px 20px 120px;
}

.final-divider {
    font-family: "Cormorant Garamond", serif;
    font-size: 22px;
    color: #D8C7B5;
    letter-spacing: 3px;
    margin-bottom: 40px;
}

.final h2 {
    font-family: "Cormorant Garamond", serif;
    font-size: 42px;
    font-weight: 600;
    color: #EADBC8;
    margin: 0;
}

.final p {
    font-family: "Cormorant Garamond", serif;
    font-size: 28px;
    color: #EADBC8;
    margin-top: 25px;
}