@font-face {
  font-family: Instrument Sans;
  src: url("/fonts/instrument-sans.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: Cardo;
  src: url("/fonts/cardo-regular.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Cardo;
  src: url("/fonts/cardo-italic.woff2") format("woff2");
  font-style: italic;
  font-weight: 400;
  font-display: swap;
}
:root {
  color-scheme: light;
  --paper: #f8f6f2;
  --ink: #26211e;
  --muted: #685f58;
  --line: #dfdad3;
  --wine: #762638;
  --serif: Cardo, Baskerville, Georgia, serif;
  font-family: "Instrument Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  -webkit-text-size-adjust: 100%;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100svh; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: default; }
:focus-visible { outline: 2px solid var(--wine); outline-offset: 4px; }
[hidden], .icons { display: none !important; }
svg { display: block; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.masthead { border-bottom: 1px solid var(--line); }
.masthead-inner {
  max-width: 1456px;
  margin: 0 auto;
  padding: 0 clamp(24px, 5.2vw, 80px);
  height: 83px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand, .header-tools, .languages { display: flex; align-items: center; }
.brand { gap: 20px; }
.brand img { display: block; width: 111px; height: auto; }
.brand-divider { height: 20px; width: 1px; background: #d3cdc4; }
.brand-section { font-size: .9rem; color: #5b544d; font-weight: 500; }
.header-tools { gap: 18px; }
.skip-rsvp { display: none; }
.languages { border: 1px solid #dcd7d0; border-radius: 100px; padding: 3px; }
.languages button {
  min-width: 36px;
  height: 27px;
  border: none;
  border-radius: inherit;
  font-size: .75rem;
  font-weight: 600;
  color: var(--muted);
  background: transparent;
}
.languages button[aria-pressed="true"] { background: var(--ink); color: #fffdf9; }
.languages button:hover:not([aria-pressed="true"]) { color: var(--wine); }
.invitation {
  width: min(1120px, calc(100% - clamp(56px, 12vw, 168px)));
  margin: 0 auto;
  padding: clamp(42px, 5vw, 76px) 0 clamp(48px, 6vw, 84px);
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(42px, 6.8vw, 104px);
}
.poster-wrap { position: relative; min-width: 0; isolation: isolate; margin: 5px 0 7px; }
.poster-wrap::before {
  content: "";
  position: absolute;
  inset: 3px 2px -3px;
  z-index: -1;
  background: #e8dfd3;
  border: 1px solid #d6cbbd;
  border-radius: 9px;
  transform: rotate(-1.9deg);
  box-shadow: -2px 6px 13px #32231a15;
}
.poster {
  overflow: hidden;
  isolation: isolate;
  aspect-ratio: 4 / 5.1;
  position: relative;
  background: #371c20;
  color: #fff6e3;
  border-radius: 8px;
  box-shadow: 0 2px 4px #2314122e, 0 14px 26px -16px #2c19134a;
  container-type: inline-size;
}
.campaign, .poster-shade, .poster-art { position: absolute; inset: 0; width: 100%; height: 100%; }
.campaign { object-fit: cover; object-position: center 45%; }
.poster-shade { background: linear-gradient(180deg, #1a090941, transparent 25%, transparent 36%, #1c080a1f 53%, #2d070d95 74%, #2c060fe6 100%); }
.poster-art { padding: 7.3% 7.1% 5.5%; display: flex; flex-direction: column; justify-content: flex-end; }
.poster-brand { position: absolute; top: 6.2%; left: 7.2%; width: 22%; height: auto; filter: invert(94%) sepia(10%) saturate(597%) hue-rotate(339deg) brightness(105%); }
.bow {
  position: absolute;
  pointer-events: none;
  z-index: 1;
  right: -5.3%;
  top: -4.7%;
  width: 31%;
  height: auto;
  transform: rotate(12deg);
  filter: drop-shadow(1px 5px 3px #2412163b);
}
.poster-title { position: relative; }
.poster-title h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(4.5rem, 19.8cqw, 7.5rem);
  line-height: .80;
  letter-spacing: -.075em;
  margin: 0;
  text-shadow: 0 2px 10px #27121128;
}
.poster-title h1 span, .poster-title h1 em { display: block; }
.poster-title h1 em {
  font-size: 1.25em;
  margin-left: 19%;
  line-height: .89;
  letter-spacing: -.09em;
  font-weight: 400;
}
.stars { position: absolute; right: 10%; top: -3%; width: 15%; aspect-ratio: 1; }
.stars svg { width: 60%; position: absolute; top: 15%; left: 0; stroke: none; }
.stars svg:nth-child(2) { width: 26%; top: 0; left: 60%; }
.stars svg:nth-child(3) { width: 24%; top: 66%; left: 55%; }
.poster-caption { margin-top: 5.7%; display: flex; align-items: center; gap: .85rem; }
.poster-caption span { height: 1px; flex: 1; background: #fff3d977; }
.poster-caption b { font-size: clamp(.67rem, 2.45cqw, .82rem); font-weight: 550; letter-spacing: .16em; text-transform: uppercase; }
.details { min-width: 0; }
.eyebrow { display: flex; align-items: center; gap: 11px; color: var(--wine); font-size: .75rem; font-weight: 650; letter-spacing: .16em; text-transform: uppercase; }
.eyebrow-rule { width: 28px; height: 1px; background: var(--wine); }
.event h2 {
  margin: 14px 0 17px;
  font: 400 clamp(3.5rem, 5.6vw, 5.2rem) / 1.05 var(--serif);
  letter-spacing: -.068em;
  text-wrap: balance;
}
.event h2 em { color: var(--wine); font-weight: 400; }
.intro { margin: 0; color: #655b54; font-size: 1.05rem; line-height: 1.6; overflow-wrap: anywhere; }
.intro strong { font-weight: 620; color: var(--ink); }
.perks { display: grid; gap: 13px; list-style: none; margin: 22px 0 26px; padding: 0; }
.perks li { display: flex; align-items: center; gap: 11px; font-size: .96rem; font-weight: 500; }
.detail-icon { color: var(--wine); background: #eee5e0; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; flex: none; }
.detail-icon svg { width: 17px; height: 17px; }
.rsvp {
  background: #fffcf8;
  border: 1px solid #ded7cf;
  border-radius: 16px;
  box-shadow: 0 3px 9px #43332604;
  padding: clamp(19px, 1.8vw, 26px);
  scroll-margin: 20px;
}
.rsvp-header { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.rsvp h3 { font: 400 1.75rem / 1.08 var(--serif); letter-spacing: -.045em; margin: 0; }
.status { color: #665748; background: #f0e9df; font-size: .75rem; font-weight: 550; padding: 5px 10px; border-radius: 50px; white-space: nowrap; }
.status[data-state="accepted"] { color: #2f503c; background: #e4ede1; }
.status[data-state="declined"] { color: #7d3540; background: #f6e5e5; }
.guests { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 17px 0 19px; }
.guest-label { margin: 0; font-size: .95rem; font-weight: 610; }
.hint { color: var(--muted); font-size: .83rem; margin: 4px 0 0; }
.stepper { flex: none; display: flex; align-items: center; border: 1px solid var(--line); border-radius: 100px; padding: 2px; }
.stepper button { width: 34px; height: 34px; border: 0; background: transparent; color: var(--ink); display: grid; place-items: center; border-radius: 50%; }
.stepper button:not(:disabled):hover { background: #ece5dc; }
.stepper button:disabled { color: #bfb9b1; }
.stepper svg { width: 15px; height: 15px; stroke-width: 2; }
#guest-count { min-width: 19px; text-align: center; font-size: .95rem; font-variant-numeric: tabular-nums; }
.actions { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 43px; padding: 9px 10px; line-height: 1.2; border-radius: 8px; border: 1px solid transparent; font-size: .92rem; font-weight: 600; transition: background .15s, border-color .15s; }
.button svg { width: 17px; height: 17px; stroke-width: 2; }
.primary { background: var(--wine); color: #fff; }
.primary:hover { background: #622030; }
.secondary { border-color: #dcd4cb; color: #443c36; background: transparent; }
.secondary:hover { background: #f1ebe4; border-color: #c3b9ae; }
.button:disabled { opacity: .58; }
.panel-note { color: var(--muted); line-height: 1.5; margin: 12px 0 0; font-size: .97rem; }
.text-button { border: none; background: transparent; color: var(--wine); padding: 0; min-height: 34px; text-decoration: underline; text-underline-offset: 3px; font-weight: 600; font-size: .9rem; margin-top: 6px; }
#feedback { font-size: .9rem; line-height: 1.45; color: var(--wine); margin: 13px 0 0; }
#feedback:empty { margin: 0; }
@media (min-width: 1600px) {
  .invitation { padding-top: 84px; }
}
@media (max-width: 900px) and (min-width: 701px) {
  .invitation { width: calc(100% - 60px); grid-template-columns: .9fr 1fr; gap: 33px; }
  .poster { aspect-ratio: 4 / 6; }
  .event h2 { font-size: 3.6rem; }
  .intro { font-size: 1rem; }
  .guests { gap: 6px; }
  .button { font-size: .84rem; padding-inline: 5px; gap: 3px; }
  .actions { gap: 6px; }
}
@media (max-width: 700px) {
  .masthead-inner { padding: 0 21px; height: 63px; }
  .brand { gap: 11px; }
  .brand img { width: 87px; }
  .brand-divider { height: 16px; }
  .brand-section { font-size: .8rem; }
  .header-tools { gap: 13px; }
  .skip-rsvp { display: inline-flex; align-items: center; min-height: 36px; text-decoration: none; font-size: .8rem; font-weight: 650; color: var(--wine); }
  .languages { padding: 2px; }
  .languages button { min-width: 32px; height: 27px; }
  .invitation { padding: 32px 0 36px; width: min(468px, calc(100% - 44px)); display: block; }
  .poster-wrap { margin: 0 8px 37px; }
  .poster { aspect-ratio: 1.07; }
  .campaign { object-position: 50% 30%; }
  .poster-title h1 { font-size: 16.8cqw; }
  .poster-caption { margin-top: 3%; }
  .poster-art { padding-bottom: 4.7%; }
  .poster-brand { width: 21%; }
  .bow { width: 26%; }
  .stars { right: 19%; width: 12%; }
  .event h2 { margin: 10px 0 12px; font-size: clamp(3.1rem, 11vw, 4.2rem); }
  .intro { font-size: 1rem; }
  .perks { margin: 17px 0 22px; gap: 10px; }
  .rsvp { padding: 20px; }
  .guests { padding: 17px 0; }
  .button { min-height: 45px; }
}
@media (max-width: 350px) {
  .masthead-inner { padding: 0 15px; }
  .brand { gap: 8px; }
  .header-tools { gap: 8px; }
  .invitation { width: calc(100% - 30px); }
  .rsvp { padding: 15px; }
  .button { font-size: .85rem; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; } }
