html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: #fbf9f5;
    font-family: "Inter", sans-serif;
    color: #375744;
}

/* ---------- Navigation ---------- */

nav {

    position: sticky;
    top: 0;

    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 32px;

    padding: 18px;

    background: #fbf9f5;

    border-bottom:1px solid #B59B81;

    z-index: 1000;

}

nav a {

    position: relative;

    text-decoration: none;

    font-family: "Cormorant Garamond", serif;

    font-size: 1.4rem;

    color: #375744;

    transition: color .25s ease;

}

nav a:hover {

    color: #6895CC;

}

/* underline animation */

nav a::after {

    content: "";

    position: absolute;

    left: 50%;

    bottom: -4px;

    width: 0;

    height: 2px;

    background: #6895CC;

    transform: translateX(-50%);

    transition: width .25s ease;

}

nav a:hover::after {

    width: 100%;

}

/* ---------- Header ---------- */

.title {

    text-align: center;

    padding: 20px 20px 15px;

}

h1 {

    font-family: "Cormorant Garamond", serif;

    font-size: 84px;

    font-weight: 500;

    margin: 0;

    color: #375744;

}

.date {

    font-family: "Cormorant Garamond", serif;

    font-size: 1.4rem;

    color: #b59b81;

    margin-top: 10px;

    margin-bottom: 0;

}

.hero {

    width: 100%;

    display: block;

}

/* ---------- Invitation ---------- */

.intro {

    padding: 80px 30px;

}

.name-block {

    display: flex;

    justify-content: center;

    align-items: center;

    gap: 50px;

}

.flower {

    width: 120px;

    opacity: .85;

}

.flower.left {

    transform: scaleX(1);

}

.flower.right {

    transform: scaleX(-1);

}

.name-block h2 {

    font-family: "Cormorant Garamond", serif;

    font-size: 3rem;

    font-weight: 500;

    color: #375744;

    line-height: 1.2;

    text-align: center;

    margin: 0;

}

.name-block span {

    display: block;

    color: #b59b81;

    font-size: 2.6rem;

    margin: 10px 0;

}

.name-block p {

    font-family: "Cormorant Garamond", serif;

    font-size: 1.45rem;

    color: #b59b81;

    line-height: 1.8;

    text-align: center;

}

/* ---------- Second Photo ---------- */

.photo {

    display: flex;

    justify-content: center;

    padding: 0 20px 70px;

}

.secondary-photo {

    width: 100%;

    max-width: 900px;

    display: block;

}

/* ---------- Sections ---------- */

section {

    max-width: 900px;

    margin: auto;

    padding: 50px 40px;

}

section h2 {

    font-family: "Cormorant Garamond", serif;

    font-size: 3rem;

    font-weight: 500;

    color: #375744;

    text-align: center;

    margin-bottom: 20px;

}

section p {

    font-size: 1.1rem;

    line-height: 1.8;

    color: #b59b81;

    text-align: center;

}

/* ---------- RSVP ---------- */

.rsvp-button {

    display: block;

    width: fit-content;

    margin: 40px auto 0 auto;

    padding: 14px 36px;

    border: 2px solid #375744;

    border-radius: 40px;

    text-decoration: none;

    font-family: "Cormorant Garamond", serif;

    font-size: 1.4rem;

    color: #375744;

    transition: .25s ease;

}

.rsvp-button:hover {

    background: #6895CC;

    border-color: #6895CC;

    color: white;

}

/* ---------- Mobile ---------- */

@media (max-width:800px) {

    h1 {

        font-size: 56px;

    }

    .name-block {

        flex-direction: column;

        gap: 25px;

    }

    .flower {

        width: 80px;

    }

    .name-block h2 {

        font-size: 2.3rem;

    }

    nav {

        gap: 18px;

        padding: 15px;

    }

    nav a {

        font-size: 1.2rem;

    }

    section {

        padding: 50px 25px;

    }

}
