:root {
  --wine: #69080a;
  --wine-deep: #4c090b;
  --paper: #eee5cc;
  --paper-ink: #622a2b;
  --quiet: #d2c4ad;
  --rule: #a16b5d;
  --rule-light: #c4b7a2;
  --serif: "Satsuki Gendai Mincho", "Noto Serif TC", serif;
  --sans: -apple-system, BlinkMacSystemFont, "PingFang TC", "Microsoft JhengHei", sans-serif;
}
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
[hidden] { display: none !important; }
.design-bar { position: sticky; top: 0; z-index: 10; min-height: 44px; display: flex; align-items: center; justify-content: center; gap: 32px; padding: 5px 24px; background: var(--wine-deep); border-bottom: 1px solid var(--rule); font: 12px/1.5 var(--sans); color: var(--paper); }
.design-bar nav { display: flex; gap: 4px; }
.design-bar button { padding: 6px 16px; border: 0; background: transparent; font: inherit; color: inherit; cursor: pointer; }
.design-bar button[aria-pressed="true"] { background: var(--paper); color: var(--wine-deep); }
.design-bar a { color: inherit; text-underline-offset: 4px; }
.hero { height: calc(100svh - 44px); }
.invitation-nav { display: flex; justify-content: center; align-items: center; gap: 28px; padding: 28px 20px 42px; color: var(--paper); font: 15px/1.6 var(--serif); }
.invitation-nav a { color: inherit; text-decoration: none; border-bottom: 1px solid transparent; padding: 8px 0; }
.invitation-nav a:hover { border-color: currentColor; }
.invitation-nav > span { opacity: .6; }
.invitation-body { color: var(--paper); font: 17px/1.95 var(--serif); }
.invitation-body h2, .invitation-body h3, .invitation-body h4, .invitation-body p, .invitation-body figure, .invitation-body dl { margin: 0; }
.invitation-body h2, .invitation-body h3 { font-weight: 500; text-wrap: balance; }
.invitation-body h2 { font-size: clamp(34px, 4.2vw, 58px); line-height: 1.65; letter-spacing: .07em; }
.invitation-body h3 { font-size: 26px; line-height: 1.5; }
.invitation-body h4 { font-weight: 500; font-size: 17px; }
.invitation-body p { text-wrap: pretty; }
.invitation-body button, .invitation-body input, .invitation-body select, .invitation-body textarea { font: inherit; }
.invitation-body a { color: inherit; }
.section-width { width: min(1080px, calc(100% - 96px)); margin-inline: auto; }
.day-section { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 100px; padding: 88px 80px 92px; background: var(--paper); color: var(--paper-ink); border: 1px solid var(--paper); outline: 1px solid var(--wine); outline-offset: -12px; }
.invitation-letter { padding-top: 25px; }
.letter-to { margin-bottom: 32px !important; font-size: 16px; }
.invitation-letter h2 { margin-bottom: 34px; }
.invitation-letter > p:not(.letter-to):not(.letter-signature) { font-size: 16px; line-height: 2.3; }
.letter-signature { margin-top: 50px !important; font-size: 23px; letter-spacing: .15em; }
.letter-signature span { display: inline-block; margin-inline: 12px; font-size: 18px; font-style: italic; }
.date-line { display: flex; justify-content: space-between; align-items: flex-end; padding-bottom: 20px; border-bottom: 1px solid var(--rule-light); }
.date-line time { display: grid; }
.date-month { font: 16px/1.6 var(--sans); letter-spacing: .14em; }
.date-day { font: 116px/.98 Georgia, serif; letter-spacing: -.04em; }
.date-weekday { text-align: right; line-height: 1.6; padding-bottom: 4px; }
.date-weekday span { font-style: italic; font-family: Georgia, serif; }
.day-timeline { margin-top: 25px !important; }
.day-timeline > div { display: flex; gap: 24px; margin-bottom: 18px; }
.day-timeline dt { font: 23px/1.5 Georgia, serif; min-width: 60px; }
.day-timeline dd { margin: 0; line-height: 1.65; }
.day-timeline dd span { display: block; font-size: 13px; margin-top: 4px; }
.text-link { display: inline-block; width: fit-content; border: 0; border-bottom: 1px solid currentColor; padding: 4px 0; background: transparent; color: inherit; font: inherit; text-decoration: none; cursor: pointer; text-underline-offset: 5px; }
.text-link:hover { opacity: .75; }
.calendar-button { margin-top: 4px; font-size: 15px !important; }
.venue { margin-top: 42px; }
.venue > p { font-size: 15px; margin-top: 6px; }
.venue address { font-size: 14px; font-style: normal; line-height: 1.8; margin-top: 14px; }
.venue > a { font-size: 15px; margin-top: 12px; }
.directions { border-top: 1px solid var(--rule-light); border-bottom: 1px solid var(--rule-light); margin-top: 28px; font-size: 15px; }
.directions summary { list-style: none; cursor: pointer; padding: 13px 0; display: flex; justify-content: space-between; }
.directions summary::-webkit-details-marker { display: none; }
.directions[open] summary span { transform: rotate(45deg); }
.directions > div { padding-bottom: 20px; }
.directions h4 { margin-top: 12px; }
.directions p { font-size: 14px; }
.directions a { margin-top: 10px; }
.day-end { position: absolute; bottom: 28px; left: 50%; font-size: 24px; transform: translateX(-50%); }
.photos-section { padding-block: 130px 110px; }
.photo-heading { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 48px; }
.photo-heading h2 { font-size: 40px; }
.photo-heading p { padding-bottom: 9px; font-size: 15px; }
.album-break { display: none; }
.photo-collection { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; align-items: start; }
.photo-frame { min-width: 0; }
.photo-open { position: relative; display: block; width: 100%; border: 0; padding: 9px; background: var(--paper); cursor: zoom-in; }
.photo-open img { display: block; width: 100%; height: auto; aspect-ratio: 2/3; object-fit: cover; filter: grayscale(1); transition: filter .45s ease; }
.photo-open:hover img { filter: grayscale(0); }
.photo-frame figcaption { display: flex; justify-content: space-between; gap: 16px; padding: 13px 0; font-size: 12px; }
.photo-frame figcaption > span:last-child { font: 10px/2.3 var(--sans); white-space: nowrap; opacity: .8; }
.photo-two, .photo-four { margin-top: 50px !important; }
.rsvp-section { display: grid; grid-template-columns: .8fr 1.2fr; gap: 90px; padding-block: 70px 120px; }
.rsvp-intro { padding-top: 50px; }
.reply-mark { display: flex; align-items: center; justify-content: center; width: 70px; height: 70px; border: 1px solid var(--rule); border-radius: 50%; font-size: 21px; letter-spacing: .1em; margin-bottom: 32px; }
.rsvp-intro h2 { font-size: 44px; margin-bottom: 28px; }
.rsvp-intro > p { font-size: 16px; }
.rsvp-note { margin-top: 25px !important; color: var(--quiet); font-size: 14px !important; }
.reply-sheet { background: var(--paper); color: var(--paper-ink); color-scheme: light; padding: 35px 44px 32px; }
.reply-sheet-top { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--rule-light); padding-bottom: 18px; margin-bottom: 30px; font-size: 18px; }
.reply-sheet-top > span:last-child { font: italic 20px Georgia, serif; }
.form-field { margin-bottom: 25px; }
.form-field > label { display: block; font-size: 16px; margin-bottom: 6px; }
.form-field small, .required-note { font-size: 12px; margin-left: 6px; }
.required-note { float: right; padding-top: 5px; }
.form-field input, .form-field select, .form-field textarea { display: block; width: 100%; min-width: 0; border: 0; border-bottom: 1px solid var(--rule-light); border-radius: 0; padding: 11px 2px; min-height: 48px; background: transparent; color: inherit; color-scheme: light; font: 16px/1.6 var(--sans); }
.form-field input::placeholder, .form-field textarea::placeholder { color: #7c5951; opacity: 1; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { outline: none; border-bottom: 2px solid currentColor; padding-bottom: 10px; }
.form-field textarea { resize: vertical; min-height: 110px; }
.reply-sheet fieldset { border: 0; padding: 0; margin: 0 0 26px; min-width: 0; }
.reply-sheet legend { font-size: 16px; margin-bottom: 12px; padding: 0; }
.attendance-options { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.attendance-options label { position: relative; padding: 13px 10px 13px 36px; border: 1px solid var(--rule-light); cursor: pointer; line-height: 1.7; }
.attendance-options label:has(input:checked) { border-color: var(--paper-ink); background: var(--paper-ink); color: var(--paper); }
.attendance-options input { position: absolute; left: 12px; top: 20px; margin: 0; accent-color: var(--wine); }
.attendance-options span { font-size: 16px; }
.attendance-options small { display: block; font-size: 12px; }
.party-fields { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 20px; padding-top: 8px; }
.party-fields label { font-size: 14px; min-height: 46px; }
.party-fields label small { display: block; margin: 0; font-size: 11px; }
.party-fields input { font: 25px/1.3 Georgia, serif; }
.paper-choice label { display: flex; align-items: center; gap: 8px; font-size: 14px; cursor: pointer; padding: 6px 0; }
.paper-choice input { accent-color: var(--wine); margin: 0; width: 16px; height: 16px; }
.submit-reply { display: flex; align-items: center; justify-content: space-between; width: 100%; border: 1px solid var(--wine); padding: 14px 19px; background: var(--wine); color: var(--paper); cursor: pointer; font-size: 17px !important; }
.submit-reply:hover { background: var(--wine-deep); }
.prototype-note { font: 12px/1.8 var(--sans); margin-top: 16px !important; }
.form-error { color: #940e12; font-size: 14px; padding: 0 0 18px; }
.reply-success { padding-block: 20px 35px; text-align: center; }
.success-mark { font-size: 58px; display: block; margin-bottom: 14px; }
.reply-success > p { margin-top: 18px; }
.reply-success .text-link { margin-top: 30px; }
.closing-section { padding-block: 74px 25px; border-top: 1px solid var(--rule); text-align: center; }
.closing-symbol { font-size: 45px; margin-bottom: 24px !important; }
.closing-note h2 { width: 100%; margin-inline: auto; font-size: 26px; line-height: 1.8; text-align: center; }
.closing-note > p:not(.closing-symbol) { margin-top: 24px; }
.closing-signature { font-size: 19px; letter-spacing: .12em; }
.closing-note:has(.closing-signature:only-child) .closing-symbol { margin-bottom: 8px !important; }
.closing-note:has(.closing-signature:only-child) > .closing-signature { margin-top: 8px; }
.closing-signature span { font-family: Georgia, serif; font-style: italic; margin-inline: 7px; }
.contact-details { margin-top: 66px; font-size: 14px; }
.contact-details > div { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 35px; margin-top: 14px; }
.contact-details a { text-decoration: none; border-bottom: 1px solid var(--rule); padding-block: 4px; }
.sample-disclaimer { font: 11px/1.8 var(--sans); margin-top: 36px !important; color: var(--quiet); }
.footer-date { display: flex; justify-content: space-between; border-top: 1px solid var(--rule); margin-top: 55px !important; padding-top: 22px; font: 12px/1.5 Georgia, var(--serif); }
button:focus-visible, a:focus-visible, summary:focus-visible, input:focus-visible { outline: 2px solid currentColor; outline-offset: 5px; }
#photo-dialog { padding: 44px 24px 18px; border: 1px solid var(--rule); max-width: min(850px, 94vw); max-height: 94svh; background: var(--wine-deep); color: var(--paper); }
#photo-dialog::backdrop { background: #1d0d0ef0; }
#dialog-photo { display: block; width: auto; max-width: 100%; height: min(73svh, 900px); object-fit: contain; margin-inline: auto; }
.dialog-close { position: absolute; top: 10px; right: 20px; }
#photo-dialog button { background: transparent; border: 0; padding: 7px 4px; color: inherit; font: 14px/1.5 var(--sans); cursor: pointer; }
.photo-controls { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-top: 16px; font: 13px var(--sans); }

body[data-design="album"] .invitation-body { display: flex; flex-direction: column; }
body[data-design="album"] .photos-section { padding-top: 65px; }
body[data-design="album"] .photo-heading { align-items: center; margin-bottom: 70px; }
body[data-design="album"] .photo-heading h2 { font-size: 64px; line-height: 1.5; }
body[data-design="album"] .album-break { display: block; }
body[data-design="album"] .photo-heading p { align-self: flex-end; }
body[data-design="album"] .photo-collection { grid-template-columns: 1.2fr .8fr; gap: 65px 100px; }
body[data-design="album"] .photo-open { padding: 0; background: none; }
body[data-design="album"] .photo-open img { aspect-ratio: 4/5; }
body[data-design="album"] .photo-two { margin-top: 150px !important; }
body[data-design="album"] .photo-three { width: 72%; justify-self: end; margin-top: -30px !important; }
body[data-design="album"] .photo-four { margin-top: 110px !important; }
body[data-design="album"] .photo-frame figcaption { font-size: 15px; border-bottom: 1px solid var(--rule); padding-top: 20px; }
body[data-design="album"] .day-section { width: 100%; padding: 90px max(60px, calc((100vw - 1080px) / 2)); border: 0; outline: 0; gap: 110px; }
body[data-design="album"] .occasion { display: grid; grid-template-columns: 1fr; }
body[data-design="album"] .date-line { justify-content: flex-start; gap: 34px; }
body[data-design="album"] .date-line time { display: flex; flex-direction: row-reverse; align-items: flex-end; gap: 22px; }
body[data-design="album"] .date-month { padding-bottom: 10px; white-space: nowrap; }
body[data-design="album"] .date-weekday { font-size: 14px; }
body[data-design="album"] .day-end { display: none; }
body[data-design="album"] .rsvp-section { margin-top: 65px; gap: 120px; }
body[data-design="album"] .reply-sheet { background: none; color: var(--paper); color-scheme: dark; padding-inline: 0; }
body[data-design="album"] .form-field input, body[data-design="album"] .form-field select, body[data-design="album"] .form-field textarea { color-scheme: dark; border-color: var(--rule); }
body[data-design="album"] .form-field input::placeholder, body[data-design="album"] .form-field textarea::placeholder { color: var(--quiet); }
body[data-design="album"] .attendance-options label { border-color: var(--rule); }
body[data-design="album"] .attendance-options label:has(input:checked) { color: var(--wine-deep); background: var(--paper); }
body[data-design="album"] .submit-reply { background: var(--paper); color: var(--wine-deep); border-color: var(--paper); }
body[data-design="album"] .form-error { color: var(--paper); }
body[data-design="album"] .rsvp-intro { position: sticky; top: 115px; align-self: start; }

body[data-design="programme"] .day-section { background: none; color: var(--paper); border: 0; outline: 0; padding: 60px 0 100px; grid-template-columns: .85fr 1.15fr; gap: 100px; }
body[data-design="programme"] .invitation-letter { padding-top: 80px; }
body[data-design="programme"] .invitation-letter h2 { font-size: 50px; }
body[data-design="programme"] .occasion { border: 1px solid var(--rule); padding: 42px; }
body[data-design="programme"] .date-line { border-color: var(--rule); }
body[data-design="programme"] .directions { border-color: var(--rule); }
body[data-design="programme"] .day-end { display: none; }
body[data-design="programme"] .photos-section { background: var(--paper); color: var(--paper-ink); padding-block: 75px; }
body[data-design="programme"] .photo-heading { margin-bottom: 35px; }
body[data-design="programme"] .photo-heading h2 { font-size: 35px; }
body[data-design="programme"] .photo-collection { gap: 12px; }
body[data-design="programme"] .photo-open { padding: 0; }
body[data-design="programme"] .photo-open img { aspect-ratio: 4/5; }
body[data-design="programme"] .photo-two, body[data-design="programme"] .photo-four { margin-top: 0 !important; }
body[data-design="programme"] .photo-frame figcaption { display: block; font-size: 12px; }
body[data-design="programme"] .photo-frame figcaption > span:last-child { display: block; margin-top: 4px; }
body[data-design="programme"] .rsvp-section { display: block; max-width: 740px; padding-top: 105px; }
body[data-design="programme"] .rsvp-intro { text-align: center; padding: 0; margin-bottom: 45px; }
body[data-design="programme"] .reply-mark { margin-inline: auto; }
body[data-design="programme"] .rsvp-intro h2 { font-size: 42px; }
body[data-design="programme"] .rsvp-intro h2 br { display: none; }
body[data-design="programme"] .rsvp-note { display: none; }
body[data-design="programme"] .reply-sheet { padding: 42px 60px; outline: 1px solid var(--wine); outline-offset: -10px; }

@media (max-width: 900px) {
  .section-width { width: calc(100% - 56px); }
  .day-section { gap: 45px; padding: 65px 45px 80px; }
  .invitation-body h2 { font-size: 36px; }
  .rsvp-section { gap: 45px; grid-template-columns: .7fr 1fr; }
  .reply-sheet { padding: 30px 27px; }
  .photo-frame figcaption { flex-direction: column; gap: 2px; }
  body[data-design="album"] .photo-collection { gap: 50px; }
  body[data-design="album"] .day-section { padding: 70px 45px; gap: 55px; }
  body[data-design="album"] .date-line time { display: grid; }
  body[data-design="album"] .rsvp-section { gap: 55px; }
  body[data-design="programme"] .day-section { gap: 50px; }
  body[data-design="programme"] .occasion { padding: 28px; }
}
@media (max-width: 640px) {
  html { scroll-padding-top: 75px; }
  .design-bar { min-height: 42px; justify-content: space-between; padding-inline: 10px; gap: 8px; font-size: 11px; }
  .preview-label { display: none; }
  .design-bar nav { gap: 1px; }
  .design-bar button { padding: 6px 10px; }
  .hero { height: calc(100svh - 42px); }
  .invitation-nav { gap: 15px; padding: 12px 10px 38px; font-size: 14px; }
  .section-width { width: calc(100% - 40px); }
  .day-section { display: block; padding: 48px 32px 76px; outline-offset: -9px; }
  .invitation-letter { padding-top: 0; }
  .letter-to { margin-bottom: 24px !important; font-size: 14px; }
  .invitation-body h2 { font-size: 34px; }
  .invitation-letter h2 { margin-bottom: 26px; }
  .invitation-letter > p:not(.letter-to):not(.letter-signature) { font-size: 15px; }
  .letter-signature { margin-top: 28px !important; font-size: 20px; }
  .occasion { margin-top: 52px; }
  .date-day { font-size: 100px; }
  .date-month { font-size: 14px; }
  .day-timeline dd span { font-size: 12px; }
  .day-timeline dt { font-size: 22px; }
  .venue h3 { font-size: 26px; }
  .photos-section { padding-block: 70px 45px; }
  .photo-heading { display: block; margin-bottom: 28px; }
  .photo-heading h2 { font-size: 30px; }
  .photo-heading p { font-size: 14px; margin-top: 10px; }
  .photo-collection { grid-template-columns: 1fr 1fr; gap: 14px; }
  .photo-open { padding: 6px; }
  .photo-two, .photo-four { margin-top: 25px !important; }
  .photo-frame figcaption { font-size: 11px; }
  .rsvp-section { display: block; padding-block: 35px 65px; }
  .rsvp-intro { padding-top: 0; margin-bottom: 32px; }
  .reply-mark { width: 56px; height: 56px; font-size: 17px; margin-bottom: 22px; }
  .rsvp-intro h2 { font-size: 34px; }
  .rsvp-intro > p { font-size: 15px; }
  .rsvp-note { margin-top: 17px !important; }
  .reply-sheet { padding: 26px 23px; }
  .reply-sheet-top { font-size: 16px; }
  .reply-sheet-top > span:last-child { font-size: 18px; }
  .party-fields { gap: 12px; }
  .party-fields label { font-size: 13px; }
  .attendance-options { gap: 8px; }
  .attendance-options label { padding-left: 30px; padding-right: 7px; }
  .attendance-options input { left: 9px; }
  .attendance-options span { font-size: 15px; }
  .paper-choice label { font-size: 13px; }
  .closing-section { padding-top: 50px; }
  .closing-note h2 { font-size: 22px; }
  .closing-symbol { font-size: 36px; }
  .closing-signature { font-size: 16px; letter-spacing: .05em; }
  .contact-details { margin-top: 48px; }
  .contact-details > div { flex-direction: column; align-items: center; gap: 9px; }
  .sample-disclaimer { font-size: 10px; line-height: 2; }
  .footer-date { font-size: 10px; margin-top: 35px !important; }
  body[data-design="album"] .photos-section { padding-top: 25px; }
  body[data-design="album"] .photo-heading { margin-bottom: 32px; }
  body[data-design="album"] .photo-heading h2 { font-size: 44px; }
  body[data-design="album"] .photo-heading p { margin-top: 20px; }
  body[data-design="album"] .photo-collection { gap: 25px 18px; grid-template-columns: 1.1fr .9fr; }
  body[data-design="album"] .photo-two { margin-top: 85px !important; }
  body[data-design="album"] .photo-three { width: 90%; margin-top: -12px !important; }
  body[data-design="album"] .photo-four { margin-top: 45px !important; }
  body[data-design="album"] .photo-frame figcaption { font-size: 12px; }
  body[data-design="album"] .day-section { padding: 50px 30px; }
  body[data-design="album"] .date-line time { display: flex; }
  body[data-design="album"] .date-line { gap: 24px; }
  body[data-design="album"] .date-line .date-month { font-size: 13px; letter-spacing: .06em; }
  body[data-design="album"] .rsvp-section { margin-top: 30px; }
  body[data-design="album"] .rsvp-intro { position: static; }
  body[data-design="album"] .reply-sheet { padding-top: 20px; }
  body[data-design="programme"] .day-section { padding-block: 15px 50px; }
  body[data-design="programme"] .invitation-letter { padding: 15px 12px 0; }
  body[data-design="programme"] .invitation-letter h2 { font-size: 38px; }
  body[data-design="programme"] .occasion { padding: 28px 23px; margin-top: 40px; }
  body[data-design="programme"] .photos-section { padding-block: 45px 30px; }
  body[data-design="programme"] .photo-heading h2 { font-size: 29px; }
  body[data-design="programme"] .rsvp-section { padding-top: 60px; }
  body[data-design="programme"] .rsvp-intro h2 { font-size: 30px; }
  body[data-design="programme"] .reply-sheet { padding: 32px 25px; outline-offset: -7px; }
}
@media (max-width: 350px) {
  .section-width { width: calc(100% - 24px); }
  .day-section { padding-inline: 25px; }
  .reply-sheet { padding-inline: 17px; }
  .design-bar { padding-inline: 7px; }
  .design-bar button { padding-inline: 7px; }
  .invitation-nav { gap: 10px; font-size: 13px; }
  body[data-design="album"] .date-line time { gap: 10px; }
  body[data-design="album"] .date-line { gap: 15px; }
  body[data-design="programme"] .reply-sheet { padding-inline: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .photo-open img { transition: none; }
}

@font-face {
  font-family: "Agenda Instrument";
  src: url("./assets/fonts/InstrumentSerif-Regular.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Agenda Pinyon";
  src: url("./assets/fonts/PinyonScript-Regular.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Agenda Montserrat";
  src: url("./assets/fonts/Agenda-Montserrat.woff2") format("woff2");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Keepsake Handwriting";
  src: url("../../fonts/ChenYuluoyan-Thin.woff2") format("woff2");
  font-weight: 100;
  font-style: normal;
  font-display: swap;
}
.keepsake-section {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  width: min(720px, 100%);
  margin: 0 auto;
  container-type: inline-size;
  background: transparent;
}
.keepsake-collage {
  position: relative;
  padding: 22cqw 0 18cqw;
}
.invitation-body .keepsake-photo {
  position: relative;
  z-index: 2;
  width: 46cqw;
  margin: 0 auto -12cqw;
  padding: 2.2cqw 2.2cqw 3.8cqw;
  background: #f5f3e9;
  transform: rotate(-5deg);
}
.keepsake-photo img {
  display: block;
  width: 100%;
  height: 42cqw;
  object-fit: cover;
  object-position: 50% 38%;
}
.keepsake-photo::after {
  content: "";
  position: absolute;
  top: -3cqw;
  left: 28%;
  width: 42%;
  height: 7cqw;
  background: linear-gradient(43deg, transparent 28%, #ad5145 29%, #853023 30%, transparent 32%), #922e24;
  clip-path: polygon(0 4%, 100% 0, 97% 96%, 6% 100%);
  transform: rotate(7deg);
}
.keepsake-paper {
  position: relative;
  width: 70cqw;
  margin: 0 auto;
  padding: 18cqw 4cqw 5cqw 9cqw;
  color: #8b251f;
  background: url("./assets/notebook-paper-clean.png") center / 100% 108% no-repeat;
  transform: rotate(.7deg);
}
.keepsake-paper p {
  margin: 0;
  font: 100 5.4cqw/1.5 "Keepsake Handwriting", cursive;
  text-align: center;
}
.keepsake-paper p + p { margin-top: 1em; }
.keepsake-paper strong { font-weight: 100; -webkit-text-stroke: .35px currentColor; }
.agenda-only { display: none; }
.lace-heart { width: min(720px, 100%); margin: 0 auto; }
.lace-heart img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 736 / 640;
  object-fit: cover;
  filter: url(#remove-lace-red);
}
.artwork-filters { position: absolute; pointer-events: none; }
body[data-design="invitation"] {
  --agenda-red: #6d0005;
  --paper: #dbd3c5;
  --rule: #a56d64;
  background: var(--agenda-red) url("./assets/agenda-ribbed-red.png") 0 0 / 676px 200px repeat;
}
body[data-design="invitation"] .design-bar { background: #530006; }
body[data-design="invitation"] .artwork { filter: url(#remove-artwork-red); }
body[data-design="invitation"] .heading,
body[data-design="invitation"] .date { filter: url(#extract-artwork-ivory); }
body[data-design="invitation"] .agenda-only { display: block; }
body[data-design="invitation"] .day-section {
  display: block;
  width: min(720px, 100%);
  margin-inline: auto;
  padding: 0;
  background: none;
  border: 0;
  outline: 0;
  color: var(--paper);
}
body[data-design="invitation"] .day-section > .invitation-letter,
body[data-design="invitation"] .day-section > .occasion,
body[data-design="invitation"] .day-end { display: none; }
.agenda-poster {
  position: relative;
  container-type: inline-size;
  width: 100%;
  aspect-ratio: 9 / 16;
  background: var(--agenda-red) url("./assets/agenda-ribbed-red.png") 0 0 / 93.8889% auto repeat;
}
.agenda-seam { position: absolute; pointer-events: none; }
.agenda-seam-right, .agenda-seam-center {
  width: 2.22222cqw;
  background: url("./assets/agenda-seam-vertical.png") 0 0 / 100% auto repeat-y;
}
.agenda-seam-right { left: 93.88889cqw; top: 0; bottom: 0; }
.agenda-seam-center { left: 58.61111cqw; top: 56.38889cqw; bottom: 0; }
.agenda-seam-top, .agenda-seam-bottom, .agenda-seam-signature, .agenda-seam-photo {
  height: 2.22222cqw;
  background: url("./assets/agenda-seam-horizontal.png") 0 0 / 58.33333cqw 100% repeat-x;
}
.agenda-seam-top { left: 0; top: 56.38889cqw; width: 95cqw; }
.agenda-seam-bottom { left: 0; top: 150.55556cqw; width: 59.72222cqw; }
.agenda-seam-signature { left: 59.72222cqw; top: 70cqw; width: 35.27778cqw; }
.agenda-seam-photo { left: 59.72222cqw; top: 115.27778cqw; width: 35.27778cqw; }
.agenda-heading { position: absolute; inset: 0; }
.invitation-body .agenda-heading > p {
  position: absolute;
  top: 30.83333cqw;
  left: 28.05556cqw;
  width: 43.88889cqw;
  display: flex;
  justify-content: space-between;
  font: italic 4.44444cqw/1 "Times New Roman", Times, serif;
}

.agenda-heading > p span { position: absolute; top: 0; transform-origin: left top; }
.agenda-heading > p span:nth-child(1) { left: 0; transform: scale(1.0933, .9565); }
.agenda-heading > p span:nth-child(2) { left: 15.06944cqw; transform: scaleY(.9565); }
.agenda-heading > p span:nth-child(3) { left: 21.25cqw; transform: scale(1.0337, .9565); }
.agenda-heading > p span:nth-child(4) { left: 40.43056cqw; transform: scale(1.0435, .9565); }
.invitation-body .agenda-heading h2 {
  position: absolute;
  left: 12.77778cqw;
  top: 37.36111cqw;
  margin: 0;
  font: 400 11.25cqw/1 "Agenda Instrument", serif;
  letter-spacing: .1cqw;
  white-space: nowrap;
}
.agenda-entries { list-style: none; padding: 0; margin: 0; }
.agenda-entries li { position: absolute; left: 15cqw; width: 43.05556cqw; }
.agenda-entries li:nth-child(1) { top: 69.30556cqw; }
.agenda-entries li:nth-child(2) { top: 98.30556cqw; }
.agenda-entries li:nth-child(3) { top: 127.30556cqw; }
.agenda-number { position: absolute; left: -6.52778cqw; top: -5.13889cqw; font: 2.63889cqw/1.2 "Courier New", monospace; letter-spacing: .23cqw; }
.invitation-body .agenda-entries h3 { font: 500 2.5cqw/1.22222 "Agenda Montserrat", var(--sans); letter-spacing: .20833cqw; }
.invitation-body .agenda-display { margin-top: 1.11111cqw; font: 400 5.55556cqw/1.1 "Agenda Instrument", serif; white-space: nowrap; }
.invitation-body .agenda-display-inline { display: flex; align-items: baseline; gap: 1.38889cqw; white-space: nowrap; }
.invitation-body .agenda-small { margin-top: 1.25cqw; font: 500 2.5cqw/1.31944 "Agenda Montserrat", var(--sans); letter-spacing: .13cqw; }
.invitation-body .agenda-signature {
  position: absolute;
  top: 61.52778cqw;
  left: 63.88889cqw;
  width: 26.38889cqw;
  font: 400 6.11111cqw/1.2 "Agenda Pinyon", cursive;
  white-space: nowrap;
  text-align: left;
  transform: scale(.683, 1.083);
  transform-origin: left top;
}
.invitation-body .agenda-reel { position: absolute; left: 63.88889cqw; top: 75.41667cqw; width: 26.38889cqw; margin: 0; }
.agenda-frames { isolation: isolate; position: relative; height: 36.52778cqw; overflow: hidden; border: .41667cqw solid #2c1713; border-right-color: #765344; border-bottom-color: #765344; border-radius: .83333cqw; background: #250e0b; }
.agenda-frames::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg, #000d 0%, #0005 6%, transparent 23%, transparent 77%, #0005 94%, #000c 100%),
    linear-gradient(90deg, #000b 0%, #0003 7%, transparent 20%, transparent 80%, #0003 93%, #000b 100%);
}
.agenda-film { display: grid; grid-template-rows: repeat(5, minmax(0, 1fr)); height: 500%; animation: agenda-wind 8s cubic-bezier(.4, 0, .2, 1) infinite; }
.agenda-film img { display: block; width: 100%; height: 100%; min-height: 0; object-fit: cover; }
.agenda-pause { position: absolute; bottom: 5px; right: 5px; display: flex; gap: 5px; align-items: center; padding: 6px; background: #530006; opacity: 0; font: 12px/1.4 var(--sans); cursor: pointer; }
.agenda-pause input { margin: 0; accent-color: var(--paper); }
.agenda-reel:hover .agenda-pause, .agenda-reel:focus-within .agenda-pause { opacity: 1; }
.agenda-reel:has(input:checked) .agenda-film { animation-play-state: paused; }
.agenda-practical { position: relative; z-index: 2; margin: clamp(-180px, -25vw, -90px) 36px 0; padding: 0 0 35px; font-size: 14px; }
.agenda-practical-top { display: block; }
.agenda-practical-top .calendar-button { display: flex; width: 100%; align-items: center; justify-content: space-between; margin-top: 0; padding: 13px 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.agenda-practical-top .calendar-button span { transition: transform .2s ease; }
.agenda-practical-top .calendar-button:hover span { transform: rotate(45deg); }
.agenda-practical .directions { border-color: var(--rule); margin-top: 22px; }
.agenda-practical .directions > div { padding: 8px 0 24px; max-width: 36em; font-size: 14px; line-height: 1.8; }
.agenda-practical .directions h3 { font: 500 16px/1.5 var(--serif); letter-spacing: .02em; text-wrap: initial; margin-bottom: 4px; }
.agenda-practical .directions h4 { font: 500 14px/1.6 var(--serif); margin: 20px 0 4px; }
.agenda-practical .directions p,
.agenda-practical .directions address { font-size: 14px; line-height: 1.8; }
.agenda-practical .directions address { margin-top: 6px; }
.agenda-practical .directions a { margin-top: 8px; font-size: 14px; line-height: 1.6; }
.agenda-practical address { font-style: normal; }
@keyframes agenda-wind {
  0%, 18% { transform: translateY(0); }
  25%, 43% { transform: translateY(-20%); }
  50%, 68% { transform: translateY(-40%); }
  75%, 93% { transform: translateY(-60%); }
  100% { transform: translateY(-80%); }
}
@media (max-width: 720px) {
  body[data-design="invitation"] { background-size: 93.88889vw 27.77778vw; }
  .agenda-practical { margin-inline: 24px; }
  .agenda-practical-top .calendar-button { margin-top: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .agenda-film { animation: none; }
  .agenda-pause { display: none; }
}
