/* ═══════════════════════════════════════════════
   이종석 × 노재석 — 2027.05.13
   인트로 터미널 + 스크롤 배경 보간 청첩장
   ═══════════════════════════════════════════════ */

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

:root {
  --ink:    #2B322C;   /* 밝은 배경 위 글자색 */
  --paper:  #FAFBF6;   /* 어두운 배경 위 글자색 */
  --sky:    #8CADD3;
  --mist:   #C0CEDA;
  --sage:   #8FA98E;
  --forest: #5F7A63;
  --bone:   #F4F5F0;
  --clay:   #C4756B;   /* 낭만 4 게이지 */

  --sans:    'Pretendard Variable', Pretendard, 'Apple SD Gothic Neo', system-ui, sans-serif;
  --display: 'Bricolage Grotesque', sans-serif;
  --mono:    'Space Mono', monospace;

  --gutter: max(28px, calc((100% - 480px) / 2));
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  font-weight: 400;
  letter-spacing: -0.01em;
  text-wrap: pretty;
  background: var(--sky);
  color: var(--ink);
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
}

/* .rsvp-form / .rsvp-done 처럼 display를 지정한 요소도 hidden이 이기도록 */
[hidden] { display: none !important; }

a { color: inherit; text-decoration: none; }
a:hover { opacity: 0.72; }
input, textarea, button { font-family: inherit; }
input:focus, textarea:focus { outline: none; }
img { display: block; }
::selection { background: rgba(140, 173, 211, 0.4); }

.dim { opacity: 0.55; }
.tabular { font-variant-numeric: tabular-nums; }


/* ═══════════ 인트로 터미널 ═══════════ */
#intro {
  position: fixed; inset: 0; z-index: 9999;
  background: #0D0D0D;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
}

#confetti-canvas {
  position: fixed; inset: 0; z-index: 10000;
  pointer-events: none;
}

.terminal {
  width: 100%; max-width: 480px;
  background: #1A1A1A;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.6);
}

.terminal-bar {
  background: #2D2D2D;
  padding: 12px 16px;
  display: flex; align-items: center; gap: 6px;
}

.t-dot { width: 12px; height: 12px; border-radius: 50%; background: #555; }
.t-dot:nth-child(1) { background: #FF5F56; }
.t-dot:nth-child(2) { background: #FFBD2E; }
.t-dot:nth-child(3) { background: #27C93F; }

.t-title {
  font-family: var(--mono);
  font-size: 11px;
  color: #666;
  margin-left: 8px;
}

.terminal-body {
  padding: 24px 20px 28px;
  display: flex; flex-direction: column; gap: 8px;
  min-height: 200px;
}

.t-line {
  font-family: var(--mono);
  font-size: 13px;
  color: #ccc;
  line-height: 1.6;
  display: none;
}
.t-line.show { display: block; }

.prompt { color: #27C93F; margin-right: 8px; }
.final-text { color: #FFE500; font-weight: 700; }

.cursor {
  display: inline-block;
  width: 8px; height: 14px;
  background: #ccc;
  vertical-align: middle;
  animation: blink 0.8s step-end infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.intro-btn {
  display: none;
  margin-top: 20px;
  background: var(--forest);
  color: var(--paper);
  border: none;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 1px;
  padding: 12px 24px;
  cursor: pointer;
  border-radius: 4px;
  transition: background 0.2s, transform 0.1s;
}
.intro-btn:hover { background: #4e6552; }
.intro-btn:active { transform: scale(0.97); }
.intro-btn.show { display: block; }

/* 타이핑이 끝나기 전에 바로 들어가고 싶은 사람을 위해 */
.intro-skip {
  position: absolute;
  top: max(16px, env(safe-area-inset-top));
  right: 16px;
  background: transparent;
  border: none;
  color: #777;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  padding: 10px 12px;
  cursor: pointer;
  transition: color 0.2s;
}
.intro-skip:hover { color: #ccc; }


/* ═══════════ 레이아웃 ═══════════ */
#main { display: none; }

.page {
  position: relative;
  width: 100%;
  min-height: 100vh;
  overflow: hidden;
  background: var(--page-bg, var(--sky));
  /* 밝은 배경 ↔ 어두운 배경 구간을 지날 때 글자색이 튀지 않고 넘어가도록.
     배경은 매 프레임 계산되므로 전환을 걸지 않습니다(끌리는 느낌이 남). */
  transition: color 0.45s ease;
}

/* 각 섹션은 투명 — 배경색은 스크롤에 따라 .page가 보간합니다 */
.sec {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px var(--gutter);
  text-align: center;
  overflow: hidden;
}

.eyebrow {
  font-family: var(--display);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.14em;
  opacity: 0.7;
}
.eyebrow.tight { font-size: 12px; letter-spacing: 0.16em; opacity: 0.8; }

.sec-title {
  font-weight: 700;
  font-size: 26px;
  letter-spacing: -0.025em;
  margin-top: 10px;
  margin-bottom: 26px;
}
.sec-title.big { font-size: 28px; margin-bottom: 0; }

/* 드레스 코드 안내 한 줄에만 쓰입니다 (다른 구역에는 영향 없음) */
.sec-lead {
  font-size: 13.5px;
  line-height: 1.6;
  opacity: 0.72;
  margin: -14px 0 24px;
  word-break: keep-all;
  /* body에 걸어둔 text-wrap: pretty 를 이 문단에서만 끕니다.
     pretty는 마지막 줄이 짧아지는 걸 피하려고 줄바꿈 위치를 앞으로 당기는데,
     그러면 <br/>로 직접 잡아둔 줄 나눔과 어긋나 엉뚱한 데서 끊깁니다. */
  text-wrap: wrap;
}

.card {
  border: 2px solid currentColor;
  border-radius: 22px;
  background: color-mix(in srgb, currentColor 7%, transparent);
}

.pill {
  display: inline-block;
  padding: 10px 18px;
  border: 2px solid currentColor;
  border-radius: 100px;
  background: transparent;
  color: inherit;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
}

.grid-2 {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

/* 떠다니는 블롭 */
.blob {
  position: absolute;
  opacity: 0.5;
  pointer-events: none;
  animation: floaty 7s ease-in-out infinite;
}
@keyframes floaty {
  0%, 100% { transform: translateY(0) rotate(var(--r, 0deg)); }
  50%      { transform: translateY(-14px) rotate(var(--r, 0deg)); }
}
.blob-a {
  top: -40px; left: -50px; width: 180px; height: 180px;
  background: var(--mist);
  border-radius: 42% 58% 63% 37% / 41% 44% 56% 59%;
  --r: -8deg;
}
.blob-b {
  bottom: 120px; right: -40px; width: 150px; height: 150px;
  background: var(--sage);
  border-radius: 63% 37% 45% 55% / 55% 48% 52% 45%;
  --r: 10deg;
  animation-duration: 9s;
}
.blob-c {
  top: 60px; left: -30px; width: 120px; height: 120px;
  background: var(--sky);
  border-radius: 63% 37% 45% 55% / 55% 48% 52% 45%;
  --r: -6deg;
  animation-duration: 8s;
}
.blob-d {
  bottom: 70px; right: -24px; width: 100px; height: 100px;
  background: var(--mist);
  border-radius: 42% 58% 63% 37% / 41% 44% 56% 59%;
  --r: 9deg;
  animation-duration: 6.5s;
}


/* ═══════════ Hero ═══════════ */
.sec-hero { padding: 64px var(--gutter); }
/* 스티커 사진(z-index:0)이 이름·날짜를 가리지 않도록 글자를 위로 */
.sec-hero > .eyebrow,
.sec-hero > .hero-title,
.sec-hero > .hero-names,
.sec-hero > .hero-sub,
.sec-hero > .hero-meta { position: relative; z-index: 1; }

.hero-title {
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: -0.035em;
  /* 'LEE JONGSEOK'이 좁은 화면에서도 한 줄에 들어가도록 */
  font-size: clamp(34px, 12vw, 60px);
  line-height: 0.9;
  margin-top: 18px;
}
.hero-x { font-size: 0.58em; display: inline-block; margin: 6px 0; }

.hero-names { margin-top: 22px; font-weight: 700; font-size: 24px; letter-spacing: -0.02em; }
.hero-sub   { margin-top: 6px; font-weight: 500; font-size: 17px; opacity: 0.85; }

/* 날짜와 장소를 두 줄로 — 한 줄로 두면 폭이 넓어져 오른쪽 스티커 사진과 겹칩니다 */
.hero-meta {
  margin-top: 22px;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  font-family: var(--display);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.02em;
}
.hero-place { font-size: 14px; opacity: 0.85; }

.hero-sticker {
  position: absolute;
  bottom: 64px; right: -18px;
  /* 이 크기를 키우면 왼쪽 글자와 겹칩니다 (히어로 문구 폭 기준으로 맞춘 값) */
  height: min(34svh, 285px);
  width: auto;
  z-index: 0;
  pointer-events: none;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.22));
}

.marquee {
  position: absolute;
  bottom: 44px; left: 0;
  width: 100%;
  overflow: hidden;
  border-top: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  padding: 9px 0;
  z-index: 1;
  /* 뒤의 스티커를 가리도록 현재 보간된 배경색을 그대로 씁니다 */
  background: var(--page-bg, var(--sky));
}
.marquee-track {
  display: inline-flex;
  white-space: nowrap;
  font-weight: 500;
  font-size: 13px;
  animation: marquee 22s linear infinite;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}


/* ═══════════ Night ═══════════ */
.sec-night {
  min-height: 82svh;
  display: flex;
  flex-direction: row;
  align-items: flex-end;
  padding: 0;
  text-align: left;
}
.night-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.night-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(to top,
    rgba(11, 14, 18, 0.78) 0%,
    rgba(11, 14, 18, 0.25) 45%,
    rgba(11, 14, 18, 0)    75%);
}
.night-body {
  position: relative;
  width: 100%;
  padding: 0 var(--gutter) 48px;
  color: var(--paper);
}
.night-text {
  margin-top: 10px;
  font-weight: 600;
  font-size: 20px;
  line-height: 1.5;
  letter-spacing: -0.02em;
  word-break: keep-all;
}

.night-rule {
  width: 44px; height: 2px;
  margin: 22px 0 18px;
  background: currentColor;
  opacity: 0.5;
}
/* Night 구역과 마무리 사진 구역은 같은 글 스타일을 씁니다 */
.night-quote-en,
.forest-en {
  font-family: var(--display);
  font-weight: 800;
  font-size: 22px;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.night-quote-ko,
.forest-ko {
  margin-top: 12px;
  font-size: 14px;
  line-height: 1.75;
  opacity: 0.9;
  word-break: keep-all;
}
.night-cite {
  margin-top: 8px;
  font-size: 11.5px;
  font-style: italic;
  opacity: 0.65;
}


/* ═══════════ 마무리 전체 사진 ═══════════ */
.sec-forest {
  min-height: 82svh;
  flex-direction: row;
  align-items: flex-end;
  padding: 0;
  text-align: left;
}
.forest-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.forest-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(to top,
    rgba(11, 14, 18, 0.86) 0%,
    rgba(11, 14, 18, 0.34) 44%,
    rgba(11, 14, 18, 0)    74%);
}
.forest-body {
  position: relative;
  width: 100%;
  padding: 0 var(--gutter) 48px;
  color: var(--paper);
}


/* ═══════════ Couple ═══════════ */
.couple-card { width: 100%; padding: 24px 20px; }

.couple-hero {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  margin: 0 auto 18px;
  border-radius: 16px;
  border: 2px solid currentColor;
  overflow: hidden;
}
.couple-hero img { width: 100%; height: 100%; object-fit: cover; }

.couple-names {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  font-weight: 700; font-size: 18px; letter-spacing: -0.02em;
  margin-bottom: 22px;
}
.who { display: inline-flex; align-items: center; gap: 6px; }
.badge {
  font-family: var(--display);
  font-weight: 800;
  font-size: 11px;
  padding: 3px 7px;
  border-radius: 8px;
  color: var(--ink);
}
.badge.p1 { background: var(--sky); }
.badge.p2 { background: var(--sage); }

.stat-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

.nick {
  font-weight: 600;
  font-size: 13px;
  padding: 5px 0;
  margin-bottom: 12px;
  border-radius: 100px;
  background: color-mix(in srgb, currentColor 10%, transparent);
}

.bars { display: flex; flex-direction: column; gap: 10px; }
.bar-head {
  display: flex; justify-content: space-between;
  font-size: 11px; margin-bottom: 3px;
}
.bar-head .num { font-family: var(--display); font-weight: 700; }

.bar-track {
  height: 8px;
  border-radius: 100px;
  overflow: hidden;
  background: color-mix(in srgb, currentColor 15%, transparent);
}

.bar-fill {
  height: 100%;
  width: 0;
  border-radius: 100px;
  background: currentColor;
  transition: width 1.1s cubic-bezier(.2, .8, .2, 1);
}
.bar-fill.danger { background: var(--clay); }



/* ═══════════ Numbers ═══════════ */
.sec-numbers .sec-title { margin-bottom: 14px; }
.numbers-sticker {
  width: 190px; height: auto;
  margin-bottom: 16px;
  transform: rotate(-3deg);
  filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.16));
}

.num-card { padding: 24px 14px; }
.num-value {
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
  font-size: 40px;
  line-height: 1;
}
.num-unit { font-weight: 600; font-size: 13px; opacity: 0.7; margin-top: 4px; }
.num-desc { font-size: 12px; line-height: 1.55; margin-top: 10px; opacity: 0.82; word-break: keep-all; }


/* ═══════════ Message ═══════════ */
.sec-message { padding: 90px var(--gutter); }

/* 초대글도 다른 섹션과 같은 카드 안에 담아 통일감을 맞춥니다 */
.message-card {
  width: 100%;
  padding: 30px 22px;
  text-align: center;
}
.message-sticker {
  width: 230px; height: auto;
  margin-bottom: 26px;
  transform: rotate(2deg);
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.2));
}
.message-dream {
  margin-top: 22px;
  font-weight: 600;
  font-size: 17px;
  line-height: 1.95;
  letter-spacing: -0.02em;
  word-break: keep-all;
}
.message-rule {
  width: 160px; height: 1px;
  margin: 26px auto;
  background: currentColor;
  opacity: 0.28;
}
.message-para {
  font-size: 14.5px;
  line-height: 2;
  text-align: left;
  word-break: keep-all;
}
.message-para + .message-para { margin-top: 16px; }
.message-para b { font-weight: 700; }

.message-sig {
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: -0.02em;
  font-size: 18px;
  margin-top: 34px;
}


/* ═══════════ 영화 대사 (구역 사이 쉼표) ═══════════
   카드 없이 줄글로만 — 앞뒤 카드 구역과 리듬을 바꿔주는 역할입니다 */
.sec-quote {
  min-height: 62svh;
  padding: 72px max(32px, calc((100% - 440px) / 2));
}

.quote { max-width: 420px; }

.quote-ko {
  font-weight: 600;
  font-size: 17px;
  line-height: 1.9;
  letter-spacing: -0.02em;
  word-break: keep-all;
}

.quote-en {
  margin-top: 16px;
  font-size: 12.5px;
  font-style: italic;
  line-height: 1.75;
  opacity: 0.68;
  word-break: keep-all;
}

.quote-src {
  display: block;
  margin-top: 18px;
  font-family: var(--display);
  font-weight: 700;
  font-style: normal;
  font-size: 12px;
  letter-spacing: 0.08em;
  opacity: 0.8;
}


/* ═══════════ When & Where ═══════════ */
.when-stack { width: 100%; display: flex; flex-direction: column; gap: 14px; margin-top: 26px; }
.when-card { padding: 24px 20px; }
.when-label {
  font-family: var(--display);
  font-weight: 700; font-size: 12px;
  opacity: 0.7; letter-spacing: 0.14em;
}
.when-big {
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
  font-size: 46px;
  line-height: 1;
  margin: 8px 0;
}
.when-venue { font-size: 36px; letter-spacing: -0.035em; }
.when-sub { font-size: 13px; opacity: 0.8; line-height: 1.6; }
.when-name { font-size: 18px; font-weight: 700; letter-spacing: -0.02em; margin: 8px 0 2px; }
.when-name.big { font-size: 26px; margin-top: 10px; }
.when-en {
  font-family: var(--display);
  font-weight: 700; font-size: 12.5px;
  letter-spacing: 0.06em;
  opacity: 0.65;
  margin-bottom: 10px;
}
.when-card .pill { margin-top: 14px; }

/* 본식 카드 — 유일하게 색을 채워 시선을 잡습니다 */
.ceremony-card {
  border-radius: 22px;
  padding: 30px 20px;
  background: var(--forest);
  color: var(--paper);
}
.ceremony-label {
  font-family: var(--display);
  font-weight: 700; font-size: 11.5px;
  letter-spacing: 0.14em;
  opacity: 0.75;
}
.ceremony-date {
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
  font-size: clamp(44px, 15vw, 68px);
  line-height: 1;
  margin: 10px 0 6px;
}
.ceremony-sub { font-size: 14px; font-weight: 600; opacity: 0.9; }

.contact-row {
  display: flex; gap: 10px; margin-top: 16px;
  flex-wrap: wrap; justify-content: center;
}
.contact-row .pill { font-weight: 400; }


/* ═══════════ Schedule ═══════════ */
.sched-stack { width: 100%; display: flex; flex-direction: column; gap: 12px; }
.sched-card { position: relative; padding: 24px 20px; text-align: left; }
.sched-card.highlight { background: color-mix(in srgb, currentColor 16%, transparent); }

.sched-badge {
  position: absolute; top: -12px; right: 16px;
  font-weight: 600; font-size: 12px;
  padding: 4px 12px;
  border-radius: 100px;
  background: var(--forest);
  color: var(--paper);
}
.sched-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 12px; }
.sched-num {
  font-family: var(--display);
  font-weight: 800; letter-spacing: 0.02em; font-size: 16px;
}
.sched-date { font-size: 12px; opacity: 0.72; }

.sched-title { font-size: 17px; font-weight: 800; letter-spacing: -0.02em; }
.sched-desc {
  font-size: 13px;
  line-height: 1.65;
  opacity: 0.78;
  margin-top: 5px;
  word-break: keep-all;
}
.sched-desc + .sched-item {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid color-mix(in srgb, currentColor 18%, transparent);
}

.sched-item { display: flex; gap: 14px; align-items: center; padding: 4px 0; font-size: 14px; }
.sched-time {
  font-family: var(--display);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  min-width: 52px;
}
.sched-note { font-size: 12px; opacity: 0.7; margin-top: 18px; word-break: keep-all; }


/* ═══════════ Dress Code ═══════════ */
.dress-stack { width: 100%; display: flex; flex-direction: column; gap: 14px; }
.dress-card { padding: 24px 20px; text-align: left; }

.dress-head { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.dress-day {
  font-family: var(--display);
  font-weight: 800; font-size: 11px;
  letter-spacing: 0.08em;
  padding: 3px 8px;
  border-radius: 8px;
  background: color-mix(in srgb, currentColor 20%, transparent);
}
.dress-when { font-size: 11.5px; font-weight: 600; opacity: 0.7; }

.dress-name { font-size: 19px; font-weight: 800; letter-spacing: -0.02em; }
.dress-en {
  font-family: var(--display);
  font-weight: 600; font-size: 12.5px;
  letter-spacing: 0.02em;
  opacity: 0.65;
  margin-top: 2px;
}

/* Day 1 무도회 무드 이미지 */
.dress-figure { margin-top: 14px; }
.dress-img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid color-mix(in srgb, currentColor 25%, transparent);
}

/* flex를 쓰면 <b>가 별도 플렉스 아이템이 되어 gap이 글자 사이에 끼어듭니다 */
.dress-list { list-style: none; margin-top: 14px; display: flex; flex-direction: column; gap: 8px; }
.dress-list li {
  position: relative;
  padding-left: 14px;
  font-size: 13.5px;
  line-height: 1.55;
  word-break: keep-all;
}
.dress-list li::before {
  content: '·';
  position: absolute;
  left: 3px;
  font-weight: 800;
}
.dress-list b { font-weight: 700; }

/* 팬톤 컬러 칩 */
.swatches { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 14px; }
.swatch {
  border: 1px solid color-mix(in srgb, currentColor 25%, transparent);
  border-radius: 8px;
  overflow: hidden;
  background: color-mix(in srgb, currentColor 5%, transparent);
}
.swatch-chip {
  height: 62px;
  border-bottom: 1px solid color-mix(in srgb, currentColor 25%, transparent);
}
.swatch-brand,
.swatch-code,
.swatch-name { padding: 0 7px; }
.swatch-brand { font-size: 8px; font-weight: 800; letter-spacing: 0.04em; padding-top: 6px; }
.swatch-code { font-size: 8.5px; opacity: 0.7; margin-top: 1px; }
.swatch-name { font-size: 9px; font-weight: 700; margin-top: 1px; padding-bottom: 7px; }


/* ═══════════ Sticker Pack ═══════════ */
.sec-stickers { padding: 80px max(24px, calc((100% - 480px) / 2)); }
.sticker-grid {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 6px;
  row-gap: 16px;
  align-items: end;
}
.sticker-grid img {
  object-fit: contain;
  object-position: bottom;
  /* 흰 테두리 + 무지개 테두리는 photos/rim/ 이미지에 구워져 있습니다.
     drop-shadow를 방향별로 쌓아 실시간으로 그려봤더니 프레임이 156ms(약 6fps)까지
     떨어졌습니다 — 이미지마다 레이어를 9번 다시 렌더하기 때문입니다.
     원본은 photos/ 에 그대로 있고, 색을 바꾸려면 tools/bake-rim.py 를 다시 돌리세요. */
  filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.16));
}

/* 왼쪽 / 오른쪽 / 가로 전체 — 살짝 겹치게 넘겨 붙입니다 */
.s-l    { width: calc(100% + 14px); }
.s-r    { width: calc(100% + 14px); margin-left: -14px; }
.s-wide { grid-column: span 2; width: calc(100% + 20px); margin-left: -10px; object-position: center; }

.h150 { height: 150px; } .h175 { height: 175px; } .h180 { height: 180px; }
.h185 { height: 185px; } .h190 { height: 190px; } .h195 { height: 195px; }
.h200 { height: 200px; } .h210 { height: 210px; } .h215 { height: 215px; }
.h235 { height: 235px; }

.r-4 { transform: rotate(-4deg); } .r-3 { transform: rotate(-3deg); } .r-2 { transform: rotate(-2deg); }
.r2  { transform: rotate(2deg); }  .r3  { transform: rotate(3deg); }  .r4  { transform: rotate(4deg); }

.z1 { z-index: 1; } .z2 { z-index: 2; } .z3 { z-index: 3; }

.pull12 { margin-top: -12px; } .pull14 { margin-top: -14px; } .pull16 { margin-top: -16px; }


/* ═══════════ Guide (알아두세요) ═══════════ */
.guide-card { padding: 22px 18px; text-align: left; }
.guide-icon { font-size: 26px; margin-bottom: 10px; }
.guide-title { font-weight: 700; font-size: 15px; letter-spacing: -0.02em; margin-bottom: 8px; }
.guide-body { font-size: 12px; line-height: 1.65; opacity: 0.82; word-break: keep-all; }


/* ═══════════ RSVP ═══════════ */
.sec-rsvp { padding: 80px max(28px, calc((100% - 460px) / 2)); }
.rsvp-sub { font-size: 14px; opacity: 0.82; margin-top: 8px; }

.rsvp-form {
  width: 100%;
  margin-top: 28px;
  display: flex; flex-direction: column; gap: 18px;
  text-align: left;
}

/* #going-only 안의 필드들도 폼과 같은 간격을 유지해야 합니다 */
#going-only { display: flex; flex-direction: column; gap: 18px; }

.field label, .field-label {
  display: block;
  font-weight: 600;
  font-size: 13px;
  margin-bottom: 8px;
}
.field-hint { font-size: 11.5px; opacity: 0.65; margin: -4px 0 10px; }

.rsvp-form input[type="text"],
.rsvp-form textarea,
.rsvp-form select {
  width: 100%;
  padding: 13px 16px;
  border: 2px solid currentColor;
  border-radius: 12px;
  background: transparent;
  color: inherit;
  font-size: 14px;
}
.rsvp-form textarea { resize: none; }
.rsvp-form ::placeholder { color: currentColor; opacity: 0.5; }

/* 기본 화살표를 지우고 직접 그립니다 (배경이 투명해야 하므로) */
.rsvp-form select {
  appearance: none;
  cursor: pointer;
  padding-right: 40px;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%),
                    linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: calc(100% - 20px) center, calc(100% - 14px) center;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}
/* 드롭다운 목록은 OS가 그리므로 대비되는 색을 직접 지정합니다 */
.rsvp-form select option { color: var(--ink); background: var(--paper); }

.choice-row { display: flex; gap: 10px; }
.choice-col { display: flex; flex-direction: column; gap: 8px; }

/* 라디오는 숨기고 라벨을 버튼처럼 — 값은 폼으로 그대로 전송됩니다 */
.choice {
  flex: 1;
  margin: 0;
  padding: 12px;
  border: 2px solid currentColor;
  border-radius: 12px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  background: transparent;
  transition: background 0.15s;
}
.choice.sm { padding: 11px 0; font-size: 13px; }
/* 일정 선택처럼 한 줄을 다 쓰는 항목 — 라벨 왼쪽, 날짜 오른쪽 */
.choice.wide {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  text-align: left;
  padding: 13px 16px;
  font-size: 13.5px;
}
.choice-side { font-size: 11.5px; font-weight: 600; opacity: 0.6; white-space: nowrap; }
.choice input { position: absolute; opacity: 0; width: 0; height: 0; }
.choice:has(input:checked) { background: color-mix(in srgb, currentColor 22%, transparent); }
.choice:has(input:focus-visible) { outline: 2px solid currentColor; outline-offset: 2px; }

.submit-btn {
  /* background:currentColor를 쓰므로 버튼이 UA 기본색을 물려받지 않게 해야 합니다 */
  color: inherit;
  padding: 15px;
  border: none;
  border-radius: 100px;
  cursor: pointer;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.01em;
  background: currentColor;
}
.submit-btn span { color: var(--forest); }
.submit-btn:disabled { opacity: 0.6; cursor: default; }

.form-error { font-size: 13px; font-weight: 600; color: #FFD9D2; text-align: center; }

.rsvp-done {
  margin-top: 36px;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.done-emoji { font-size: 48px; }
.done-title { font-weight: 700; font-size: 22px; letter-spacing: -0.02em; }
.done-sub   { font-size: 14px; opacity: 0.82; line-height: 1.7; word-break: keep-all; }
.done-en    { font-size: 12px; font-style: italic; opacity: 0.62; line-height: 1.6; }


/* ═══════════ Footer ═══════════ */
.sec-footer {
  min-height: 70svh;
  padding: 80px max(32px, calc((100% - 460px) / 2));
  border-top: 2px dashed rgba(250, 251, 246, 0.3);
}
.footer-title {
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: -0.035em;
  font-size: clamp(30px, 9.8vw, 42px);
  line-height: 0.92;
}
.footer-x { font-size: 0.57em; display: inline-block; opacity: 0.7; }
.footer-date {
  margin-top: 22px;
  font-family: var(--display);
  font-weight: 600; font-size: 11.5px; letter-spacing: 0.1em;
  opacity: 0.7;
}
#to-top { margin-top: 36px; }


/* ═══════════ 접근성 ═══════════ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .blob, .marquee-track { animation: none; }
  .bar-fill { transition: none; }
}

/* :has()를 지원하지 않는 구형 브라우저 — 선택 표시는 JS가 클래스로 처리 */
.choice.is-checked { background: color-mix(in srgb, currentColor 22%, transparent); }
