:root {
  color-scheme: light;
  --paper: #f6f5ed;
  --olive: #929164;
  --shadow: rgba(62, 66, 45, 0.2);
  --transition: 720ms cubic-bezier(0.22, 1, 0.36, 1);
}

.widget-dialog { width: min(100vw, 960px); height: 100dvh; max-width: 100vw; max-height: 100dvh; margin: auto; padding: 0; border: 0; background: var(--paper); overflow-y: auto; overscroll-behavior: contain; }
.widget-dialog::backdrop { background: rgba(44, 48, 33, 0.65); }
.widget-header { position: sticky; top: 0; z-index: 1; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: max(12px, env(safe-area-inset-top)) 16px 12px; background: var(--paper); border-bottom: 1px solid #d5d3bc; font-family: system-ui, sans-serif; }
.widget-header h1 { width: 100%; margin: 0; font-size: 1.25rem; order: 3; }
.widget-back, .widget-external { color: #484b31; font: 500 14px/1.4 system-ui, sans-serif; padding: 12px 0; }
.widget-back { border: 0; background: transparent; cursor: pointer; }
.widget-external { margin-left: auto; }
.widget-frame { display: block; width: 100%; border: 0; }
.location-options { position: absolute; z-index: 3; left: 6%; bottom: 21%; width: 88%; max-width: 340px; padding: 6px; border: 1px solid #bab897; border-radius: 14px; background: #fffdf4; box-shadow: 0 8px 30px rgba(44,48,33,.25); font-family: system-ui, sans-serif; }
.location-options[hidden] { display: none; }
.location-options a { display: block; padding: 12px; color: #42452f; text-decoration: none; border-radius: 9px; }
.location-options a + a { border-top: 1px solid #e2dfcd; }
.location-options strong { display: block; font-size: 16px; }
.location-options span { display: block; margin-top: 4px; font-size: 14px; }
.location-options a:hover, .location-options a:focus-visible { background: #eeeddc; outline: 2px solid #929164; }

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  min-height: 100%;
  margin: 0;
  overflow: hidden;
}

body {
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 18%, rgba(255, 255, 255, 0.92), transparent 40%),
    linear-gradient(145deg, #dfe2cc 0%, #f5f3e7 46%, #d7dbc4 100%);
  color: #393c2d;
  font-family: Georgia, "Times New Roman", serif;
  -webkit-tap-highlight-color: transparent;
}

.experience {
  position: relative;
  display: grid;
  width: 100%;
  height: 100svh;
  overflow: hidden;
  place-items: center;
  isolation: isolate;
}

.screen {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  visibility: hidden;
  opacity: 0;
  transform: scale(1.025);
  transition:
    opacity var(--transition),
    transform var(--transition),
    visibility 0s linear 720ms;
  pointer-events: none;
  overflow: hidden;
}

.screen.is-active {
  z-index: 1;
  visibility: visible;
  opacity: 1;
  transform: scale(1);
  transition-delay: 0s;
  pointer-events: auto;
}

.screen--cover.is-opening {
  opacity: 0;
  transform: scale(1.055);
  filter: blur(3px);
}

.artboard {
  position: relative;
  width: min(100vw, calc(100svh * 0.5625));
  aspect-ratio: 9 / 16;
  overflow: hidden;
  background: var(--paper);
  box-shadow: 0 24px 70px var(--shadow);
  max-width: 100%;
}

.artboard > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  user-select: none;
}

.hotspot {
  position: absolute;
  display: block;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 18%;
  background: transparent;
  cursor: pointer;
  touch-action: manipulation;
}

.hotspot::after {
  content: "";
  position: absolute;
  inset: 0;
  border: max(2px, 0.2vw) solid transparent;
  border-radius: inherit;
  transition: border-color 180ms ease, background-color 180ms ease;
}

.hotspot:hover::after,
.hotspot:focus-visible::after {
  border-color: rgba(146, 145, 100, 0.72);
  background: rgba(255, 255, 255, 0.08);
}

.hotspot:focus-visible {
  outline: none;
}

.hotspot--envelope {
  left: 11.5%;
  top: 36.1%;
  width: 77%;
  height: 29.8%;
}

.hotspot--location,
.hotspot--rsvp,
.hotspot--gifts {
  top: 79.2%;
  width: 23.5%;
  height: 13.6%;
  border-radius: 50%;
}

.hotspot--location {
  left: 17.2%;
}

.hotspot--rsvp {
  left: 38.3%;
}

.hotspot--gifts {
  left: 59.4%;
}

.notice {
  position: fixed;
  z-index: 10;
  left: 50%;
  bottom: max(1rem, env(safe-area-inset-bottom));
  width: max-content;
  max-width: calc(100vw - 2rem);
  padding: 0.85rem 1rem;
  border: 1px solid rgba(146, 145, 100, 0.42);
  border-radius: 999px;
  background: rgba(250, 249, 241, 0.94);
  box-shadow: 0 10px 34px rgba(50, 55, 35, 0.18);
  font: 600 0.9rem/1.25 system-ui, sans-serif;
  text-align: center;
  opacity: 0;
  transform: translate(-50%, 18px);
  transition: opacity 200ms ease, transform 200ms ease;
  pointer-events: none;
}

.notice.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

noscript {
  position: fixed;
  z-index: 20;
  inset: auto 1rem 1rem;
  padding: 1rem;
  border-radius: 0.75rem;
  background: #fff;
  font-family: system-ui, sans-serif;
  text-align: center;
}

@media (max-aspect-ratio: 9 / 16) {
  .artboard {
    width: 100vw;
    height: auto;
  }
}

@media (min-width: 700px) {
  .artboard {
    border-radius: 0.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  :root {
    --transition: 1ms linear;
  }

  .screen--cover.is-opening {
    filter: none;
  }
}
