@font-face {
  font-family: "Jeju Myeongjo";
  src: url("../assets/fonts/JejuMyeongjo.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

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

:root {
  --green-950: #0c1808;
  --green-900: #11230a;
  --green-800: #1a3210;
  --green-700: #1d3514;
  --green-600: #2e501c;
  --green-500: #325625;
  --green-450: #365b28;
  --green-400: #57714e;
  --green-300: #6c8263;
  --green-200: #7b8d71;
  --green-150: #aebea5;
  --green-100: #ced7c9;
  --cream: #fefaee;
  --cream-2: #f2eee2;
  --cream-3: #e8e4d8;
  --cream-4: #e6e2d6;
  --ink: #1a1816;
  --phone: 460px;
  --jeju: "Jeju Myeongjo", "JejuMyeongjo", "Apple Myungjo", "Apple SD Gothic Neo",
    serif;
  --script: "Luxurious Script", "Snell Roundhand", "Apple Chancery", cursive;
  --pinyon: "Pinyon Script", "Snell Roundhand", cursive;
  --roman: "Luxurious Roman", "Times New Roman", serif;
  --cormorant: "Cormorant Garamond", "Times New Roman", serif;
  --playfair: "Playfair Display", "Times New Roman", serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

html,
body {
  min-height: 100%;
  background: var(--green-950);
  color: var(--green-700);
}

body {
  font-family: var(--jeju);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  background-color: var(--green-900);
  background-image: url("../assets/textures/bg-dark-grain.png");
  background-size: var(--phone) auto;
  background-repeat: repeat;
  background-position: center top;
  pointer-events: none;
}

img {
  display: block;
  max-width: 100%;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

.shell {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  min-height: 100dvh;
}

.phone {
  position: relative;
  width: 100%;
  max-width: var(--phone);
  background-color: var(--green-900);
  background-image: url("../assets/textures/bg-dark-grain.png");
  background-size: cover;
  background-position: center;
  box-shadow: 0 0 80px rgba(0, 0, 0, 0.45);
  overflow: clip;
}

html.is-gated,
html.is-gated body {
  overflow: hidden;
  height: 100dvh;
}

html.is-gated .phone {
  overflow: hidden;
  height: 100dvh;
}

.gate {
  position: fixed;
  top: 0;
  left: max(0px, calc(50% - var(--phone) / 2));
  z-index: 50;
  width: min(var(--phone), 100%);
  height: 100dvh;
  display: grid;
  place-items: center;
  padding: env(safe-area-inset-top) 0 env(safe-area-inset-bottom);
  background: none;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.gate::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-color: var(--green-900);
  background-image: url("../assets/textures/bg-dark-grain.png");
  background-size: cover;
  background-position: center;
  transition: opacity 0.9s ease;
}

.gate.is-opening {
  pointer-events: none;
  cursor: default;
}

.gate.is-opening::before {
  opacity: 0;
}

.gate-stack {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.gate-mark {
  width: 48px;
  height: 61px;
  opacity: 0.7;
  transform-origin: center center;
  animation: gate-sway 0.45s ease-in-out infinite;
  will-change: transform;
}

.gate-hint {
  font-family: var(--playfair);
  font-size: 13px;
  font-weight: 400;
  font-style: italic;
  line-height: 1;
  color: var(--cream);
  opacity: 0.55;
}

.gate.is-opening .gate-mark {
  animation: none;
}

.gate.is-opening .gate-hint {
  opacity: 0;
  transition: opacity 0.35s ease;
}

@keyframes gate-sway {
  0%,
  100% {
    transform: rotate(-2.5deg);
  }
  50% {
    transform: rotate(2.5deg);
  }
}

.bg-dark,
.bg-cream {
  position: relative;
}

.bg-cream::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.bg-dark > *,
.bg-cream > * {
  position: relative;
  z-index: 1;
}

.bg-dark {
  background-color: var(--green-900);
  background-image: url("../assets/textures/bg-dark-grain.png");
  background-size: cover;
  background-position: center;
}

.bg-cream {
  background-color: var(--cream);
}

.bg-cream::before {
  background: url("../assets/textures/bg-paper.png") center / cover no-repeat;
  opacity: 0.55;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: calc(44px + env(safe-area-inset-top));
  padding: calc(8px + env(safe-area-inset-top)) 24px 8px;
  background-color: var(--green-900);
  background-image: url("../assets/textures/bg-dark-grain.png");
  background-size: cover;
  background-position: center;
}

.lp-btn {
  justify-self: start;
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  opacity: 0.45;
  transition: opacity 0.7s ease 0.4s;
}

.lp-disc {
  display: grid;
  place-items: center;
  transform-origin: center;
}

.lp-btn.is-playing .lp-disc {
  animation: spin 10s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.header-logo {
  width: 20px;
  height: 25px;
  opacity: 0.85;
}

.header-gallery {
  justify-self: end;
  height: 25px;
  display: flex;
  align-items: center;
  font-family: var(--playfair);
  font-size: 16px;
  font-weight: 400;
  font-style: italic;
  line-height: 1;
  color: var(--green-100);
  opacity: 0.85;
  transition: opacity 0.7s ease 0.5s;
}

html.is-gated .lp-btn,
html.is-gated .header-gallery,
html.is-gated .header-logo,
html.is-opening .header-logo {
  opacity: 0;
  pointer-events: none;
}

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 80px;
  padding: 110px 24px 150px;
}

.hero-names {
  font-family: var(--pinyon);
  font-size: 56px;
  font-weight: 400;
  color: #e3eedd;
  line-height: 1;
  text-align: center;
  letter-spacing: 0;
}

.hero-names .amp {
  display: inline-block;
  letter-spacing: 5.8px;
  padding: 0 2px;
}

.hero-photo {
  width: 280px;
  height: 370px;
  border-radius: 50%;
  overflow: hidden;
}

.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 42%;
}

.hero-meta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.hero-date {
  display: flex;
  gap: 48px;
  font-family: var(--roman);
  font-size: 20px;
  line-height: 23px;
  letter-spacing: -1px;
  color: var(--green-100);
  text-transform: uppercase;
}

.hero-invite {
  font-size: 14px;
  letter-spacing: -1px;
  color: var(--green-200);
  text-align: center;
  line-height: 1.7;
}

.letter {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  padding: 100px 24px;
  text-align: center;
}

.mark-logo {
  width: 38px;
  height: 48px;
}

.mark-logo.sm {
  width: 20px;
  height: 25px;
}

.letter-when {
  font-size: 14px;
  line-height: 22px;
  letter-spacing: -1px;
  color: var(--green-700);
}

.letter-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  width: 100%;
}

.letter-body {
  max-width: 300px;
  font-size: 16px;
  line-height: 27px;
  letter-spacing: -1px;
  color: var(--green-700);
}

.letter-names {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 16px;
  color: var(--green-700);
}

.letter-names .name-pair {
  display: flex;
  align-items: flex-end;
  gap: 4px;
}

.letter-names .parent {
  font-size: 15px;
  line-height: 24px;
  letter-spacing: -1px;
}

.letter-names strong {
  font-weight: 400;
  font-size: 20px;
  line-height: 27px;
  letter-spacing: -1px;
}

.letter-names .amp {
  font-size: 20px;
  line-height: 27px;
}

.marquee {
  background: var(--green-800);
  height: 44px;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.marquee-track {
  display: flex;
  gap: 16px;
  width: max-content;
  animation: marquee 22s linear infinite;
  will-change: transform;
}

.marquee-track span {
  font-family: var(--script);
  color: var(--cream);
  font-size: 27px;
  line-height: 18px;
  white-space: nowrap;
  padding: 0 4px 2px;
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.gallery {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 48px;
  padding: 100px 0 80px;
}

.section-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  text-align: center;
}

.section-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.wedding-day .section-head,
.account .section-head,
.thanks .section-head {
  gap: 48px;
}

.wedding-day .section-copy {
  gap: 24px;
}

.venue .section-copy {
  gap: 32px;
}

.display-title {
  display: flex;
  align-items: baseline;
  justify-content: center;
  font-weight: 400;
  line-height: 27px;
  padding-top: 22px;
}

.display-title.dark {
  color: var(--green-700);
}

.display-title.light {
  color: var(--green-100);
}

.display-title .drop {
  font-family: var(--script);
  font-size: 64px;
  letter-spacing: -1px;
  line-height: 27px;
}

.wedding-day .display-title,
.venue .display-title,
.account .display-title {
  padding-top: 26px;
}

.wedding-day .drop,
.venue .drop,
.account .drop {
  font-size: 70px;
}

.display-title .rest {
  font-family: var(--cormorant);
  font-size: 28px;
  letter-spacing: -2px;
  font-style: italic;
  line-height: 27px;
}

.wedding-day .rest,
.venue .rest,
.account .rest {
  font-size: 36px;
  font-style: normal;
}

.display-title .rest.playfair {
  font-family: var(--playfair);
  font-style: italic;
}

.section-kicker {
  font-size: 16px;
  line-height: 16px;
  letter-spacing: -1px;
  color: var(--green-700);
}

.section-kicker.muted {
  color: var(--green-150);
  line-height: 25px;
}

.mosaic-wrap {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.mosaic {
  position: relative;
  width: calc(100% - 40px);
  max-width: 420px;
  aspect-ratio: 420 / 758;
  margin: 0 auto;
}

.mosaic img {
  position: absolute;
  object-fit: cover;
}

.mosaic .m1 {
  left: 0;
  top: 0;
  width: 59.52%;
  height: 49.47%;
}

.mosaic .m2 {
  right: 0;
  top: 0;
  width: 38.57%;
  height: 32.06%;
}

.mosaic .m3 {
  right: 0;
  top: 33.11%;
  width: 38.57%;
  height: 32.19%;
}

.mosaic .m4 {
  left: 0;
  top: 50.53%;
  width: 59.52%;
  height: 49.47%;
}

.mosaic .m5 {
  right: 0;
  top: 66.09%;
  width: 38.57%;
  height: 33.91%;
}

.mosaic-fade {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 404px;
  background: linear-gradient(to bottom, rgba(242, 238, 226, 0), #f2eee2);
  pointer-events: none;
}

.more-btn {
  position: relative;
  z-index: 2;
  margin-top: -36px;
  padding: 12px 24px;
  font-size: 16px;
  line-height: 16px;
  letter-spacing: -1px;
  color: var(--green-450);
}

.wedding-day {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 80px;
  padding: 100px 24px 150px;
}

.calendar-card {
  position: relative;
  width: fit-content;
  max-width: 100%;
  padding: 8px;
  background-color: var(--cream);
  box-shadow: 0 0 11px rgba(235, 234, 234, 0.3);
}

.calendar-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../assets/textures/bg-paper.png") center / cover no-repeat;
  opacity: 0.5;
  pointer-events: none;
}

.calendar-inner {
  position: relative;
  border: 1.4px solid var(--green-600);
  padding: 48px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

.calendar-title {
  font-family: var(--script);
  font-size: 48px;
  line-height: 27px;
  letter-spacing: -1px;
  color: var(--green-500);
  text-align: center;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 36.77px);
  grid-template-rows: repeat(5, 20px);
  column-gap: 8px;
  row-gap: 16px;
  justify-content: center;
  align-items: center;
  overflow: visible;
}

.calendar-grid span {
  width: 36.77px;
  height: 20px;
  min-width: 0;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--roman);
  font-size: 20px;
  line-height: 20px;
  letter-spacing: -0.58px;
  color: var(--green-300);
  position: relative;
  overflow: visible;
}

.calendar-grid span.is-day {
  color: var(--cream-4);
  z-index: 1;
}

.calendar-grid span.is-day::before {
  content: "";
  position: absolute;
  width: 38px;
  height: 38px;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background: var(--green-900);
  border-radius: 50%;
  z-index: -1;
}

.venue {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 60px;
  padding: 100px 40px;
}

.venue-meta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.venue-name {
  font-size: 18px;
  line-height: 16px;
  letter-spacing: -1px;
  color: var(--green-700);
}

.venue-addr {
  font-size: 12px;
  line-height: 16px;
  letter-spacing: -1px;
  color: var(--green-700);
}

.map-block {
  width: 100%;
  border: 2px solid var(--green-800);
}

.map-stage {
  position: relative;
  width: 100%;
  height: 176px;
  overflow: hidden;
  background: var(--cream-3);
}

.map-canvas {
  width: 100%;
  height: 176px;
}

.map-links {
  display: flex;
}

.map-link {
  flex: 1;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: var(--green-800);
  color: var(--cream-3);
  font-size: 14px;
  line-height: 14px;
}

.map-link + .map-link {
  border-left: 1px solid #b3bdae;
}

.map-ico {
  width: 12px;
  height: 12px;
  display: block;
  object-fit: contain;
  flex-shrink: 0;
}

.map-ico.kakao {
  width: 14px;
  height: 13px;
}

.kakao-bubble {
  width: 14px;
  height: 13px;
  background: var(--cream-3);
  border-radius: 50% 50% 4px 50%;
  display: inline-grid;
  place-items: center;
  font-family: "Poppins", -apple-system, sans-serif;
  font-weight: 600;
  font-size: 7px;
  line-height: 1;
  color: var(--green-900);
}

.transit {
  width: 100%;
}

.transit > div {
  padding: 24px 16px;
  border-top: 1px solid rgba(29, 53, 20, 0.18);
}

.transit dt {
  font-size: 14px;
  line-height: 16px;
  letter-spacing: -1px;
  color: var(--green-400);
  margin-bottom: 6px;
}

.transit dd {
  font-size: 16px;
  line-height: 21.6px;
  letter-spacing: -1px;
  color: var(--green-700);
}

.account {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  padding: 100px 40px;
}

.account-list {
  width: 100%;
  list-style: none;
  border-bottom: 0.8px solid rgba(255, 255, 255, 0.22);
}

.account-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 24px 16px;
  border-top: 0.8px solid rgba(255, 255, 255, 0.22);
}

.who {
  font-size: 14px;
  line-height: 16px;
  color: #f6fdf2;
  opacity: 0.62;
  margin-bottom: 8px;
}

.num {
  font-size: 16px;
  line-height: 18px;
  letter-spacing: -1px;
  color: #e8eee5;
}

.copy-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  letter-spacing: -1px;
  color: #e8eee5;
  flex-shrink: 0;
}

.copy-ico {
  width: 8px;
  height: 9px;
  position: relative;
}

.copy-ico::before,
.copy-ico::after {
  content: "";
  position: absolute;
  width: 6px;
  height: 7px;
  border: 0.4px solid var(--green-150);
}

.copy-ico::before {
  top: 0;
  right: 0;
}

.copy-ico::after {
  left: 0;
  bottom: 0;
  background: var(--green-900);
}

.thanks {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 60px;
  padding: 100px 40px;
}

.thanks-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 36px;
}

.thanks-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.thanks-photo {
  width: 142px;
  padding: 8px;
  border: 1.5px solid #31401f;
}

.thanks-photo img {
  width: 126px;
  height: 161px;
  object-fit: cover;
  object-position: 50% 38%;
}

.thanks-msg {
  font-size: 16px;
  line-height: 23px;
  letter-spacing: -1.5px;
  color: var(--green-700);
}

.thanks-sign {
  font-size: 12.5px;
  line-height: 21.25px;
  letter-spacing: -0.13px;
  color: var(--ink);
  opacity: 0.72;
}

.share-row {
  display: flex;
  gap: 10px;
  justify-content: center;
}

.share-btn {
  height: 36px;
  padding: 0 14px;
  background: var(--green-800);
  color: #e5e1d5;
  font-size: 12px;
  line-height: 12px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.site-footer {
  padding: 32px 16px;
  text-align: center;
}

.site-footer p {
  font-size: 6px;
  line-height: 14.62px;
  letter-spacing: 0.68px;
  color: #999;
}

.modal {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  width: min(var(--phone), 100%);
  height: 100dvh;
  z-index: 40;
}

.modal[hidden] {
  display: none;
}

.modal-panel {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 0;
  background: transparent;
  scrollbar-width: none;
}

.modal-panel::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

.modal-bar {
  flex-shrink: 0;
  z-index: 3;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: calc(44px + env(safe-area-inset-top));
  padding: calc(10px + env(safe-area-inset-top)) 8px 12px;
  background: transparent;
}

.modal-bar .mark-logo {
  grid-column: 2;
}

.modal-close {
  grid-column: 3;
  justify-self: end;
  width: 40px;
  height: 40px;
  font-size: 28px;
  line-height: 1;
  color: var(--green-700);
}

.modal-intro {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 28px 8px 32px;
  text-align: center;
}

.modal-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0 16px 40px;
}

.modal-list img {
  width: 100%;
  height: auto;
  display: block;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%) translateY(12px);
  width: max-content;
  max-width: calc(min(var(--phone), 100%) - 40px);
  background: var(--green-800);
  color: var(--cream);
  font-size: 13px;
  letter-spacing: -0.4px;
  padding: 10px 16px;
  opacity: 0;
  pointer-events: none;
  z-index: 50;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.yt-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  left: -9999px;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}

.reveal.in {
  opacity: 1;
  transform: none;
}

.hero-names.reveal {
  transition-delay: 0.08s;
}

.hero-photo.reveal {
  transition-delay: 0.52s;
}

.hero-meta.reveal {
  transition-delay: 0.96s;
}

@media (max-width: 419px) {
  .hero-names {
    font-size: 48px;
  }

  .hero-date {
    gap: 28px;
    font-size: 18px;
  }

  .hero-photo {
    width: 240px;
    height: 317px;
  }

  .calendar-grid {
    grid-template-columns: repeat(7, 32px);
    grid-template-rows: repeat(5, 20px);
    column-gap: 6px;
    row-gap: 16px;
  }

  .calendar-grid span {
    width: 32px;
  }

  .venue,
  .account,
  .thanks {
    padding-left: 24px;
    padding-right: 24px;
  }

}

@media (prefers-reduced-motion: reduce) {
  .marquee-track,
  .lp-btn.is-playing .lp-disc,
  .gate-mark,
  .reveal {
    animation: none;
    transition: none;
    opacity: 1;
    transform: none;
  }
}
