/* Modern Reset */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --bg-color: #f9f9f9;
    --text-color: #333333;
    --secondary-text: #666666;
    --accent-color: #8a8a8a;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Montserrat', sans-serif;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-color);
    background-image: linear-gradient(rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.4)), url('background.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--text-color);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem;
    overflow-x: hidden;
}

.container {
    max-width: 800px;
    width: 100%;
    padding: 3rem;
    background: #ffffff;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.03);
    border-radius: 8px;
    /* Subtle rounded corners */
    position: relative;
    z-index: 1;
}

/* Decorative border element */
.container::before {
    content: '';
    position: absolute;
    top: 15px;
    left: 15px;
    right: 15px;
    bottom: 15px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    pointer-events: none;
    z-index: -1;
}

.sub-heading {
    text-transform: uppercase;
    letter-spacing: 0.3em;
    font-size: 0.85rem;
    color: var(--secondary-text);
    display: block;
    margin-bottom: 2rem;
    font-weight: 500;
}

.names {
    font-family: var(--font-heading);
    font-size: 4rem;
    font-weight: 400;
    line-height: 1.1;
    margin-bottom: 2rem;
    color: #222;
}

.amp {
    font-family: var(--font-heading);
    font-style: italic;
    color: var(--accent-color);
    font-weight: 400;
    font-size: 0.8em;
    padding: 0 0.2em;
}

.divider {
    height: 1px;
    width: 60px;
    background-color: var(--accent-color);
    margin: 0 auto 2.5rem;
    opacity: 0.5;
}

.details {
    margin-bottom: 3rem;
}

.date {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    letter-spacing: 0.05em;
    color: #444;
}

.location {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--secondary-text);
}

.invitation-note {
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    color: #999;
    font-style: italic;
    font-weight: 300;
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeIn 1.2s ease-out forwards;
}

.delay-1 {
    animation-delay: 0.4s;
}

@keyframes fadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsiveness */
@media (max-width: 600px) {
    .container {
        padding: 2rem 1.5rem;
    }

    .names {
        font-size: 2.5rem;
    }

    .date {
        font-size: 1.4rem;
    }
}