:root {
  --paper: #f7f3ed;
  --paper-deep: #ece5dc;
  --ink: #36322f;
  --muted: #81776f;
  --sage: #73806d;
  --sage-light: #dce2d8;
  --rose: #9a736b;
  --line: rgba(92, 79, 70, 0.17);
  --serif: "Malgun Myeongjo", "AppleMyungjo", "Noto Serif KR", Georgia, serif;
  --sans: "Pretendard", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
}

* {
  box-sizing: border-box;
}

figure {
  margin: 0;
}

img {
  max-width: 100%;
}

button {
  font: inherit;
}

html {
  background: #e8e2da;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 8%, rgba(255, 255, 255, 0.78), transparent 30rem),
    #e8e2da;
  font-family: var(--sans);
  word-break: keep-all;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

.invitation-shell {
  min-height: 100vh;
  padding: 28px 16px;
}

.invitation-card {
  width: min(100%, 620px);
  margin: 0 auto;
  overflow: hidden;
  background: var(--paper);
  box-shadow: 0 24px 80px rgba(64, 55, 48, 0.13);
}

.section {
  padding: 92px 34px;
  text-align: center;
}

.section-label {
  margin: 0 0 15px;
  color: var(--rose);
  font-family: Georgia, serif;
  font-size: 11px;
  font-style: italic;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.section h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(23px, 5vw, 30px);
  font-weight: 400;
  letter-spacing: -0.035em;
}

.hero {
  position: relative;
  min-height: 780px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  isolation: isolate;
  background:
    linear-gradient(rgba(247, 243, 237, 0.56), rgba(247, 243, 237, 0.86)),
    repeating-linear-gradient(90deg, transparent 0 31px, rgba(87, 76, 65, 0.026) 32px),
    var(--paper);
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 1px;
  height: 138px;
  background: linear-gradient(transparent, rgba(115, 128, 109, 0.56), transparent);
}

.hero::before {
  top: 68px;
  left: 50%;
}

.hero::after {
  right: 50%;
  bottom: 58px;
}

.eyebrow {
  margin: 0 0 65px;
  color: var(--sage);
  font-family: Georgia, serif;
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
}

.hero-kicker {
  margin: 0 0 24px;
  color: var(--muted);
  font-family: var(--serif);
  font-size: 14px;
  letter-spacing: 0.15em;
}

.couple-names {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(42px, 10vw, 62px);
  font-weight: 400;
  letter-spacing: -0.07em;
}

.couple-names span {
  display: inline-block;
  margin: 0 0.12em;
  color: var(--rose);
  font-family: Georgia, serif;
  font-size: 0.42em;
  font-style: italic;
  font-weight: 400;
  transform: translateY(-0.34em);
}

.hero-rule {
  width: 96px;
  height: 14px;
  margin: 37px 0 33px;
  display: flex;
  align-items: center;
}

.hero-rule::before,
.hero-rule::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.hero-rule span {
  width: 5px;
  height: 5px;
  margin: 0 12px;
  border: 1px solid var(--sage);
  border-radius: 50%;
}

.hero-date {
  margin: 0;
  font-family: Georgia, serif;
  font-size: 15px;
  letter-spacing: 0.14em;
}

.hero-time {
  margin: 10px 0 0;
  color: var(--muted);
  font-family: var(--serif);
  font-size: 14px;
}

.leaf {
  position: absolute;
  z-index: -1;
  width: 104px;
  height: 190px;
  opacity: 0.28;
}

.leaf::before,
.leaf::after {
  content: "";
  position: absolute;
  width: 45px;
  height: 84px;
  border: 1px solid var(--sage);
  border-radius: 100% 0 100% 0;
}

.leaf::before {
  top: 10px;
  left: 8px;
  transform: rotate(-18deg);
}

.leaf::after {
  right: 6px;
  bottom: 13px;
  transform: rotate(160deg);
}

.leaf-one {
  top: 115px;
  right: -24px;
  transform: rotate(18deg);
}

.leaf-two {
  bottom: 118px;
  left: -31px;
  transform: rotate(203deg);
}

.photo-section {
  padding-top: 48px;
  padding-bottom: 70px;
  background: #ede7df;
}

.photo-frame {
  position: relative;
  width: min(100%, 430px);
  aspect-ratio: 315 / 465;
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--paper);
  box-shadow: 0 18px 48px rgba(73, 63, 55, 0.14);
}

.couple-photo {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: auto;
  max-width: none;
  height: 121.5%;
  display: block;
  transform: translateX(-50%);
}

.photo-caption {
  margin: 24px 0 0;
  color: var(--muted);
  font-family: Georgia, serif;
  font-size: 9px;
  letter-spacing: 0.28em;
}

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

.invitation-message {
  margin: 43px 0 0;
  color: #605953;
  font-family: var(--serif);
  font-size: 15px;
  line-height: 2.05;
}

.family-lines {
  width: min(100%, 390px);
  margin: 58px auto 0;
  padding-top: 34px;
  border-top: 1px solid var(--line);
}

.family-lines p {
  margin: 11px 0;
  display: grid;
  grid-template-columns: 1fr auto 70px;
  align-items: baseline;
  gap: 9px;
  font-size: 14px;
}

.parents {
  text-align: right;
  letter-spacing: 0.02em;
}

.relation {
  color: var(--muted);
  font-family: var(--serif);
  font-size: 12px;
}

.family-lines strong {
  text-align: left;
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 600;
}

.date-section {
  background: #ede7df;
}

.date-primary {
  margin: 38px 0 0;
  font-family: var(--serif);
  font-size: 17px;
}

.date-secondary {
  margin: 8px 0 0;
  color: var(--muted);
  font-family: var(--serif);
  font-size: 14px;
}

.calendar {
  width: min(100%, 420px);
  margin: 46px auto 0;
  padding: 31px 28px 28px;
  border: 1px solid rgba(83, 72, 65, 0.12);
  background: rgba(250, 248, 244, 0.55);
}

.calendar-heading {
  margin-bottom: 24px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  color: var(--sage);
  font-family: Georgia, serif;
}

.calendar-heading span {
  font-size: 13px;
  letter-spacing: 0.22em;
}

.calendar-heading strong {
  font-size: 14px;
  font-weight: 400;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  align-items: center;
}

.calendar-days {
  margin-bottom: 9px;
  color: var(--muted);
  font-size: 10px;
}

.calendar-days span:first-child {
  color: var(--rose);
}

.calendar-dates {
  row-gap: 11px;
  font-family: Georgia, serif;
  font-size: 13px;
}

.calendar-dates span {
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.wedding-day {
  position: relative;
  z-index: 0;
  color: white;
}

.wedding-day::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--sage);
  box-shadow: 0 5px 15px rgba(85, 98, 80, 0.23);
}

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

.venue-name {
  margin: 42px 0 0;
  font-family: var(--serif);
  font-size: 21px;
}

.venue-address,
.venue-phone {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.venue-phone {
  margin-top: 5px;
}

.official-map {
  width: min(100%, 500px);
  aspect-ratio: 3 / 2;
  margin: 42px auto 0;
  display: block;
  overflow: hidden;
  border: 1px solid var(--line);
  background: white;
  box-shadow: 0 12px 32px rgba(63, 55, 48, 0.08);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.official-map:hover,
.official-map:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 16px 38px rgba(63, 55, 48, 0.13);
}

.official-map img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

.map-caption {
  margin: 11px 0 0;
  color: var(--muted);
  font-size: 10px;
}

.route-map {
  width: min(100%, 480px);
  margin: 30px auto 0;
  padding: 32px 18px;
  display: grid;
  grid-template-columns: 1fr 0.7fr 1fr 0.7fr 1fr;
  align-items: center;
  border: 1px solid var(--line);
  background:
    linear-gradient(rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.72)),
    repeating-linear-gradient(0deg, transparent 0 20px, rgba(115, 128, 109, 0.08) 21px),
    repeating-linear-gradient(90deg, transparent 0 20px, rgba(115, 128, 109, 0.08) 21px);
}

.route-stop {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.route-stop strong {
  margin-top: 7px;
  font-family: var(--serif);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
}

.route-stop small,
.route-connector small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 8px;
  line-height: 1.3;
}

.route-dot {
  width: 16px;
  height: 16px;
  border: 4px solid var(--paper);
  border-radius: 50%;
  background: var(--rose);
  box-shadow: 0 0 0 1px var(--rose);
}

.route-dot.start {
  background: var(--sage);
  box-shadow: 0 0 0 1px var(--sage);
}

.route-pin {
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  border-radius: 50% 50% 50% 0;
  background: var(--sage);
  color: white;
  font-size: 7px;
  transform: rotate(-45deg);
}

.route-connector {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--sage);
}

.route-connector span {
  font-family: Georgia, serif;
  font-size: 16px;
}

.map-buttons {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 9px;
}

.map-buttons a {
  padding: 13px 12px;
  border: 1px solid var(--line);
  background: #fffdfa;
  font-size: 12px;
  text-decoration: none;
  transition: background 160ms ease, transform 160ms ease;
}

.map-buttons a:hover,
.map-buttons a:focus-visible {
  background: var(--sage-light);
  transform: translateY(-1px);
}

.transport-list {
  margin: 40px auto 0;
  display: grid;
  gap: 0;
  text-align: left;
}

.transport-item {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 16px;
  padding: 22px 2px;
  border-top: 1px solid var(--line);
}

.transport-item:last-child {
  border-bottom: 1px solid var(--line);
}

.transport-icon {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(115, 128, 109, 0.5);
  border-radius: 50%;
  color: var(--sage);
  font-family: Georgia, serif;
  font-size: 11px;
}

.transport-item h3 {
  margin: 0 0 7px;
  font-size: 13px;
  font-weight: 600;
}

.transport-item p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.75;
}

.account-section {
  background: #e5e1d8;
}

.account-intro {
  margin: 31px 0 0;
  color: var(--muted);
  font-family: var(--serif);
  font-size: 14px;
  line-height: 1.85;
}

.account-accordions {
  margin-top: 38px;
  display: grid;
  gap: 10px;
}

.account-accordions details {
  border: 1px solid rgba(75, 67, 60, 0.14);
  background: rgba(255, 255, 255, 0.52);
  text-align: left;
}

.account-accordions summary {
  min-height: 58px;
  padding: 0 19px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  list-style: none;
  font-size: 13px;
  font-weight: 600;
}

.account-accordions summary::-webkit-details-marker {
  display: none;
}

.summary-mark {
  color: var(--sage);
  font-family: Georgia, serif;
  font-size: 21px;
  font-weight: 400;
  transition: transform 180ms ease;
}

details[open] .summary-mark {
  transform: rotate(45deg);
}

.account-content {
  margin: 0 19px;
  padding: 22px 2px 24px;
  border-top: 1px solid var(--line);
}

.account-content strong {
  font-family: var(--serif);
  font-size: 14px;
}

.account-content .account-bank {
  margin: 15px 0 5px;
  color: var(--muted);
  font-size: 12px;
}

.account-content .account-number {
  margin: 0;
  font-family: Georgia, var(--serif);
  font-size: 17px;
  letter-spacing: 0.035em;
}

.account-number-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.account-holder {
  display: inline-block;
  margin-top: 13px;
  padding: 6px 9px;
  border-radius: 999px;
  background: var(--sage-light);
  color: #5e6b59;
  font-size: 10px;
  font-weight: 600;
}

.account-copy-button {
  position: relative;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #a6b0a7;
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease;
}

.account-copy-button:hover,
.account-copy-button:focus-visible {
  background: rgba(115, 128, 109, 0.1);
  color: var(--sage);
}

.account-copy-button.is-copied {
  color: #5e6b59;
}

.copy-icon {
  position: relative;
  width: 12px;
  height: 15px;
  margin: auto;
  display: block;
  border: 1px solid currentColor;
  background: #fffdfa;
  box-shadow:
    -4px -4px 0 -1px #fffdfa,
    -4px -4px 0 0 currentColor;
}

.footer {
  min-height: 510px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.82);
  background: #3d443e;
}

.footer-mark {
  margin: 0 0 43px;
  font-family: var(--serif);
  font-size: 31px;
  letter-spacing: -0.06em;
}

.footer-mark span {
  margin: 0 4px;
  color: #bfa29a;
  font-family: Georgia, serif;
  font-size: 0.65em;
  font-style: italic;
}

.footer > p:not(.footer-mark):not(.footer-date) {
  margin: 0;
  font-family: var(--serif);
  font-size: 14px;
  line-height: 1.9;
}

.footer > strong {
  margin-top: 23px;
  font-family: var(--serif);
  font-size: 13px;
  font-weight: 400;
}

.footer-date {
  margin: 64px 0 0;
  color: rgba(255, 255, 255, 0.42);
  font-family: Georgia, serif;
  font-size: 9px;
  letter-spacing: 0.24em;
}

@media (max-width: 520px) {
  .invitation-shell {
    padding: 0;
  }

  .invitation-card {
    width: 100%;
    box-shadow: none;
  }

  .section {
    padding-right: 25px;
    padding-left: 25px;
  }

  .hero {
    min-height: 100svh;
  }

  .photo-section {
    padding: 32px 20px 56px;
  }

  .calendar {
    padding-right: 19px;
    padding-left: 19px;
  }

  .route-map {
    padding-right: 9px;
    padding-left: 9px;
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
