@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: 100vh;
  min-height: 100svh;
  min-height: 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-family: "Wedding Bubble", sans-serif;
  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-family: "Wedding Comic", sans-serif;
  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-family: "Wedding Date", sans-serif;
  font-size: clamp(1.5rem, min(7.25vw, 7.5svh), 3.75rem);
  font-style: italic;
  font-weight: 200;
  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__venue {
  align-items: center;
  background: #fff;
  border-radius: 0.75rem;
  bottom: clamp(1rem, 4svh, 3rem);
  box-shadow: 0 2px 12px rgb(40 74 84 / 12%);
  color: #202020;
  display: flex;
  font-family: Arial, sans-serif;
  font-size: clamp(0.625rem, 2.5vw, 0.9375rem);
  gap: 0.5rem;
  left: 50%;
  line-height: 1.5;
  margin: 0;
  max-width: calc(100% - 2rem);
  padding: 0.625rem 0.75rem;
  position: absolute;
  transform: translateX(-50%);
  width: max-content;
}

.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-family: "Wedding Bubble", sans-serif;
    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-family: "Wedding Comic", sans-serif;
    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-family: "Wedding Date", sans-serif;
    font-size: clamp(2rem, min(3vw, 5.5svh), 3.75rem);
    font-style: italic;
    font-weight: 200;
    line-height: 1.2;
    margin-top: 0.5rem;
    text-align: inherit;
  }

  .announcement__venue {
    align-items: center;
    background: #fff;
    border-radius: 1.25rem;
    bottom: clamp(1.5rem, 4svh, 3rem);
    box-shadow: 0 2px 12px rgb(40 74 84 / 12%);
    color: #202020;
    display: flex;
    font-family: Arial, sans-serif;
    font-size: clamp(0.875rem, 1.1vw, 1.125rem);
    gap: 0.75rem;
    left: 50%;
    line-height: 1.5;
    margin: 0;
    max-width: calc(100% - 4rem);
    padding: 0.875rem 1.25rem;
    position: absolute;
    transform: translateX(-50%);
    width: max-content;
  }

  .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;
}

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