*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

body{
    font-family:'Montserrat',sans-serif;
    background:#fff;
    color:#222;
    overflow-x: clip;
}


.hero{

    min-height:100vh;
    
    overflow-x: hidden;

    display:flex;

    flex-direction:column;

    justify-content:flex-start;

    align-items:center;

    background:white;

}


.hero-image{

    width:100%;
    
    overflow-x: hidden;

    height:50vh;

    object-fit:cover;

    object-position:center;

}


/* Desktop image */

@media (min-width:1024px){
    .hero-image{
        overflow-x: hidden;
        width:60%;
        height:auto;
        object-fit:contain;
        object-position:center;
    }
}


.content{
    margin-top:35px;
    text-align:center;
    padding:0 20px;
}

.hero-note{
    overflow-x: hidden;
    margin:24px auto 0;
    max-width:700px;
    font-family:'Cormorant Garamond',serif;
    font-size:22px;
    line-height:1.5;
    color:#333;
}



/* Wedding names */

h1{

    font-family:'Great Vibes',cursive;

    font-size:clamp(45px,6vw,75px);

    font-weight:400;

    line-height:1.1;

    letter-spacing:1px;

    text-align:center;

}



.date{

    margin-top:12px;

    font-size:24px;

    font-family:'Cormorant Garamond',serif;

    color:#777;

}



/* Button */

.button-stack{
    display:flex;
    flex-direction:column;
    align-items:center;
    gap:14px;
    margin-top:6px;
}

.button-wrapper{
    position:relative;
    display:inline-flex;
    flex-direction:column;
    align-items:center;
    margin-top:0;
}

.button-wrapper-secondary {
    margin-top:0;
}

.button-wrapper-secondary .button {
    margin-top:0;
}

.button{
    display:inline-block;
    padding:16px 40px;
    background:white;
    border-radius:12px;
    color:#222;
    text-decoration:none;
    box-shadow:0 10px 30px rgba(0,0,0,.08);
    transition:transform .3s ease, box-shadow .3s ease, background-color .6s ease, color .6s ease;
    font-family:'Montserrat',sans-serif;
    font-size:18px;
    font-weight:500;
}

.button-hover-image{
    width:120px;
    height:auto;
    margin:0 0 8px;
    opacity:0;
    transform:translateY(8px);
    transition:opacity .3s ease .15s, transform .3s ease .15s;
    pointer-events:none;
    z-index:2;
}

.button{
    position:relative;
    z-index:3;
}

@media (hover: hover) and (pointer: fine) {
    .button:hover {
        transform:translateY(-3px);
        box-shadow:0 20px 40px rgba(0,0,0,.12);
        background-color:#fd9998;
        color:#fff;
    }

    .button-wrapper:hover .button-hover-image,
    .button-wrapper-secondary:hover .button-hover-image,
    .button-wrapper.is-visible .button-hover-image,
    .button-wrapper-secondary.is-visible .button-hover-image {
        opacity:1;
        transform:translateY(0);
    }
}

@media (hover: none) and (pointer: coarse) {
    .button-hover-image {
        margin:0 0 -24px;
        display:block;
    }

    .button {
        margin-top:-12px;
    }

    .button-wrapper-secondary .button {
        margin-top:0;
    }

    .button-wrapper.is-visible .button-hover-image,
    .button-wrapper-secondary.is-visible .button-hover-image {
        opacity:1;
        transform:translateY(0);
    }

    .button.is-active {
        background-color:#fd9998;
        color:#fff;
    }
}



/* Flowers image */

.flowers-image{
    display:block;
    width:auto;
    height:140px;
    margin:20px auto 0;
}

.flowers-image-secondary{
    margin-top:5px;
    height:90px;
}

@media (min-width: 768px) {
    .flowers-image {
        height: 527px;
        margin: -60px auto;
    }

    .flowers-image-secondary {
        height:120px;
        margin:72px auto 24px;
    }
}

/* Story section */

#story{
    padding:0 20px 90px;
    background:#fff;
}



.story-text{
    width:65%;
    margin:0 auto;
    text-align:center;
    font-family:'Cormorant Garamond',serif;
    font-size:26px;
    line-height:1.6;
    color:#333;
}

.story-title{
    margin-bottom:24px;
    font-family:'Great Vibes',cursive;
    font-size:clamp(38px, 4vw, 50px);
    font-weight:400;
    line-height:1.2;
    color:#222;
}

.button-title{
    margin-bottom:16px;
    font-family:'Great Vibes',cursive;
    font-size:clamp(32px, 3.5vw, 42px);
    font-weight:400;
    line-height:1.2;
    color:#222;
}



.story-text p{
    margin-bottom:15px;
}



/* Mobile */

@media (max-width:768px){
    body::before,
    body::after {
        display:none;
    }

    .hero-image{
        overflow-x: hidden;
        width:150%;
        max-width:480px;
        height:auto;
        max-height:55vh;
        object-fit:contain;
        object-position:center;
        margin-top:60px;
        margin-left:22px;
    }


    .content{
        margin-top:25px;
        margin-left:2px;
    }


    h1{
        font-size:50px;
        text-align:center;
    }


    .date{

        font-size:20px;

    }


    .button{

        margin-top:30px;

        padding:12px 28px;

        font-size:15px;

    }


    .story-text{

        width:90%;

        font-size:22px;

        line-height:1.5;

    }

}