:root {
  --accent: #89775e;
  --paper: #f8f6f1;
  --ink: #403e38;
  --ink-soft: #77716a;
  --line: #ded8cc;
  --ivory: #fffdf8;
  --font-serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-sans: 'DM Sans', system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; color: var(--ink); background: var(--paper); font-family: var(--font-sans); -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, a:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
[hidden] { display: none !important; }
.grain { position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .29; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 120 120' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.6' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.15'/%3E%3C/svg%3E"); }
.corner { position: fixed; font-size: 25px; font-family: var(--font-serif); opacity: .42; color: var(--accent); }
.corner--tl { top: 28px; left: 34px; }
.corner--br { bottom: 28px; right: 34px; }
.demo-banner { position: fixed; z-index: 100; top: 0; left: 0; right: 0; padding: 8px 12px; text-align: center; background: #eae2d4; color: #67553b; font-size: 10px; font-weight: 700; letter-spacing: .17em; }
.app { min-height: 100vh; width: 100%; }
.landing { min-height: 100vh; min-height: 100svh; max-width: 900px; padding: 90px 28px 65px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; text-align: center; justify-content: center; animation: fadein .7s ease both; transition: opacity .28s ease; }
.landing > :not(.envelope-button) { transition: opacity .2s ease; }
.landing.is-opening > :not(.envelope-button) { opacity: 0; }
.landing.is-leaving { animation: none; opacity: 0; pointer-events: none; }
.eyebrow { font-size: 10px; font-weight: 700; letter-spacing: .3em; color: var(--accent); line-height: 1.8; }
.tiny-divider { font-family: var(--font-serif); font-size: 16px; color: var(--accent); margin: 14px 0 8px; }
.landing h1 { font-family: var(--font-serif); font-weight: 400; font-size: clamp(58px, 7.6vw, 91px); letter-spacing: -.045em; line-height: .97; margin: 16px 0 22px; }
.landing h1 em { font-weight: 400; }
.landing-copy { font-size: 13px; color: var(--ink-soft); letter-spacing: .02em; margin: 0 0 41px; line-height: 1.8; }
.envelope-button { width: min(100%, 395px); aspect-ratio: 1.6; flex: 0 0 auto; display: block; appearance: none; padding: 0; background: none; border: none; margin: 0 0 14px; -webkit-tap-highlight-color: transparent; }
.envelope-button:disabled { cursor: progress; }
.envelope { position: relative; display: block; height: 100%; width: 100%; isolation: isolate; transition: transform .35s ease; }
@media (hover: hover) and (pointer: fine) {
  .envelope-button:hover:not(:disabled) .envelope { transform: translateY(-4px); }
}
.envelope__back { position: absolute; inset: 0; background: #d9cbb2; border: 1px solid #cfc1a9; border-radius: 3px; box-shadow: 0 16px 32px rgba(76,64,48,.14); z-index: 0; }
.envelope__letter { position: absolute; left: 8%; bottom: 5%; width: 84%; height: 90%; background: #fffefb; box-shadow: 0 1px 6px rgba(0,0,0,.1); z-index: 1; transition: transform .72s cubic-bezier(.22,.7,.25,1) .78s; }
.envelope__letter-inner { position: absolute; inset: 12px; border: 1px solid #eee6d7; display: flex; flex-direction: column; justify-content: center; align-items: center; }
.letter-small { font-size: 8px; letter-spacing: .24em; font-weight: 600; color: var(--accent); }
.letter-monogram { font-family: var(--font-serif); font-size: 48px; line-height: 1.3; color: var(--ink); }
.letter-flourish { color: var(--accent); font-size: 14px; }
/* Draw the pocket as actual triangles. A CSS-clipped rectangle can paint over
   the letter when the flap and letter move onto separate compositor layers. */
.envelope__front { position: absolute; inset: 0; display: block; width: 100%; height: 100%; z-index: 2; pointer-events: none; }
.envelope__flap { position: absolute; inset: 0 0 auto; height: 60%; z-index: 3; transform: perspective(1000px) rotateX(0deg); transform-origin: 50% 0; transition: transform .6s ease-in-out .16s, z-index 0s linear .46s; }
.envelope__flap svg { display: block; width: 100%; height: 100%; }
.envelope__seal { position: absolute; top: 57%; left: 50%; width: 68px; height: 68px; margin: -34px 0 0 -34px; display: block; filter: drop-shadow(0 3px 3px #57402650); z-index: 4; transition: opacity .18s ease, transform .18s ease; }
.envelope.is-opening .envelope__flap { transform: perspective(1000px) rotateX(180deg); z-index: 0; }
.envelope.is-opening .envelope__seal { opacity: 0; transform: scale(.85); }
.envelope.is-opening .envelope__letter { transform: translateY(-92%); }
.envelope.is-opening { transform: translateY(14px); }
.open-link { color: var(--accent); background: none; border: 0; padding: 16px 20px; font-size: 10px; font-weight: 700; letter-spacing: .26em; transition: opacity .25s; }
.open-link span { margin-left: 5px; font-size: 15px; }
.open-link:hover { opacity: .7; }
.intro-note { font-size: 11px; line-height: 1.5; min-height: 16px; color: #8f7460; }
.invitation { padding: 70px 20px 40px; animation: reveal .55s ease both; }
.invitation-card { width: min(100%, 690px); margin: 0 auto; position: relative; background: var(--ivory); padding: clamp(40px, 7vw, 70px) clamp(25px, 7vw, 70px) 52px; border: 1px solid #e5dece; box-shadow: 0 11px 50px rgba(64,53,40,.08); text-align: center; }
.invitation-card:before { content: ''; position: absolute; inset: 10px; border: 1px solid #e9e1d2; pointer-events: none; }
.top-ornament { color: var(--accent); font-size: 15px; letter-spacing: 1.1em; margin-left: 1em; }
.top-ornament span { font-size: 9px; }
.invitation-eyebrow { margin-top: 30px; }
.lead { max-width: 360px; margin: 17px auto 32px; line-height: 1.9; color: var(--ink-soft); font-size: 13px; }
.couple-names { font-family: var(--font-serif); display: flex; flex-direction: column; font-size: clamp(63px, 11vw, 96px); letter-spacing: -.06em; font-weight: 400; line-height: .84; margin: 0; }
/* The heading receives focus after opening so screen readers follow the reveal. */
#inviteTitle:focus { outline: none; }
.couple-names .ampersand { color: var(--accent); font-style: italic; font-weight: 400; font-size: .67em; padding: 12px 0 11px; }
.mini-rule { width: min(100%, 250px); margin: 39px auto 24px; height: 1px; background: var(--line); position: relative; }
.mini-rule span { display: block; position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); background: var(--ivory); padding: 0 12px; font-size: 15px; color: var(--accent); }
.wedding-date { margin: 25px 0 6px; font-family: var(--font-serif); font-size: clamp(31px, 6vw, 43px); font-weight: 500; }
.wedding-time { color: var(--ink-soft); font-family: var(--font-serif); font-style: italic; font-size: 23px; margin: 0; }
.venue-block { padding: 29px 0 0; }
.small-label { font-size: 9px; letter-spacing: .28em; font-weight: 700; color: var(--accent); }
.venue-block h3 { font-family: var(--font-serif); font-weight: 500; font-size: 36px; margin: 8px 0 0; }
.venue-block p { font-size: 12px; color: var(--ink-soft); margin: 3px 0 11px; }
.venue-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 22px; }
.directions { text-decoration: none; font-size: 10px; letter-spacing: .12em; font-weight: 700; color: var(--accent); display: inline-block; border-bottom: 1px solid currentColor; padding: 4px 0 6px; }
.rsvp-divider { margin: 56px auto 37px; display: flex; align-items: center; gap: 16px; max-width: 310px; color: var(--accent); }
.rsvp-divider:before, .rsvp-divider:after { content: ''; flex: 1; height: 1px; background: var(--line); }
.rsvp-heading { margin: 8px auto 2px; font-family: var(--font-serif); font-weight: 400; font-size: 49px; line-height: 1; }
.rsvp-desc { color: var(--ink-soft); font-size: 12px; margin: 12px 0 28px; }
.invitee-line { font-family: var(--font-serif); font-size: 25px; font-style: italic; margin: 22px auto 29px; }
#rsvpForm { text-align: left; width: min(100%, 390px); margin: 0 auto; }
.attendance-fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.field-label { display: block; font-size: 10px; color: var(--accent); font-weight: 700; letter-spacing: .12em; margin-bottom: 10px; line-height: 1.6; }
.field-label span { color: #a5a096; font-size: 9px; font-weight: 500; }
.attendance-options { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; }
.attendance-option { position: relative; border: 1px solid #e3dccc; min-height: 78px; display: flex; align-items: center; gap: 6px; flex-direction: column; justify-content: center; text-align: center; cursor: pointer; color: var(--ink-soft); font-size: 12px; padding: 12px 9px; transition: background .2s, border-color .2s, color .2s; }
.attendance-option input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; cursor: pointer; margin: 0; }
.attendance-option:has(input:checked) { background: #f0ece4; border-color: var(--accent); color: var(--ink); }
.attendance-option:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 3px; }
.option-icon { font-family: var(--font-serif); color: var(--accent); font-size: 20px; line-height: 1; }
.form-extra { padding-top: 23px; }
.form-input { border: 1px solid #e3dccc; border-radius: 0; width: 100%; padding: 13px 14px; background: #fffefa; font-size: 12px; color: var(--ink); margin: 0 0 20px; resize: vertical; }
.form-input::placeholder { color: #b0a99e; }
.form-error { background: #fcefe9; color: #974d39; padding: 12px; font-size: 12px; line-height: 1.5; }
.primary-button { width: 100%; background: var(--accent); color: #fffef9; font-size: 11px; font-weight: 700; letter-spacing: .2em; border: 1px solid var(--accent); padding: 18px 20px; margin-top: 9px; transition: opacity .25s; }
.primary-button:hover:not(:disabled) { opacity: .87; }
.primary-button:disabled { opacity: .5; cursor: wait; }
.primary-button span { margin-left: 8px; font-size: 15px; }
.confirmation { max-width: 400px; margin: 10px auto 0; }
.confirmation-icon { font-family: var(--font-serif); display: grid; place-items: center; width: 50px; height: 50px; border: 1px solid var(--accent); color: var(--accent); border-radius: 50%; font-size: 25px; margin: 0 auto 25px; }
.confirmation h3 { font-family: var(--font-serif); font-size: 43px; font-weight: 400; line-height: 1.05; margin: 8px auto 14px; }
.confirmation p:not(.eyebrow) { font-size: 13px; line-height: 1.8; color: var(--ink-soft); }
.preview-warning { color: #8c5a39 !important; background: #f6ead8; padding: 11px; }
.edit-button { margin-top: 11px; border: none; background: none; font-size: 10px; letter-spacing: .16em; font-weight: 700; color: var(--accent); padding: 12px; }
.footer-note { margin: 50px auto 0; font-family: var(--font-serif); font-size: 25px; font-style: italic; color: var(--ink-soft); }
.bottom-ornament { font-family: var(--font-serif); color: var(--accent); font-size: 22px; margin-top: 23px; }
.not-found { max-width: 460px; text-align: center; margin: 0 auto; min-height: 100vh; display: flex; flex-direction: column; justify-content: center; padding: 30px; }
.not-found h2 { font-family: var(--font-serif); font-weight: 400; font-size: 52px; }
.not-found p:not(.eyebrow) { line-height: 1.7; color: var(--ink-soft); font-size: 13px; }
@keyframes fadein { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@keyframes reveal { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 550px) {
  .landing { padding-top: 75px; padding-bottom: 40px; }
  .landing h1 { font-size: clamp(46px, 12vw, 64px); }
  .landing-copy { margin-bottom: 40px; }
  .envelope-button { width: min(100%, 342px); }
  .couple-names { font-size: clamp(60px, 17vw, 78px); }
  .invitation { padding: 45px 12px 30px; }
  .corner { display: none; }
  .venue-block h3 { font-size: 30px; }
  .attendance-options { gap: 8px; }
  .form-input { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; transition-delay: 0s !important; scroll-behavior: auto !important; }
}

/* Personal stationery: a warm paper arch, olive ink and the couple's typefaces. */
:root { --accent: #7d8165; --paper: #f3efe6; --ink: #494c3d; --ink-soft: #767867; --line: #d3d4bf; --ivory: #fffdf6; --font-serif: 'Italianno', cursive; --font-sans: 'Italianno', cursive; }
body { font-size: 26px; background: radial-gradient(ellipse at 10% 15%, #e6e8d9 0, transparent 45%), radial-gradient(ellipse at 95% 85%, #e8decb 0, transparent 40%), var(--paper); }
.landing h1 { font-size: clamp(66px, 9vw, 105px); line-height: .85; letter-spacing: 0; }
.landing h1 em { font-style: normal; }
.landing-names { font-family: 'Beau Rivage', cursive; font-size: 34px; letter-spacing: 0; font-weight: 400; }
.landing-copy { font-size: 29px; line-height: 1.1; max-width: 400px; margin-bottom: 42px; }
.letter-small { font-size: 23px; letter-spacing: 0; font-weight: 400; }
.letter-monogram { font-family: 'Beau Rivage', cursive; }
.open-link { font-size: 29px; letter-spacing: 0; font-weight: 400; }
.intro-note { font-size: 24px; }
.invitation { padding: 60px 20px 35px; }
.invitation-card { max-width: 650px; padding: 90px 62px 46px; border-color: #b8bea2; border-radius: 48% 48% 5px 5px / 170px 170px 5px 5px; background: linear-gradient(135deg, #fffdf6, #f9f5e9); box-shadow: 0 22px 65px #686c4e12; }
.invitation-card:before { inset: 13px; border-color: #d5d6c3; border-radius: 48% 48% 2px 2px / 160px 160px 2px 2px; }
.couple-names { font-family: 'Beau Rivage', cursive; font-size: clamp(80px, 12vw, 116px); letter-spacing: 0; line-height: 1.03; font-weight: 400; }
.couple-names .ampersand { font-family: 'Italianno', cursive; font-size: .56em; padding: 0; line-height: .75; }
.lead { font-size: 32px; line-height: 1.2; max-width: 340px; margin: 34px auto 27px; }
.mini-rule { width: 78px; margin: 28px auto 32px; background: #aeb797; }
.wedding-date, .venue-block h3 { font-family: 'Cinzel Decorative', Georgia, serif; font-size: clamp(22px, 4.2vw, 30px); font-weight: 400; line-height: 1.5; letter-spacing: .045em; }
.wedding-date { margin: 0; font-size: clamp(30px, 5.4vw, 38px); font-weight: 700; }
.wedding-time { font-size: 30px; font-style: normal; }
.venue-block { padding-top: 24px; }
.venue-block h3 { margin: 0; }
.venue-block p { font-size: 28px; margin: 8px 0 14px; }
.venue-links { gap: 12px 26px; }
.directions { font-size: 27px; font-weight: 400; letter-spacing: 0; padding: 0 0 2px; }
.rsvp-divider { margin: 40px auto 32px; max-width: 78px; gap: 0; }
.rsvp-heading { font-size: 48px; }
.rsvp-desc { font-size: 28px; }
.invitee-line { font-size: 29px; line-height: 1.1; margin: 18px auto 25px; font-style: normal; }
.field-label { font-size: 24px; line-height: 1.2; letter-spacing: 0; font-weight: 400; }
.field-label span { font-size: 22px; }
.attendance-option { font-size: 28px; padding: 12px; min-height: 62px; }
.form-input { font-size: 26px; line-height: 1.2; padding: 12px 14px; border-radius: 3px; }
.primary-button { font-size: 29px; letter-spacing: 0; font-weight: 400; padding: 12px 18px; border-radius: 3px; }
.confirmation h3 { font-size: 47px; }
.confirmation p:not(.eyebrow), .form-error { font-size: 26px; line-height: 1.2; }
.eyebrow { letter-spacing: 0; font-size: 26px; font-weight: 400; }
.edit-button { font-size: 26px; letter-spacing: 0; font-weight: 400; }
.footer-note { font-size: 32px; font-style: normal; margin: 32px auto 0; }
.demo-banner { font-family: system-ui, sans-serif; font-size: 9px; letter-spacing: .08em; }
.not-found p:not(.eyebrow) { font-size: 28px; }
@media(max-width:550px) {
  .landing { padding: 65px 24px 36px; }
  .landing h1 { font-size: clamp(61px, 16vw, 86px); }
  .landing-copy { font-size: 26px; }
  .invitation { padding: 42px 12px 28px; }
  .invitation-card { padding: 68px 30px 35px; border-radius: 48% 48% 5px 5px / 125px 125px 5px 5px; }
  .invitation-card:before { inset: 10px; border-radius: 48% 48% 2px 2px / 115px 115px 2px 2px; }
  .couple-names { font-size: clamp(76px, 21vw, 104px); }
  .lead { font-size: 29px; }
  .wedding-date { font-size: clamp(26px, 7vw, 34px); }
  .venue-block h3 { font-size: clamp(19px, 5.5vw, 26px); }
  .venue-block p { font-size: 25px; }
  .directions { font-size: 25px; }
  .venue-links { gap: 12px 18px; }
}
