@charset "UTF-8";

:root {
  --cream: #faf3ed;
  --paper: #fffaf6;
  --terracotta: #b86247;
  --terracotta-dark: #8e4633;
  --sage: #68715b;
  --ink: #3e342f;
  --muted: #7f7068;
  --gold: #bc8a55;
  --line: rgba(92, 67, 55, 0.15);
  --soft-shadow: 0 28px 80px rgba(91, 62, 48, 0.14);
  --page-width: 768px;
  --side-space: clamp(22px, 7vw, 64px);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #e9ddd4;
  color: var(--ink);
  font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont,
    "Segoe UI", "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  line-height: 1.7;
  word-break: keep-all;
  -webkit-font-smoothing: antialiased;
}

html.has-invitation-intro,
html.has-invitation-intro body {
  overflow: hidden;
}

.invitation-intro {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  overflow: hidden;
  background: transparent;
  perspective: 1600px;
}

html.has-invitation-intro .invitation-intro {
  display: block;
}

.invitation-intro::before {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: var(--cream);
  content: "";
  opacity: 1;
  transition: opacity 1350ms ease-in-out 180ms;
  pointer-events: none;
}

.invitation-intro.is-opening::before {
  opacity: 0;
}

.invitation-intro__door {
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 1;
  width: 50.15%;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.2), transparent 22%, transparent 78%, rgba(121, 87, 71, 0.06)),
    #f8eee6;
  transition: transform 1050ms cubic-bezier(0.76, 0, 0.24, 1);
  will-change: transform;
}

.invitation-intro__door::before,
.invitation-intro__door::after {
  position: absolute;
  border: 1px solid rgba(184, 98, 71, 0.13);
  border-radius: 50%;
  content: "";
}

.invitation-intro__door::before {
  top: 9%;
  width: min(70vw, 520px);
  height: min(70vw, 520px);
}

.invitation-intro__door::after {
  bottom: -18%;
  width: min(55vw, 410px);
  height: min(55vw, 410px);
}

.invitation-intro__door--left {
  left: 0;
  border-right: 1px solid rgba(121, 87, 71, 0.18);
  box-shadow: inset -18px 0 30px rgba(87, 59, 45, 0.035);
  transform-origin: left center;
}

.invitation-intro__door--left::before,
.invitation-intro__door--left::after {
  right: -55%;
}

.invitation-intro__door--right {
  right: 0;
  border-left: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: inset 18px 0 30px rgba(87, 59, 45, 0.035);
  transform-origin: right center;
}

.invitation-intro__door--right::before,
.invitation-intro__door--right::after {
  left: -55%;
}

.invitation-intro.is-opening .invitation-intro__door--left {
  transform: translateX(-102%) rotateY(-7deg);
}

.invitation-intro.is-opening .invitation-intro__door--right {
  transform: translateX(102%) rotateY(7deg);
}

.invitation-intro__content {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  display: grid;
  width: min(calc(100% - 56px), 330px);
  justify-items: center;
  color: var(--ink);
  text-align: center;
  transform: translate(-50%, -50%);
  transition: opacity 300ms ease, transform 450ms ease;
}

.invitation-intro.is-opening .invitation-intro__content {
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.94);
}

.invitation-intro__content > p {
  margin-bottom: 28px;
  color: var(--gold);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 9px;
  letter-spacing: 0.28em;
}

.invitation-intro__seal {
  display: grid;
  width: 76px;
  height: 76px;
  margin-bottom: 26px;
  border: 1px solid var(--terracotta);
  border-radius: 50%;
  box-shadow: 0 0 0 5px rgba(184, 98, 71, 0.055);
  color: var(--terracotta-dark);
  font-family: "Times New Roman", serif;
  font-size: 24px;
  place-items: center;
  animation: intro-seal-breathe 1800ms ease-in-out infinite;
}

.invitation-intro__content > strong {
  margin-bottom: 26px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.invitation-intro__progress {
  width: min(100%, 210px);
  height: 1px;
  overflow: hidden;
  background: rgba(92, 67, 55, 0.14);
}

.invitation-intro__progress i {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--gold), var(--terracotta));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 120ms linear;
}

.invitation-intro__content > span {
  margin-top: 9px;
  color: var(--muted);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 9px;
  letter-spacing: 0.1em;
}

button,
a {
  color: inherit;
  font: inherit;
}

button {
  border: 0;
}

a {
  text-decoration: none;
}

figure,
h1,
h2,
h3,
p {
  margin-top: 0;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 100;
  padding: 9px 14px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 13px;
  transform: translateY(-180%);
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.invitation-card {
  width: min(100%, var(--page-width));
  margin-inline: auto;
  overflow: hidden;
  background: var(--cream);
  box-shadow: var(--soft-shadow);
}

.eyebrow {
  margin-bottom: 15px;
  color: var(--terracotta);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.34em;
}

.hero {
  position: relative;
  min-height: 100svh;
  padding: clamp(40px, 8vw, 72px) var(--side-space) 54px;
  overflow: hidden;
  text-align: center;
}

.hero::before,
.hero::after {
  position: absolute;
  border: 1px solid rgba(184, 98, 71, 0.14);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.hero::before {
  top: -120px;
  right: -155px;
  width: 340px;
  height: 340px;
}

.hero::after {
  top: -80px;
  right: -115px;
  width: 260px;
  height: 260px;
}

.hero__ornament {
  display: flex;
  width: min(250px, 76%);
  align-items: center;
  gap: 16px;
  margin: 0 auto clamp(42px, 9vw, 72px);
  color: var(--gold);
}

.hero__ornament span {
  height: 1px;
  flex: 1;
  background: linear-gradient(90deg, transparent, currentColor);
}

.hero__ornament span:last-child {
  background: linear-gradient(90deg, currentColor, transparent);
}

.hero__ornament b {
  display: grid;
  width: 50px;
  height: 50px;
  border: 1px solid currentColor;
  border-radius: 50%;
  place-items: center;
  font-family: "Times New Roman", serif;
  font-size: 17px;
  font-weight: 400;
}

.hero__copy {
  position: relative;
  z-index: 1;
}

.hero h1 {
  margin-bottom: 24px;
  color: var(--ink);
  font-size: clamp(28px, 6.8vw, 47px);
  font-weight: 350;
  letter-spacing: -0.055em;
  line-height: 1.48;
}

.hero h1 strong {
  position: relative;
  color: var(--terracotta-dark);
  font-weight: 700;
}

.hero h1 strong::after {
  position: absolute;
  right: -3px;
  bottom: 1px;
  left: -3px;
  z-index: -1;
  height: 10px;
  background: rgba(216, 160, 125, 0.26);
  content: "";
  transform: rotate(-1deg);
}

.hero__message {
  margin-bottom: clamp(35px, 7vw, 56px);
  color: var(--muted);
  font-size: clamp(13px, 2.5vw, 16px);
  line-height: 1.9;
}

.family-portrait {
  position: relative;
  width: min(100%, 560px);
  margin: 0 auto 44px;
  padding: 8px;
  border: 1px solid rgba(139, 95, 72, 0.17);
  border-radius: 240px 240px 18px 18px;
  background: rgba(255, 255, 255, 0.46);
  box-shadow: 0 24px 56px rgba(112, 76, 57, 0.12);
}

.family-portrait::before {
  position: absolute;
  top: -9px;
  left: 50%;
  width: 56px;
  height: 18px;
  background: rgba(206, 177, 139, 0.48);
  content: "";
  transform: translateX(-50%) rotate(-2deg);
}

.family-portrait img {
  display: block;
  width: 100%;
  border-radius: 232px 232px 12px 12px;
  height: auto;
}

.family-portrait figcaption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 10px 9px;
  text-align: left;
}

.family-portrait figcaption span {
  color: var(--terracotta);
  font-family: Georgia, serif;
  font-size: clamp(15px, 3.4vw, 22px);
  font-style: italic;
  letter-spacing: 0.03em;
}

.family-portrait figcaption strong {
  color: var(--muted);
  font-size: clamp(10px, 2.2vw, 13px);
  font-weight: 500;
}

.scroll-cue {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  color: var(--gold);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.28em;
}

.scroll-cue i {
  display: block;
  width: 1px;
  height: 34px;
  overflow: hidden;
  background: rgba(188, 138, 85, 0.25);
}

.scroll-cue i::after {
  display: block;
  width: 100%;
  height: 55%;
  background: var(--gold);
  content: "";
  animation: scroll-line 1.8s ease-in-out infinite;
}

.details {
  position: relative;
  padding: clamp(88px, 16vw, 140px) var(--side-space);
  overflow: hidden;
  background: var(--paper);
  text-align: center;
}

.details::before {
  position: absolute;
  top: 140px;
  left: -80px;
  width: 170px;
  height: 300px;
  border: 1px solid rgba(104, 113, 91, 0.12);
  border-radius: 50%;
  content: "";
  transform: rotate(-26deg);
}

.section-heading {
  position: relative;
  z-index: 1;
  margin-bottom: clamp(42px, 8vw, 66px);
  text-align: center;
}

.section-heading h2 {
  margin-bottom: 18px;
  font-family: Georgia, "Times New Roman", "Pretendard Variable", serif;
  font-size: clamp(29px, 6.5vw, 44px);
  font-weight: 500;
  letter-spacing: -0.055em;
}

.heading-flower {
  color: var(--gold);
  font-size: 12px;
}

.greeting {
  position: relative;
  z-index: 1;
  margin-bottom: clamp(52px, 10vw, 84px);
  color: var(--muted);
  font-size: clamp(14px, 2.8vw, 17px);
  line-height: 2.05;
}

.greeting p {
  margin-bottom: 24px;
}

.event-card {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(118px, 0.34fr) 1fr;
  width: min(100%, 620px);
  margin-inline: auto;
  overflow: hidden;
  border: 1px solid rgba(142, 70, 51, 0.16);
  border-radius: 4px 50px 4px 4px;
  background: #fff;
  box-shadow: 0 22px 60px rgba(87, 59, 45, 0.09);
  text-align: left;
}

.event-card__date {
  display: flex;
  min-height: 310px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 28px 20px;
  background: var(--terracotta);
  color: #fff9f3;
  text-align: center;
}

.event-card__date span,
.event-card__date small {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.27em;
}

.event-card__date strong {
  margin: 3px 0 7px;
  font-family: Georgia, serif;
  font-size: clamp(54px, 11vw, 78px);
  font-weight: 400;
  line-height: 1;
}

.event-list {
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin: 0;
  padding: 30px clamp(22px, 5vw, 42px);
}

.event-list > div {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 14px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}

.event-list > div:last-child {
  border-bottom: 0;
}

.event-list dt {
  color: var(--terracotta);
  font-size: 12px;
  font-weight: 700;
}

.event-list dd {
  margin: 0;
  color: var(--ink);
  font-size: clamp(13px, 2.5vw, 15px);
  font-weight: 600;
}

.host-signature {
  margin: clamp(48px, 9vw, 72px) 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 2;
}

.host-signature strong {
  color: var(--ink);
  font-size: 14px;
  letter-spacing: 0.08em;
}

.guestbook {
  position: relative;
  padding: clamp(88px, 16vw, 140px) var(--side-space);
  overflow: hidden;
  background: var(--cream);
  text-align: center;
}

.guestbook .section-heading {
  margin-bottom: 18px;
}

.guestbook .section-heading > p:last-child {
  margin: -3px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.guestbook__count {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.04em;
}

.guestbook__count strong {
  color: var(--terracotta-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 15px;
  font-weight: 500;
}

.message-tree {
  position: relative;
  width: min(100%, 640px);
  height: clamp(480px, 82vw, 610px);
  margin-inline: auto;
  isolation: isolate;
}

.message-tree::before {
  position: absolute;
  top: 10%;
  left: 50%;
  z-index: -1;
  width: 86%;
  height: 62%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(104, 113, 91, 0.08), transparent 68%);
  content: "";
  transform: translateX(-50%);
}

.message-tree__art,
.message-tree__leaves {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.message-tree__art {
  z-index: 0;
  overflow: visible;
}

.message-tree__ground {
  fill: none;
  stroke: url("#tree-ground-gradient");
  stroke-linecap: round;
  stroke-width: 3;
}

.message-tree__branches {
  fill: none;
  stroke: rgba(121, 87, 71, 0.62);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 4;
}

.message-tree__branches .message-tree__trunk {
  stroke: url("#tree-trunk-gradient");
  stroke-width: 13;
}

.message-tree__decorative-leaves {
  fill: rgba(104, 113, 91, 0.46);
}

.message-tree__decorative-leaves ellipse:nth-child(3n + 2) {
  fill: rgba(188, 138, 85, 0.52);
}

.message-tree__decorative-leaves ellipse:nth-child(3n) {
  fill: rgba(184, 98, 71, 0.42);
}

.message-tree__leaves {
  z-index: 2;
}

.message-list__state {
  position: absolute;
  top: 34%;
  left: 50%;
  width: min(72%, 330px);
  margin: 0;
  padding: 14px 18px;
  border: 1px solid rgba(142, 70, 51, 0.12);
  border-radius: 999px;
  background: rgba(255, 250, 246, 0.88);
  box-shadow: 0 10px 30px rgba(87, 59, 45, 0.06);
  color: var(--muted);
  font-size: 12px;
  text-align: center;
  transform: translate(-50%, -50%);
}

.message-leaf {
  position: absolute;
  top: var(--leaf-y);
  left: var(--leaf-x);
  display: grid;
  min-width: clamp(62px, 13vw, 86px);
  max-width: 96px;
  min-height: 44px;
  padding: 7px 13px;
  border: 1px solid rgba(255, 255, 255, 0.44);
  border-radius: 72% 12px 72% 12px;
  box-shadow: 0 9px 20px rgba(70, 54, 46, 0.14);
  color: #fffaf6;
  cursor: pointer;
  place-items: center;
  transform: translate(-50%, -50%) rotate(var(--leaf-rotation));
  transform-origin: center;
  transition: filter 180ms ease, box-shadow 180ms ease, translate 180ms ease;
  animation: leaf-arrive 620ms cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: var(--leaf-delay);
}

.message-leaf::after {
  position: absolute;
  right: -7px;
  bottom: 1px;
  width: 12px;
  height: 1px;
  background: currentColor;
  content: "";
  opacity: 0.42;
  transform: rotate(35deg);
  transform-origin: left;
}

.message-leaf span {
  display: block;
  width: 100%;
  overflow: hidden;
  font-size: clamp(10px, 2vw, 12px);
  font-weight: 700;
  letter-spacing: -0.02em;
  text-overflow: ellipsis;
  white-space: nowrap;
  transform: rotate(var(--leaf-label-rotation));
}

.message-leaf--1 {
  background: #68715b;
}

.message-leaf--2 {
  background: #b86247;
}

.message-leaf--3 {
  background: #a97949;
}

.message-leaf--4 {
  border-color: rgba(121, 87, 71, 0.16);
  background: #f4dfc8;
  color: #6f4a38;
}

.message-leaf:focus-visible {
  outline: 3px solid rgba(62, 52, 47, 0.34);
  outline-offset: 4px;
}

.message-leaf.is-new {
  animation: new-leaf-arrive 900ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.message-tree__plaque {
  position: absolute;
  bottom: 1.5%;
  left: 50%;
  z-index: 3;
  display: grid;
  min-width: 138px;
  gap: 1px;
  padding: 10px 18px 9px;
  border: 1px solid rgba(121, 87, 71, 0.2);
  border-radius: 2px;
  background: rgba(255, 250, 246, 0.94);
  box-shadow: 0 9px 24px rgba(87, 59, 45, 0.08);
  color: var(--ink);
  transform: translateX(-50%);
}

.message-tree__plaque span {
  color: var(--gold);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 8px;
  letter-spacing: 0.18em;
}

.message-tree__plaque strong {
  font-size: 11px;
  font-weight: 600;
}

.guestbook__actions {
  position: relative;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}

.write-message-button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 13px 20px 13px 24px;
  border-radius: 999px;
  background: var(--terracotta);
  box-shadow: 0 12px 28px rgba(142, 70, 51, 0.18);
  color: #fffaf5;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  transition: background-color 180ms ease, transform 180ms ease;
}

.write-message-button svg {
  width: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 1.8;
}

.all-messages-button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border: 1px solid rgba(142, 70, 51, 0.18);
  border-radius: 999px;
  background: rgba(255, 250, 246, 0.76);
  color: var(--terracotta-dark);
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  transition: background-color 180ms ease, transform 180ms ease;
}

.all-messages-button[hidden] {
  display: none;
}

.all-messages-button span {
  font-size: 15px;
}

.message-dialog {
  width: min(calc(100% - 32px), 500px);
  max-height: calc(100dvh - 32px);
  padding: 0;
  overflow: auto;
  border: 0;
  border-radius: 4px 36px 4px 4px;
  background: var(--paper);
  box-shadow: 0 30px 90px rgba(45, 31, 26, 0.3);
  color: var(--ink);
}

.message-dialog::backdrop {
  background: rgba(45, 37, 33, 0.58);
  backdrop-filter: blur(3px);
}

.message-dialog__panel {
  position: relative;
  padding: clamp(32px, 7vw, 48px);
}

.message-dialog__close {
  position: absolute;
  top: 18px;
  right: 18px;
  display: grid;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  place-items: center;
}

.message-dialog__close svg {
  width: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 1.6;
}

.message-dialog__heading {
  padding-right: 30px;
}

.message-dialog__heading h2 {
  margin-bottom: 8px;
  font-family: Georgia, "Times New Roman", "Pretendard Variable", serif;
  font-size: clamp(27px, 6vw, 36px);
  font-weight: 500;
  letter-spacing: -0.055em;
}

.message-dialog__heading > p:last-child {
  margin-bottom: 30px;
  color: var(--muted);
  font-size: 13px;
}

.message-dialog--reading {
  overflow: hidden;
}

.message-dialog--reading .message-dialog__panel {
  max-height: calc(100dvh - 32px);
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  -webkit-overflow-scrolling: touch;
}

.message-reading {
  min-height: 390px;
  background:
    radial-gradient(circle at 92% 10%, rgba(188, 138, 85, 0.12), transparent 30%),
    var(--paper);
  text-align: center;
}

.message-reading::before,
.message-reading::after {
  position: absolute;
  border: 1px solid rgba(104, 113, 91, 0.12);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.message-reading::before {
  right: -110px;
  bottom: -145px;
  width: 260px;
  height: 260px;
}

.message-reading::after {
  right: -72px;
  bottom: -108px;
  width: 190px;
  height: 190px;
}

.message-reading > .eyebrow {
  margin-bottom: 28px;
}

.message-reading__heading > span {
  display: block;
  margin-bottom: 8px;
  color: var(--gold);
  font-family: Georgia, serif;
  font-size: 24px;
}

.message-reading__heading h2 {
  margin-bottom: 4px;
  color: var(--terracotta-dark);
  font-family: Georgia, "Times New Roman", "Pretendard Variable", serif;
  font-size: clamp(25px, 6vw, 34px);
  font-weight: 500;
  letter-spacing: -0.04em;
}

.message-reading__heading time {
  color: var(--muted);
  font-size: 10px;
}

.message-reading__body {
  position: relative;
  z-index: 1;
  margin: 34px 0 36px;
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: clamp(15px, 3vw, 17px);
  line-height: 1.95;
  white-space: pre-wrap;
}

.message-reading__return {
  position: relative;
  z-index: 1;
  min-height: 44px;
  padding: 10px 20px;
  border: 1px solid rgba(142, 70, 51, 0.18);
  border-radius: 999px;
  background: transparent;
  color: var(--terracotta-dark);
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
}

.message-dialog--list {
  width: min(calc(100% - 32px), 560px);
}

.all-message-list {
  display: grid;
  gap: 10px;
}

.all-message-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 16px;
  width: 100%;
  padding: 17px 18px;
  border: 1px solid rgba(92, 67, 55, 0.12);
  border-radius: 3px 20px 3px 3px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
  transition: border-color 180ms ease, transform 180ms ease;
}

.all-message-item strong {
  overflow: hidden;
  color: var(--terracotta-dark);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.all-message-item time {
  color: var(--muted);
  font-size: 10px;
}

.all-message-item p {
  display: -webkit-box;
  grid-column: 1 / -1;
  margin: 2px 0 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.message-form {
  display: grid;
  gap: 22px;
}

.form-field {
  display: grid;
  gap: 8px;
}

.form-field label {
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
}

.form-field__label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.form-field__label-row > span {
  color: var(--muted);
  font-size: 10px;
}

.form-field input,
.form-field textarea {
  width: 100%;
  border: 1px solid rgba(92, 67, 55, 0.18);
  border-radius: 3px;
  outline: 0;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.form-field input {
  height: 46px;
  padding: 0 14px;
}

.form-field textarea {
  min-height: 132px;
  padding: 13px 14px;
  resize: vertical;
  line-height: 1.7;
}

.form-field input:focus,
.form-field textarea:focus {
  border-color: var(--terracotta);
  box-shadow: 0 0 0 3px rgba(184, 98, 71, 0.1);
}

.form-field--honeypot {
  position: fixed;
  top: -10000px;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.message-form__error {
  min-height: 20px;
  margin: -8px 0 0;
  color: #a23f35;
  font-size: 12px;
}

.message-form__submit {
  min-height: 50px;
  border-radius: 3px;
  background: var(--terracotta);
  color: #fff;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
}

.message-form__submit:disabled {
  cursor: wait;
  opacity: 0.62;
}

body.has-open-dialog {
  overflow: hidden;
}

.location {
  position: relative;
  padding: clamp(88px, 16vw, 140px) var(--side-space) 48px;
  overflow: hidden;
  background: var(--sage);
  color: #fffaf5;
}

.location::before {
  position: absolute;
  top: -130px;
  left: 50%;
  width: 360px;
  height: 240px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  content: "";
  transform: translateX(-50%);
}

.section-heading--light .eyebrow {
  color: #e7c39a;
}

.section-heading--light h2 {
  color: #fffaf5;
}

.section-heading--light > p:last-child {
  margin: -3px 0 0;
  color: rgba(255, 250, 245, 0.64);
  font-size: 14px;
}

.location-card {
  position: relative;
  z-index: 1;
  display: grid;
  width: min(100%, 660px);
  margin-inline: auto;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.17);
  border-radius: 3px;
  background: #f9f1e9;
  box-shadow: 0 26px 66px rgba(29, 34, 24, 0.24);
  color: var(--ink);
}

.location-info {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: clamp(28px, 6vw, 46px);
}

.location-info__label {
  display: block;
  margin-bottom: 8px;
  color: var(--terracotta);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.26em;
}

.location-info h3 {
  margin-bottom: 30px;
  font-size: clamp(25px, 5vw, 34px);
  font-weight: 700;
  letter-spacing: -0.04em;
}

.address-block {
  padding-top: 25px;
  border-top: 1px solid var(--line);
}

.address-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.address-row address {
  flex: 1;
  margin: 0;
  font-size: 14px;
  font-style: normal;
  font-weight: 600;
  line-height: 1.65;
}

.copy-button {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  border: 1px solid rgba(142, 70, 51, 0.2);
  border-radius: 50%;
  background: transparent;
  color: var(--terracotta-dark);
  cursor: pointer;
  place-items: center;
  transition: background-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.copy-button svg {
  width: 16px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
}

.location-meta {
  display: flex;
  flex-direction: column;
  margin-top: 26px;
  padding: 20px;
  border-radius: 2px;
  background: rgba(184, 98, 71, 0.07);
}

.location-meta span {
  color: var(--muted);
  font-size: 12px;
}

.location-meta strong {
  margin: 1px 0 4px;
  color: var(--terracotta-dark);
  font-family: Georgia, serif;
  font-size: 26px;
}

.location-meta small {
  color: var(--muted);
  font-size: 11px;
}

.map-links {
  display: grid;
  gap: 10px;
  margin-top: 26px;
}

.map-link {
  display: flex;
  width: 100%;
  min-height: 50px;
  align-items: center;
  gap: 11px;
  padding: 10px 15px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 700;
  transition: filter 180ms ease, transform 180ms ease;
}

.map-link--naver {
  background: #03c75a;
  box-shadow: 0 10px 24px rgba(3, 132, 61, 0.16);
  color: #fff;
}

.map-link--kakao {
  background: #fee500;
  box-shadow: 0 10px 24px rgba(118, 99, 0, 0.12);
  color: #27231f;
}

.map-link__mark {
  display: grid;
  width: 27px;
  height: 27px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  font-family: Arial, sans-serif;
  font-size: 13px;
  font-weight: 800;
  place-items: center;
}

.map-link--kakao .map-link__mark {
  background: rgba(39, 35, 31, 0.1);
}

.map-link svg {
  margin-left: auto;
  width: 16px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
  transition: transform 180ms ease;
}

.map-frame {
  position: relative;
  min-height: 330px;
  overflow: hidden;
  background: #ded6cc;
}

.map-frame::after {
  position: absolute;
  inset: 0;
  background: rgba(127, 103, 84, 0.04);
  content: "";
  pointer-events: none;
  mix-blend-mode: multiply;
}

.map-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 330px;
  border: 0;
  filter: sepia(0.2) saturate(0.72) contrast(0.94);
}

.closing {
  margin-top: clamp(72px, 14vw, 110px);
  text-align: center;
}

.closing > span {
  color: #e7c39a;
  font-size: 11px;
}

.closing p {
  margin: 22px 0 30px;
  color: rgba(255, 250, 245, 0.84);
  font-size: clamp(14px, 2.8vw, 17px);
  line-height: 1.9;
}

.closing small {
  color: rgba(255, 250, 245, 0.38);
  font-family: Georgia, serif;
  font-size: 8px;
  letter-spacing: 0.2em;
}

.toast {
  position: fixed;
  bottom: max(24px, env(safe-area-inset-bottom));
  left: 50%;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: rgba(54, 46, 42, 0.94);
  box-shadow: 0 10px 30px rgba(35, 27, 24, 0.2);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 14px);
  transition: opacity 200ms ease, transform 200ms ease;
}

.toast svg {
  width: 16px;
  fill: none;
  stroke: #e7c39a;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

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

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 800ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 800ms cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

html.has-invitation-intro .hero__ornament,
html.has-invitation-intro .hero__copy,
html.has-invitation-intro .family-portrait,
html.has-invitation-intro .scroll-cue {
  opacity: 0;
  transform: translateY(20px) scale(0.99);
  transition: none;
}

html.is-intro-content-revealing .hero__ornament,
html.is-intro-content-revealing .hero__copy,
html.is-intro-content-revealing .family-portrait,
html.is-intro-content-revealing .scroll-cue {
  opacity: 1;
  transform: translateY(0) scale(1);
  transition: opacity 1400ms ease-in-out,
    transform 1500ms cubic-bezier(0.22, 1, 0.36, 1);
}

html.is-intro-content-revealing .hero__copy {
  transition-delay: 100ms;
}

html.is-intro-content-revealing .family-portrait {
  transition-delay: 240ms;
}

html.is-intro-content-revealing .scroll-cue {
  transition-delay: 420ms;
}

@keyframes scroll-line {
  0% {
    opacity: 0;
    transform: translateY(-100%);
  }
  35% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateY(190%);
  }
}

@keyframes intro-seal-breathe {
  0%,
  100% {
    box-shadow: 0 0 0 5px rgba(184, 98, 71, 0.045);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 0 0 9px rgba(184, 98, 71, 0.025);
    transform: scale(1.025);
  }
}

@keyframes leaf-arrive {
  from {
    opacity: 0;
    scale: 0.72;
  }
  to {
    opacity: 1;
    scale: 1;
  }
}

@keyframes new-leaf-arrive {
  0% {
    opacity: 0;
    scale: 0.2;
  }
  68% {
    opacity: 1;
    scale: 1.16;
  }
  100% {
    opacity: 1;
    scale: 1;
  }
}

@media (min-width: 620px) {
  .location-card {
    grid-template-columns: 1fr 1fr;
  }

  .map-frame,
  .map-frame iframe {
    min-height: 520px;
  }
}

@media (max-width: 519px) {
  .hero__message br,
  .greeting br {
    display: none;
  }

  .event-card {
    grid-template-columns: 92px 1fr;
  }

  .event-card__date {
    min-height: 292px;
    padding-inline: 12px;
  }

  .event-card__date strong {
    font-size: 49px;
  }

  .event-list {
    padding-inline: 20px;
  }

  .event-list > div {
    grid-template-columns: 48px 1fr;
    gap: 8px;
  }

  .message-tree {
    width: calc(100% + 18px);
    height: 500px;
    margin-left: -9px;
  }

  .message-tree__branches {
    stroke-width: 5;
  }

  .message-tree__branches .message-tree__trunk {
    stroke-width: 16;
  }

  .message-leaf {
    max-width: 78px;
    padding-inline: 10px;
  }
}

@media (max-width: 370px) {
  .family-portrait figcaption {
    display: block;
    text-align: center;
  }

  .family-portrait figcaption strong {
    display: block;
    margin-top: 4px;
  }

  .event-card {
    display: block;
  }

  .event-card__date {
    min-height: 0;
    padding: 22px;
  }

  .event-card__date strong {
    margin: 0;
    font-size: 44px;
  }

  .message-tree {
    width: calc(100% + 28px);
    height: 470px;
    margin-left: -14px;
  }

  .message-leaf {
    min-width: 58px;
    max-width: 70px;
  }
}

@media (hover: hover) {
  .write-message-button:hover {
    background: var(--terracotta-dark);
    transform: translateY(-2px);
  }

  .all-messages-button:hover,
  .message-reading__return:hover {
    background: rgba(184, 98, 71, 0.08);
    transform: translateY(-2px);
  }

  .message-leaf:hover {
    filter: brightness(1.08);
    box-shadow: 0 12px 26px rgba(70, 54, 46, 0.2);
    translate: 0 -3px;
  }

  .all-message-item:hover {
    border-color: rgba(184, 98, 71, 0.3);
    transform: translateY(-2px);
  }

  .copy-button:hover {
    background: var(--terracotta);
    color: #fff;
    transform: translateY(-2px);
  }

  .map-link:hover svg {
    transform: translateX(4px);
  }

  .map-link:hover {
    filter: brightness(0.98);
    transform: translateY(-2px);
  }
}

@media (min-width: 769px) {
  body {
    padding-block: 42px;
  }
}

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

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

  .scroll-cue i::after {
    animation: none;
  }

  .message-leaf,
  .message-leaf.is-new {
    animation: none;
  }

  .invitation-intro__seal {
    animation: none;
  }

  html.has-invitation-intro .hero__ornament,
  html.has-invitation-intro .hero__copy,
  html.has-invitation-intro .family-portrait,
  html.has-invitation-intro .scroll-cue,
  html.is-intro-content-revealing .hero__ornament,
  html.is-intro-content-revealing .hero__copy,
  html.is-intro-content-revealing .family-portrait,
  html.is-intro-content-revealing .scroll-cue {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
