:root {
  --bg: #efe7df;
  --surface: rgba(255, 252, 247, 0.78);
  --surface-strong: rgba(255, 252, 247, 0.92);
  --text: #1c1815;
  --muted: #6f645b;
  --line: rgba(41, 29, 18, 0.1);
  --accent: #8c745c;
  --accent-deep: #574337;
  --shadow: 0 18px 48px rgba(49, 34, 20, 0.12);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-sm: 999px;
  --dock-height: 76px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  font-family: "Manrope", "Noto Sans KR", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.56), transparent 34%),
    linear-gradient(180deg, #f3ece4 0%, #ece2d7 48%, #e8ddd2 100%);
}

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

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

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

.page-glow {
  position: fixed;
  z-index: 0;
  width: 18rem;
  aspect-ratio: 1;
  border-radius: 50%;
  filter: blur(22px);
  opacity: 0.42;
  pointer-events: none;
}

.page-glow--top {
  top: -5rem;
  right: -4rem;
  background: rgba(208, 177, 142, 0.42);
}

.page-glow--bottom {
  bottom: 9rem;
  left: -5rem;
  background: rgba(152, 183, 163, 0.22);
}

.hero,
.page,
.footer,
.music-toggle,
.floating-dock,
.toast {
  position: relative;
  z-index: 1;
}

.music-toggle {
  position: fixed;
  top: calc(1rem + env(safe-area-inset-top));
  right: 1rem;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 999px;
  background: rgba(31, 24, 20, 0.44);
  color: #fffdfa;
  backdrop-filter: blur(18px);
  box-shadow: 0 16px 28px rgba(20, 13, 9, 0.18);
}

.music-toggle.is-playing {
  background: rgba(103, 79, 61, 0.88);
}

.music-toggle__icon {
  font-size: 1rem;
  line-height: 1;
}

.hero {
  min-height: 100svh;
  display: grid;
  align-items: end;
  overflow: clip;
}

.hero__media,
.hero__overlay {
  position: absolute;
  inset: 0;
}

.hero__media img {
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  transform: scale(1.01);
}

.hero__overlay {
  background:
    linear-gradient(180deg, rgba(14, 14, 18, 0.28) 0%, rgba(14, 14, 18, 0.08) 24%, rgba(14, 14, 18, 0.16) 58%, rgba(17, 14, 12, 0.72) 100%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, transparent 30%);
}

.hero__content {
  position: relative;
  z-index: 2;
  min-height: 100svh;
  padding: max(2.4rem, env(safe-area-inset-top)) 1.5rem calc(4.7rem + env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  text-align: center;
  color: #fffdfa;
}

.eyebrow {
  margin: 0 0 0.5rem;
  font-size: 0.72rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  opacity: 0.8;
}

.hero__names {
  margin-top: 0.5rem;
  display: grid;
  gap: 0.1rem;
  padding: 0.72rem 1.1rem 0.92rem;
  border-radius: 1.4rem;
  background: linear-gradient(180deg, rgba(19, 15, 12, 0.14), rgba(19, 15, 12, 0.04));
  backdrop-filter: blur(8px);
}

.hero__names-line {
  margin: 0;
  font-family: "Noto Serif KR", serif;
  font-size: clamp(2.35rem, 9vw, 3.3rem);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.04;
  color: rgba(255, 252, 247, 0.99);
  text-shadow: 0 10px 26px rgba(17, 14, 12, 0.3);
}

.hero__signature {
  width: 100%;
  margin-bottom: 1.8rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero__script {
  margin: 0;
  color: rgba(255, 252, 247, 1);
  font-family: "Parisienne", cursive;
  font-weight: 400;
  line-height: 0.82;
  letter-spacing: -0.02em;
  text-shadow:
    0 5px 12px rgba(17, 14, 12, 0.24),
    0 12px 26px rgba(17, 14, 12, 0.2);
}

.hero__script--small {
  margin-left: 2rem;
  font-size: clamp(3.1rem, 11vw, 4.8rem);
}

.hero__script--large {
  margin-top: -0.1rem;
  font-size: clamp(5rem, 18vw, 7.8rem);
}

.hero__script--medium {
  margin-top: -0.6rem;
  font-size: clamp(4.8rem, 16vw, 7rem);
}

.hero__meta {
  margin-top: 1.3rem;
  display: grid;
  gap: 0.18rem;
  padding: 0.78rem 1rem;
  border-radius: 1.4rem;
  background: rgba(17, 14, 12, 0.2);
  backdrop-filter: blur(10px);
}

.hero__date {
  margin: 0;
  font-size: 0.94rem;
  letter-spacing: 0.06em;
  color: rgba(255, 248, 241, 0.9);
}

.hero__venue {
  margin: 0;
  font-size: 0.98rem;
  color: rgba(255, 248, 241, 0.88);
}

.location-card__actions,
.contact-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.button {
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  padding: 0.92rem 1.25rem;
  font-size: 0.94rem;
  font-weight: 600;
  cursor: pointer;
  transition:
    transform 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease,
    color 180ms ease;
}

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

.button--small {
  padding: 0.8rem 1rem;
  font-size: 0.88rem;
}

.button--solid {
  background: rgba(255, 250, 243, 0.94);
  color: var(--accent-deep);
  box-shadow: 0 12px 22px rgba(0, 0, 0, 0.08);
}

.button--ghost {
  background: transparent;
  color: inherit;
  border-color: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(18px);
}

.hero .button--ghost {
  color: #fffdfa;
}

.page .button--ghost {
  border-color: rgba(84, 58, 34, 0.12);
  background: rgba(255, 255, 255, 0.56);
}

.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: calc(1.25rem + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  padding-bottom: 1.35rem;
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(255, 249, 243, 0.76);
}

.hero__scroll::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 1px;
  height: 0.9rem;
  background: currentColor;
}

.page {
  padding: 1.2rem 1rem calc(6.5rem + env(safe-area-inset-bottom));
}

.section {
  margin: 0 auto 1rem;
  padding: 1.6rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.section-heading {
  margin-bottom: 1.4rem;
}

.section-heading h2,
.moment-card__content h2,
.footer h2 {
  margin: 0;
  font-family: "Noto Serif KR", "Cormorant Garamond", serif;
  font-size: 1.85rem;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.03em;
}

.section-copy,
.couple-card__row,
.info-card__sub,
.countdown__copy,
.location-card__address,
.location-card__detail,
.transport-card__row p,
.footer p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.9;
  word-break: keep-all;
  overflow-wrap: anywhere;
  text-wrap: pretty;
}

.section--intro {
  margin-top: -4rem;
  border-top-left-radius: 2.2rem;
  border-top-right-radius: 2.2rem;
}

.couple-card {
  margin-top: 1.4rem;
  padding: 1.05rem 1.2rem;
  border-radius: var(--radius-lg);
  background: var(--surface-strong);
  border: 1px solid rgba(84, 58, 34, 0.08);
}

.couple-card__row {
  display: grid;
  grid-template-columns: 3.2rem 1fr;
  gap: 0.05rem 0.8rem;
  align-items: baseline;
}

.couple-card__row + .couple-card__row {
  margin-top: 0.8rem;
}

.couple-card__label {
  display: inline-block;
  color: var(--accent);
  font-weight: 700;
}

.couple-card__row strong {
  font-size: 1.08rem;
}

.couple-card__row span:last-child {
  grid-column: 2;
}

.info-stack {
  display: grid;
  gap: 0.9rem;
}

.info-card,
.calendar-card,
.location-card,
.transport-card,
.contact-card,
.account-item {
  padding: 1.25rem;
  border-radius: var(--radius-lg);
  background: var(--surface-strong);
  border: 1px solid rgba(84, 58, 34, 0.08);
}

.info-card--accent {
  background:
    linear-gradient(145deg, rgba(137, 111, 90, 0.94), rgba(88, 67, 55, 0.94));
  color: #fff8f2;
}

.info-card--accent .info-card__sub,
.info-card--accent .info-card__main,
.info-card--accent .info-card__kicker {
  color: rgba(255, 248, 242, 0.88);
}

.info-card__kicker {
  margin: 0 0 0.6rem;
  font-size: 0.76rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent);
}

.info-card h3 {
  margin: 0 0 0.5rem;
  font-family: "Noto Serif KR", serif;
  font-size: 1.45rem;
  line-height: 1.45;
}

.info-card__main {
  margin: 0 0 0.25rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
}

.countdown {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.7rem;
}

.countdown__item {
  padding: 0.9rem 0.4rem;
  border-radius: 1.2rem;
  background: rgba(141, 117, 95, 0.08);
  text-align: center;
}

.countdown__number {
  display: block;
  font-family: "Cormorant Garamond", serif;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
}

.countdown__label {
  margin-top: 0.28rem;
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.countdown__copy {
  margin-top: 0.9rem;
}

.calendar-card {
  margin-top: 0.9rem;
}

.calendar-card__header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.calendar-card__header h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
}

.calendar-weekdays,
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.5rem;
}

.calendar-weekdays {
  margin-bottom: 0.75rem;
  color: var(--muted);
  font-size: 0.78rem;
  text-align: center;
}

.calendar-day {
  aspect-ratio: 1 / 1;
  border-radius: 1rem;
  display: grid;
  place-items: center;
  font-weight: 600;
  color: var(--text);
  background: rgba(140, 116, 92, 0.06);
}

.calendar-day--empty {
  background: transparent;
}

.calendar-day--today {
  border: 1px dashed rgba(140, 116, 92, 0.36);
}

.calendar-day--target {
  background: linear-gradient(145deg, #8c745c, #5b4537);
  color: #fff;
  box-shadow: 0 12px 18px rgba(91, 69, 55, 0.24);
}

.moment-card {
  overflow: hidden;
  border-radius: calc(var(--radius-xl) + 0.25rem);
  background: linear-gradient(180deg, rgba(255, 252, 247, 0.84), rgba(248, 241, 233, 0.9));
}

.moment-card__image-wrap {
  position: relative;
  padding: 1rem 1rem 0;
}

.moment-card__image-wrap::after {
  content: "";
  position: absolute;
  inset: 1.6rem 1.6rem auto;
  height: 35%;
  border-radius: 1.8rem;
  background: rgba(255, 255, 255, 0.24);
  filter: blur(18px);
}

.moment-card__image-wrap img {
  position: relative;
  z-index: 1;
  height: 25rem;
  border-radius: 1.8rem;
  object-fit: cover;
  object-position: center 28%;
}

.moment-card__content {
  padding: 1.35rem 1.4rem 1.5rem;
}

.moment-card__content .section-copy {
  margin-top: 0.9rem;
}

.location-card__address {
  margin-top: 0.25rem;
}

.location-card__detail {
  margin-top: 0.4rem;
}

.location-card__actions {
  margin-top: 1rem;
}

.map-card {
  margin-bottom: 0.9rem;
  padding: 1rem;
  border-radius: var(--radius-lg);
  background: var(--surface-strong);
  border: 1px solid rgba(84, 58, 34, 0.08);
}

.map-card__frame {
  overflow: hidden;
  border-radius: 1.4rem;
  border: 1px solid rgba(84, 58, 34, 0.1);
  background: #f4ede5;
  aspect-ratio: 1 / 0.78;
}

.map-card__frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.map-card__hint {
  margin: 0.75rem 0 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.6;
  word-break: keep-all;
}

.transport-card {
  margin-top: 0.9rem;
}

.transport-card__row + .transport-card__row {
  margin-top: 1rem;
}

.transport-card__label,
.contact-card__label {
  display: inline-block;
  margin-bottom: 0.35rem;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.contact-grid {
  display: grid;
  gap: 0.9rem;
}

.contact-card strong {
  display: block;
  margin-bottom: 0.95rem;
  font-family: "Noto Serif KR", serif;
  font-size: 1.3rem;
}

.notice-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.7rem;
}

.notice-list li {
  display: grid;
  grid-template-columns: 4.8rem 1fr;
  gap: 0.6rem;
  align-items: start;
}

.notice-list span {
  color: var(--accent);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.notice-list p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.75;
}

.account-groups {
  display: grid;
  gap: 0.9rem;
}

.account-group {
  padding: 1.25rem;
  border-radius: var(--radius-lg);
  background: var(--surface-strong);
  border: 1px solid rgba(84, 58, 34, 0.08);
}

.account-group__header {
  margin-bottom: 0.9rem;
}

.account-group__header h3 {
  margin: 0;
  font-family: "Noto Serif KR", serif;
  font-size: 1.3rem;
}

.account-group__list {
  display: grid;
  gap: 0.8rem;
}

.account-entry {
  padding: 1rem 1rem 1.05rem;
  border-radius: 1.25rem;
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(84, 58, 34, 0.09);
}

.account-entry__header {
  margin-bottom: 0.5rem;
}

.account-entry__label {
  margin: 0;
  color: var(--text);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.account-entry__body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.8rem;
  align-items: center;
}

.account-entry__number {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.72;
  word-break: keep-all;
}

.account-copy {
  min-width: 5.6rem;
  white-space: nowrap;
}

.footer {
  padding: 2.2rem 1.4rem calc(7rem + env(safe-area-inset-bottom));
  text-align: center;
}

.footer h2 {
  margin-bottom: 0.4rem;
}

.footer__share {
  margin-top: 1rem;
}

.music-credit {
  margin-top: 0.9rem;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.7;
}

.music-credit a {
  text-decoration: underline;
}

.floating-dock {
  position: fixed;
  left: 50%;
  bottom: calc(1rem + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  width: min(calc(100% - 1.5rem), 26rem);
  padding: 0.55rem;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.45rem;
  border-radius: 1.5rem;
  background: rgba(28, 24, 21, 0.82);
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 30px rgba(22, 15, 11, 0.26);
}

.floating-dock a {
  padding: 0.75rem 0.3rem;
  border-radius: 1rem;
  text-align: center;
  color: rgba(255, 248, 242, 0.92);
  font-size: 0.84rem;
  font-weight: 600;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(var(--dock-height) + 2rem + env(safe-area-inset-bottom));
  transform: translateX(-50%) translateY(12px);
  min-width: 12rem;
  max-width: calc(100% - 2rem);
  padding: 0.9rem 1rem;
  border-radius: 999px;
  background: rgba(28, 24, 21, 0.88);
  color: #fff;
  text-align: center;
  font-size: 0.88rem;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 220ms ease,
    transform 220ms ease;
}

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

.js-ready [data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 700ms ease,
    transform 700ms ease;
}

.js-ready [data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (min-width: 720px) {
  .page {
    max-width: 46rem;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  .hero__content {
    padding-left: 2rem;
    padding-right: 2rem;
  }

  .info-stack,
  .contact-grid,
  .account-groups {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 480px) {
  .hero__content {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .hero__names {
    margin-top: 0.2rem;
  }

  .hero__script--large {
    font-size: clamp(4.4rem, 17vw, 6.8rem);
  }

  .hero__script--medium {
    font-size: clamp(4rem, 15vw, 6.2rem);
  }

  .hero__meta {
    width: min(100%, 18rem);
  }

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

  .account-copy {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  * {
    animation: none !important;
    transition: none !important;
  }
}
