:root {
    --pink: #d63378;
    --deep: #9f2755;
    --gold: #c99213;
    --ink: #5e2a3c;
    --soft: #fff5f8;
    --line: #ecd8df
}

* {
    box-sizing: border-box
}

body {
    margin: 0;
    background: radial-gradient(circle at top, #fff 0, #faeef2 55%, #f4e4e9 100%);
    color: var(--ink);
    font-family: Montserrat, Arial, sans-serif;
    min-height: 100vh
}

.page-shell {
    max-width: 1180px;
    margin: 0 auto;
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(300px, 46%) minmax(0, 54%);
    background: #fff;
    box-shadow: 0 25px 70px rgba(100, 35, 60, .16)
}

.invitation-panel {
    position: sticky;
    top: 0;
    height: 100vh;
    background: #f9f4f5;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: center
}

.invitation-panel img {
    width: 100%;
    max-height: 78vh;
    object-fit: contain;
    filter: drop-shadow(0 18px 28px rgba(75, 27, 45, .16))
}

.event-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    justify-content: center;
    margin-top: 18px;
    font-family: 'Cormorant Garamond', serif;
    font-size: 18px;
    text-align: center
}

.content-panel {
    padding: 56px 7%;
    display: flex;
    flex-direction: column
}

.card {
    width: 100%;
    max-width: 680px;
    margin: auto
}

.eyebrow {
    color: var(--gold);
    letter-spacing: 2.4px;
    text-transform: uppercase;
    font-size: 11px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 30px;
}

h1 {
    font-family: 'Great Vibes', cursive;
    color: var(--pink);
    font-size: 58px;
    line-height: 1.05;
    margin: 12px 0 18px;
    font-weight: 400;
    text-align: center;
}

h2 {
    font-family: 'Cormorant Garamond', serif;
    color: var(--deep);
    font-size: 28px;
    margin: 0
}

.intro {
    font-family: 'Cormorant Garamond', serif;
    font-size: 23px;
    line-height: 1.45;
    margin-bottom: 30px
}

.grid.two {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px
}

label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin: 0 0 18px
}

input,
select,
textarea {
    width: 100%;
    margin-top: 8px;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 13px 14px;
    font: inherit;
    background: #fff;
    color: var(--ink);
    outline: none
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--pink);
    box-shadow: 0 0 0 3px rgba(214, 51, 120, .1)
}

.optional {
    font-weight: 400;
    color: #9a7a86
}

.attendance {
    border: 0;
    padding: 0;
    margin: 4px 0 24px
}

.attendance legend {
    font-family: 'Cormorant Garamond', serif;
    font-size: 25px;
    font-weight: 700;
    color: var(--deep);
    margin-bottom: 12px
}

.choice {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-right: 22px;
    font-weight: 500
}

.choice input {
    width: auto;
    margin: 0;
    accent-color: var(--pink)
}

.section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    border-top: 1px solid var(--line);
    padding-top: 22px;
    margin-top: 8px
}

.section-heading p {
    margin: 4px 0 0;
    font-size: 13px;
    color: #8b6876
}

.guest-row {
    display: grid;
    grid-template-columns: 2fr 1.2fr .7fr 42px;
    gap: 12px;
    align-items: end;
    background: var(--soft);
    border: 1px solid var(--line);
    padding: 14px;
    border-radius: 13px;
    margin: 14px 0
}

.guest-row label {
    margin: 0
}

.remove {
    border: 0;
    background: #fff;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    font-size: 25px;
    color: var(--pink);
    cursor: pointer
}

.primary,
.secondary {
    border: 0;
    border-radius: 999px;
    font: 600 14px Montserrat, sans-serif;
    cursor: pointer
}

.primary {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, var(--pink), var(--deep));
    color: #fff;
    box-shadow: 0 9px 24px rgba(214, 51, 120, .25)
}

.primary:disabled {
    opacity: .5
}

.secondary {
    padding: 10px 16px;
    background: #fff;
    border: 1px solid var(--pink);
    color: var(--pink)
}

.secondary.inline {
    display: inline-block;
    text-decoration: none
}

.alert {
    padding: 15px 18px;
    border-radius: 12px;
    margin: 0 0 22px
}

.alert.error {
    background: #fff0f3;
    border: 1px solid #f0bbc9;
    color: #8c2547
}

.thank-you {
    text-align: center
}

.monogram {
    font-family: 'Great Vibes', cursive;
    font-size: 88px;
    color: var(--gold);
    line-height: 1
}

.thank-you p {
    font-family: 'Cormorant Garamond', serif;
    font-size: 23px;
    line-height: 1.5
}

.email-note {
    font-size: 18px !important;
    color: #7e6070
}

footer {
    text-align: center;
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    color: #9a7785;
    padding: 36px 0 0;
    margin-top: auto
}

@media(max-width:860px) {
    .page-shell {
        display: block
    }

    .invitation-panel {
        position: relative;
        height: auto;
        padding: 16px
    }

    .invitation-panel img {
        max-height: none
    }

    .content-panel {
        padding: 36px 20px 50px
    }

    h1 {
        font-size: 48px
    }

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

    .guest-row {
        grid-template-columns: 1fr 1fr
    }

    .guest-row label:first-child {
        grid-column: 1/-1
    }

    .remove {
        align-self: center
    }

    .event-summary {
        font-size: 16px
    }
}

@media(max-width:480px) {
    h1 {
        font-size: 42px
    }

    .intro {
        font-size: 20px
    }

    .choice {
        display: flex;
        margin-bottom: 10px
    }

    .section-heading {
        align-items: flex-start;
        flex-direction: column
    }

    .guest-row {
        grid-template-columns: 1fr
    }

    .guest-row label:first-child {
        grid-column: auto
    }

    .remove {
        justify-self: end
    }

    .content-panel {
        padding-left: 16px;
        padding-right: 16px
    }
}