@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;
  overflow: clip;
  width: min(100%, 1920px);
  aspect-ratio: 16 / 9;
  margin-inline: auto;
}
.masthead {
  position: absolute;
  top: 11.169%;
  left: 7.083%;
  display: block;
  width: 21.176%;
}
.masthead img { display: block; width: 100%; height: auto; }
.details { display: contents; }
.details header, .event, footer { position: absolute; }
.details header { left: 6.225%; top: 26.363%; width: 33.576%; }
h1 img { display: block; width: 100%; height: auto; }
.event, footer { left: 7.083%; width: 34.375%; }
.event { top: 46.296%; display: grid; }
.event-date {
  display: block;
  font-size: clamp(1.125rem, 2.396cqw, 2.875rem);
  line-height: max(1.175rem, 2.708cqw);
  letter-spacing: -.02em;
  font-weight: 700;
}
.event-hours {
  display: flex;
  align-items: center;
  gap: calc(.5cqw - 2px);
  margin-top: .129cqw;
  font-size: clamp(.875rem, 1.563cqw, 1.875rem);
  line-height: max(1.175rem, 2.708cqw);
  letter-spacing: -.02em;
  font-weight: 500;
}
.clock { display: grid; place-items: center; width: max(14px, 1.667cqw); }
.clock img { display: block; width: 65%; height: auto; transform: scaleX(-1); }
h2 {
  margin-top: 4.162cqw;
  color: var(--red);
  font: 800 clamp(.9375rem, 2.083cqw, 2.5rem) / 1.4 Pretendard, "Malgun Gothic", sans-serif;
  letter-spacing: -.02em;
}
footer { top: 69.387%; }
.address {
  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 { position: absolute; width: 100%; min-height: max(40px, 5.208cqw); }
@media (min-width: 741px) {
  .invitation {
    /* Scale the 16:9 composition with the viewport, then let short windows scroll. */
    width: min(100%, 1920px, max(900px, calc(100svh * 16 / 9)));
  }
  .address { position: relative; top: 2px; }
  .map { top: 6.761cqw; left: -.833cqw; }
}
.map:hover, .playback:hover { background: #353535; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 4px; }
.media {
  position: absolute;
  inset: 3.429% 2.24% -3.429% 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 {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: clamp(10px, 2.4svh, 24px);
    max-width: 520px;
    min-height: 100svh;
    aspect-ratio: auto;
    overflow: visible;
    padding: max(clamp(14px, 5svh, 44px), env(safe-area-inset-top))
      max(0px, env(safe-area-inset-right))
      calc(clamp(16px, 5svh, 44px) + env(safe-area-inset-bottom))
      max(0px, env(safe-area-inset-left));
    text-align: center;
  }
  .masthead { position: static; width: 57.496%; }
  .media {
    position: relative;
    inset: auto;
    width: min(100%, calc(clamp(96px, 65svh - 120px, 464px) * 1.12));
    aspect-ratio: 1.12;
  }
  video { object-fit: cover; }
  .details header {
    width: 1px;
    height: 1px;
    clip-path: inset(50%);
    white-space: nowrap;
  }
  .event, footer { position: static; width: 79.63%; }
  .event-date, .event-hours { line-height: 1.25; }
  .event-date { font-size: max(1.125rem, 5.556cqw); }
  .event-hours {
    justify-content: center;
    gap: calc(.35em - 2px);
    margin-top: clamp(3px, 1.45cqw, 7px);
    font-size: max(.875rem, 4.259cqw);
  }
  .clock { width: 1em; }
  h2 {
    order: -1;
    margin: 0 0 clamp(8px, 2svh, 22px);
    font-size: max(1.125rem, 5.556cqw);
    line-height: 1.2;
  }
  footer { display: grid; gap: clamp(12px, 4svh, 42px); }
  .address { font-size: max(.6875rem, 2.778cqw); line-height: 1.5; }
  .address strong { font-size: max(.8125rem, 3.704cqw); }
  .map {
    position: static;
    min-height: max(48px, min(18.519cqw, 10svh));
    font-size: max(1.125rem, 5.556cqw);
    border-radius: 1.019cqw;
  }
}
