/* 메모리코드 결혼식아이폰스냅 — 레퍼런스 wschupfer.com: 흰 바탕·검정 글자·굵은 소문자 워드마크·흩뿌린 사진·큰 여백
   타입 스케일(PC/모바일): 본문 17/16 · 리드 18/17 · H2 34/25 · H1 48/32 · 캡션 12.5
   여백 스케일: 섹션 간격 128/80 · 섹션 안 제목→본문 24/18 · 문단 간격 1em
   본문 단: 왼쪽 --indent(워드마크 시작선과 같은 20.8%) 에서 시작, 최대 720px */
:root {
  --ink: #111; --mute: #6f6f6f; --line: #e8e8e8; --soft: #f6f6f6;
  --pad: clamp(20px, 2.4vw, 36px); --indent: 20.8%; --col: 720px;
  --gap-sec: clamp(80px, 9vw, 128px);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: #fff; color: var(--ink); font: 400 17px/1.8 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, sans-serif; letter-spacing: -.003em; word-break: keep-all; overflow-wrap: break-word; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1px; }
img { display: block; max-width: 100%; height: auto; }
b, strong { font-weight: 650; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; background: #000; color: #fff; padding: 8px 12px; z-index: 99; }
:focus-visible { outline: 2px solid #000; outline-offset: 3px; }

/* ── 헤더: 왼쪽 햄버거, 오른쪽 ● 상담 ── */
.hdr { position: sticky; top: 0; z-index: 20; display: flex; justify-content: space-between; align-items: center; height: 72px; padding: 0 var(--pad); background: rgba(255,255,255,.94); backdrop-filter: blur(8px); }
.menu summary { list-style: none; cursor: pointer; width: 24px; display: grid; gap: 5px; padding: 10px 0; }
.menu summary::-webkit-details-marker { display: none; }
.menu summary span { height: 1.5px; background: #000; transition: transform .25s, opacity .2s; }
.menu[open] summary span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.menu[open] summary span:nth-child(2) { opacity: 0; }
.menu[open] summary span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
.menu nav { position: fixed; inset: 72px 0 auto 0; background: #fff; padding: 20px var(--pad) 56px; border-bottom: 1px solid var(--line); box-shadow: 0 30px 60px -40px rgba(0,0,0,.25); }
.menu ul { list-style: none; margin: 0; padding: 0; }
.menu li a { display: block; padding: 2px 0; text-decoration: none; font-size: clamp(34px, 6vw, 80px); font-weight: 500; line-height: 1.2; letter-spacing: -.04em; color: #c8c8c8; transition: color .2s; }
.menu li a:hover, .menu li a[aria-current] { color: #000; }
.where { text-decoration: none; font-size: 15px; display: inline-flex; align-items: center; gap: 10px; padding: 8px 0; }
.where::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #555; }
.where[aria-current] { font-weight: 600; }

/* ── 워드마크 + 첫 화면 ── */
.mark { display: block; width: fit-content; margin: clamp(48px, 6vw, 88px) 0 0 var(--indent); text-decoration: none; font-weight: 800; font-size: clamp(52px, 7.4vw, 108px); line-height: .9; letter-spacing: -.065em; }
.intro { position: relative; z-index: 2; margin: clamp(40px, 5vw, 72px) var(--pad) 0 auto; width: min(540px, calc(100% - 2 * var(--pad))); }
.intro h1 { margin: 0 0 20px; font-size: clamp(32px, 3.4vw, 48px); font-weight: 700; letter-spacing: -.045em; line-height: 1.2; }
.lead { margin: 0 0 30px; font-size: 18px; line-height: 1.8; color: #222; }
.lead a { text-decoration: underline; }
.btn { display: inline-block; padding: 14px 28px; border: 1px solid #000; border-radius: 999px; text-decoration: none; font-size: 15px; font-weight: 500; transition: background .2s, color .2s; }
.btn:hover { background: #000; color: #fff; }

/* ── 흩뿌린 사진: 12열 그리드, 사진마다 열 위치·폭·위아래 어긋남을 다르게 ── */
.collage { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: clamp(16px, 2vw, 32px); align-items: start; margin: clamp(64px, 8vw, 120px) 0 var(--gap-sec); overflow: hidden; }
.collage figure, .photo { margin: 0; }
.collage figcaption, .photo figcaption { margin-top: 10px; font-size: 12.5px; line-height: 1.5; color: var(--mute); }
.hero-collage figure:nth-child(1) { grid-column: 1 / 4; margin-left: -6vw; margin-top: 12vw; }
.hero-collage figure:nth-child(2) { grid-column: 4 / 7; }
.hero-collage figure:nth-child(3) { grid-column: 8 / 12; margin-top: 9vw; }
.hero-collage figure:nth-child(4) { grid-column: 12 / 13; margin-right: -12vw; margin-top: 2vw; }
.hero-collage figure:nth-child(5) { grid-column: 2 / 5; margin-top: 10vw; }
.hero-collage figure:nth-child(6) { grid-column: 6 / 9; margin-top: 3vw; }
.hero-collage figure:nth-child(7) { grid-column: 10 / 13; margin-top: 16vw; margin-right: -4vw; }
.hero-collage.short figure:nth-child(1) { grid-column: 2 / 6; margin: 4vw 0 0; }
.hero-collage.short figure:nth-child(2) { grid-column: 7 / 10; margin: 0; }
.hero-collage.short figure:nth-child(3) { grid-column: 10 / 13; margin: 14vw -6vw 0 0; }
.gallery { margin: 56px 0 0; }
.gallery figure:nth-child(odd) { margin-top: 6vw; }
.gallery figure:nth-child(1) { grid-column: 1 / 4; }
.gallery figure:nth-child(2) { grid-column: 4 / 7; }
.gallery figure:nth-child(3) { grid-column: 7 / 10; }
.gallery figure:nth-child(4) { grid-column: 10 / 13; }
.gallery figure:nth-child(5) { grid-column: 2 / 5; }
.gallery figure:nth-child(6) { grid-column: 5 / 9; margin-top: 2vw; }
.gallery figure:nth-child(7) { grid-column: 9 / 12; }
.gallery figure:nth-child(8) { grid-column: 12 / 13; margin-right: -10vw; }
@media (min-width: 761px) {
  .intro + .hero-collage { margin-top: -16vw; }
  .intro + .hero-collage figure:nth-child(3) { margin-top: 22vw; }
  .intro + .hero-collage figure:nth-child(4) { margin-top: 20vw; }
  .intro + .hero-collage.short figure:nth-child(2) { margin-top: 24vw; }
  .intro + .hero-collage.short figure:nth-child(3) { margin-top: 30vw; }
}
/* 본문 중간 단독 사진 */
.photo { width: min(440px, 34vw); margin: 0 0 var(--gap-sec) var(--indent); }
.photo.right { margin-left: auto; margin-right: 8%; width: min(400px, 30vw); }

/* ── 본문 단 ── */
.body { padding: 0 var(--pad); }
.sec { max-width: var(--col); margin: 0 0 var(--gap-sec) var(--indent); }
.sec.full { max-width: none; margin-left: 0; }
.sec.full > h2, .sec.full > p { margin-left: var(--indent); max-width: var(--col); }
.sec h2 { margin: 0 0 24px; font-size: clamp(25px, 2.4vw, 34px); font-weight: 650; letter-spacing: -.04em; line-height: 1.3; }
.sec h3 { margin: 0 0 8px; font-size: 18px; font-weight: 600; letter-spacing: -.025em; line-height: 1.45; }
.sec p { margin: 0 0 1em; }
.sec p:last-child { margin-bottom: 0; }
.sec .em { font-size: 19px; font-weight: 550; letter-spacing: -.02em; }
.sec .note { font-size: 14.5px; color: var(--mute); }

/* 한눈에 보기 */
.facts { display: grid; grid-template-columns: repeat(4, 1fr); max-width: 960px; margin: 0 0 var(--gap-sec) var(--indent); border-top: 1px solid #000; }
.facts div { padding: 22px 20px 0 0; }
.facts dt { font-size: 13px; color: var(--mute); }
.facts dd { margin: 6px 0 0; font-size: clamp(30px, 3.2vw, 44px); font-weight: 700; letter-spacing: -.05em; line-height: 1.1; }
.facts small { display: block; margin-top: 8px; font-size: 13.5px; font-weight: 400; letter-spacing: 0; color: var(--mute); }

/* 목록: 왼쪽 굵은 항목명 + 오른쪽 설명 */
.list, .steps, .timeline, .pick { margin: 0 0 24px; padding: 0; list-style: none; }
.list, .steps { border-top: 1px solid #000; }
.list li, .steps li { display: grid; grid-template-columns: 170px 1fr; gap: 20px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.steps { counter-reset: s; }
.steps li { grid-template-columns: 34px 150px 1fr; }
.steps li::before { counter-increment: s; content: counter(s, decimal-leading-zero); color: var(--mute); font-size: 13px; padding-top: 4px; font-variant-numeric: tabular-nums; }
.pick { margin-top: 32px; display: grid; gap: 22px; }
.pick li { padding-left: 18px; border-left: 2px solid #000; }
.pick b { display: block; margin-bottom: 2px; }

/* 상담: 세로 타임라인 */
.timeline { position: relative; margin-left: 6px; }
.timeline li { position: relative; padding: 0 0 26px 30px; border-left: 1px solid var(--line); }
.timeline li:last-child { border-left-color: transparent; padding-bottom: 0; }
.timeline li::before { content: ''; position: absolute; left: -5px; top: 9px; width: 9px; height: 9px; border-radius: 50%; background: #000; }
.timeline b { display: block; margin-bottom: 2px; }

/* 상담: 예시 메시지 */
.sample { margin: 0 0 32px; padding: 22px 26px; background: var(--soft); border-radius: 18px 18px 18px 4px; max-width: 560px; }
.sample p { margin: 0; font-size: 16px; }

/* 상담: 함께 정하는 것 (2×2) */
.sec > p + .decide { margin-top: 28px; }
.timeline + p { margin-top: 28px; }
.decide { display: grid; grid-template-columns: 1fr 1fr; gap: 32px 40px; margin: 0; }
.decide div { border-top: 1px solid #000; padding-top: 16px; }
.decide dt { font-weight: 650; margin-bottom: 6px; }
.decide dd { margin: 0; font-size: 15.5px; color: #333; }

/* 표 */
.tbl { overflow-x: auto; margin: 0 0 20px; }
table { width: 100%; border-collapse: collapse; font-size: 15.5px; line-height: 1.6; }
caption { text-align: left; font-size: 13px; color: var(--mute); padding-bottom: 12px; }
th, td { text-align: left; padding: 14px 16px 14px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { font-weight: 500; font-size: 13px; color: var(--mute); border-bottom: 1px solid #000; padding-top: 0; }
tbody th { font-weight: 600; }
td:last-child { white-space: nowrap; padding-right: 0; }
tr.sum th, tr.sum td { font-weight: 700; }
@media (min-width: 761px) { .cmp tbody th, .cmp td:nth-child(2) { white-space: nowrap; } }

/* 상담 창구 */
.contact { list-style: none; margin: 0 0 28px; padding: 0; border-top: 1px solid #000; }
.contact a { display: grid; grid-template-columns: 90px 1fr auto; align-items: baseline; gap: 16px; padding: 22px 0; border-bottom: 1px solid var(--line); text-decoration: none; transition: padding .2s; }
.contact a:hover { padding-left: 10px; }
.contact span { color: var(--mute); font-size: 14px; }
.contact b { font-size: clamp(22px, 2.4vw, 30px); font-weight: 600; letter-spacing: -.035em; }
.contact i { font-style: normal; font-size: 13.5px; color: var(--mute); }

/* FAQ */
.qa { padding: 24px 0; border-bottom: 1px solid var(--line); }
.qa:first-of-type { border-top: 1px solid #000; }
.qa p { margin: 0; font-size: 16px; color: #333; }

.related ul { list-style: none; margin: 0; padding: 0; }
.related li + li { margin-top: 6px; }
.related a { font-size: clamp(22px, 2.4vw, 30px); font-weight: 500; letter-spacing: -.035em; }
.updated { margin: 0 0 0 var(--indent); font-size: 13px; color: var(--mute); }

.top { text-align: center; margin: var(--gap-sec) 0 40px; font-size: 14px; }
.top a { text-decoration: none; }
.ftr { background: var(--soft); padding: 36px var(--pad) 40px; display: flex; justify-content: space-between; gap: 24px 40px; flex-wrap: wrap; font-size: 13px; line-height: 1.7; color: #555; }
.ftr-logo { margin: 0; font-weight: 800; font-size: 26px; letter-spacing: -.06em; color: #000; line-height: 1; }
.ftr-info p { margin: 0 0 2px; }
.ftr-info span + span::before { content: ' · '; color: #aaa; }

/* ── 태블릿 ── */
@media (max-width: 1100px) {
  :root { --indent: 12%; }
  .mark { margin-left: var(--indent); }
}

/* ── 모바일 ── */
@media (max-width: 760px) {
  :root { --indent: 0; --gap-sec: 80px; }
  body { font-size: 16px; line-height: 1.78; }
  .hdr { height: 60px; }
  .menu nav { inset: 60px 0 auto 0; }
  .mark { margin: 40px 0 0 var(--pad); font-size: 15vw; }
  .intro { margin: 36px var(--pad) 0; width: auto; }
  .intro h1 { font-size: 32px; margin-bottom: 16px; }
  .lead { font-size: 17px; margin-bottom: 26px; }
  .btn { padding: 13px 26px; }

  /* 사진: 한 장씩 좌우로 엇갈리게, 폭은 화면의 66~86% */
  .collage { display: block; margin: 56px 0 var(--gap-sec); }
  .collage figure { width: 78%; margin: 0 0 40px !important; }
  .collage figure:nth-child(even) { width: 66%; margin-left: auto !important; margin-right: var(--pad) !important; }
  .collage figure:nth-child(3n) { width: 86%; margin-left: var(--pad) !important; }
  .collage figure:last-child { margin-bottom: 0 !important; }
  .collage figcaption { padding: 0 var(--pad); }
  .collage figure:nth-child(even) figcaption, .collage figure:nth-child(3n) figcaption { padding: 0; }
  .gallery { margin-top: 40px; }
  .photo { width: 80%; margin: 0 0 var(--gap-sec); }
  .photo.right { width: 70%; margin: 0 0 var(--gap-sec) auto; }

  .sec h2 { font-size: 25px; margin-bottom: 18px; }
  .sec .em { font-size: 18px; }
  .facts { grid-template-columns: 1fr 1fr; row-gap: 26px; }
  .facts div { padding-top: 18px; }
  .facts dd { font-size: 30px; }
  .list li, .steps li { grid-template-columns: 1fr; gap: 2px; padding: 14px 0; }
  .steps li { grid-template-columns: 30px 1fr; column-gap: 8px; }
  .steps li > span { grid-column: 2; }
  .steps li::before { grid-row: 1 / 3; }
  .decide { grid-template-columns: 1fr; gap: 24px; }
  .contact a { grid-template-columns: 1fr; gap: 2px; padding: 18px 0; }
  .contact b { font-size: 24px; }
  .sample { padding: 18px 20px; }
  .sample p { font-size: 15px; }

  /* 표 → 행마다 카드처럼 쌓기 (머리글은 data-label 로) */
  thead { display: none; }
  table, tbody, tr, th, td { display: block; }
  table { font-size: 15px; }
  caption { display: block; width: 100%; }
  tr { border-bottom: 1px solid var(--line); padding: 12px 0; }
  th, td { border: 0; padding: 2px 0; white-space: normal !important; }
  tbody th { font-size: 16px; margin-bottom: 2px; }
  td[data-label]::before { content: attr(data-label); display: inline-block; min-width: 64px; margin-right: 8px; color: var(--mute); font-size: 13px; }

  .qa { padding: 20px 0; }
  .qa p { font-size: 15.5px; }
  .ftr { flex-direction: column; }
  .ftr-info span { display: block; }
  .ftr-info span + span::before { content: none; }
}
