.letter-container {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    padding: 20px;
    font-family: 'Kalam', cursive;
}

.letter-paper {
    background: 
        radial-gradient(circle at 20% 80%, transparent 0%, transparent 49%, rgba(120,58,40,0.04) 50%, rgba(120,58,40,0.04) 100%),
        radial-gradient(circle at 80% 20%, transparent 0%, transparent 49%, rgba(120,58,40,0.04) 50%, rgba(120,58,40,0.04) 100%),
        radial-gradient(circle at 40% 40%, transparent 0%, transparent 49%, rgba(218,165,32,0.03) 50%, rgba(218,165,32,0.03) 100%),
        linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.6) 50%, transparent 100%),
        #faf7f0;
    padding: 40px 50px 60px 50px;
    box-shadow: 
        0 15px 35px rgba(0,0,0,0.1),
        inset 0 0 40px rgba(139,69,19,0.08),
        0 0 0 1px rgba(139,69,19,0.1);
    border-radius: 3px;
    position: relative;
    transform: rotate(-0.5deg);
    margin: 20px;
}

.letter-paper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        repeating-linear-gradient(
            0deg,
            transparent 0px,
            transparent 24px,
            rgba(139,69,19,0.06) 25px,
            rgba(139,69,19,0.06) 26px
        );
    pointer-events: none;
}

.letter-paper::after {
    content: '';
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    bottom: 10px;
    border: 1px solid rgba(139,69,19,0.1);
    border-radius: 2px;
    pointer-events: none;
}

.date {
    text-align: right;
    font-size: 14px;
    color: #8b4513;
    margin-bottom: 30px;
    font-style: italic;
}

.greeting {
    font-size: 18px;
    color: #654321;
    margin-bottom: 25px;
    font-weight: 400;
}

.letter-content {
    font-size: 16px;
    line-height: 1.8;
    color: #5d4037;
    margin-bottom: 40px;
    text-align: justify;
}

.letter-content p {
    margin-bottom: 20px;
    position: relative;
}

.signature {
    text-align: right;
    font-family: 'Dancing Script', cursive;
    font-size: 28px;
    color: #8b4513;
    font-weight: 700;
    margin-top: 30px;
    transform: rotate(-1deg);
    position: relative;
}

.ink-blot {
    position: absolute;
    width: 8px;
    height: 8px;
    background: radial-gradient(circle, rgba(139,69,19,0.3) 0%, transparent 70%);
    border-radius: 50%;
}

.ink-blot:nth-child(1) { top: 15%; left: 12%; }
.ink-blot:nth-child(2) { top: 45%; right: 8%; }
.ink-blot:nth-child(3) { bottom: 25%; left: 20%; }

@media (max-width: 768px) {
    .letter-paper {
        padding: 30px 25px 40px 25px;
        margin: 10px;
    }
    
    .letter-content {
        font-size: 15px;
    }
    
    .signature {
        font-size: 24px;
    }
}

.fade-in {
    animation: fadeIn 1.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px) rotate(-0.5deg); }
    to { opacity: 1; transform: translateY(0) rotate(-0.5deg); }
}