:root {
    color-scheme: light;
    --ink: #65464d;
    --deep: #4d2936;
    --button: #713e50;
    --paper: #faf2ef;
    --pink: #f2d5dc;
    --rose: #d8a5b5;
    --gold: #ba8852;
    --line: #c8a8aa;
    --serif: Georgia, 'Times New Roman', serif;
    --sans: system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 1rem/1.65 var(--sans); }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; color: var(--deep); line-height: 1.08; }
h1 { font-size: clamp(2rem, 5vw, 3.45rem); letter-spacing: -.045em; }
h2 { font-size: clamp(2.15rem, 5vw, 3.7rem); letter-spacing: -.045em; text-wrap: balance; }
h3 { font-size: 1.65rem; letter-spacing: -.035em; }
a { color: var(--button); }
:focus-visible { outline: 3px solid #864866; outline-offset: 4px; }
[hidden] { display: none !important; }
.hero {
    padding: clamp(12px, 3.3vw, 44px);
    text-align: center;
    background: #eed8db;
}
.hero-inner {
    padding: clamp(40px, 5.8vw, 84px) clamp(14px, 5vw, 68px);
    border: 1px solid #b8899a;
    outline: 1px solid #cfa8b4;
    outline-offset: -6px;
    background: var(--paper);
}
.eyebrow, .edition, .byline, .hero-date, .detail-label {
    text-transform: uppercase;
    letter-spacing: .17em;
    font-size: .72rem;
    font-weight: 650;
}
.wordmark { display: grid; color: var(--deep); margin: 24px 0 10px; }
.wordmark-top { font: italic 1.45rem/1 var(--serif); }
.wordmark-name { font: italic clamp(5.5rem, 15vw, 11rem)/.77 var(--serif); letter-spacing: -.10em; padding-right: .13em; }
.wordmark-bottom { text-transform: uppercase; font-size: clamp(.82rem, 2.5vw, 1.25rem); letter-spacing: .42em; padding-left: .42em; margin-top: 24px; }
.byline { margin-bottom: 24px; }
.edition { width: fit-content; margin: 0 auto 24px; padding: 6px 14px; border-block: 1px solid var(--gold); }
.hero h1 + p { margin-top: 16px; }
.hero h1 ~ p:not(.hero-date):not(.fine) { max-width: 57ch; margin-inline: auto; }
.hero h1 + p + p { margin-top: 10px; }
.hero-date { margin: 22px 0; display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 5px 12px; }
.hero-date span { width: 4px; height: 4px; border-radius: 50%; background: var(--gold); }
.button {
    display: inline-flex; align-items: center; justify-content: center; gap: 14px; min-height: 52px;
    padding: 12px 24px; border: 1px solid transparent; background: var(--button); color: #fff9f6;
    font: 650 .94rem/1.35 var(--sans); text-decoration: none; cursor: pointer;
}
.button:hover { background: var(--deep); }
.button:disabled { cursor: wait; opacity: .75; }
.fine { font-size: .83rem; line-height: 1.5; margin-top: 12px; }
.wrap { width: min(100% - 40px, 1100px); margin-inline: auto; }
.section { padding-block: clamp(52px, 8.5vw, 112px); }
.experience { background: #fffbf8; }
.experience h2, .experience .section-lede { text-align: center; }
.section-lede { max-width: 53ch; margin: 14px auto 0; }
.experience-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 22px; margin-top: 38px; }
.experience-grid article { border-top: 1px solid var(--line); padding: 17px 0 0; }
.experience-grid span { font: italic 1.2rem var(--serif); color: var(--button); }
.experience-grid h3 { margin: 10px 0; }
.experience-grid p { font-size: .92rem; }
.gift { background: #eed8db; }
.gift-layout { text-align: center; }
.gift-layout.has-image { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; align-items: center; text-align: left; }
.gift p { max-width: 47ch; margin: 16px auto 0; }
.gift-layout.has-image p { margin-inline: 0; }
.invite-image { max-width: 800px; margin: 0 auto; text-align: right; }
.hero .invite-image { margin-top: 32px; }
.invite-image img { display: block; width: 100%; height: auto; }
.invite-image figcaption { margin-top: 5px; font-size: .74rem; }
.details-grid { display: grid; grid-template-columns: .95fr 1fr 1.15fr; gap: 28px; margin-top: 30px; }
.details-grid > div { border-top: 1px solid var(--line); padding-top: 14px; }
.detail-label { margin-bottom: 8px; color: var(--button); }
.text-link { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-weight: 650; text-underline-offset: 4px; }
.swatches { display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 14px 0 0; list-style: none; }
.swatches li { font-size: .72rem; text-align: center; }
.swatches li::before { content: ''; display: block; margin: 0 auto 4px; block-size: 22px; inline-size: 22px; border-radius: 50%; border: 1px solid #9c777e; background: var(--swatch); }
.white { --swatch: #fff; } .offwhite { --swatch: #f5ebdf; } .nude { --swatch: #d4ac99; }
.pink { --swatch: #f2d5dc; } .beige { --swatch: #e5cbb5; }
.rsvp { background: var(--pink); scroll-margin-top: 12px; }
.rsvp-grid { display: grid; grid-template-columns: .9fr 1.1fr; align-items: start; gap: clamp(24px, 7vw, 100px); }
.rsvp h2 { text-wrap: initial; }
.rsvp h2 + p { margin-top: 15px; }
.rsvp .fine { margin-top: 20px; max-width: 40ch; }
.form-panel { background: #fffbf8; border: 1px solid var(--line); padding: clamp(16px, 3vw, 34px); }
.form-field { margin-bottom: 15px; }
.form-field label, legend { display: block; font-weight: 650; margin-bottom: 5px; }
.form-field input { width: 100%; border: 1px solid #9e747e; background: #fff; border-radius: 0; padding: 9px 11px; min-height: 46px; font: inherit; color: var(--deep); }
fieldset { border: 0; padding: 0; margin: 0 0 16px; min-width: 0; }
legend { padding: 0; }
.radio { display: flex; gap: 10px; align-items: center; min-height: 44px; cursor: pointer; }
.radio input { margin: 0; width: 19px; height: 19px; flex: none; accent-color: var(--button); }
.form-panel .button { width: 100%; }
.field-error { color: #842c49; font-size: .86rem; margin-top: 4px; }
.field-error:empty, .feedback:empty { margin: 0; padding: 0; border: 0; }
.feedback:not(:empty) { padding: 13px; border-left: 3px solid var(--button); background: var(--paper); margin-bottom: 16px; }
.feedback[data-result="success"] { border-color: #507351; }
footer { background: var(--deep); color: var(--paper); text-align: center; padding: 48px 20px; }
.closing { font: italic clamp(1.7rem, 4vw, 2.7rem)/1.15 var(--serif); margin-bottom: 14px; }
footer .eyebrow { margin-top: 14px; }
@media (max-width: 850px) { .experience-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
    .details-grid, .rsvp-grid, .gift-layout.has-image { grid-template-columns: 1fr; }
    .hero-inner > .button { width: min(100%, 320px); }
    .gift-layout.has-image { text-align: center; }
    .gift-layout.has-image p { margin-inline: auto; }
}
@media (max-width: 390px) {
    .experience-grid { grid-template-columns: 1fr; }
    .hero-date { letter-spacing: .1em; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
