/* =====================================================================
   KILLER GOLF · VIP EVENT — RSVP
   초대장 인쇄 시안(Figma 57:2 / 57:3)의 디자인 언어를 웹으로 옮긴 것.
   모바일 우선 — QR로 진입하는 트래픽이 대부분이다.
   ===================================================================== */

:root {
  --gold:        #b89355;
  --gold-bright: #c8a45a;
  --sand:        #d6c7ad;
  --ink:         #222222;
  --ink-70:      rgba(34, 34, 34, 0.72);
  --ink-55:      rgba(34, 34, 34, 0.58);
  --cream:       #f6f2ea;
  --cream-soft:  #f2ede2;
  --dark:        #0a0a0a;

  --f-display: "Playfair Display", "Times New Roman", serif;
  --f-sans:    "Montserrat", -apple-system, "Helvetica Neue", Arial, sans-serif;
  --f-kr:      "Noto Sans KR", -apple-system, "Apple SD Gothic Neo",
               "Malgun Gothic", sans-serif;

  --pad: clamp(22px, 6.4vw, 40px);
}

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

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

body {
  margin: 0;
  min-height: 100dvh;
  background: #14120f;
  font-family: var(--f-kr);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, p, dl, dd, figure { margin: 0; }
dt, dd { margin: 0; }

/* --- 시트 (초대장 카드) --------------------------------------------- */

.sheet {
  position: relative;
  max-width: 560px;
  margin: 0 auto;
  min-height: 100dvh;
  overflow: hidden;
  background: linear-gradient(to bottom, #faf6ef 0%, #f6f2ea 55%, #f1ebde 100%);
}

/* 초대장의 이중 골드 프레임 */
.frame {
  position: absolute;
  pointer-events: none;
  z-index: 3;
  border: 1px solid;
}
.frame--outer { inset: 7px;  border-color: rgba(200, 164, 90, 0.5); }
.frame--inner { inset: 12px; border-color: rgba(200, 164, 90, 0.22); }

/* 밴드 상/하단 골드 헤어라인 (양끝 페이드) */
.hairline {
  position: absolute;
  left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg,
    rgba(200, 164, 90, 0) 0%,
    rgba(200, 164, 90, 0.85) 18%,
    rgba(200, 164, 90, 0.85) 82%,
    rgba(200, 164, 90, 0) 100%);
}
.hairline--top    { top: 0; }
.hairline--bottom { bottom: 0; }

/* --- 공통 타이포 ----------------------------------------------------- */

.eyebrow {
  font-family: var(--f-sans);
  font-weight: 600;
  font-size: clamp(10px, 2.8vw, 12px);
  line-height: 1.2;
  letter-spacing: 0.42em;
  /* 마지막 글자 뒤의 letter-spacing 상쇄 (중앙정렬 시 왼쪽으로 밀리는 것 보정) */
  padding-left: 0.42em;
  text-transform: uppercase;
}
.eyebrow--gold { color: var(--gold-bright); }
.eyebrow--sand { color: var(--sand); }

.rule-v {
  display: block;
  width: 1px;
  height: 34px;
  margin: 16px auto;
  background: rgba(184, 147, 85, 0.8);
}

.req { color: var(--gold); font-weight: 400; }

/* =====================================================================
   HERO
   ===================================================================== */

.hero {
  position: relative;
  padding: clamp(46px, 12vw, 68px) var(--pad) clamp(30px, 8vw, 44px);
  text-align: center;
  overflow: hidden;
  isolation: isolate;
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(to bottom, rgba(10, 10, 10, 0.52), rgba(10, 10, 10, 0.74)),
    url("assets/hero-band.jpg") center / cover no-repeat;
}
.hero__watermark {
  position: absolute;
  z-index: -1;
  top: 8%; left: 50%;
  width: 116%;
  transform: translateX(-50%);
  opacity: 0.13;
  pointer-events: none;
}
.hero__players {
  position: absolute;
  z-index: -1;
  right: -14%;
  bottom: 0;
  width: 82%;
  max-width: 380px;
  opacity: 0.4;
  pointer-events: none;
}

.hero__inner { position: relative; }

.hero__title {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(46px, 15vw, 82px);
  line-height: 0.98;
  letter-spacing: 0.01em;
  color: var(--cream);
}

.wordmark {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(12px, 4vw, 20px);
  margin-top: clamp(14px, 4vw, 20px);
  font-family: var(--f-sans);
  font-weight: 700;
  font-size: clamp(12px, 3.4vw, 15px);
  letter-spacing: 0.42em;
  padding-left: 0.42em;
  color: var(--gold-bright);
  white-space: nowrap;
}
.wordmark__rule {
  flex: 1 1 auto;
  max-width: 68px;
  height: 1px;
  background: rgba(184, 147, 85, 0.55);
}

.hero__lead {
  margin-top: clamp(18px, 5vw, 26px);
  font-size: clamp(13px, 3.6vw, 15px);
  line-height: 1.75;
  letter-spacing: 0.01em;
  color: rgba(242, 237, 226, 0.78);
}

.with {
  margin-top: clamp(30px, 8vw, 42px);
  padding-top: clamp(22px, 6vw, 30px);
  border-top: 1px solid rgba(200, 164, 90, 0.28);
}
.with__names {
  margin-top: 12px;
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(22px, 6.6vw, 30px);
  line-height: 1.42;
  letter-spacing: 0.03em;
  color: var(--cream);
}
.with__names .amp {
  font-style: italic;
  color: var(--gold-bright);
}

/* =====================================================================
   행사 정보
   ===================================================================== */

.facts {
  padding: clamp(28px, 7vw, 40px) var(--pad);
}
.fact {
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: clamp(12px, 4vw, 20px);
  align-items: baseline;
  padding: clamp(13px, 3.6vw, 17px) 0;
}
.fact + .fact { border-top: 1px solid rgba(184, 147, 85, 0.22); }
.fact dt {
  font-family: var(--f-sans);
  font-weight: 600;
  font-size: 10px;
  letter-spacing: 0.24em;
  color: var(--gold);
  text-transform: uppercase;
}
.fact dd {
  font-size: clamp(15px, 4.2vw, 17px);
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--ink);
}
.fact__sub {
  font-weight: 400;
  color: var(--ink-55);
}

/* =====================================================================
   RSVP
   ===================================================================== */

.rsvp {
  padding: clamp(6px, 2vw, 10px) var(--pad) clamp(38px, 10vw, 54px);
}

.sec-head {
  display: flex;
  align-items: center;
  gap: 16px;
}
.sec-head__rule {
  flex: none;
  width: 26px; height: 1px;
  background: var(--gold);
}
.sec-head__label {
  flex: none;
  font-family: var(--f-sans);
  font-weight: 700;
  font-size: clamp(13px, 3.6vw, 15px);
  line-height: 1.2;
  letter-spacing: 0.28em;
  /* 좌측정렬: 뒤쪽 letter-spacing을 잘라 헤어라인 시작점을 맞춘다 */
  margin-right: -0.28em;
  color: var(--ink);
}
.sec-head__hairline {
  flex: 1 1 auto;
  height: 1px;
  background: rgba(184, 147, 85, 0.3);
}

.rsvp__intro {
  margin-top: clamp(18px, 4.6vw, 22px);
  font-size: clamp(15px, 4.2vw, 17px);
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.rsvp__deadline {
  margin-top: 6px;
  font-size: clamp(13px, 3.6vw, 14px);
  color: var(--ink-70);
}
.rsvp__deadline strong {
  font-weight: 700;
  color: var(--ink);
}

/* 불참 회신 — 눈에 띄지 않는 보조 동선 */
.decline {
  margin-top: clamp(20px, 5vw, 26px);
  text-align: center;
}
.decline__link {
  padding: 8px 4px;
  font-family: var(--f-kr);
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-55);
  background: none;
  border: 0;
  border-bottom: 1px solid rgba(184, 147, 85, 0.4);
  cursor: pointer;
}
.decline__link:hover { color: var(--ink-70); }
.decline__link:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* 불참 모드 — 폼 전체 톤을 한 단계 낮춘다 */
.form[data-mode="no"] .btn {
  color: var(--ink);
  background: transparent;
  border-color: var(--gold);
}
.form[data-mode="no"] .btn:hover:not(:disabled) { background: rgba(184, 147, 85, 0.12); }

/* --- 폼 -------------------------------------------------------------- */

.form { margin-top: clamp(24px, 6vw, 32px); }

.hp {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.field {
  margin: 0 0 clamp(22px, 5.6vw, 28px);
  padding: 0;
  border: 0;
}

.label {
  display: block;
  margin-bottom: 10px;
  font-family: var(--f-sans);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--ink-70);
  text-transform: uppercase;
}
/* 한글 라벨은 자간을 좁게 */
.label:lang(ko) { font-family: var(--f-kr); letter-spacing: 0.12em; }

.input {
  width: 100%;
  min-height: 56px;
  padding: 0 16px;
  font-family: var(--f-kr);
  font-size: 16px;              /* iOS 자동 확대 방지: 16px 미만으로 낮추지 말 것 */
  letter-spacing: 0.01em;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(184, 147, 85, 0.34);
  border-radius: 0;
  appearance: none;
  transition: border-color .15s, background .15s;
}
.input::placeholder { color: rgba(34, 34, 34, 0.32); }
.input:focus {
  outline: none;
  background: #fff;
  border-color: var(--gold);
  box-shadow: inset 0 0 0 1px var(--gold);
}
.input[aria-invalid="true"] { border-color: #a4402f; box-shadow: inset 0 0 0 1px #a4402f; }

.hint {
  margin-top: 8px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--ink-55);
}

.err {
  margin-top: 8px;
  font-size: 12.5px;
  line-height: 1.5;
  color: #a4402f;
}

/* --- 동의 ------------------------------------------------------------ */

.field--consent {
  padding: clamp(16px, 4.4vw, 20px);
  background: rgba(255, 255, 255, 0.4);
  border: 1px solid rgba(184, 147, 85, 0.3);
}
.consent {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
}
.consent input {
  flex: none;
  width: 22px; height: 22px;
  margin: 1px 0 0;
  accent-color: var(--gold);
}
.consent__text {
  font-size: clamp(13.5px, 3.7vw, 14.5px);
  line-height: 1.5;
  color: var(--ink);
}

.policy {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(184, 147, 85, 0.22);
  font-size: 12.5px;
  color: var(--ink-55);
}
.policy > summary {
  cursor: pointer;
  color: var(--gold);
  font-weight: 500;
  list-style: none;
}
.policy > summary::-webkit-details-marker { display: none; }
.policy > summary::after { content: " ＋"; }
.policy[open] > summary::after { content: " －"; }
.policy__list {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 14px;
  margin-top: 12px;
  line-height: 1.6;
}
.policy__list dt {
  font-weight: 700;
  color: var(--ink-70);
  white-space: nowrap;
}
.policy__note { margin-top: 10px; line-height: 1.6; }

/* --- 버튼 ------------------------------------------------------------ */

.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 60px;
  padding: 0 20px;
  /* 라벨이 한글이라 Montserrat 대신 KR 폰트 + 좁은 자간을 쓴다 */
  font-family: var(--f-kr);
  font-weight: 700;
  font-size: clamp(14px, 4vw, 15px);
  letter-spacing: 0.1em;
  padding-left: calc(20px + 0.1em);
  color: var(--cream);
  background: var(--dark);
  border: 1px solid var(--dark);
  border-radius: 0;
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s, opacity .15s;
}
.btn:hover:not(:disabled) { background: #1c1a17; }
.btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.btn:disabled { opacity: .55; cursor: default; }
.btn.is-busy .btn__label { opacity: .6; }

.form__status {
  margin-top: 14px;
  font-size: 13px;
  line-height: 1.55;
  text-align: center;
  color: #a4402f;
}
.form__status:empty { display: none; }

/* --- 완료 화면 -------------------------------------------------------- */

/* 회신이 끝나면 상단 안내 문구는 감춘다 */
.rsvp.is-done .rsvp__intro,
.rsvp.is-done .rsvp__deadline { display: none; }

.done {
  padding: clamp(34px, 9vw, 48px) 0 0;
  text-align: center;
}
.done__seal {
  width: 54px; height: 54px;
  margin: 0 auto clamp(20px, 5vw, 26px);
  border-radius: 50%;
  background: rgba(184, 147, 85, 0.14);
  position: relative;
}
.done__seal::after {
  content: "";
  position: absolute;
  left: 50%; top: 52%;
  width: 18px; height: 10px;
  border-left: 2px solid var(--gold);
  border-bottom: 2px solid var(--gold);
  transform: translate(-50%, -50%) rotate(-45deg);
}
.done__title {
  margin-top: 14px;
  font-family: var(--f-kr);
  font-weight: 700;
  font-size: clamp(20px, 5.6vw, 24px);
  line-height: 1.4;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.done__body {
  margin-top: 12px;
  font-size: clamp(13.5px, 3.7vw, 15px);
  line-height: 1.75;
  color: var(--ink-70);
}
.done__recap {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px 18px;
  margin-top: clamp(24px, 6vw, 30px);
  padding: clamp(18px, 4.6vw, 22px);
  text-align: left;
  background: rgba(255, 255, 255, 0.45);
  border: 1px solid rgba(184, 147, 85, 0.3);
  font-size: 14px;
}
.done__recap dt {
  font-family: var(--f-sans);
  font-weight: 600;
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--gold);
  text-transform: uppercase;
  padding-top: 4px;
}
.done__recap dd { color: var(--ink); }
.done__foot {
  margin-top: clamp(20px, 5vw, 24px);
  font-size: 12.5px;
  color: var(--ink-55);
}

/* =====================================================================
   푸터
   ===================================================================== */

.foot {
  position: relative;
  padding: clamp(30px, 8vw, 42px) var(--pad) calc(clamp(30px, 8vw, 42px) + env(safe-area-inset-bottom));
  text-align: center;
  overflow: hidden;
  isolation: isolate;
}
.foot__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(rgba(10, 10, 10, 0.62), rgba(10, 10, 10, 0.62)),
    url("assets/hero-band.jpg") center / cover no-repeat;
}
.foot__line {
  margin-top: 14px;
  font-size: clamp(13px, 3.6vw, 14.5px);
  letter-spacing: 0.01em;
  color: var(--cream-soft);
}
.foot__line a {
  color: var(--cream-soft);
  text-decoration: none;
  border-bottom: 1px solid rgba(200, 164, 90, 0.45);
  padding-bottom: 2px;
  white-space: nowrap;
}
.foot__sep { margin: 0 8px; color: rgba(200, 164, 90, 0.5); }
.foot__mark {
  margin-top: clamp(22px, 6vw, 28px);
  font-family: var(--f-sans);
  font-weight: 600;
  font-size: 10px;
  letter-spacing: 0.42em;
  padding-left: 0.42em;
  color: rgba(200, 164, 90, 0.55);
}

/* =====================================================================
   반응형 / 접근성
   ===================================================================== */

@media (min-width: 561px) {
  body { padding: 40px 20px; }
  .sheet {
    min-height: 0;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
  }
}

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