/* ===== Reset & Base ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 18px;
}

body {
    background-color: #0a0a0f;
    color: #d4cfc4;
    font-family: 'Cormorant Garamond', 'Georgia', serif;
    line-height: 1.8;
    overflow-x: hidden;
    min-height: 100vh;
}

/* ===== Rain ===== */
.rain-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.raindrop {
    position: absolute;
    top: -20px;
    width: 1px;
    background: linear-gradient(to bottom, transparent, rgba(174, 194, 224, 0.25));
    animation: fall linear infinite;
    opacity: 0;
}

@keyframes fall {
    0% {
        transform: translateY(-20px);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(100vh);
        opacity: 0;
    }
}

/* ===== Page Layout ===== */
.page {
    position: relative;
    z-index: 1;
    max-width: 680px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 0;
}

/* ===== Fade-in on scroll ===== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1.2s ease, transform 1.2s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== Hero ===== */
.hero {
    min-height: 100vh;
    text-align: center;
}

.hero-text h1 {
    font-size: 4.5rem;
    font-weight: 300;
    letter-spacing: 0.08em;
    color: #e8e0d0;
    margin-bottom: 1rem;
    animation: fadeInSlow 2.5s ease forwards;
    opacity: 0;
}

.hero-text .subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 300;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #7a7568;
    animation: fadeInSlow 3s ease 0.8s forwards;
    opacity: 0;
}

@keyframes fadeInSlow {
    to {
        opacity: 1;
    }
}

/* ===== Letter ===== */
.letter {
    min-height: auto;
    padding: 6rem 0;
}

.letter-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 2px;
    padding: 3.5rem 3rem;
    position: relative;
}

.letter-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 2rem;
    right: 2rem;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(212, 175, 55, 0.2), transparent);
}

.letter-card .date {
    font-family: 'Inter', sans-serif;
    font-size: 0.7rem;
    font-weight: 300;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #5a5549;
    margin-bottom: 2.5rem;
}

.letter-card p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    font-weight: 300;
    color: #b8b0a2;
}

.letter-card p:first-of-type + p {
    /* "Hey," */
}

.signoff {
    margin-top: 3rem;
    font-style: italic;
    color: #9a9286 !important;
}

.dash {
    display: inline-block;
    margin-top: 0.5rem;
    font-style: normal;
    color: #d4af37;
    font-weight: 400;
}

/* ===== Closing ===== */
.closing {
    text-align: center;
    min-height: 60vh;
}

.poem {
    font-size: 1.8rem;
    font-weight: 300;
    font-style: italic;
    color: #c4b89a;
    line-height: 2;
    margin-bottom: 2rem;
}

.translation {
    display: block;
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    font-weight: 300;
    font-style: normal;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #5a5549;
    margin-top: 0.5rem;
}

.final-line {
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    font-weight: 300;
    color: #6a6359;
    letter-spacing: 0.05em;
}

/* ===== Footer ===== */
.footer {
    text-align: center;
    padding: 4rem 0 3rem;
    min-height: auto;
}

.footer p {
    font-family: 'Inter', sans-serif;
    font-size: 0.65rem;
    font-weight: 300;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #3a3630;
}

/* ===== Scrollbar ===== */
::-webkit-scrollbar {
    width: 4px;
}

::-webkit-scrollbar-track {
    background: #0a0a0f;
}

::-webkit-scrollbar-thumb {
    background: rgba(212, 175, 55, 0.15);
    border-radius: 2px;
}

/* ===== Responsive ===== */
@media (max-width: 600px) {
    html {
        font-size: 16px;
    }

    .hero-text h1 {
        font-size: 3rem;
    }

    .letter-card {
        padding: 2.5rem 1.8rem;
    }

    .poem {
        font-size: 1.4rem;
    }

    .page {
        padding: 0 1.2rem;
    }
}

/* ===== Selection ===== */
::selection {
    background: rgba(212, 175, 55, 0.15);
    color: #e8e0d0;
}
