:root {
    --bg-cream: #FDFBF7;
    --wine-red: #4E342E;
    --transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
    background-color: var(--bg-cream);
    color: var(--wine-red);
    font-family: 'Montserrat', sans-serif;
    min-height: 100vh;
    overflow: hidden;
}

/* Watermark */
.background-watermark {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60vw;
    height: 60vw;
    background: url('assets/logo.png') no-repeat center center;
    background-size: contain;
    opacity: 0;
    pointer-events: none;
    z-index: 1;
}

/* Hero Section */
.hero {
    height: 100vh;
    width: 100vw;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 10;
}

.main-title {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.title-line {
    display: flex;
    gap: 0.5vw;
}

/* Letter Writing Effect */
.letter {
    font-family: 'Playfair Display', serif;
    font-size: 11vw;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--wine-red);
    display: inline-block;
    opacity: 0;
    position: relative;
}

.letter.write {
    animation: letter-draw 0.8s ease-out forwards;
}

@keyframes letter-draw {
    0% {
        opacity: 0;
        transform: translateY(10px) scale(0.95);
        clip-path: inset(0 100% 0 0);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
        clip-path: inset(0 0 0 0);
    }
}



/* Cursive Writing Effect */
.script-word {
    font-family: 'Pinyon Script', cursive;
    font-size: 8vw;
    color: var(--wine-red);
    margin-top: 1rem;
    opacity: 0;
    position: relative;
    display: inline-block;
}

.script-word.write {
    opacity: 1;
    -webkit-mask-image: linear-gradient(to right, black 0%, black 100%);
    -webkit-mask-size: 200% 100%;
    -webkit-mask-position: 100% 0;
    mask-image: linear-gradient(to right, black 0%, black 100%);
    mask-size: 200% 100%;
    mask-position: 100% 0;
    animation: pen-writing 2.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes pen-writing {
    from {
        -webkit-mask-position: 100% 0;
        mask-position: 100% 0;
    }
    to {
        -webkit-mask-position: 0% 0;
        mask-position: 0% 0;
    }
}

/* Footer */
.footer {
    position: fixed;
    bottom: 2rem;
    width: 100%;
    text-align: center;
    font-size: 0.7rem;
    letter-spacing: 2px;
    opacity: 0.4;
    text-transform: lowercase;
    z-index: 100;
}

.footer a {
    color: inherit;
    text-decoration: none;
    font-weight: 600;
}

/* Modal */
.newsletter-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(253, 251, 247, 0.98);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.newsletter-modal.active {
    opacity: 1;
    visibility: visible;
}

/* Responsive */
@media (max-width: 1024px) {
    .letter { font-size: 10vw; }
    .script-word { font-size: 9vw; }
    .background-watermark { width: 70vw; height: 70vw; }
}

@media (max-width: 768px) {
    .letter { font-size: 11vw; }
    .script-word { font-size: 10vw; margin-top: 0.5rem; }
    .background-watermark { width: 85vw; height: 85vw; opacity: 0.03; }
    .footer { bottom: 1.5rem; font-size: 0.6rem; }
}

@media (max-width: 480px) {
    .main-title { gap: 0.5rem; }
    .letter { font-size: 12vw; } /* Ensures 8 letters fit (8*12=96vw) */
    .script-word { font-size: 14vw; }
}
