@font-face {
    font-family: 'The Seasons';
    src: url('theseasons-reg.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
}

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

html, body {
    height: 100%;
}

body {
    font-family: 'The Seasons', 'Cormorant Garamond', Georgia, serif;
    background-color: #0a0a0a;
    color: #fff;
    overflow: hidden;
}

.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 4rem 2rem;
}

.background-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0;
    animation: fadeInImage 2s ease-out 0.3s forwards;
}

@keyframes fadeInImage {
    to { opacity: 1; }
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.5) 0%,
        rgba(0, 0, 0, 0.1) 25%,
        rgba(0, 0, 0, 0.1) 75%,
        rgba(0, 0, 0, 0.5) 100%
    );
}

.top-content {
    position: relative;
    z-index: 10;
    text-align: center;
    animation: fadeInContent 1.5s ease-out 0.8s both;
}

.bottom-content {
    position: relative;
    z-index: 10;
    text-align: center;
    animation: fadeInContent 1.5s ease-out 1.2s both;
}

@keyframes fadeInContent {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.names {
    font-size: clamp(2.5rem, 10vw, 6rem);
    font-weight: normal;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.ampersand {
    font-style: italic;
    color: #d4b896;
    margin: 0 0.05em;
}

.date {
    font-size: clamp(0.875rem, 2.5vw, 1.25rem);
    font-weight: normal;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    opacity: 0.9;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

.accent-line {
    width: 60px;
    height: 1px;
    background: linear-gradient(90deg, transparent, #d4b896, transparent);
    margin: 1rem auto 0;
}

/* Mobile optimizations */
@media (max-width: 768px) {
    .hero {
        padding: 3rem 1.5rem;
        padding-top: calc(6rem + env(safe-area-inset-top));
        padding-bottom: calc(3rem + env(safe-area-inset-bottom));
    }

    .background-image {
        object-position: center 20%;
    }

    .overlay {
        background: linear-gradient(
            to bottom,
            rgba(0, 0, 0, 0.6) 0%,
            rgba(0, 0, 0, 0.15) 20%,
            rgba(0, 0, 0, 0.15) 80%,
            rgba(0, 0, 0, 0.6) 100%
        );
    }

    .names {
        letter-spacing: 0.06em;
    }

    .date {
        letter-spacing: 0.25em;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 2.5rem 1rem;
        padding-top: calc(5rem + env(safe-area-inset-top));
        padding-bottom: calc(2.5rem + env(safe-area-inset-bottom));
    }

    .names {
        font-size: clamp(1.75rem, 11vw, 3rem);
        letter-spacing: 0.04em;
    }

    .date {
        font-size: 0.75rem;
        letter-spacing: 0.2em;
    }

    .accent-line {
        width: 40px;
        margin-top: 0.75rem;
    }
}

/* Landscape mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        padding: 1.5rem 2rem;
    }

    .names {
        font-size: clamp(1.5rem, 6vh, 2.5rem);
    }

    .date {
        font-size: 0.7rem;
    }

    .accent-line {
        margin-top: 0.5rem;
    }
}
