* {
    box-sizing: border-box
}

html {
    scroll-behavior: smooth
}

body {
    margin: 0;
    background: #faf9f6;
    color: #2f302c;
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.7
}

body.menu-open {
    overflow: hidden
}

img {
    display: block;
    width: 100%
}

.container {
    width: min(1120px, calc(100% - 40px));
    margin: auto
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(251, 250, 247, .96);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid #ddd8cf
}

.header-inner {
    min-height: 82px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 25px
}

.brand,
.brand:visited {
    font-family: "Cormorant Garamond";
    font-size: 1.35rem;
    text-decoration: none;
    letter-spacing: .04em;
    color: #333333;
}

.desktop-nav {
    display: flex;
    justify-content: center;
    gap: 26px
}

.desktop-nav a {
    text-decoration: none;
    color: #77766f;
    font-size: .82rem;
    letter-spacing: .08em;
    text-transform: uppercase
}

.desktop-nav a:hover,
.desktop-nav a.active {
    color: #2f302c
}

.header-spacer {
    min-width: 1px
}

.menu-button {
    display: none
}

.mobile-menu {
    display: none;
    position: fixed;
    inset: 82px 0 0;
    background: #fbfaf7;
    z-index: 90;
    padding: 45px 28px;
    overflow: auto
}

.mobile-menu.open {
    display: block
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    text-align: center
}

.mobile-nav a {
    font-family: Georgia, serif;
    font-size: 2rem;
    text-decoration: none;
    padding: 16px 0;
    border-bottom: 1px solid #ddd8cf
}

.mobile-nav .mobile-rsvp {
    margin-top: 28px;
    border: 1px solid #2f302c;
    font-family: Arial, sans-serif;
    font-size: .9rem;
    letter-spacing: .15em;
    text-transform: uppercase
}

.logo,
.logo:visited {
    color: #333333;
    text-decoration: none;
}

.hero {
    min-height: calc(100svh - 82px);
    display: grid;
    place-items: center;
    text-align: center;
    padding: 70px 20px;
    color: white;
    background: linear-gradient(rgba(30, 30, 25, .28), rgba(30, 30, 25, .28)), url("images/hero.jpg") center/cover no-repeat
}

.hero-inner {
    max-width: 850px
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: .22em;
    font-size: .72rem;
    margin-bottom: 14px
}

h1,
h2,
h3 {
    font-family: "Cormorant Garamond", serif;
    font-weight: 400;
    line-height: 1.15
}

h1 {
    font-size: clamp(3.1rem, 8vw, 6.5rem);
    margin: 0 0 18px
}

h2 {
    font-size: clamp(2.2rem, 5vw, 3.7rem);
    margin: 0 0 20px
}

h3 {
    font-size: 1.45rem;
    margin: 0 0 8px
}

.hero p {
    font-family: "Cormorant Garamond";
    font-size: 1.25rem;
    margin: 0 auto 30px
}

.hero h1 span {
    display: block;
    }

.hero h1 .ampersand {
    font-size: 0.7em;
    margin: 0.05em 0;
}

.button {
    display: inline-block;
    padding: 13px 25px;
    border: 1px solid white;
    color: white;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: .13em;
    font-size: .75rem
}

.button.dark {
    background: #2f302c;
    border-color: #2f302c
}

.page-hero {
    font-family: "Cormorant Garamond";
    padding: 85px 0 70px;
    background: #f1eee7;
    text-align: center
}

.page-hero p {
    font-family: "Cormorant Garamond";
    max-width: 650px;
    margin: auto;
    color: #77766f
}

.section {
    padding: 90px 0
}

.section.alt {
    background: #f1eee7
}

.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 65px;
    align-items: center
}

.photo {
    aspect-ratio: 4/5;
    object-fit: cover;
    background: #ddd8ce
}

.photo-placeholder {
    aspect-ratio: 4/5;
    background: #ddd8ce;
    display: grid;
    place-items: center;
    color: #77766f;
    border: 1px dashed #bcb6aa
}

.cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px
}

.card {
    background: white;
    border: 1px solid #ddd8cf;
    padding: 30px
}

.card p {
    color: #77766f
}

.timeline {
    max-width: 760px;
    margin: auto
}

.timeline-item {
    display: grid;
    grid-template-columns: 130px 1fr;
    gap: 28px;
    padding: 27px 0;
    border-bottom: 1px solid #ddd8cf
}

.timeline-date {
    font-family: Georgia, serif;
    font-size: 1.15rem
}

.gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px
}

.gallery img {
    aspect-ratio: 1/1;
    object-fit: cover;
    background: #ddd8ce
}

.rsvp-box {
    max-width: 720px;
    margin: auto;
    text-align: center;
    padding: 60px 30px;
    background: white;
    border: 1px solid #ddd8cf
}

.site-footer {
    padding: 50px 0;
    text-align: center;
    border-top: 1px solid #ddd8cf;
    color: #77766f;
    font-size: .85rem
}

@media(max-width:850px) {
    .header-inner {
        grid-template-columns: 1fr auto
    }

    .desktop-nav,
    .header-spacer {
        display: none
    }

    .menu-button {
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 5px;
        width: 44px;
        height: 44px;
        border: 0;
        background: transparent;
        cursor: pointer;
        padding: 10px
    }

    .menu-button span {
        display: block;
        height: 1.5px;
        width: 24px;
        background: #2f302c;
        transition: .25s
    }

    .menu-button.open span:first-child {
        transform: translateY(3.25px) rotate(45deg)
    }

    .menu-button.open span:last-child {
        transform: translateY(-3.25px) rotate(-45deg)
    }

    .two-col,
    .cards {
        grid-template-columns: 1fr
    }

    .section {
        padding: 70px 0
    }

}

@media(max-width:600px) {
    .container {
        width: calc(100% - 30px)
    }

    .site-header,
    .header-inner {
        min-height: 70px
    }

    .mobile-menu {
        inset: 70px 0 0;
        padding: 25px 22px
    }

    .brand {
        font-family: "Cormorant Garamond";
        font-size: 1.15rem
    }

    .mobile-nav a {
        font-size: 1.75rem;
        padding: 14px 0
    }

    .hero {
        min-height: calc(100svh - 70px);
        padding: 55px 18px
    }

    .hero h1 {
        font-size: clamp(2.9rem, 14vw, 4.5rem)
    }

    .page-hero {
        padding: 62px 15px 52px
    }

    .page-hero h1 {
        font-size: 3.2rem
    }


    .section {
        padding: 58px 0
    }

    .photo,
    .photo-placeholder {
        aspect-ratio: 4/5
    }

    .cards {
        gap: 14px
    }

    .card {
        padding: 25px
    }

    .timeline-item {
        grid-template-columns: 1fr;
        gap: 4px;
        padding: 23px 0
    }

    .gallery {
        grid-template-columns: 1fr 1fr;
        gap: 8px
    }

    .rsvp-box {
        padding: 45px 22px
    }
}