@font-face {
  font-family: 'Libre Caslon Text';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/libre-caslon-text-regular.ttf') format('truetype');
}
/* Invitation presentation is separate from Bonfetti's marketing and auth pages. */
:root {
  --surface: #fffefa;
  --button-text: #ffffff;
  --heading-font: 'Libre Caslon Text', Georgia, serif;
  --heading-weight: 400;
  --body-font: 'DM Sans', Arial, sans-serif;
  --content-width: 1160px;
  --heading-size: 52px;
  --radius: 2px;
  --art-fit: contain;
  --background-opacity: 0.25;
  --background-art: none;
  --page-pattern: none;
  --pattern-size: cover;
  --art-aspect: auto;
}
.event-page {
  isolation: isolate;
  min-height: 100vh;
  font-family: var(--body-font);
  background-color: var(--paper);
  background-image: var(--page-pattern);
  background-size: var(--pattern-size);
  overflow-wrap: anywhere;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
.event-page::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: var(--background-art) center / cover no-repeat;
  opacity: var(--background-opacity);
}
.event-page h1,
.event-page h2,
.event-page h3 {
  font-family: var(--heading-font);
}
.event-page .invitation {
  max-width: var(--content-width);
  padding: 0 40px;
  margin: 88px auto 64px;
  gap: clamp(40px, 6vw, 88px);
  align-items: start;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}
.event-page .invite-cover {
  position: relative;
  top: auto;
  transform: none;
  border: 0;
  box-shadow: none;
  border-radius: 0;
  width: 100%;
  max-width: none;
}
.event-page .invite-cover > img {
  width: 100%;
  height: auto;
  max-height: none;
  aspect-ratio: var(--art-aspect);
  object-fit: var(--art-fit);
}
.event-page .invite-details {
  min-width: 0;
  width: 100%;
}
.event-page .invite-details h1 {
  font-size: min(var(--heading-size), clamp(36px, 4.4vw, 112px));
  font-weight: var(--heading-weight);
  letter-spacing: -0.025em;
  line-height: 1.18;
  text-wrap: balance;
  margin: 18px 0 22px;
}
.event-page .eyebrow {
  color: var(--muted);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.18em;
  line-height: 1.6;
}
.event-page .host {
  font-size: 14px;
  line-height: 1.7;
  margin: 0 0 36px;
}
.event-page .description {
  font-size: 16px;
  line-height: 1.85;
  margin: 32px 0 38px;
  max-width: 56ch;
  text-wrap: pretty;
}
.event-page .details-row {
  line-height: 1.7;
  gap: 14px;
  margin: 22px 0;
}
.event-page .details-row > span {
  display: flex;
  width: 20px;
  flex: 0 0 20px;
  padding-top: 3px;
  color: var(--muted);
}
.event-page .details-row svg {
  width: 18px;
  height: 18px;
}
.event-page .details-row p {
  font-size: 14px;
  margin: 4px 0 0;
}
.event-page .details-row strong {
  font-size: 15px;
  font-weight: 500;
}
.event-page .notice,
.event-page .demo-banner {
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.event-page .demo-banner {
  border-radius: 0;
  padding: 12px 24px;
  margin: 0;
  font-size: 12px;
}
.event-page .rsvp {
  padding-top: 28px;
}
.event-page .rsvp fieldset {
  margin: 20px 0 26px;
}
.event-page .field {
  font-size: 12px;
  line-height: 1.6;
  margin: 22px 0;
}
.event-page .button {
  background: var(--red);
  color: var(--button-text);
  border: 1px solid var(--red);
  border-radius: var(--radius);
  min-height: 52px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  transition:
    background-color 160ms ease,
    color 160ms ease;
}
.event-page .button:hover {
  background: var(--red);
  filter: brightness(0.92);
}
.event-page textarea,
.event-page select,
.event-page .response-options span {
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
}
.event-page textarea,
.event-page select {
  font-size: 16px;
  line-height: 1.6;
  padding: 14px;
}
.event-page textarea {
  min-height: 96px;
}
.event-page .response-options span {
  min-height: 48px;
  padding: 15px 5px;
  font-size: 12px;
  transition:
    background-color 160ms ease,
    border-color 160ms ease;
}
.event-page .response-options label:hover span {
  border-color: var(--red);
}
.event-page textarea::placeholder {
  color: var(--muted);
  opacity: 1;
}
.event-page .response-options input:checked + span {
  color: var(--button-text);
  background: var(--red);
  border-color: var(--red);
}
.event-page :focus-visible {
  outline-color: var(--red);
}
.event-page .response-options input:focus-visible + span {
  outline-color: var(--red);
}
.event-page .event-footer {
  max-width: var(--content-width);
  margin: auto;
  padding: 20px 40px 40px;
  display: block;
  text-align: center;
  color: var(--muted);
}
.event-footer p {
  font-size: 13px;
  line-height: 1.8;
  margin: 0 0 22px;
}
.event-footer .event-credit {
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.025em;
  opacity: 0.65;
}
.event-page.align-center .invite-details {
  text-align: center;
}
.event-page.align-center .details-row {
  justify-content: center;
}
.event-page.align-center .description {
  margin-left: auto;
  margin-right: auto;
}
.event-page.align-center .rsvp {
  text-align: left;
}
.event-page.surface-card .invite-details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(24px, 4vw, 48px);
}
.event-page.frame-paper .invite-cover {
  border: 12px solid var(--surface);
  box-shadow: 0 12px 40px #00000015;
}
.event-page.frame-rounded .invite-cover {
  border-radius: var(--radius);
}
.event-page.buttons-outline .button {
  background: transparent;
  color: var(--red);
}
.event-page.buttons-outline .button:hover {
  background: var(--red);
  color: var(--button-text);
  filter: none;
}
.event-page.buttons-pill .button {
  border-radius: 999px;
}
.event-page.layout-stacked .invitation {
  display: flex;
  flex-direction: column;
  max-width: min(var(--content-width), 840px);
  gap: 48px;
}
.event-page.layout-hero .invitation {
  display: flex;
  flex-direction: column;
  padding: 0;
  margin-top: 0;
  gap: 56px;
}
.event-page.layout-hero .invite-cover {
  border-radius: 0;
  border: 0;
}
.event-page.layout-hero .invite-cover > img {
  width: 100%;
  max-height: 78vh;
  object-fit: var(--art-fit);
}
.event-page.layout-hero .invite-details {
  width: calc(100% - 48px);
  max-width: 760px;
}
.event-page.layout-minimal .invite-cover,
.event-page.cover-hidden .invite-cover {
  display: none;
}
.event-page.layout-minimal .invitation,
.event-page.cover-hidden .invitation {
  display: block;
  max-width: min(var(--content-width), 840px);
}
.event-page .theme-art {
  color: var(--red);
  background: var(--surface);
  min-height: 500px;
}
.event-page .theme-art span {
  color: inherit;
}
@media (max-width: 720px) {
  .event-page .invitation {
    display: flex;
    flex-direction: column;
    margin-top: 28px;
    padding: 0 24px;
    gap: 40px;
  }
  .event-page .invite-details h1 {
    font-size: min(var(--heading-size), clamp(34px, 9vw, 44px));
  }
  .event-page .invite-cover {
    align-self: stretch;
  }
  .event-page .description {
    font-size: 16px;
  }
  .event-page .event-footer {
    padding: 12px 24px 32px;
  }
  .event-page .theme-art {
    min-height: 340px;
    font-size: 100px;
  }
  .event-page.layout-hero .invitation {
    margin-top: 0;
    padding: 0;
  }
  .event-page.layout-hero .invite-cover > img {
    max-height: 65vh;
  }
}

@media (prefers-reduced-motion: reduce) {
  .event-page .button,
  .event-page .response-options span {
    transition: none;
  }
}
