/*
|--------------------------------------------------------------------------
| Wedding Shared
|--------------------------------------------------------------------------
*/

.wedding-narrow {
    max-width: 780px;
}

.section-eyebrow {
    margin: 0 0 0.6rem;

    color: var(--color-warm);

    font-size: 0.78rem;
    font-weight: 750;

    letter-spacing: 0.17em;

    text-transform: uppercase;
}

.section-eyebrow--light {
    color: rgba(255, 255, 255, 0.72);
}

.section-heading {
    margin-bottom: 2.5rem;
}

.section-heading--center {
    max-width: 720px;

    margin:
        0 auto
        3rem;

    text-align: center;
}

.section-heading h2,
.wedding-intro h2,
.venue-feature h2,
.hotel-panel h2,
.rsvp-cta h2,
.local-guide__more h3 {
    margin: 0;

    color: var(--color-green-dark);

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-weight: 500;

    line-height: 1.1;
}

.section-heading h2,
.wedding-intro h2,
.venue-feature h2,
.hotel-panel h2 {
    font-size:
        clamp(
            2.2rem,
            5vw,
            3.6rem
        );
}

.section-heading > p:last-child {
    color: var(--color-text-muted);

    font-size: 1.08rem;
}

.wedding-section {
    padding:
        clamp(
            4rem,
            8vw,
            7rem
        )
        0;
}

.wedding-section--light {
    background: #fbfaf7;
}


/*
|--------------------------------------------------------------------------
| Hero
|--------------------------------------------------------------------------
*/

.wedding-hero {
    position: relative;

    height:
        clamp(
            520px,
            76vh,
            820px
        );

    overflow: hidden;

    background: var(--color-green-dark);
}

.wedding-hero__image {
    position: absolute;
    inset: 0;

    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center;
}

.wedding-hero__overlay {
    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            to top,
            rgba(20, 25, 20, 0.68) 0%,
            rgba(20, 25, 20, 0.18) 52%,
            rgba(20, 25, 20, 0.05) 100%
        );
}

.wedding-hero__content {
    position: relative;
    z-index: 2;

    display: flex;
    align-items: flex-end;

    height: 100%;

    padding-bottom:
        clamp(
            3rem,
            8vw,
            6rem
        );
}

.wedding-hero__text {
    color: #fff;

    text-shadow:
        0 2px 18px rgba(0, 0, 0, 0.25);
}

.wedding-hero__eyebrow {
    margin: 0 0 0.35rem;

    font-size: 0.9rem;
    font-weight: 700;

    letter-spacing: 0.18em;

    text-transform: uppercase;
}

.wedding-hero h1 {
    margin: 0;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size:
        clamp(
            4rem,
            10vw,
            8.5rem
        );

    font-weight: 400;

    line-height: 0.92;

    letter-spacing: -0.045em;
}

.wedding-hero__date {
    margin: 1.5rem 0 0;

    font-size:
        clamp(
            1.25rem,
            2.5vw,
            1.7rem
        );

    font-weight: 600;
}

.wedding-hero__location {
    margin: 0.1rem 0 0;

    font-size: 1rem;

    opacity: 0.87;
}


/*
|--------------------------------------------------------------------------
| Introduction
|--------------------------------------------------------------------------
*/

.wedding-intro {
    padding:
        clamp(
            4rem,
            8vw,
            7rem
        )
        0;

    text-align: center;
}

.wedding-intro p:last-child {
    margin:
        1.5rem auto 0;

    color: var(--color-text-muted);

    font-size: 1.15rem;

    line-height: 1.8;
}


/*
|--------------------------------------------------------------------------
| Wedding Details
|--------------------------------------------------------------------------
*/

.wedding-detail-grid {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 1.5rem;
}

.wedding-detail-card {
    padding:
        2.25rem;

    background: #fff;

    border:
        1px solid var(--color-border);

    border-radius:
        var(--radius-medium);

    box-shadow:
        var(--shadow-soft);
}

.wedding-detail-card__icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 44px;
    height: 44px;

    margin-bottom: 1.6rem;

    background:
        var(--color-green-light);

    color:
        var(--color-green-dark);

    border-radius: 50%;

    font-family:
        Georgia,
        serif;

    font-size: 0.8rem;
}

.wedding-detail-card h3 {
    margin: 0 0 0.7rem;

    color: var(--color-green-dark);

    font-family:
        Georgia,
        serif;

    font-size: 1.55rem;

    font-weight: 500;
}

.wedding-detail-card p {
    color: var(--color-text-muted);
}

.wedding-detail-card__primary {
    color:
        var(--color-text) !important;

    font-size: 1.1rem;

    line-height: 1.5;
}

.wedding-detail-card__note {
    font-size: 0.9rem;
}

.wedding-detail-card address {
    margin-bottom: 1rem;

    color: var(--color-text-muted);

    font-style: normal;
}


/*
|--------------------------------------------------------------------------
| Venue
|--------------------------------------------------------------------------
*/

.venue-feature {
    padding:
        clamp(
            4rem,
            8vw,
            7rem
        )
        0;

    background:
        var(--color-green-dark);

    color: #fff;
}

.venue-feature__inner {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        minmax(0, 1.15fr);

    gap:
        clamp(
            2rem,
            6vw,
            6rem
        );

    align-items: center;
}

.venue-feature h2 {
    color: #fff;
}

.venue-feature__content > p:not(.section-eyebrow) {
    color:
        rgba(255, 255, 255, 0.8);

    font-size: 1.05rem;
}

.venue-feature__image-wrap {
    overflow: hidden;

    aspect-ratio: 4 / 3;

    border-radius:
        var(--radius-large);
}

.venue-feature__image {
    width: 100%;
    height: 100%;

    object-fit: cover;
}


/*
|--------------------------------------------------------------------------
| Hotel
|--------------------------------------------------------------------------
*/

.hotel-panel {
    position: relative;

    overflow: hidden;

    padding:
        clamp(
            2.5rem,
            6vw,
            5rem
        );

    background:
        #ebe5db;

    border-radius:
        var(--radius-large);
}

.hotel-panel__content {
    position: relative;
    z-index: 2;

    max-width: 720px;
}

.hotel-panel__content > p {
    color: var(--color-text-muted);

    font-size: 1.05rem;
}

.hotel-panel__mark {
    position: absolute;

    right: -0.1em;
    bottom: -0.3em;

    color:
        rgba(83, 102, 82, 0.09);

    font-family:
        Georgia,
        serif;

    font-size:
        clamp(
            8rem,
            22vw,
            18rem
        );

    line-height: 1;

    pointer-events: none;
}


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

.rsvp-section {
    padding:
        0 0
        clamp(
            4rem,
            8vw,
            7rem
        );
}

.rsvp-panel {
    padding:
        clamp(
            2.5rem,
            6vw,
            5rem
        );

    background:
        #e8dfd4;

    border-radius:
        var(--radius-large);

    text-align: center;

    box-shadow:
        var(--shadow-soft);
}

.rsvp-panel h2 {
    margin:
        0 0 1rem;

    color:
        var(--color-green-dark);

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size:
        clamp(
            3rem,
            7vw,
            5rem
        );

    font-weight: 400;
}

.rsvp-panel > p {
    max-width: 620px;

    margin:
        0 auto
        2rem;

    color:
        var(--color-text-muted);

    font-size: 1.08rem;
}

.rsvp-panel__deadline {
    margin:
        1.4rem auto 0 !important;

    font-size:
        0.9rem !important;
}

/*
|--------------------------------------------------------------------------
| Local Area
|--------------------------------------------------------------------------
*/

.local-guide {
    padding:
        clamp(
            4rem,
            8vw,
            7rem
        )
        0;

    background:
        #f7f4ee;
}

.local-guide__grid {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 1.5rem;
}

.local-card {
    overflow: hidden;

    background: #fff;

    border:
        1px solid var(--color-border);

    border-radius:
        var(--radius-medium);

    box-shadow:
        var(--shadow-soft);
}

.local-card__image-wrap {
    aspect-ratio: 4 / 3;

    overflow: hidden;
}

.local-card__image {
    width: 100%;
    height: 100%;

    object-fit: cover;

    transition:
        transform 300ms ease;
}

.local-card:hover .local-card__image {
    transform:
        scale(1.025);
}

.local-card__content {
    padding:
        1.7rem;
}

.local-card__category {
    margin:
        0 0 0.35rem;

    color:
        var(--color-warm);

    font-size: 0.72rem;
    font-weight: 700;

    letter-spacing: 0.12em;

    text-transform: uppercase;
}

.local-card h3 {
    margin:
        0 0 0.7rem;

    color:
        var(--color-green-dark);

    font-family:
        Georgia,
        serif;

    font-size: 1.55rem;

    font-weight: 500;
}

.local-card p {
    color:
        var(--color-text-muted);
}

.local-guide__more {
    max-width: 720px;

    margin:
        4rem auto 0;

    text-align: center;
}

.local-guide__more h3 {
    font-size: 2rem;
}

.local-guide__more p {
    color:
        var(--color-text-muted);
}


/*
|--------------------------------------------------------------------------
| Links / Wedding Buttons
|--------------------------------------------------------------------------
*/

.text-link {
    color:
        var(--color-green-dark);

    font-weight: 650;

    text-underline-offset: 0.2em;
}

.text-link:hover {
    color:
        var(--color-warm);
}

.button--outline {
    border:
        1px solid currentColor;

    background:
        transparent;

    color:
        inherit;
}

.button--outline:hover {
    background:
        rgba(255, 255, 255, 0.1);
}

.hotel-panel .button--outline,
.local-guide .button--outline {
    color:
        var(--color-green-dark);
}

.hotel-panel .button--outline:hover,
.local-guide .button--outline:hover {
    background:
        var(--color-green-light);
}

.button--light {
    background: #fff;

    color:
        var(--color-green-dark);
}

.button--light:hover {
    background:
        #f8f5ef;
}


/*
|--------------------------------------------------------------------------
| Responsive
|--------------------------------------------------------------------------
*/

@media (max-width: 900px) {

    .wedding-detail-grid,
    .local-guide__grid {
        grid-template-columns:
            1fr;
    }

    .venue-feature__inner {
        grid-template-columns:
            1fr;
    }

    .venue-feature__image-wrap {
        order: -1;

        max-height: 500px;
    }

}


@media (max-width: 600px) {

    .wedding-hero {
        height:
            min(
                74vh,
                650px
            );
    }

    .wedding-hero__content {
        padding-bottom: 2.75rem;
    }

    .wedding-detail-card {
        padding:
            1.7rem;
    }

    .hotel-panel {
        padding:
            2rem;
    }

}

/*
|--------------------------------------------------------------------------
| Our Story / Pixel Art
|--------------------------------------------------------------------------
*/

.wedding-story {
    padding:
        clamp(
            4rem,
            9vw,
            8rem
        )
        0;

    background:
        #202b25;

    color:
        #fff;
}

.wedding-story__inner {
    display: grid;

    grid-template-columns:
        minmax(280px, 0.8fr)
        minmax(0, 1fr);

    gap:
        clamp(
            2.5rem,
            7vw,
            7rem
        );

    align-items: center;
}

.wedding-story__image-frame {
    position: relative;

    max-width: 470px;

    margin-inline: auto;

    padding: 8px;

    background:
        #111914;

    border:
        2px solid rgba(255, 255, 255, 0.55);

    border-radius: 4px;

    box-shadow:
        12px 12px 0 rgba(0, 0, 0, 0.18);
}

.wedding-story__image-frame::before {
    content: "";

    position: absolute;

    inset: 4px;

    border:
        1px solid rgba(255, 255, 255, 0.18);

    pointer-events: none;
}

.wedding-story__image {
    width: 100%;

    image-rendering: pixelated;

    border-radius: 2px;
}

.wedding-story__content {
    max-width: 600px;
}

.wedding-story__content .section-eyebrow {
    color:
        #e5b95b;
}

.wedding-story__content h2 {
    margin:
        0 0 1.4rem;

    color: #fff;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size:
        clamp(
            2.5rem,
            5vw,
            4.25rem
        );

    font-weight: 400;

    line-height: 1.05;
}

.wedding-story__content > p {
    margin: 0;

    color:
        rgba(255, 255, 255, 0.77);

    font-size: 1.1rem;

    line-height: 1.8;
}

.wedding-story__detail {
    display: flex;
    align-items: center;

    gap: 1rem;

    width: 190px;

    margin-top: 2rem;

    color:
        #e5b95b;
}

.wedding-story__detail span:first-child,
.wedding-story__detail span:last-child {
    flex: 1;

    height: 1px;

    background:
        rgba(229, 185, 91, 0.55);
}

@media (max-width: 800px) {

    .wedding-story__inner {
        grid-template-columns:
            1fr;
    }

    .wedding-story__content {
        text-align: center;

        margin-inline: auto;
    }

    .wedding-story__detail {
        margin-inline: auto;
    }

}

/*
|--------------------------------------------------------------------------
| RSVP Pages
|--------------------------------------------------------------------------
*/

.rsvp-page,
.rsvp-response {
    min-height: calc(100vh - 140px);

    padding:
        clamp(3rem, 8vw, 7rem)
        0;

    background:
        #f7f4ee;
}

.rsvp-page__container,
.rsvp-response__container {
    max-width: 900px;
}

.rsvp-form-panel,
.rsvp-response-card {
    padding:
        clamp(2rem, 6vw, 4.5rem);

    background: #fff;

    border:
        1px solid var(--color-border);

    border-radius:
        var(--radius-large);

    box-shadow:
        var(--shadow-soft);
}

.rsvp-form-panel--wide {
    max-width: 1000px;
}

.rsvp-form-header {
    max-width: 650px;

    margin-bottom: 2.5rem;
}

.rsvp-form-header h1,
.rsvp-response-card h1 {
    margin:
        0 0 1rem;

    color:
        var(--color-green-dark);

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size:
        clamp(2.5rem, 6vw, 4.5rem);

    font-weight: 400;
}

.rsvp-form-header p:last-child,
.rsvp-response-card > p {
    color:
        var(--color-text-muted);

    font-size: 1.08rem;
}


/*
|--------------------------------------------------------------------------
| Form Layout
|--------------------------------------------------------------------------
*/

.rsvp-form {
    display: flex;
    flex-direction: column;

    gap: 2rem;
}

.form-grid {
    display: grid;

    gap: 1.25rem;
}

.form-grid--two {
    grid-template-columns:
        repeat(2, minmax(0, 1fr));
}

.form-field {
    display: flex;
    flex-direction: column;

    gap: 0.45rem;
}

.form-field label {
    color:
        var(--color-green-dark);

    font-size: 0.92rem;
    font-weight: 650;
}

.form-field input,
.form-field select,
.form-field textarea {
    width: 100%;

    padding:
        0.8rem
        0.9rem;

    background:
        #fff;

    color:
        var(--color-text);

    border:
        1px solid var(--color-border);

    border-radius:
        var(--radius-small);

    font: inherit;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    outline:
        2px solid rgba(83, 102, 82, 0.25);

    border-color:
        var(--color-green);
}

.form-field textarea {
    resize: vertical;
}

.form-error {
    margin: 0;

    color:
        #9a3737;

    font-size: 0.84rem;
}

.form-alert {
    padding:
        1rem 1.2rem;

    margin-bottom:
        1.5rem;

    border-radius:
        var(--radius-small);
}

.form-alert--error {
    background:
        #f9e8e8;

    color:
        #842f2f;
}


/*
|--------------------------------------------------------------------------
| RSVP People
|--------------------------------------------------------------------------
*/

.rsvp-subsection {
    display: flex;
    flex-direction: column;

    gap: 1.5rem;
}

.rsvp-subsection__header h2 {
    margin:
        0 0 0.35rem;

    color:
        var(--color-green-dark);

    font-family:
        Georgia,
        serif;

    font-size:
        2rem;

    font-weight: 500;
}

.rsvp-subsection__header p {
    margin: 0;

    color:
        var(--color-text-muted);
}

.rsvp-people {
    display: flex;
    flex-direction: column;

    gap: 1.25rem;
}

.rsvp-person {
    padding:
        1.5rem;

    background:
        #fbfaf7;

    border:
        1px solid var(--color-border);

    border-radius:
        var(--radius-medium);
}

.rsvp-person__heading {
    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-bottom:
        1.25rem;
}

.rsvp-person__heading h3 {
    margin: 0;

    color:
        var(--color-green-dark);

    font-family:
        Georgia,
        serif;

    font-size: 1.35rem;

    font-weight: 500;
}

.rsvp-person__remove {
    padding: 0;

    background: none;
    border: 0;

    color:
        var(--color-text-muted);

    font: inherit;
    font-size: 0.85rem;

    cursor: pointer;

    text-decoration: underline;
    text-underline-offset: 0.2em;
}

.checkbox-field {
    display: flex !important;
    flex-direction: row !important;
    align-items: center;

    min-height: 48px;

    gap: 0.65rem;
}

.checkbox-field input {
    width: auto;

    margin: 0;
}

.form-field--checkbox {
    justify-content: flex-end;
}

.rsvp-add-person {
    align-self: flex-start;
}


/*
|--------------------------------------------------------------------------
| RSVP Actions
|--------------------------------------------------------------------------
*/

.rsvp-form__actions,
.rsvp-response-card__actions {
    display: flex;
    align-items: center;

    gap: 1rem;

    flex-wrap: wrap;
}


/*
|--------------------------------------------------------------------------
| RSVP Response
|--------------------------------------------------------------------------
*/

.rsvp-response-card {
    max-width: 700px;

    margin-inline: auto;

    text-align: center;
}

.rsvp-response-card__mark {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 64px;
    height: 64px;

    margin:
        0 auto
        1.5rem;

    background:
        var(--color-green-light);

    color:
        var(--color-green-dark);

    border-radius: 50%;

    font-size: 2rem;
}

.rsvp-response-card__mark--error {
    background:
        #f3e3df;

    color:
        #93433a;
}

.rsvp-response-card__actions {
    justify-content: center;

    margin-top:
        2rem;
}


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

@media (max-width: 650px) {

    .form-grid--two {
        grid-template-columns:
            1fr;
    }

    .rsvp-form__actions {
        align-items: stretch;
        flex-direction: column-reverse;
    }

    .rsvp-form__actions .button {
        width: 100%;
    }

}
