:root {
  color-scheme: dark;
  --cream: #f8e9d6;
  --paper: #29161c;
  --green: #19251d;
  --dark-green: #111b16;
  --red: #f0a7a7;
  --red-dark: #ffd3c9;
  --action: #8f243b;
  --action-hover: #a33048;
  --ink: #f9e9d4;
  --muted: #d3bdb1;
  --line: #734e51;
  --gold: #efd09d;
  --serif: Didot, "Bodoni MT", Garamond, Georgia, serif;
  --accent: Baskerville, "Baskerville Old Face", Georgia, serif;
  --sans: "Trebuchet MS", system-ui, -apple-system, "Segoe UI", sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; isolation: isolate; background: #12201a; color: var(--ink); font: 1rem/1.65 var(--sans); }
.invitation-backdrop {
  position: fixed; z-index: -1; inset: 0; overflow: hidden; pointer-events: none;
  background: radial-gradient(ellipse at 50% 35%, #3a30259c, #0a181269 68%),
    linear-gradient(#14271a2b, #0d1a1459 56%, #0b181497),
    #12201a url("assets/evergreen-background.jpg") 62% center / cover no-repeat;
}
#background-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 63%; pointer-events: none; }
.invitation-backdrop::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(#14080c4a, #14080c30 55%, #14080c70);
}
@media (min-width: 720px) {
  #background-video {
    inset-inline: 50% auto; transform: translateX(-50%); width: min(100%, max(74svh, 68vw));
    mask-image: linear-gradient(90deg, transparent, #000 16%, #000 84%, transparent);
  }
}
a { color: inherit; }
img { display: block; width: 100%; height: auto; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid #a34e38; outline-offset: 4px; }
.shell { width: min(1200px, calc(100% - 112px)); margin-inline: auto; }
.skip { position: fixed; inset: 10px auto auto 10px; z-index: 10; padding: .55rem .9rem; background: var(--paper); transform: translateY(-160%); }
.skip:focus { transform: none; }
.site-header { position: sticky; top: 0; z-index: 5; background: #15271e; color: var(--cream); border-bottom: 1px solid #c2a67348; }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 67px; }
.brand { font: 1.12rem var(--serif); text-decoration: none; }
.brand span { color: var(--gold); margin-right: .45rem; }
.background-motion {
  display: grid; place-items: center; width: 44px; height: 44px; padding: 0;
  border: 1px solid #f3d6ac70; border-radius: 50%; background: #17201964; color: #fff0cf;
}
.background-motion:hover { background: #354236; }
.background-motion::before { content: ""; margin-left: 3px; border-block: 5px solid transparent; border-left: 8px solid currentColor; }
.background-motion[data-playing="true"]::before { width: 8px; height: 11px; margin: 0; border-block: 0; border-inline: 2px solid currentColor; }
.hero-stage {
  padding-top: clamp(24px, 4vw, 60px);
  background: linear-gradient(#18090955, transparent 84%);
}
.hero { max-width: 640px; }
.hero-copy {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: clamp(38px, 5.7vw, 80px) clamp(24px, 3.6vw, 64px); text-align: center;
  background: radial-gradient(ellipse at 50% 0%, #632c36de 0%, #321d24e3 64%, #26161bea 100%);
  border: 1px solid #a48464; box-shadow: 0 15px 55px #050e0985;
}
.hero-copy::before { content: ""; position: absolute; inset: 8px; border: 1px solid #e5b98848; pointer-events: none; }
.hero-copy::after { content: "✦"; position: absolute; top: 13px; inset-inline: 0; color: #f2cf93; font-size: .72rem; line-height: 1; pointer-events: none; }
.eyebrow { margin: 0 0 1.25rem; color: var(--red); font-size: .875rem; font-weight: 700; letter-spacing: .16em; }
.hero-host { margin: 0 0 .55rem; color: var(--gold); font: italic clamp(1.45rem, 2.6vw, 2.1rem)/1.15 var(--accent); overflow-wrap: anywhere; }
.hero-invitation { margin: 0 0 1.15rem; color: #f3dfd0; font-size: .9rem; letter-spacing: .045em; }
h1, h2, h3 { margin: 0; font-family: var(--serif); font-weight: 400; }
h1 { font-size: clamp(3.25rem, 6.5vw, 6.55rem); letter-spacing: -.045em; line-height: .92; }
#title:focus { outline: none; }
h1 em { color: #f5c19e; font-weight: inherit; }
h2 { font-size: clamp(2.35rem, 4.4vw, 4rem); letter-spacing: -.045em; line-height: 1.08; }
h3 { font-size: clamp(1.65rem, 2.7vw, 2.05rem); line-height: 1.2; }
.hero-message { max-width: 33ch; margin: 1.45rem 0 1.1rem; color: #f1dfd2; font-size: 1rem; text-wrap: balance; }
.hero-date { position: relative; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: .2rem .5rem; margin: 0; border-top: 1px solid #e5b98863; padding-top: .95rem; color: var(--gold); font-size: .925rem; font-weight: 650; }
.hero-date::before { content: ""; position: absolute; top: -3px; left: calc(50% - 2.5px); width: 5px; height: 5px; transform: rotate(45deg); background: #eabf80; }
.date-star { font-size: .68rem; }
.send-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem 1.1rem; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: .6rem 1rem; border: 1px solid transparent; border-radius: 2px; text-decoration: none; font-size: .91rem; font-weight: 650; }
.primary { background: var(--action); color: #fff0e5; }
.primary:hover { background: var(--action-hover); }
.secondary { color: var(--red); border-color: var(--line); background: var(--paper); }
.secondary:hover { border-color: var(--red); }
.text-link { display: inline-block; color: var(--red); border: 0; background: transparent; padding: 0; font-size: .91rem; font-weight: 650; text-decoration: underline; text-underline-offset: .23em; }
.text-link:hover { color: var(--red-dark); }
.details { margin-block: clamp(35px, 6vw, 72px); }
.hero-stage + .details { margin-top: clamp(72px, 11vw, 128px); }
.details, .rsvp { scroll-margin-top: 72px; }
.details h2 { color: var(--gold); text-align: center; text-shadow: 0 2px 10px #180604; }
.details h2::after { content: "✦"; display: block; margin: 11px auto 0; color: #e7b87d; font: .75rem/1 var(--accent); }
.detail-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) repeat(2, minmax(0, 1fr)); gap: clamp(12px, 2vw, 24px); margin-top: 23px; }
.detail-grid article, .arrival {
  min-width: 0; color: #f9e9d4;
  padding: clamp(18px, 2.5vw, 29px);
  background: radial-gradient(ellipse at top right, #284638aa, #10241ecb 75%);
  border: 1px solid #d7af787a; border-radius: 22px 5px 22px 5px;
  box-shadow: 0 12px 28px #0d03085e;
  backdrop-filter: blur(2px);
}
.detail-grid article {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "wording mark";
  align-items: start; gap: clamp(10px, 1.3vw, 16px);
}
.detail-grid article::before {
  content: ""; position: absolute; top: 0; inset-inline: 16px 11px; height: 1px; pointer-events: none;
  background: linear-gradient(90deg, transparent, #ffe1a995 58%, transparent);
}
.detail-grid article:last-child { background: radial-gradient(ellipse at top right, #653043b3, #321520ce 75%); }
.detail-content { grid-area: wording; }
.detail-grid h3 { color: #eac48d; font: 700 .83rem/1.25 var(--sans); letter-spacing: .13em; text-transform: uppercase; }
.detail-photo {
  grid-area: mark; width: clamp(66px, 7vw, 86px); height: auto; aspect-ratio: 1;
  object-fit: cover; border-radius: 50%; border: 1px solid #e5bb7ca6;
  padding: 2px; background: #1d1918; box-shadow: 0 5px 16px #14060a6e;
}
.detail-grid p { margin: .42rem 0 0; line-height: 1.38; }
.detail-grid h3 + p { margin-top: .58rem; font: 500 clamp(1.28rem, 2.3vw, 1.7rem)/1.12 var(--accent); }
.detail-grid .text-link { margin-top: .8rem; }
.muted { color: var(--muted); overflow-wrap: anywhere; }
.red-dot { display: inline-block; background: var(--red); width: .68em; height: .68em; border-radius: 50%; margin-right: .18em; }
.detail-grid .muted, .arrival p { color: #dfcfc2; }
.detail-grid .text-link, .arrival summary { color: #f5cf96; }
.detail-grid .text-link:hover { color: #fff1cd; }
.detail-grid .red-dot { background: #fc858d; box-shadow: 0 0 0 1px #ffc3bb6b; }
.arrival { margin-top: 1rem; padding-block: .8rem; }
.arrival summary { cursor: pointer; font-weight: 650; }
.arrival p { margin: .45rem 0 0; white-space: pre-line; }
.christmas-table {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: clamp(12px, 4vw, 46px);
  max-width: 690px; margin-bottom: clamp(48px, 7vw, 86px);
}
.christmas-table figure { min-width: 0; margin: 0; text-align: center; }
.christmas-table figure + figure { margin-top: clamp(22px, 6vw, 62px); }
.christmas-table img {
  width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; object-position: center 54%;
  border-radius: 50%; border: 1px solid #e9c48e; padding: 3px; background: #29151e;
  box-shadow: 0 0 0 3px #d7af7836, 0 14px 32px #17080d80;
}
.christmas-table figcaption {
  margin: .65rem 0 0; color: #ffdfad; text-shadow: 0 2px 8px #180607;
  font: italic clamp(1.05rem, 2.9vw, 1.5rem)/1.25 var(--accent);
}
.rsvp { background: linear-gradient(90deg, #251217e8, #34151aba); color: var(--cream); border-block: 1px solid #ba8a6b3d; }
.rsvp-inner { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(30px, 8vw, 115px); align-items: start; padding-block: clamp(40px, 7vw, 90px); }
.rsvp-intro { padding-top: 20px; }
.rsvp-intro .eyebrow { color: var(--gold); }
.rsvp-intro p:not(.eyebrow) { margin: 1.1rem 0 0; }
.reply-card { padding: clamp(20px, 4vw, 41px); background: var(--paper); color: var(--ink); border: 1px solid var(--line); }
fieldset { margin: 0 0 1.1rem; padding: 0; border: 0; min-width: 0; }
legend, .reply-card > label, #attending-fields > label, .prepared > label { display: block; font-weight: 650; font-size: .92rem; margin-bottom: .35rem; }
.choices { display: grid; grid-template-columns: 1fr 1fr; gap: .55rem; }
.choice { display: flex; align-items: center; gap: .45rem; font-size: .875rem; border: 1px solid var(--line); padding: .55rem .6rem; cursor: pointer; }
.choice:has(:checked) { border-color: var(--red); background: #45212c; }
.choice input { accent-color: var(--red); margin: 0; flex: none; }
input[type="text"], textarea, select { display: block; width: 100%; padding: .5rem .63rem; color: var(--ink); background: #211217; border: 1px solid #aa7f79; border-radius: 2px; margin-bottom: .92rem; }
input::placeholder, textarea::placeholder { color: #bda49c; opacity: 1; }
textarea { resize: vertical; }
select { appearance: none; background: linear-gradient(45deg, transparent 50%, var(--muted) 50%) right 15px center/5px 5px no-repeat, linear-gradient(135deg, var(--muted) 50%, transparent 50%) right 10px center/5px 5px no-repeat, #211217; }
small { font-size: .87rem; font-weight: 400; color: var(--muted); }
.prepare { min-width: 9rem; }
.prepared { margin-top: 1.1rem; padding-top: .85rem; border-top: 1px solid var(--line); }
.prepared p { margin: 0 0 .7rem; }
.status { margin: .65rem 0 0; color: var(--red-dark); font-size: .9rem; }
.status:empty { display: none; }
.closing-finale {
  position: relative; isolation: isolate; display: grid; align-items: end;
  min-height: clamp(390px, 78svh, 760px); text-align: center; overflow: hidden;
  color: var(--cream); background: linear-gradient(0deg, #101e17 0%, #101e1780 16%, transparent 38%);
}
.closing-greeting { padding-block: 24px clamp(22px, 6svh, 58px); }
.closing-greeting h2 { color: #fff0cf; font-size: clamp(2.75rem, 12vw, 5.2rem); line-height: 1; text-shadow: 0 2px 17px #180604; }
.closing-greeting h2 em { color: #f1c47f; font-weight: inherit; }
.closing-greeting p { display: inline-flex; align-items: center; gap: .36rem; margin: .95rem 0 0; color: #e7cfc1; font-size: .81rem; letter-spacing: .07em; }
.closing-greeting p::before, .closing-greeting p::after { content: ""; width: 19px; height: 1px; margin-inline: .24rem; background: #d4a57193; }
.closing-greeting strong { color: #ffe5b8; font-weight: 700; }
html:has(#opening[open]) { overflow: hidden; }
#opening {
  position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none;
  margin: 0; border: 0; padding: 0;
  background: linear-gradient(#20090eb8, #17080ce0), #160c10 url("assets/sparkling-ornaments.jpg") center / cover no-repeat;
  color: var(--cream); text-align: center;
}
#opening[open] { display: grid; place-items: center; }
.opening-frame {
  position: relative; width: min(100%, calc(100dvh * 9 / 16)); aspect-ratio: 9 / 16;
  container-type: inline-size; background: #160c10; box-shadow: 0 0 72px #090408aa;
}
#opening-video { display: block; width: 100%; height: 100%; object-fit: contain; }
.opening-actions { position: absolute; inset: auto 12px max(16px, env(safe-area-inset-bottom)) 12px; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
#opening-status { position: absolute; bottom: 72px; max-width: 32ch; padding: .45rem .65rem; margin: 0; background: #160c10eb; }
.opening-skip { border: 1px solid #bd9680; min-height: 46px; background: #29141be8; color: var(--cream); padding: .5rem .8rem; }
.opening-skip:hover { color: var(--gold); }
.opening-letter {
  color-scheme: light; position: absolute; inset: 25% 7% 22% 34%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: clamp(.55rem, 4cqw, 1.3rem); color: #421d22;
}
.letter-wording { width: 100%; }
.opening-letter h2 { font: clamp(1.1rem, 8.8cqw, 2.85rem)/1.08 var(--accent); letter-spacing: -.045em; text-wrap: balance; }
.letter-event { margin: .24em 0 .6em; font: italic clamp(.95rem, 6.3cqw, 1.85rem) var(--accent); color: #782432; }
.letter-date { margin: 0; font-size: clamp(.72rem, 3.8cqw, .95rem); font-weight: 650; color: #4d3332; text-wrap: balance; }
.opening-letter .button { min-height: 44px; padding: .4rem .85rem; }
.opening-letter .button:focus-visible { outline-color: #68202a; }
@media (prefers-reduced-motion: no-preference) {
  .letter-wording { animation: reveal-wording .6s ease-out both; }
  .reveal-in { animation: reveal-section .7s cubic-bezier(.2, .65, .27, 1) both; }
  .detail-grid article.reveal-in { animation-name: reveal-detail; }
  .detail-grid article:nth-child(2).reveal-in { animation-delay: 80ms; }
  .detail-grid article:nth-child(3).reveal-in { animation-delay: 160ms; }
  .christmas-table figure.reveal-in { --reveal-shift: -12px; animation-name: reveal-photo; }
  .christmas-table figure:nth-child(2).reveal-in { --reveal-shift: 12px; animation-delay: 100ms; }
  @keyframes reveal-wording { from { opacity: 0; transform: translateY(4px); } }
  @keyframes reveal-section { from { opacity: .48; transform: translateY(14px); } }
  @keyframes reveal-detail { from { opacity: .78; transform: translateY(9px); } }
  @keyframes reveal-photo { from { opacity: .56; transform: translate(var(--reveal-shift), 12px) scale(.95); } }
}
@media (max-width: 1020px) {
  .shell { width: calc(100% - 64px); }
}
@media (min-width: 701px) and (max-width: 880px) {
  .detail-grid article { grid-template-columns: 1fr; grid-template-areas: "mark" "wording"; }
}
@media (max-width: 700px) {
  .shell { width: calc(100% - 36px); }
  .header-inner { min-height: 60px; }
  .brand { font-size: 1rem; }
  .hero-stage { padding-top: 18px; }
  .hero-copy { padding: 37px 19px; }
  .hero-copy::before { inset: 7px; }
  h1 { font-size: clamp(3.05rem, 16vw, 5.5rem); }
  .detail-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .detail-grid article:first-child { grid-column: 1 / -1; }
  .detail-grid article:not(:first-child) {
    grid-template-columns: minmax(0, 1fr); grid-template-areas: "mark" "wording"; gap: 9px;
    padding: clamp(13px, 4vw, 20px);
  }
  .detail-grid article:not(:first-child) .detail-photo { width: clamp(56px, 18vw, 74px); }
  .rsvp-inner { grid-template-columns: 1fr; }
  .rsvp-intro { padding-top: 0; }
}
@media (max-width: 380px) { .choices { grid-template-columns: 1fr; } }
