@font-face {
  font-display: swap;
  font-family: "Wedding Bubble";
  font-style: normal;
  font-weight: 400;
  src: url("/fonts/coiny-latin.woff2") format("woff2");
}

@font-face {
  font-display: swap;
  font-family: "Wedding Comic";
  font-style: normal;
  font-weight: 700;
  src: url("/fonts/comic-neue-bold-latin.woff2") format("woff2");
}

@font-face {
  font-display: swap;
  font-family: "Wedding Date";
  font-style: italic;
  font-weight: 200;
  src: url("/fonts/nunito-sans-extra-light-italic-latin.woff2") format("woff2");
}

:root {
  background: #acd9e9;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

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

body {
  background: #acd9e9;
  overflow: auto;
  text-align: center;
}

.hero {
  display: grid;
  isolation: isolate;
  min-height: max(31rem, 100vh);
  min-height: max(31rem, 100dvh);
  overflow: hidden;
  place-items: center;
  position: relative;
}

.hero__picture {
  display: block;
  inset: 0;
  position: absolute;
}

.hero__picture img {
  display: block;
  height: 100%;
  object-fit: cover;
  object-position: 60% center;
  width: 100%;
}

.announcement {
  inset: 0;
  position: absolute;
  z-index: 3;
}

.announcement__copy {
  color: #fff;
  inset: 0;
  position: absolute;
  text-shadow: 0 2px 5px rgb(40 74 84 / 30%);
}

.announcement h1 {
  font-size: clamp(2rem, min(8.25vw, 11svh), 4.75rem);
  font-weight: 400;
  left: 5%;
  line-height: 1.12;
  margin: 0;
  position: absolute;
  right: 5%;
  top: 8.5%;
}

.announcement__details {
  left: 6%;
  position: absolute;
  right: 8%;
  top: 49%;
}

.announcement__details p {
  font-size: clamp(1.25rem, min(7.25vw, 7svh), 3.5rem);
  font-weight: 700;
  line-height: 1.2;
  margin: 0;
}

.announcement__details time {
  display: block;
  font-size: clamp(1.5rem, min(7.25vw, 7.5svh), 3.75rem);
  font-weight: 600;
  line-height: 1.2;
  margin-top: clamp(0.5rem, 2svh, 1.5rem);
  text-align: center;
}

@media (max-width: 900px) {
  .announcement__details p,
  .announcement__details time {
    text-align: left;
  }
}

.announcement__actions {
  position: absolute;
  inset-inline: 1rem;
  bottom: clamp(1rem, 4svh, 3rem);
  display: grid;
  gap: .5rem;
  width: fit-content;
  max-width: calc(100% - 2rem);
  margin-inline: auto;
}

.announcement__venue {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  min-height: 2.75rem;
  padding: .625rem .75rem;
  border-radius: .75rem;
  background: #fff;
  box-shadow: 0 2px 12px rgb(40 74 84 / 12%);
  color: #202020;
  font-size: clamp(.875rem, 2.5vw, .9375rem);
  line-height: 1.5;
  text-decoration: none;
}

.announcement__venue:hover {
  text-decoration: underline;
  text-underline-offset: .15em;
}

.announcement__venue:focus-visible {
  outline: 3px solid #8451a8;
  outline-offset: 2px;
}

.announcement__actions .announcement__rsvp {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  min-height: 2.75rem;
  padding: .625rem .875rem;
  border-radius: .75rem;
  background: #FFA95C;
  color: #38200f;
}

.announcement__actions .announcement__rsvp:hover {
  background: #FFB777;
}

.announcement__rsvp-label {
  text-decoration: underline;
  text-underline-offset: .18em;
}

.announcement__rsvp svg {
  flex: none;
  width: 1.125rem;
  height: 1.125rem;
}

.announcement__rsvp sup {
  font-size: .7em;
  line-height: 0;
}

.announcement__venue svg {
  fill: #8c3bd5;
  flex: 0 0 0.75rem;
  height: 1rem;
  width: 0.75rem;
}

.announcement__venue-ja {
  display: inline-block;
}

@media (min-width: 60rem) and (min-aspect-ratio: 1/1) {
  .hero {
    min-height: max(36rem, 100vh);
    min-height: max(36rem, 100svh);
  }

  .hero__picture img {
    object-position: center 65%;
  }

  .announcement__copy {
    color: #fff;
    inset: auto;
    left: 32%;
    position: absolute;
    text-align: center;
    text-shadow: 0 2px 5px rgb(40 74 84 / 30%);
    top: 28%;
    width: 58%;
  }

  .announcement h1 {
    font-size: clamp(3.5rem, min(5.6vw, 10svh), 7rem);
    font-weight: 400;
    line-height: 1.12;
    margin: 0;
    position: static;
  }

  .announcement__details {
    margin-top: clamp(1rem, 2.5svh, 2rem);
    position: static;
  }

  .announcement__details p {
    font-size: clamp(2rem, min(2.8vw, 5svh), 3.5rem);
    font-weight: 700;
    line-height: 1.2;
    margin: 0;
  }

  .announcement__details time {
    display: block;
    font-size: clamp(2rem, min(3vw, 5.5svh), 3.75rem);
    font-weight: 600;
    line-height: 1.2;
    margin-top: 0.5rem;
    text-align: inherit;
  }

  .announcement__actions {
    bottom: clamp(1.5rem, 4svh, 3rem);
  }

  .announcement__venue {
    gap: .75rem;
    padding: .875rem 1.25rem;
    font-size: clamp(.875rem, 1.1vw, 1.125rem);
  }

  .announcement__venue,
  .announcement__actions .announcement__rsvp {
    border-radius: 1.25rem;
  }

  .announcement__venue svg {
    fill: #8c3bd5;
    flex: 0 0 1.25rem;
    height: 1.5rem;
    width: 1.25rem;
  }

  .announcement__venue-ja {
    display: inline-block;
  }
}

/* The supplied scrollwork frames the message; its pale paper blends into
   the existing section color. Nine-slice borders keep corners intact, while
   repeating each edge keeps the scrollwork small and detailed. */
body > [data-wedding-id="v-72110461-0a5b-48dc-b175-1c59335491d1"] {
  position: relative;
  isolation: isolate;
  max-width: 1200px;
  margin-inline: auto;
  margin-bottom: 56px;
  padding: clamp(88px, 10vw, 128px) clamp(48px, 12vw, 160px) !important;
}

body > [data-wedding-id="v-72110461-0a5b-48dc-b175-1c59335491d1"]::before {
  content: "";
  position: absolute;
  inset: 16px 8px;
  border-style: solid;
  border-color: transparent;
  border-width: clamp(20px, 3.3vw, 38px) clamp(22px, 6.7vw, 80px);
  border-image-source: url("/images/message-frame.png");
  border-image-slice: 160 240;
  border-image-repeat: round;
  mix-blend-mode: multiply;
  pointer-events: none;
  z-index: -1;
}

body > [data-wedding-id="v-72110461-0a5b-48dc-b175-1c59335491d1"] > hr {
  display: none;
}

.guest-detail { margin: 0 0 16px; }

/* Give the Hotels message breathing room before the photograph. */
body > [data-wedding-id="v-645391e0-df41-41bd-87c3-409cca5584a5"] {
  margin-bottom: 56px;
}
