/* Import Google Fonts for classier typography */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700&family=Raleway:wght@300;400&display=swap');

/* Reset default styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* General body styling */
body {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background-color: #f7f3ef;
    font-family: 'Raleway', sans-serif;
    padding: 10px;
}

/* Invite card styling */
.invite-card {
    width: 100%;
    max-width: 400px;
    background-color: #fff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.1);
    text-align: center;
    color: #333;
}

/* Header styling */
.header h1 {
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    color: #8b5e3c;
    margin-bottom: 10px;
    letter-spacing: 1px;
    font-weight: 700;
}

.header h2 {
    font-family: 'Playfair Display', serif;
    font-size: 32px;
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
    letter-spacing: 0.5px;
}

/* Details and CTA styling */
.details p {
    font-family: 'Raleway', sans-serif;
    font-size: 16px;
    color: #555;
    margin: 8px 0;
    line-height: 1.6;
}

.cta p {
    font-family: 'Raleway', sans-serif;
    margin-top: 15px;
    font-size: 15px;
    line-height: 1.5;
    color: #444;
}

.cta a {
    color: #8b5e3c;
    text-decoration: none;
    font-weight: 600;
    font-family: 'Playfair Display', serif;
    font-size: 16px;
}

.cta a:hover {
    text-decoration: underline;
}

/* Footer styling */
.footer p {
    margin-top: 20px;
    font-style: italic;
    color: #777;
    font-size: 14px;
    letter-spacing: 0.5px;
}

/* Media Query for smaller screens */
@media (max-width: 480px) {
    .header h1 {
        font-size: 24px;
    }

    .header h2 {
        font-size: 28px;
    }

    .details p, .cta p {
        font-size: 14px;
    }

    .footer p {
        font-size: 13px;
    }
}

/* Media Query for larger tablets and small laptops */
@media (min-width: 481px) and (max-width: 768px) {
    .invite-card {
        padding: 30px;
    }

    .header h1 {
        font-size: 26px;
    }

    .header h2 {
        font-size: 30px;
    }

    .details p, .cta p {
        font-size: 16px;
    }

    .footer p {
        font-size: 15px;
    }
}
