:root {
    --banana: #f2e6b1;
    --banana-soft: #f7edc4;
    --ivory: #f2e6b1;
    --milk: #f7edc4;
    --paper: #fffdf8;
    --ink: #343329;
    --muted: #706d5f;
    --olive: #929866;
    --olive-deep: #666d42;
    --yellow: #efd77f;
    --blue: #a9d9ef;
    --blue-soft: #d9eef7;
    --blue-deep: #5d93aa;
    --powder: #e7c8c6;
    --line: rgba(75, 72, 52, .16);
    --shadow: 0 22px 70px rgba(78, 70, 45, .12);
    --button-bg: #5d93aa;
    --button-hover: #4e8095;
    --button-text: #fffdf8;
    --radius: 8px;
    font-family: Inter, Arial, sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    position: relative;
    margin: 0;
    overflow-x: hidden;
    color: var(--ink);
    background: var(--banana);
    letter-spacing: 0;
}

body::before {
    content: "";
    position: fixed;
    z-index: 0;
    inset: 0;
    pointer-events: none;
    opacity: .3;
    background:
        url("/assets/images/generated/pasta-large-basket-clear.png?v=7") calc(100% - 72px) 8rem/143px auto no-repeat,
        url("/assets/images/generated/pasta-large-nest.png?v=7") 64px 62rem/117px auto no-repeat,
        url("/assets/images/generated/pasta-ref-gold-clear.png?v=7") 50% 0/327px auto repeat;
}

body > * {
    position: relative;
    z-index: 1;
}

body.variant-estate {
    --olive: #838b68;
    --yellow: #f0dfaa;
    --blue: #c3e1ec;
    --powder: #dfc7bd;
}

body.variant-playful {
    --olive: #9aa36a;
    --yellow: #f2da7d;
    --blue: #a9d9ed;
    --powder: #ecc7cc;
}

/* Experimental palette: remove theme-sky from body to return to the warm version. */
body.theme-sky {
    --banana: #bde8f6;
    --banana-soft: #d8f2fb;
    --ivory: #d8f2fb;
    --milk: #eaf7fb;
    --paper: #fffdf6;
    --muted: #52666d;
    --olive: #e8c967;
    --olive-deep: #8d6910;
    --yellow: #f6d978;
    --blue: #f6d978;
    --blue-soft: #fff3c8;
    --blue-deep: #b98a16;
    --line: rgba(45, 115, 142, .16);
    --shadow: 0 22px 70px rgba(33, 99, 124, .12);
    --button-bg: #f6d978;
    --button-hover: #eac65d;
    --button-text: #3f3310;
}

body.theme-sky::before {
    opacity: .3;
    background:
        url("/assets/images/generated/pasta-ref-gold-clear.png?v=7") 50% 0/390px auto repeat;
}

a {
    color: inherit;
}

.shell {
    width: min(1120px, calc(100% - 36px));
    margin: 0 auto;
}

.narrow {
    width: min(780px, calc(100% - 36px));
}

.section {
    position: relative;
    padding: clamp(64px, 9vw, 118px) 0;
}

.hero {
    min-height: min(820px, 94vh);
    display: grid;
    align-items: center;
    overflow: hidden;
    padding-top: 82px;
}

.hero__backdrop {
    position: absolute;
    inset: 0;
    z-index: 0;
    background:
        linear-gradient(90deg, rgba(242, 230, 177, .7), rgba(242, 230, 177, .58)),
        var(--banana);
}

body.theme-sky .hero__backdrop {
    background: transparent;
}

body.theme-sky .hero__backdrop::before {
    display: none;
}

.hero__backdrop::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: .3;
    background:
        url("/assets/images/generated/pasta-large-basket-clear.png?v=7") calc(100% - 72px) 8rem/143px auto no-repeat,
        url("/assets/images/generated/pasta-ref-gold-clear.png?v=7") center top/327px auto repeat;
}

.timeline,
.rsvp,
.dress {
    overflow: hidden;
}

.dress {
    background: transparent;
}

.hero__grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(280px, .72fr);
    gap: clamp(32px, 6vw, 84px);
    align-items: center;
}

.eyebrow,
.section-kicker {
    margin: 0 0 14px;
    color: var(--olive-deep);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1 {
    margin-bottom: 26px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(70px, 11vw, 142px);
    line-height: .86;
    font-weight: 300;
}

h2 {
    margin-bottom: 22px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(34px, 5vw, 64px);
    line-height: 1.02;
    font-weight: 400;
}

h3 {
    margin-bottom: 8px;
    font-size: 20px;
    line-height: 1.2;
}

p {
    color: var(--muted);
    font-size: 18px;
    line-height: 1.68;
}

.hero__lead {
    width: min(640px, 100%);
    color: #575344;
    font-size: clamp(19px, 2.3vw, 27px);
    line-height: 1.48;
}

.hero__details {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 32px;
}

.hero__details span,
.preview-switcher a {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 8px 14px;
    border: 1px solid rgba(93, 147, 170, .26);
    border-radius: 999px;
    background: rgba(217, 238, 247, .52);
    color: #39545d;
    font-size: 14px;
}

.photo-slot {
    margin: 0;
    min-height: 520px;
    border: 1px solid rgba(102, 109, 66, .2);
    border-radius: var(--radius);
    background:
        linear-gradient(155deg, rgba(255, 253, 248, .64), rgba(183, 220, 235, .22)),
        radial-gradient(circle at 72% 18%, rgba(239, 215, 127, .34), transparent 26%),
        radial-gradient(circle at 18% 82%, rgba(146, 152, 102, .22), transparent 30%);
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

.photo-slot::before {
    content: "";
    position: absolute;
    inset: 18px;
    border: 1px solid rgba(255, 255, 255, .72);
    border-radius: calc(var(--radius) - 2px);
}

.photo-slot::after {
    content: "";
    position: absolute;
    width: 76%;
    height: 34%;
    left: 11%;
    top: 36%;
    border: 2px solid rgba(102, 109, 66, .16);
    border-left-color: transparent;
    border-right-color: transparent;
    border-radius: 50%;
    transform: rotate(-18deg);
}

.photo-slot.has-image {
    background: var(--paper);
}

.photo-slot.has-image::before {
    z-index: 2;
    border-color: rgba(255, 255, 255, .48);
}

.photo-slot.has-image::after {
    display: none;
}

.photo-slot img,
.photo-card img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero__photo img {
    object-position: 50% 48%;
}

.photo-tile img {
    object-position: 50% 50%;
}

.photo-slot__mark {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(64px, 9vw, 118px);
    color: rgba(102, 109, 66, .34);
}

figcaption {
    z-index: 3;
    position: absolute;
    left: 22px;
    right: 22px;
    bottom: 20px;
    color: rgba(255, 253, 248, .9);
    font-size: 14px;
    text-align: center;
    text-shadow: 0 1px 14px rgba(0, 0, 0, .35);
}

.section-head {
    width: min(780px, 100%);
    margin-bottom: 38px;
}

.intro {
    text-align: center;
}

.photo-moments {
    padding: clamp(54px, 7vw, 86px) 0 clamp(64px, 9vw, 112px);
}

.wedding-date {
    padding: 0 0 clamp(32px, 5vw, 58px);
}

.wedding-date__wrap {
    display: grid;
    grid-template-columns: minmax(220px, .72fr) minmax(320px, 1fr);
    gap: clamp(24px, 5vw, 70px);
    align-items: center;
}

.wedding-date__copy h2 {
    margin-bottom: 0;
}

.calendar-card {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(93, 147, 170, .28);
    border-radius: var(--radius);
    background:
        linear-gradient(145deg, rgba(217, 238, 247, .92), rgba(177, 222, 242, .68)),
        rgba(255, 253, 248, .58);
    box-shadow: 0 18px 54px rgba(93, 147, 170, .14);
}

.calendar-card::before {
    content: "";
    position: absolute;
    inset: 14px;
    border: 1px solid rgba(255, 253, 248, .72);
    border-radius: calc(var(--radius) - 2px);
    pointer-events: none;
}

.calendar-card__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 24px clamp(22px, 4vw, 34px) 18px;
    background: rgba(169, 217, 239, .7);
}

.calendar-card__head span {
    color: #244954;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1;
}

.calendar-card__head strong {
    color: #4f7f93;
    font-size: 15px;
    letter-spacing: .16em;
}

.calendar-card__weekdays,
.calendar-card__days {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
}

.calendar-card__weekdays {
    padding: 20px clamp(18px, 4vw, 30px) 8px;
    color: #4f7f93;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .08em;
    text-align: center;
    text-transform: uppercase;
}

.calendar-card__days {
    gap: 8px;
    padding: 8px clamp(18px, 4vw, 30px) 28px;
}

.calendar-card__days span,
.calendar-card__days time {
    display: grid;
    place-items: center;
    min-width: 0;
    aspect-ratio: 1;
    margin: 0;
    border: 1px solid rgba(93, 147, 170, .16);
    border-radius: 50%;
    background: rgba(255, 253, 248, .54);
    color: #39545d;
    font-family: Inter, Arial, sans-serif;
    font-size: clamp(14px, 2vw, 18px);
    font-weight: 800;
    line-height: 1;
}

.calendar-card__days .is-muted {
    opacity: .38;
}

.calendar-card__days .is-selected {
    background: #5d93aa;
    color: #fffdf8;
    box-shadow:
        0 0 0 8px rgba(169, 217, 239, .58),
        0 12px 26px rgba(93, 147, 170, .28);
}

body.theme-sky .hero__details span,
body.theme-sky .preview-switcher a.active,
body.theme-sky .map-fallback a {
    border-color: rgba(185, 138, 22, .24);
    background: rgba(246, 217, 120, .84);
    color: #4c3a0c;
    box-shadow: 0 10px 28px rgba(185, 138, 22, .12);
}

body.theme-sky .calendar-card {
    border-color: rgba(185, 138, 22, .24);
    background:
        linear-gradient(145deg, rgba(255, 244, 202, .98), rgba(246, 217, 120, .84)),
        rgba(255, 253, 246, .7);
    box-shadow: 0 18px 54px rgba(185, 138, 22, .14);
}

body.theme-sky .calendar-card__head {
    background: rgba(246, 217, 120, .9);
}

body.theme-sky .calendar-card__head span,
body.theme-sky .calendar-card__head strong,
body.theme-sky .calendar-card__weekdays {
    color: #6e520d;
}

body.theme-sky .calendar-card__days span,
body.theme-sky .calendar-card__days time {
    border-color: rgba(185, 138, 22, .16);
    background: rgba(255, 253, 246, .62);
    color: #4c3a0c;
}

body.theme-sky .calendar-card__days .is-selected {
    background: #b98a16;
    color: #fffdf6;
    box-shadow:
        0 0 0 8px rgba(246, 217, 120, .58),
        0 12px 26px rgba(185, 138, 22, .22);
}

.photo-moments__grid {
    display: grid;
    grid-template-columns: .9fr 1.12fr .78fr;
    gap: 16px;
    align-items: end;
}

.photo-card {
    position: relative;
    margin: 0;
    height: 390px;
    min-height: 390px;
    overflow: hidden;
    border: 1px solid rgba(102, 109, 66, .18);
    border-radius: var(--radius);
    background: var(--paper);
    box-shadow: 0 18px 52px rgba(80, 72, 48, .08);
}

.photo-card--tall {
    height: 470px;
    min-height: 470px;
}

.photo-card--soft {
    height: 340px;
    min-height: 340px;
}

.photo-card--tall img {
    transform: scale(1.08);
    object-position: 50% 64%;
}

.photo-card--soft img {
    object-position: 50% 48%;
}

.photo-moments__grid .photo-card:nth-child(2) img {
    object-position: 52% 42%;
}

.photo-moments__grid .photo-card:nth-child(3) img {
    object-position: 52% 48%;
}

.timeline__list {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 14px;
}

.timeline__list article,
.dress-looks article,
.details__grid article,
.rsvp-form {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255, 253, 248, .72);
    box-shadow: 0 18px 52px rgba(80, 72, 48, .07);
}

.timeline__list article {
    min-height: 230px;
    padding: 24px 20px;
    border-top: 3px solid rgba(169, 217, 239, .78);
}

body.theme-sky .timeline__list article {
    border-color: rgba(169, 120, 16, .2);
    border-top-color: rgba(244, 212, 95, .95);
    background:
        linear-gradient(180deg, rgba(255, 241, 184, .78), rgba(255, 253, 246, .72)),
        rgba(255, 253, 246, .7);
    box-shadow: 0 18px 52px rgba(169, 120, 16, .1);
}

body.theme-sky .timeline__list article time {
    color: #9b7410;
}

time {
    display: inline-block;
    margin-bottom: 18px;
    color: var(--olive-deep);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 32px;
}

.timeline__list p,
.dress-looks p,
.details__grid p {
    font-size: 15px;
    line-height: 1.55;
}

.place {
    background: rgba(255, 253, 248, .44);
}

.place__grid,
.rsvp__grid,
.photo-band,
.details__grid {
    display: grid;
    grid-template-columns: .78fr 1fr;
    gap: clamp(28px, 5vw, 64px);
    align-items: center;
}

.map-wrap {
    min-height: 420px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    background: var(--milk);
}

.map-wrap iframe {
    display: block;
    width: 100%;
    height: 336px;
    border: 0;
}

.map-fallback {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    min-height: 84px;
    padding: 18px 20px;
    border-top: 1px solid var(--line);
    background: rgba(255, 253, 248, .82);
}

.map-fallback strong {
    color: #4f4b3d;
    font-size: 15px;
}

.map-fallback a {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 8px 14px;
    border-radius: 999px;
    background: var(--blue);
    color: #244954;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.dress-palette {
    display: block;
    margin: 18px 0 26px;
    padding: 12px 0 28px;
    border-top: 1px solid rgba(93, 147, 170, .24);
    border-bottom: 1px solid rgba(93, 147, 170, .24);
}

.dress-guide__title {
    margin-bottom: 16px;
    color: var(--olive-deep);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.dress-palette__board {
    max-width: 736px;
    margin: 0 auto;
    overflow: hidden;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.dress-palette__board img {
    display: block;
    width: 100%;
    height: auto;
}

.dress-palette__aside {
    display: grid;
    gap: 18px;
    padding-bottom: 8px;
}

.dress-palette__aside p:last-child {
    margin: 0;
    font-size: 15px;
    line-height: 1.62;
}

.palette-key {
    display: grid;
    gap: 10px;
}

.palette-key span {
    display: grid;
    grid-template-columns: 42px 1fr;
    gap: 12px;
    align-items: center;
    min-height: 42px;
    color: #4f4b3d;
    font-size: 15px;
    font-weight: 800;
}

.palette-key i {
    width: 42px;
    height: 42px;
    border: 1px solid rgba(75, 72, 52, .14);
    border-radius: 50%;
    background: var(--c);
    box-shadow: inset 0 0 0 5px rgba(255, 255, 255, .24);
}

.shade-line {
    display: grid;
    grid-template-columns: 108px minmax(0, 1fr);
    gap: 16px;
    align-items: center;
}

.shade-line > span {
    color: #4f4b3d;
    font-size: 15px;
    font-weight: 800;
}

.shade-line__colors {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    min-height: 54px;
    overflow: hidden;
    border: 1px solid rgba(75, 72, 52, .12);
    border-radius: 999px;
    background: rgba(255, 253, 248, .58);
}

.shade-line__colors i {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    padding: 8px 12px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .28), rgba(255, 255, 255, 0)),
        var(--c);
    color: rgba(38, 37, 29, .78);
    font-size: 13px;
    font-style: normal;
    font-weight: 800;
    text-align: center;
    white-space: nowrap;
}

.dress-guide__mixes {
    display: grid;
    gap: 12px;
}

.dress-guide__mixes p:last-child {
    margin: 8px 0 0;
    font-size: 15px;
    line-height: 1.58;
}

.mix-row {
    display: grid;
    grid-template-columns: 34px 34px 1fr;
    gap: 8px;
    align-items: center;
    min-height: 48px;
    padding: 6px 0;
}

.mix-row i {
    width: 34px;
    height: 34px;
    border: 1px solid rgba(75, 72, 52, .14);
    border-radius: 50%;
    background: var(--c);
    box-shadow: inset 0 0 0 5px rgba(255, 255, 255, .22);
}

.mix-row span {
    color: #4f4b3d;
    font-size: 14px;
    font-weight: 800;
}

.dress-looks,
.details__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

.dress-looks article,
.details__grid article {
    padding: 26px;
}

.outfit-board {
    margin: 0 0 22px;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    border: 1px solid rgba(75, 72, 52, .12);
    border-radius: var(--radius);
    background:
        linear-gradient(135deg, rgba(255, 253, 248, .88), rgba(216, 238, 247, .22)),
        rgba(255, 253, 248, .9);
}

.outfit-board img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.tone-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
}

.tone-tags span {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 6px 10px;
    border: 1px solid rgba(75, 72, 52, .14);
    border-radius: 999px;
    background: rgba(248, 242, 230, .72);
    color: #5f5a49;
    font-size: 13px;
    font-weight: 700;
}

.photo-band {
    grid-template-columns: .55fr .8fr;
}

.photo-tile {
    min-height: 430px;
}

.gift-list {
    display: grid;
    gap: 8px;
    margin: -4px 0 22px;
    padding: 0;
    list-style: none;
}

.gift-list li {
    position: relative;
    padding-left: 18px;
    color: var(--muted);
    font-size: 17px;
    line-height: 1.38;
}

.gift-list li::before {
    content: "";
    position: absolute;
    top: .56em;
    left: 0;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--blue-deep);
}

body.theme-sky .gift-list li::before {
    background: #f6d978;
    box-shadow: inset 0 0 0 1px rgba(185, 138, 22, .18);
}

.gift-list a {
    color: inherit;
    font-weight: 700;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.details {
    background: rgba(246, 240, 223, .44);
}

.rsvp-form {
    padding: clamp(22px, 3vw, 34px);
    border-color: rgba(93, 147, 170, .22);
    background:
        linear-gradient(180deg, rgba(255, 253, 248, .82), rgba(217, 238, 247, .2)),
        rgba(255, 253, 248, .74);
}

body.theme-sky .rsvp-form {
    border-color: rgba(169, 120, 16, .22);
    background:
        linear-gradient(180deg, rgba(255, 241, 184, .76), rgba(255, 253, 246, .62)),
        rgba(255, 253, 246, .7);
}

body.theme-sky input[type="radio"],
body.theme-sky input[type="checkbox"] {
    accent-color: #a97810;
}

body.theme-sky input[type="text"]:focus,
body.theme-sky select:focus,
body.theme-sky textarea:focus {
    border-color: rgba(169, 120, 16, .65);
    box-shadow: 0 0 0 3px rgba(244, 212, 95, .34);
}

label,
fieldset {
    display: block;
    margin: 0 0 18px;
}

fieldset {
    padding: 0;
    border: 0;
}

label span,
legend {
    display: block;
    margin-bottom: 8px;
    color: #4f4b3d;
    font-size: 14px;
    font-weight: 700;
}

fieldset label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 16px 8px 0;
    color: var(--muted);
    font-size: 16px;
}

input[type="text"],
select,
textarea {
    width: 100%;
    min-height: 48px;
    padding: 12px 14px;
    border: 1px solid rgba(75, 72, 52, .2);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, .72);
    color: var(--ink);
    font: inherit;
}

input[type="radio"],
input[type="checkbox"] {
    accent-color: var(--blue-deep);
}

input[type="text"]:focus,
select:focus,
textarea:focus {
    border-color: rgba(93, 147, 170, .7);
    box-shadow: 0 0 0 3px rgba(169, 217, 239, .32);
    outline: none;
}

textarea {
    resize: vertical;
}

.is-hidden {
    display: none;
}

button {
    width: 100%;
    min-height: 54px;
    border: 0;
    border-radius: var(--radius);
    background: var(--button-bg);
    color: var(--button-text);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

button:hover {
    background: var(--button-hover);
}

.form-status {
    min-height: 24px;
    margin: 14px 0 0;
    font-size: 15px;
    line-height: 1.4;
}

.footer {
    padding: 38px 0;
    border-top: 1px solid var(--line);
}

.footer .shell {
    display: flex;
    justify-content: space-between;
    gap: 18px;
}

.footer p {
    margin: 0;
    font-size: 15px;
}

.preview-switcher {
    position: absolute;
    z-index: 20;
    top: 14px;
    left: 50%;
    display: flex;
    gap: 8px;
    transform: translateX(-50%);
    padding: 6px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 253, 248, .86);
    backdrop-filter: blur(14px);
    box-shadow: 0 14px 44px rgba(52, 51, 41, .1);
}

.preview-switcher a {
    min-height: 34px;
    text-decoration: none;
    background: transparent;
}

.preview-switcher a.active {
    background: var(--blue);
    color: #244954;
}

.variant-estate .hero__backdrop {
    background:
        linear-gradient(90deg, rgba(242, 230, 177, .72), rgba(242, 230, 177, .58)),
        var(--banana);
    filter: saturate(.8);
}

.variant-estate h1,
.variant-estate h2 {
    letter-spacing: 0;
}

.variant-playful .timeline__list article:nth-child(even) {
    transform: translateY(12px);
}

@media (max-width: 920px) {
    body::before {
        background-position: 100% 10rem, 0 70rem, 0 0;
        background-size: 103px auto, 93px auto, 273px auto;
    }

    .hero {
        min-height: auto;
        padding-top: 92px;
    }

    .hero__backdrop {
        background-position: 0 0;
    }

    .hero__backdrop::before {
        background-position: 100% 8rem, 0 0;
        background-size: 103px auto, 273px auto;
    }

    .hero__grid,
    .place__grid,
    .rsvp__grid,
    .photo-band,
    .dress-palette,
    .details__grid,
    .wedding-date__wrap {
        grid-template-columns: 1fr;
    }

    .timeline__list {
        grid-template-columns: repeat(2, 1fr);
    }

    .photo-moments__grid {
        grid-template-columns: 1fr 1fr;
    }

    .photo-slot {
        min-height: 440px;
    }
}

@media (max-width: 640px) {
    .shell,
    .narrow {
        width: min(100% - 28px, 1120px);
    }

    .section {
        padding: 42px 0;
    }

    .wedding-date,
    .photo-moments {
        padding: 34px 0;
    }

    .intro {
        padding-top: 34px;
        padding-bottom: 18px;
    }

    .wedding-date {
        padding-top: 22px;
    }

    .hero {
        padding-top: 88px;
        padding-bottom: 34px;
    }

    .timeline {
        padding-top: 36px;
    }

    .dress {
        padding-bottom: 24px;
    }

    .gifts {
        padding-top: 24px;
        padding-bottom: 34px;
    }

    .rsvp {
        padding-top: 34px;
    }

    h1 {
        font-size: clamp(56px, 18vw, 72px);
        line-height: .92;
    }

    h2 {
        font-size: 36px;
    }

    p,
    .hero__lead {
        font-size: 17px;
    }

    .hero__details span {
        width: 100%;
        justify-content: center;
    }

    .timeline__list,
    .dress-looks {
        grid-template-columns: 1fr;
    }

    .dress-palette {
        gap: 22px;
        margin-bottom: 0;
        padding: 12px 0 14px;
    }

    .dress-palette__aside {
        padding-bottom: 0;
    }

    .shade-line {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .shade-line__colors {
        min-height: 48px;
    }

    .shade-line__colors i {
        padding: 8px 6px;
        font-size: 12px;
    }

    .timeline__list article {
        min-height: auto;
    }

    .photo-card,
    .photo-card--tall,
    .photo-card--soft {
        height: auto;
        min-height: 390px;
    }

    .photo-moments__grid {
        grid-template-columns: repeat(6, 1fr);
        grid-auto-rows: 72px;
        gap: 10px;
        align-items: stretch;
    }

    .photo-card,
    .photo-card--tall,
    .photo-card--soft {
        height: auto;
        min-height: 0;
    }

    .photo-moments__grid .photo-card:nth-child(1) {
        z-index: 3;
        grid-column: 2 / 7;
        grid-row: 5 / span 4;
    }

    .photo-moments__grid .photo-card:nth-child(2) {
        z-index: 1;
        grid-column: 1 / 5;
        grid-row: 1 / span 5;
    }

    .photo-moments__grid .photo-card:nth-child(3) {
        z-index: 2;
        grid-column: 4 / 7;
        grid-row: 2 / span 4;
    }

    .variant-playful .timeline__list article:nth-child(even) {
        transform: none;
    }

    .map-wrap iframe {
        height: 280px;
    }

    .map-fallback {
        display: grid;
    }

    .preview-switcher {
        position: relative;
        top: auto;
        right: auto;
        bottom: auto;
        left: auto;
        width: calc(100% - 28px);
        margin: 10px auto -58px;
        transform: none;
        overflow-x: auto;
        justify-content: flex-start;
    }

    .preview-switcher a {
        white-space: nowrap;
    }

    .footer .shell {
        display: block;
    }
}
