:root {
  color-scheme: dark;
  background: #251a14;
  color: #ead7bd;
  font-family: system-ui, "PingFang SC", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

body {
  margin: 0;
  padding: env(safe-area-inset-top, 0px) env(safe-area-inset-right, 0px)
    env(safe-area-inset-bottom, 0px) env(safe-area-inset-left, 0px);
}

.invitation {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
}

.frame {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  background: #e7dbc2;
}

.frame > video,
#paper,
.paper-art {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

.map-link {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  top: var(--link-y);
  left: var(--link-x);
  width: var(--link-width);
  transform: translateY(-50%);
  color: #823324;
  border-radius: 4px;
}

.map-link::after {
  content: "";
  width: calc(100% - 10px);
  margin-top: 1.1em;
  border-bottom: 1px solid currentColor;
}

.map-link:focus-visible, button:focus-visible {
  outline: 2px solid #bb6d47;
  outline-offset: 2px;
}

.map-link:active { background: rgb(140 62 31 / 12%); }

.venue {
  --link-x: 58.8%;
  --link-y: 69.2%;
  --link-width: 22%;
}

.parking-first {
  --link-x: 47%;
  --link-y: 93.2%;
  --link-width: 13.3%;
}

.parking-second {
  --link-x: 61%;
  --link-y: 93.2%;
  --link-width: 32.5%;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  column-gap: 14px;
  padding: 6px 12px 8px;
  min-height: 54px;
  font-size: 12px;
  text-align: center;
}

.actions p { margin: 7px 0; }

.actions button {
  border: 0;
  background: transparent;
  color: #fff1da;
  min-height: 44px;
  padding: 0 6px;
  cursor: pointer;
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

@media (min-width: 500px) {
  .invitation { max-width: min(480px, calc((100vh - 78px) * 0.75)); }
  @supports (height: 100svh) {
    .invitation { max-width: min(480px, calc((100svh - 78px) * 0.75)); }
  }
}

@media (orientation: landscape) and (max-height: 500px) {
  .invitation { min-width: min(320px, 100%); }
}
