:root {
  --bg: #eef6f9;
  --paper: #fbfdfe;
  --ink: #17242d;
  --muted: #62727b;
  --line: #d8e6ec;
  --rose: #e17b86;
  --rose-deep: #b95462;
  --leaf: #247889;
  --gold: #b9905d;
  --shadow: 0 24px 72px rgba(21, 45, 58, 0.2);
  --app-height: 100vh;
  --font-sans: "Noto Sans KR", system-ui, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", "맑은 고딕", sans-serif;
  --font-display: "Gowun Batang", "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", "맑은 고딕", serif;
}

@supports (height: 100dvh) {
  :root {
    --app-height: 100dvh;
  }
}

@supports not (height: 100dvh) {
  @supports (height: 100svh) {
    :root {
      --app-height: 100svh;
    }
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  height: 100%;
}

body {
  margin: 0;
  min-height: 100%;
  color: var(--ink);
  background:
    radial-gradient(circle at 16% 0%, rgba(74, 170, 190, 0.24), transparent 28rem),
    radial-gradient(circle at 92% 18%, rgba(225, 123, 134, 0.18), transparent 22rem),
    linear-gradient(180deg, #e7f4f9 0%, var(--bg) 40%, #f7f2ec 100%);
  font-family: var(--font-sans);
  line-height: 1.7;
}

html.js-enabled,
html.js-enabled body {
  height: 100%;
  overflow: hidden;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

.page-shell {
  position: relative;
  width: min(100%, 480px);
  margin: 0 auto;
  background: rgba(251, 253, 254, 0.82);
  box-shadow: var(--shadow);
  overflow: hidden;
}

html.js-enabled .page-shell {
  height: var(--app-height);
  touch-action: pan-y;
}

.section {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  min-height: var(--app-height);
  padding: 72px 26px;
  text-align: center;
}

html.kakao-browser .section {
  padding-bottom: calc(72px + env(safe-area-inset-bottom));
}

.section > * {
  flex-shrink: 0;
}

html.js-enabled .section {
  position: absolute;
  inset: 0;
  height: var(--app-height);
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  opacity: 0;
  pointer-events: none;
  transform: translateY(24px) scale(0.985);
  transition:
    opacity 420ms ease,
    transform 520ms cubic-bezier(0.2, 0.84, 0.28, 1);
}

html.js-enabled .section.is-active {
  z-index: 2;
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

html.js-enabled:not(.pager-ready) .section:first-of-type {
  z-index: 2;
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

html.js-enabled .section.is-before {
  transform: translateY(-22px) scale(0.985);
}

.section + .section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: min(76%, 300px);
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line), transparent);
  transform: translateX(-50%);
}

html.js-enabled .section + .section::before {
  display: none;
}

.section-kicker,
.eyebrow {
  margin: 0 0 14px;
  color: var(--leaf);
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
blockquote {
  font-family: var(--font-display);
}

h1,
h2,
h3,
p {
  word-break: keep-all;
  overflow-wrap: break-word;
  text-wrap: pretty;
}

blockquote,
address,
.button,
.text-link {
  word-break: keep-all;
  overflow-wrap: break-word;
  text-wrap: pretty;
}

h1 {
  margin: 0;
  font-size: clamp(2rem, 5.9dvh, 3.8rem);
  font-weight: 700;
  line-height: 1.08;
}

h2 {
  margin: 0 0 22px;
  font-size: 1.62rem;
  font-weight: 700;
  line-height: 1.3;
}

h3 {
  margin: 8px 0 6px;
  font-size: 1.34rem;
  line-height: 1.3;
}

p {
  margin: 0;
}

.hero {
  min-height: var(--app-height);
  display: grid;
  align-content: start;
  padding: 0;
  color: var(--ink);
  background: #dcecf3;
}

html.js-enabled .hero {
  height: var(--app-height);
}

.hero-media {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(235, 248, 253, 0.9) 0%, rgba(235, 248, 253, 0.52) 24%, rgba(16, 32, 42, 0.04) 52%, rgba(9, 19, 27, 0.2) 100%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.28), transparent 34%, rgba(13, 30, 40, 0.08));
}

.hero-media::before {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0 0 auto;
  height: 38%;
  background: linear-gradient(
    180deg,
    rgba(236, 249, 254, 0.58),
    rgba(236, 249, 254, 0.32) 56%,
    rgba(236, 249, 254, 0)
  );
  backdrop-filter: blur(14px) saturate(1.06);
  -webkit-backdrop-filter: blur(14px) saturate(1.06);
  mask-image: linear-gradient(180deg, #000 0 66%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, #000 0 66%, transparent 100%);
  pointer-events: none;
}

.hero-media img,
.image-fallback {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.image-fallback {
  position: relative;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.24) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.2) 1px, transparent 1px),
    linear-gradient(145deg, #cfe7f0 0%, #77afbe 48%, #1f303b 100%);
  background-size: 46px 46px, 46px 46px, auto;
}

.image-fallback::before,
.image-fallback::after,
.image-fallback span::before,
.image-fallback span::after {
  content: "";
  position: absolute;
  border-radius: 999px 999px 999px 160px;
  background: rgba(255, 255, 255, 0.42);
  transform: rotate(-24deg);
}

.image-fallback::before {
  left: 12%;
  top: 18%;
  width: 120px;
  height: 52px;
}

.image-fallback::after {
  right: 8%;
  top: 32%;
  width: 138px;
  height: 58px;
  background: rgba(225, 123, 134, 0.32);
  transform: rotate(22deg);
}

.image-fallback span::before {
  left: 18%;
  bottom: 22%;
  width: 154px;
  height: 64px;
  background: rgba(36, 120, 137, 0.3);
  transform: rotate(26deg);
}

.image-fallback span::after {
  right: 18%;
  bottom: 13%;
  width: 112px;
  height: 48px;
  background: rgba(255, 255, 255, 0.36);
  transform: rotate(-18deg);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: calc(clamp(22px, 6.4dvh, 54px) + env(safe-area-inset-top)) 28px 0;
  text-shadow: 0 1px 18px rgba(255, 255, 255, 0.72);
}

.hero .eyebrow {
  color: var(--leaf);
  margin-bottom: clamp(8px, 1.6dvh, 14px);
  font-size: clamp(0.66rem, 1.35dvh, 0.72rem);
}

.couple-names {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: clamp(7px, 1.4dvh, 10px);
  margin-top: clamp(12px, 2.7dvh, 24px);
  font-family: var(--font-display);
  font-size: clamp(0.86rem, 2.05dvh, 1.2rem);
}

.name-divider {
  color: rgba(23, 36, 45, 0.58);
  font-family: var(--font-sans);
  font-size: 0.75rem;
}

.hero-date {
  margin-top: clamp(8px, 1.7dvh, 14px);
  color: rgba(23, 36, 45, 0.74);
  font-size: clamp(0.72rem, 1.6dvh, 0.94rem);
}

.intro-section {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(242, 249, 252, 0.96)),
    var(--paper);
}

.greeting,
.parents-intro,
.gallery-section > p,
.account-section > p {
  color: var(--muted);
  font-size: 1rem;
}

.greeting {
  white-space: pre-line;
}

blockquote {
  margin: 34px 0 0;
  padding: 24px 20px;
  color: #255867;
  background: #eef8fb;
  border: 1px solid #d4e8ef;
  border-radius: 8px;
  font-size: 1.2rem;
  line-height: 1.62;
}

.couple-section {
  background: #f8fbfd;
}

.couple-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-top: 28px;
}

.profile {
  padding: 24px 18px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.profile-label {
  display: inline-grid;
  place-items: center;
  min-width: 54px;
  min-height: 28px;
  color: var(--leaf);
  background: #e4f3f7;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
}

.profile p {
  color: var(--muted);
}

.text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  margin-top: 14px;
  color: var(--leaf);
  font-weight: 700;
  text-decoration: none;
}

.date-section {
  background:
    radial-gradient(circle at 50% 0%, rgba(36, 120, 137, 0.16), transparent 18rem),
    #f4fafc;
}

.date-heading {
  white-space: nowrap;
  font-size: clamp(1.18rem, 4.9vw, 1.62rem);
}

.countdown {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 30px 0 18px;
}

.countdown div {
  min-width: 0;
  padding: 18px 8px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.countdown strong {
  display: block;
  color: var(--leaf);
  font-family: var(--font-display);
  font-size: 2rem;
  line-height: 1;
}

.countdown span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
}

.countdown-note {
  margin-bottom: 22px;
  color: var(--muted);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 700;
  text-decoration: none;
  transition:
    transform 160ms ease,
    background-color 160ms ease,
    border-color 160ms ease;
}

.button:active {
  transform: translateY(1px);
}

.button.primary {
  color: #fff;
  background: #1f6f81;
  border-color: #1f6f81;
}

.button.secondary {
  color: #1f6f81;
  background: transparent;
  border-color: #bcdbe3;
}

.venue-section {
  background: var(--paper);
}

html.js-enabled .venue-section,
html.js-enabled .gallery-section,
html.js-enabled .account-section {
  justify-content: flex-start;
}

address {
  display: grid;
  gap: 4px;
  color: var(--muted);
  font-style: normal;
}

.venue-map {
  flex: 0 0 auto;
  margin: 22px 0 0;
  overflow: hidden;
  aspect-ratio: 750 / 488;
  background: #fff url("assets/map-inner.jpg") center / contain no-repeat;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 14px 36px rgba(21, 45, 58, 0.08);
}

.venue-map img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 750 / 488;
  object-fit: contain;
}

.location-guide {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 24px;
  text-align: left;
}

.guide-card {
  padding: 16px 16px 15px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 32px rgba(21, 45, 58, 0.06);
}

.guide-card h3 {
  margin: 0 0 10px;
  color: #1f6f81;
  font-family: var(--font-sans);
  font-size: 0.92rem;
}

.guide-card p,
.guide-card li {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.58;
}

.guide-card ul {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.guide-card li {
  position: relative;
  padding-left: 13px;
}

.guide-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 5px;
  height: 5px;
  background: var(--rose);
  border-radius: 999px;
}

.venue-notes {
  display: grid;
  gap: 8px;
  margin-top: 14px;
  color: var(--muted);
  text-align: left;
}

.venue-notes p {
  padding: 12px 14px;
  background: rgba(241, 248, 251, 0.72);
  border: 1px dashed var(--line);
  border-radius: 8px;
  font-size: 0.88rem;
  line-height: 1.58;
}

.map-actions,
.share-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 26px;
}

.gallery-section {
  background: #f7fbfc;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 28px;
}

.gallery-item {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #f4ebe4;
  border-radius: 8px;
}

.gallery-item:nth-child(3n + 1) {
  aspect-ratio: 1 / 1;
}

.gallery-item img,
.gallery-placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gallery-placeholder {
  display: grid;
  place-items: center;
  padding: 16px;
  color: rgba(85, 71, 66, 0.64);
  background:
    linear-gradient(135deg, rgba(36, 120, 137, 0.18), rgba(225, 123, 134, 0.16)),
    #edf7fa;
  font-family: var(--font-display);
  text-align: center;
}

.account-section {
  background: var(--paper);
}

.account-list {
  display: grid;
  gap: 16px;
  margin-top: 26px;
  text-align: left;
}

.account-group {
  overflow: hidden;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 16px 42px rgba(21, 45, 58, 0.08);
}

.account-group-header {
  display: grid;
  gap: 8px;
  padding: 18px 18px 15px;
  background:
    linear-gradient(135deg, rgba(36, 120, 137, 0.1), rgba(225, 123, 134, 0.09)),
    #f6fbfd;
  border-bottom: 1px solid var(--line);
}

.account-group-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.account-side {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 12px;
  color: #fff;
  background: #1f6f81;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
}

.account-group h3 {
  margin: 0;
  font-size: 1.08rem;
}

.account-group-header p {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.55;
}

.account-entries {
  display: grid;
}

.account-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 15px 16px;
}

.account-row + .account-row {
  border-top: 1px solid rgba(216, 230, 236, 0.78);
}

.account-detail {
  min-width: 0;
}

.account-person {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.account-person strong {
  min-width: 0;
  font-family: var(--font-display);
  font-size: 1.08rem;
  line-height: 1.35;
}

.account-relation {
  flex: 0 0 auto;
  padding: 3px 8px;
  color: var(--leaf);
  background: #e4f3f7;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
}

.account-detail p {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.45;
  word-break: break-all;
}

.copy-account {
  min-height: 38px;
  padding-inline: 14px;
  color: #1f6f81;
  background: #fff;
  border: 1px solid #e5d5cc;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 700;
}

.share-section {
  padding-bottom: 86px;
  background:
    linear-gradient(180deg, rgba(247, 251, 252, 0.94), rgba(239, 246, 247, 0.96)),
    #eef6f8;
}

.toast {
  min-height: 28px;
  margin-top: 18px;
  color: var(--leaf);
  font-size: 0.92rem;
  font-weight: 700;
}

.page-dots {
  position: absolute;
  z-index: 9;
  top: 50%;
  right: 12px;
  display: grid;
  gap: 9px;
  transform: translateY(-50%);
}

.page-dots button {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 1px solid rgba(31, 111, 129, 0.45);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  cursor: pointer;
}

.page-dots button.is-active {
  height: 24px;
  background: #1f6f81;
  border-color: #1f6f81;
}

@media (min-width: 481px) {
  body {
    display: grid;
    place-items: center;
  }

  .page-shell {
    border-radius: 18px;
  }
}

@media (max-width: 360px) {
  .section {
    padding-inline: 20px;
  }

  .countdown {
    gap: 6px;
  }

  .countdown strong {
    font-size: 1.7rem;
  }
  .button {
    width: 100%;
  }

  .account-row {
    grid-template-columns: 1fr;
  }

  .copy-account {
    width: 100%;
  }

  .page-dots {
    right: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
