/* =========================================================
   Wedding Invitation · Coming Soon
   종이 청첩장 톤앤매너: 네이비 온 크림 + 손글씨/세리프 2종.
   모바일 우선(375px 기준), 한 화면 컴팩트.
   ========================================================= */

:root {
  --paper: #f4f0e8;        /* 따뜻한 크림 종이 */
  --navy: #34406a;         /* 잉크 (라인/본문) */
  --navy-deep: #2a3157;    /* 이름 */
  --navy-soft: #6e76a0;    /* 보조 텍스트 */
  --hair: #c9c8cf;         /* 얇은 선 */

  --hand: 'Nanum Pen Script', cursive;          /* 손글씨 (이름·태그라인·안내·&) */
  --serif: 'Cormorant Garamond', serif;         /* 날짜·장소·라벨 */
}

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

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

body {
  min-height: 100vh;
  min-height: 100svh;
  background:
    radial-gradient(130% 90% at 50% 0%, #faf7f1 0%, var(--paper) 60%, #efe9de 100%);
  color: var(--navy);
  font-family: var(--serif);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* ---------- 레이아웃 ---------- */
.invite {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding:
    calc(env(safe-area-inset-top) + 2rem)
    1.5rem
    calc(env(safe-area-inset-bottom) + 2rem);
}

.invite__inner {
  width: 100%;
  max-width: 22rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* ---------- 이름 ---------- */
.names {
  display: flex;
  align-items: baseline;
  justify-content: center;
  font-family: var(--hand);
  font-weight: 400;
  font-size: clamp(3.4rem, 18vw, 4.4rem);
  line-height: 1.05;
  color: var(--navy-deep);
  opacity: 0;
  animation: rise 1s ease forwards 0.4s;
}

.names__amp {
  margin: 0 0.12em;
  font-family: var(--hand);
  font-weight: 400;
  font-size: 0.9em;
  color: var(--navy-deep);
}

/* ---------- 태그라인 (손글씨) ---------- */
.tagline {
  margin-top: 0.7rem;
  font-family: var(--hand);
  font-weight: 400;
  font-size: 1.6rem;
  line-height: 1.3;
  color: var(--navy);
  opacity: 0;
  animation: rise 1s ease forwards 0.6s;
}

/* 얇은 세로 구분선 */
.rule {
  width: 1px;
  height: 2.4rem;
  margin: 1.5rem 0 1.4rem;
  background: linear-gradient(var(--hair), transparent);
  opacity: 0;
  animation: grow 1s ease forwards 0.75s;
  transform-origin: top;
}

/* ---------- 날짜 / 장소 ---------- */
.date {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.05rem;
  letter-spacing: 0.22em;
  text-indent: 0.22em;
  color: var(--navy-deep);
  opacity: 0;
  animation: rise 1s ease forwards 0.9s;
}

.venue {
  margin-top: 0.5rem;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.02rem;
  letter-spacing: 0.04em;
  color: var(--navy-soft);
  opacity: 0;
  animation: rise 1s ease forwards 1.0s;
}

/* ---------- 상태 (Coming Soon) ---------- */
.status {
  margin-top: 2.2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  opacity: 0;
  animation: rise 1.1s ease forwards 1.15s;
}

.status__label {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 0.72rem;
  letter-spacing: 0.46em;
  text-indent: 0.46em;
  color: var(--navy-deep);
}

.status__note {
  font-family: var(--hand);
  font-size: 1.25rem;
  line-height: 1.2;
  color: var(--navy-soft);
  word-break: keep-all;
}

.dday {
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.92rem;
  letter-spacing: 0.1em;
  color: var(--navy-soft);
}

/* ---------- 애니메이션 ---------- */
@keyframes rise {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes grow {
  from { opacity: 0; transform: scaleY(0); }
  to   { opacity: 1; transform: scaleY(1); }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; opacity: 1 !important; transform: none !important; }
}

/* 큰 화면에서도 단정하게 (콘텐츠는 모바일 폭 유지) */
@media (min-width: 600px) {
  .names { font-size: 3.9rem; }
}
