/* Hero refinements based on the final supplied layout reference. */
.brand {
    line-height: 0.9;
}

.brand .brand-name {
    display: block;
    white-space: nowrap;
}
.hero section-shell{
    margin-top:-10px !important;
}
.brand .brand-ampersand {
    display: block;
    font-weight: 400;
}

.brand .surname-light,
.hero-copy .surname-light {
    font-weight: 300;
}

.brand .surname-bold,
.hero-copy .surname-bold {
    font-weight: 700;
}

.hero-copy .person-name {
    white-space: nowrap;
}

.hero-photo {
    height: 550px;
    margin-top: -68px;
    isolation: isolate;
    overflow: hidden;
    border-radius: 30px;
    background: var(--cream);
}

.hero-photo img {
    background: var(--cream);
    object-position: center top;
    border-radius: 20px;
    -webkit-mask: url("images/hero-mask.svg") center / 80% 100% no-repeat;
    mask: url("images/hero-mask.svg") center / 80% 100% no-repeat;
    /* Make image fit*/
    width: 100%;   
    height: 100%;
}

.hero-photo::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
    border-radius: inherit;
    box-shadow: inset 0 0 34px rgba(228, 213, 180, 0.35);
}

.photo-accent {
    inset: -2px -120px auto 25%;
    height: 411px;
    border-radius: 0;
}

.hero-details {
    align-self: start;
    padding-bottom: 56px;
}

.hero-details .date-row {
    display: flex;
    align-items: center;
    gap: 28px;
    margin: 20px 0 28px;
}

.hero-details .date {
    display: flex;
    flex-direction: column;
    flex: 0 1 auto;
    margin: 0;
    font-size: clamp(76px, 7.5vw, 112px);
    font-weight: 400;
    letter-spacing: -0.055em;
    line-height: 0.78;
    -webkit-text-stroke: 2px #8c7451;
    color:#f8f8f8;
    paint-order: stroke fill;
}

.hero-details .invite-badge {
    display: grid;
    flex: 0 0 112px;
    width: 112px;
    height: 112px;
    place-items: center;
    border-radius: 50%;
    background: var(--brown);
    box-shadow: 0 10px 16px rgba(60, 43, 22, 0.28);
    color: #fffdf8;
    font-size: 19px;
    line-height: 1.15;
    text-align: center;
}

.hero-details > p:not(.date) {
    max-width: 510px;
    margin: 5px 0;
    font-size: 18px;
}

.hero-details .button {
    margin: 28px 0 0;
}

html,
body {
    overflow-x: clip;
}

@media (max-width: 760px) {
    .brand {
        font-size: 18px;
    }

    .hero {
        min-height: 1260px;
    }

    .hero-photo {
        height: 350px;
        margin-top: 24px;
    }

    .hero-photo img {
        background: #f5f0ef;
    }

    .hero-details .date-row {
        position: relative;
        gap: 15px;
        margin: 28px 0 36px;
    }

    .hero-details .date {
        width: 100%;
        font-size: clamp(64px, 18vw, 74px);
        letter-spacing: -0.075em;
        -webkit-text-stroke-width: 1.2px;
    }

    .hero-details .invite-badge {
        position: absolute;
        top: 12px;
        right: 8px;
        z-index: 2;
        flex-basis: 88px;
        width: 88px;
        height: 88px;
        font-size: 16px;
    }

    .hero-details > p:not(.date) {
        margin: 26px 0;
        font-size: 15px;
    }

    .hero-details .button {
        margin: 34px auto 0;
    }
}
