@font-face {
  font-family: Poppins;
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/poppins-400.woff2') format('woff2');
}
@font-face {
  font-family: Poppins;
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('assets/poppins-500.woff2') format('woff2');
}
@font-face {
  font-family: Poppins;
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('assets/poppins-600.woff2') format('woff2');
}

@font-face {
  font-family: Poppins;
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('assets/poppins-700.woff2') format('woff2');
}
@font-face {
  font-family: Pretendard;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('assets/pretendard-variable.woff2') format('woff2');
}
:root {
  color: #000;
  background: #fff;
  font-family: Poppins, Pretendard, "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --red: #cd0000;
}
* { box-sizing: border-box; }
body, h1, h2, p { margin: 0; }
body { display: grid; align-items: center; min-height: 100svh; }
[hidden] { display: none !important; }

.invitation {
  container-type: inline-size;
  position: relative;
  width: min(100%, 1920px);
  aspect-ratio: 16 / 9;
  margin-inline: auto;
}
.masthead {
  position: absolute;
  top: 13.01%;
  left: 7.19%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 18.62%;
}
.masthead picture:first-child { width: 62.55%; }
.masthead picture:last-child { width: 32.87%; }
.masthead img { display: block; width: 100%; height: auto; }
.details { display: contents; }
.details header, .event, footer { position: absolute; }
.details header { left: 6.23%; top: 29.17%; width: 33.58%; }
h1 img { display: block; width: 100%; height: auto; }
.event, footer { left: 7.19%; width: 34.07%; }
.event { top: 49.17%; }
time {
  display: block;
  font-size: calc(clamp(1.125rem, 2.604cqw, 3.125rem) - 2pt);
  line-height: 1.12;
  letter-spacing: -.02em;
  font-weight: 700;
}
h2 {
  margin-top: .57cqw;
  color: var(--red);
  font: 800 calc(clamp(.9375rem, 2.083cqw, 2.5rem) - 2pt) / 1.4 Pretendard, "Malgun Gothic", sans-serif;
  letter-spacing: -.02em;
}
footer { top: 71.7%; }
.address {
  margin-bottom: 2.55cqw;
  color: #7c7c7c;
  font-size: clamp(.625rem, 1.042cqw, 1.25rem);
  line-height: 1.6;
}
.address strong {
  font-family: Pretendard, "Malgun Gothic", sans-serif;
  letter-spacing: -.02em;
}
.map, .playback {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: max(34px, 4.157cqw);
  padding: 4px 12px;
  border: 0;
  border-radius: max(4px, .573cqw);
  background: #000;
  color: #fff;
  font: inherit;
  font-size: clamp(.875rem, 1.563cqw, 1.875rem);
  font-weight: 700;
  letter-spacing: -.02em;
  text-decoration: none;
  cursor: pointer;
}
.map { justify-content: space-between; gap: 12px; padding-inline: clamp(14px, 1.6cqw, 30px); }
@media (min-width: 741px) {
  .map { margin-inline-start: -.96cqw; transform: translateX(2px); }
}
.map-arrow { flex: none; width: 1.35em; height: 1.35em; color: var(--red); }
.map-arrow path { stroke-width: calc(.16875em + 1px); }
.map:hover, .playback:hover { background: #353535; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 4px; }
.media {
  position: absolute;
  inset: 0 2.24% 0 42%;
  background: #fff;
}
video { display: block; width: 100%; height: 100%; object-fit: cover; }
.playback, .video-status {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: max-content;
  max-width: 86%;
}
.video-status { padding: 12px; background: #fff; text-align: center; }

@media (max-width: 740px) {
  body { display: block; }
  .invitation {
    max-width: 520px;
    aspect-ratio: 1080 / 2200;
    text-align: center;
  }
  .masthead { top: 5.455%; left: 14.815%; width: 70.37%; }
  .media { inset: 12.008% 0 auto; aspect-ratio: 1; }
  .details header {
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
  .event { top: 63.9%; left: 0; width: 100%; }
  time { font-size: calc(6.111cqw - 2pt); line-height: .94; }
  h2 { margin-top: 2.7cqw; font-size: calc(5.556cqw - 2pt); line-height: 1.15; }
  footer { top: 73.6%; left: 10.185%; width: 79.63%; }
  .address { font-size: 2.778cqw; line-height: 1.6; margin-bottom: 12.5cqw; }
  .address strong { font-size: 3.704cqw; line-height: 1.4; }
  .map { min-height: 15.741cqw; font-size: 5.556cqw; border-radius: 1.019cqw; }
}
