/* Memorycord 결혼식스냅 — Warm Editorial (참고: .ai-shots/ai_1790920757 시안) */
:root {
  --paper: #F5F1EB;
  --card: #FAF7F3;
  --ink: #2E2925;
  --body: #4A433D;
  --muted: #6E655D;
  --accent: #A47251;
  --line: #E3DACF;
  --dark: #2B2622;
  --gutter: 28px;
  --margin: clamp(20px, 5vw, 56px);
  --display: "Forum", "Noto Serif KR", serif;
  --serif: "Noto Serif KR", serif;
  --sans: "Pretendard Variable", Pretendard, -apple-system, sans-serif;
  --ease: 300ms ease;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body { background: var(--paper); color: var(--body); font: 400 16.5px/1.85 var(--sans); word-break: keep-all; overflow-wrap: anywhere; }
img { display: block; width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 4px; text-decoration-thickness: 1px; }
a:hover { color: var(--accent); }
:focus-visible { outline: 1px solid var(--accent); outline-offset: 4px; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 var(--margin); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; background: var(--ink); color: var(--paper); padding: 8px 14px; z-index: 10; }

/* 타이포 — 영어 디스플레이는 가는 세리프, 한글 제목은 얇은 명조 */
h1, h2, h3 { font-family: var(--serif); font-weight: 400; color: var(--ink); letter-spacing: -0.02em; line-height: 1.35; }
h2 { font-size: clamp(1.55rem, 2.6vw, 2.15rem); font-weight: 300; }
h3 { font-size: 1.15rem; }
p + p { margin-top: 1em; }
.display { font-family: var(--display); font-weight: 400; font-size: clamp(2.5rem, 5.2vw, 4.3rem); line-height: 1.15; letter-spacing: 0; color: var(--ink); }
.kicker { font: 500 .72rem/1 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--accent); margin-bottom: 18px; }
.kicker::after { content: ""; display: block; width: 28px; height: 1px; background: var(--accent); margin-top: 12px; opacity: .6; }
.lead { font-size: clamp(1rem, 1.3vw, 1.08rem); line-height: 1.9; max-width: 34em; }
.measure { max-width: 40em; }
.muted { color: var(--muted); font-size: .92rem; }

/* 마스트헤드 */
.mast { background: var(--paper); border-bottom: 1px solid var(--line); }
.mast__bar { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 22px; padding-bottom: 22px; }
.mast__brand { font: 400 1.55rem/1 var(--display); letter-spacing: .2em; text-transform: uppercase; text-decoration: none; color: var(--ink); }
.mast__brand small { display: block; font: 500 .58rem/1 var(--sans); letter-spacing: .32em; color: var(--muted); margin-top: 8px; }
.mast__nav ul { list-style: none; display: flex; gap: 40px; }
.mast__nav a, .mast__cta { font: 500 .72rem/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; text-decoration: none; color: var(--ink); padding-bottom: 4px; border-bottom: 1px solid transparent; transition: border-color var(--ease), color var(--ease); }
.mast__nav a:hover, .mast__nav a[aria-current], .mast__cta:hover, .mast__cta[aria-current] { color: var(--accent); border-color: var(--accent); }

/* 히어로 — 사진 전면 + 왼쪽 그라데이션 위에 글 */
.hero { position: relative; min-height: max(620px, calc(100vh - 88px)); min-height: max(620px, calc(100svh - 88px)); display: flex; align-items: center; color: #F5F1EB; overflow: hidden; }
.hero__media { position: absolute; inset: 0; }
.hero__media img { height: 100%; object-fit: cover; }
.hero__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(38, 32, 27, .86) 0%, rgba(38, 32, 27, .66) 45%, rgba(38, 32, 27, .12) 80%); }
.hero__inner { position: relative; width: 100%; padding-top: 64px; padding-bottom: 64px; }
.hero .crumb { font: 500 .74rem/1 var(--sans); letter-spacing: .14em; margin-bottom: 12px; color: #CFC3B4; }
.hero .crumb a { text-decoration: none; }
.hero .crumb span { margin-left: 10px; opacity: .6; }
.hero h1 { font: 500 .8rem/1 var(--sans); letter-spacing: .24em; color: #E8DCCB; margin-bottom: 26px; }
.hero .display { color: #FBF8F4; max-width: 11em; }
.hero__rule { display: block; width: 36px; height: 1px; background: #E8DCCB; margin: 30px 0 24px; opacity: .8; }
.hero .lead { color: #EDE5DA; max-width: 31em; }
.hero__link { display: inline-block; margin-top: 30px; font: 500 .72rem/1 var(--sans); letter-spacing: .22em; text-transform: uppercase; text-decoration: none; color: #FBF8F4; padding-bottom: 8px; border-bottom: 1px solid rgba(251, 248, 244, .7); }
.hero__link:hover { color: #E8DCCB; }

/* 핵심 정보 띠 */
.facts { border-bottom: 1px solid var(--line); background: var(--card); }
.facts__row { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.facts__row > div { padding: 22px 20px 22px 0; }
.facts__row > div + div { border-left: 1px solid var(--line); padding-left: 24px; }
.facts dt { font-size: .74rem; letter-spacing: .08em; color: var(--muted); }
.facts dd { font: 400 1.02rem/1.5 var(--serif); color: var(--ink); margin-top: 4px; }

/* 섹션 · 좁은/넓은 컬럼 */
section { padding: clamp(56px, 7vw, 96px) 0; }
section + section { border-top: 1px solid var(--line); }
.cols { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gutter); }
.cols__side { grid-column: 1 / span 4; }
.cols__main { grid-column: 6 / span 7; }
.cols__main > * + * { margin-top: 1.4em; }
.cols__main h3 { margin-top: 2em; }
.cols__side h2 { position: sticky; top: 28px; }
ul.list, ol.list { padding-left: 1.2em; }
ul.list li, ol.list li { padding: 4px 0; }
ul.list li::marker { color: var(--accent); }

/* 타임라인 */
.steps { list-style: none; counter-reset: s; border-top: 1px solid var(--ink); }
.steps li { counter-increment: s; display: grid; grid-template-columns: 56px 1fr; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.steps li::before { content: counter(s, decimal-leading-zero); font: 400 1.8rem/1 var(--display); color: var(--accent); }
.steps b { display: block; font: 400 1.05rem/1.6 var(--serif); color: var(--ink); }

/* 풀쿼트 — 가운데 정렬 */
.pull { font: 300 clamp(1.2rem, 2vw, 1.5rem)/1.75 var(--serif); color: var(--ink); text-align: center; max-width: 30em; margin-left: auto; margin-right: auto; padding-top: 28px; position: relative; }
.pull::before { content: ""; position: absolute; top: 0; left: 50%; width: 28px; height: 1px; background: var(--accent); transform: translateX(-50%); }
.pull cite { display: block; font: 400 1rem/1.6 var(--display); color: var(--muted); margin-top: 14px; }

/* 페이지별로 섞어 쓰는 블록 */
.summary { background: var(--card); border: 1px solid var(--line); border-left: 2px solid var(--accent); padding: 26px 30px; }
.summary h3 { margin: 0 0 12px; font-size: 1.05rem; }
.summary ul { list-style: none; }
.summary li { padding: 5px 0 5px 18px; position: relative; }
.summary li::before { content: ""; position: absolute; left: 0; top: 1em; width: 8px; height: 1px; background: var(--accent); }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gutter); }
.pair > div { border-top: 1px solid var(--ink); padding-top: 18px; }
.pair h3 { margin: 0 0 10px; }
.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px var(--gutter); margin-top: 44px; }
.trio--2 { grid-template-columns: repeat(2, 1fr); }
.trio > div { border-top: 1px solid var(--line); padding-top: 22px; }
.trio__no { font: 400 2.2rem/1 var(--display); color: var(--accent); display: block; margin-bottom: 16px; }
.trio h3 { margin: 0 0 10px; }
.terms { border-top: 1px solid var(--ink); }
.terms > div { display: grid; grid-template-columns: 220px 1fr; gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.terms dt { font: 400 1rem/1.6 var(--serif); color: var(--ink); }
.essay { max-width: 44em; }
.essay p + p { margin-top: 1.1em; }
.template { background: var(--dark); color: #EDE5DA; padding: 26px 30px; font: 400 .95rem/2 var(--sans); white-space: pre-line; }
.template b { color: #D4A98B; font-weight: 500; }
.note { font-size: .9rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: 14px; }

/* 가이드 링크 목록 — 사진 작게 + 제목·요약 (그리드 대신 목록) */
.jlist { border-top: 1px solid var(--ink); }
.jcard { display: grid; grid-template-columns: 120px 1fr; gap: 20px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.jcard img { aspect-ratio: 3 / 2; object-fit: cover; }
.jcard b { display: block; font: 400 1.08rem/1.5 var(--serif); color: var(--ink); margin-bottom: 4px; transition: color var(--ease); }
.jcard span { font-size: .9rem; color: var(--body); line-height: 1.7; }
.jcard:hover b { color: var(--accent); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.chips a { font: 500 .78rem/1 var(--sans); letter-spacing: .06em; text-decoration: none; border: 1px solid var(--line); background: var(--card); padding: 10px 16px; }
.chips a:hover { border-color: var(--accent); }
.jdate { font: 400 .95rem/1 var(--display); color: var(--muted); white-space: nowrap; }

/* 표 */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; font-size: .95rem; min-width: 560px; }
caption { text-align: left; font-size: .82rem; letter-spacing: .06em; color: var(--muted); padding-bottom: 12px; }
thead th { font-size: .8rem; font-weight: 500; color: var(--muted); text-align: left; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line); padding: 12px 12px 12px 0; }
tbody th, tbody td { text-align: left; vertical-align: top; padding: 15px 12px 15px 0; border-bottom: 1px solid var(--line); }
tbody th { font: 400 .98rem/1.6 var(--serif); color: var(--ink); white-space: nowrap; }
td.num { font-family: var(--serif); white-space: nowrap; font-variant-numeric: tabular-nums; color: var(--ink); }
td.is-accent { color: var(--accent); }

/* 카드 — 글 왼쪽 · 사진 오른쪽 */
.index { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gutter); margin-top: 48px; }
.card { display: grid; grid-template-columns: 1fr 1fr; background: var(--card); border: 1px solid var(--line); text-decoration: none; min-height: 300px; transition: border-color var(--ease); }
.card:hover { border-color: var(--accent); color: inherit; }
.card__text { padding: 26px 22px; display: flex; flex-direction: column; }
.card__cat { font: 500 .66rem/1 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--accent); }
.card__cat::after { content: ""; display: block; width: 22px; height: 1px; background: var(--accent); margin-top: 10px; opacity: .6; }
.card h3 { font-size: 1.3rem; font-weight: 300; margin: 22px 0 12px; }
.card p { font-size: .86rem; line-height: 1.75; color: var(--body); }
.card__more { margin-top: auto; padding-top: 18px; font: 500 .64rem/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--ink); }
.card__more::after { content: ""; display: block; width: 52px; height: 1px; background: var(--accent); margin-top: 8px; }
.card picture { overflow: hidden; }
.card img { height: 100%; object-fit: cover; transition: transform 600ms ease; }
.card:hover img { transform: scale(1.04); }

/* 포트폴리오 갤러리 — 세로·가로 사진 섞인 매거진형 3단 */
.gallery { columns: 3; column-gap: 12px; margin-top: 40px; }
.gallery a { display: block; break-inside: avoid; margin-bottom: 12px; overflow: hidden; cursor: zoom-in; background: var(--line); }
.gallery img { transition: transform 600ms ease, opacity var(--ease); }
.gallery a:hover img { transform: scale(1.03); opacity: .92; }

/* 라이트박스 */
.lb { border: 0; padding: 0; margin: auto; width: 100vw; height: 100vh; max-width: none; max-height: none; background: rgba(28, 24, 21, .96); color: #E8DCCB; }
.lb::backdrop { background: rgba(28, 24, 21, .9); }
.lb[open] { display: flex; align-items: center; justify-content: center; }
.lb figure { max-width: calc(100vw - 160px); text-align: center; outline: none; }
.lb img { width: auto; max-width: 100%; max-height: calc(100vh - 110px); margin: 0 auto; }
.lb figcaption { font-size: .85rem; letter-spacing: .04em; color: #CFC3B4; padding-top: 14px; }
.lb button { position: absolute; background: none; border: 0; color: #FBF8F4; font: 400 3rem/1 var(--display); cursor: pointer; padding: 12px 20px; opacity: .75; transition: opacity var(--ease); }
.lb button:hover { opacity: 1; }
.lb__close { top: 12px; right: 12px; }
.lb__prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lb__next { right: 12px; top: 50%; transform: translateY(-50%); }

/* FAQ */
.faq__item { padding: 24px 0; border-top: 1px solid var(--line); }
.faq__item:first-child { border-top: 1px solid var(--ink); }
.faq__item h3 { margin: 0 0 10px; }

/* 상담 유도 */
.cta { background: var(--dark); color: #E8DCCB; border-top: 0; }
.cta .display { color: #FBF8F4; font-size: clamp(2.2rem, 4.4vw, 3.6rem); margin-bottom: 18px; }
.cta h2 { color: #FBF8F4; font-size: 1.25rem; margin-bottom: 10px; }
.cta p { max-width: 36em; color: #CFC3B4; }
.cta .kicker { color: #D4A98B; }
.cta .kicker::after { background: #D4A98B; }
.btn { display: inline-block; margin-top: 30px; border: 1px solid #E8DCCB; color: #FBF8F4; text-decoration: none; font-size: .9rem; letter-spacing: .04em; padding: 15px 34px; transition: background var(--ease), color var(--ease); }
.btn:hover { background: #FBF8F4; color: var(--ink); }

/* 상담 페이지 연락 수단 */
.ways { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gutter); margin-top: 40px; }
.way { display: block; text-decoration: none; background: var(--card); border: 1px solid var(--line); padding: 30px 28px; transition: border-color var(--ease); }
.way:hover { border-color: var(--accent); color: inherit; }
.way__label { font: 500 .68rem/1 var(--sans); letter-spacing: .22em; color: var(--accent); }
.way__main { display: block; font: 300 1.6rem/1.3 var(--serif); color: var(--ink); margin: 16px 0 8px; }
.way p { font-size: .92rem; color: var(--muted); }

/* 푸터 */
.foot { background: var(--paper); border-top: 1px solid var(--line); color: var(--body); font-size: .88rem; padding: 64px 0 96px; }
.foot a { text-decoration: none; }
.foot ul { list-style: none; }
.foot li { padding: 3px 0; }
.foot__grid { display: grid; grid-template-columns: 2fr 1fr 1.6fr; gap: var(--gutter); }
.foot__mark { font: 400 1.7rem/1 var(--display); letter-spacing: .2em; text-transform: uppercase; color: var(--ink); }
.foot__lead { margin-top: 14px; max-width: 26em; color: var(--muted); }
.foot__title { font: 500 .68rem/1 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
.foot__legal { margin-top: 48px; font-size: .8rem; line-height: 1.9; color: var(--muted); }
.foot__legal p { border-top: 1px solid var(--line); padding-top: 22px; }
.foot__legal span { display: inline-block; margin-right: 18px; }

.sticky { display: none; }

@media (max-width: 1080px) {
  .index { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .mast__bar { flex-wrap: wrap; }
  .mast__nav { order: 3; width: 100%; overflow-x: auto; }
  .mast__nav ul { gap: 26px; white-space: nowrap; }
  .cols__side, .cols__main { grid-column: 1 / -1; }
  .cols__side h2 { position: static; }
  .foot__grid { grid-template-columns: 1fr 1fr; }
  .foot__grid > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  body { font-size: 15.5px; line-height: 1.8; padding-bottom: 76px; }
  section { padding: 52px 0; }
  h2 { font-size: 1.45rem; }
  .measure, .essay, .lead { max-width: none; }

  /* 상단: 로고 + 상담, 메뉴는 한 줄에 다 보이게 */
  .mast__bar { padding-top: 16px; padding-bottom: 12px; gap: 12px 16px; }
  .mast__brand { font-size: 1.3rem; }
  .mast__nav { overflow: visible; }
  .mast__nav ul { flex-wrap: wrap; gap: 10px 13px; white-space: normal; }
  .mast__nav a { letter-spacing: .08em; }
  .mast__nav a, .mast__cta { font-size: .66rem; letter-spacing: .14em; }

  /* 히어로: 사진 위, 글 아래 */
  .hero { min-height: 0; display: block; color: var(--body); }
  .hero__media { position: relative; height: 56vw; min-height: 220px; max-height: 340px; }
  .hero__media::after { background: none; }
  .hero__inner { padding-top: 30px; padding-bottom: 36px; }
  .hero .crumb { color: var(--muted); }
  .hero h1 { color: var(--accent); margin-bottom: 16px; }
  .hero .display { color: var(--ink); font-size: 2.3rem; }
  .hero__rule { background: var(--accent); margin: 22px 0 18px; }
  .hero .lead { color: var(--body); font-size: 1rem; }
  .hero__link { color: var(--ink); border-color: var(--accent); }
  .facts__row { grid-template-columns: 1fr; }
  .facts__row > div + div { border-left: 0; padding-left: 0; }
  .facts__row > div { padding: 12px 0; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
  .facts__row > div:last-child { border-bottom: 0; }
  .facts dd { margin-top: 0; text-align: right; }

  /* 표 → 행마다 카드: "항목명 : 값" */
  table { min-width: 0; }
  caption { line-height: 1.6; }
  thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  tbody tr { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); }
  tbody tr:first-child { border-top: 1px solid var(--ink); }
  tbody th, tbody td { display: block; border: 0; padding: 0; white-space: normal; }
  tbody th { font-size: 1.02rem; margin-bottom: 6px; }
  tbody td { display: grid; grid-template-columns: 6.5em 1fr; gap: 10px; padding: 3px 0; font-size: .92rem; }
  tbody td::before { content: attr(data-label); color: var(--muted); font: 400 .8rem/1.9 var(--sans); }
  td.num { font-size: .98rem; }
  tbody th + td:last-child { grid-template-columns: 1fr; }
  tbody th + td:last-child::before { display: none; }

  .steps li { grid-template-columns: 40px 1fr; gap: 12px; padding: 16px 0; }
  .steps li::before { font-size: 1.45rem; }
  .pull { font-size: 1.15rem; padding-top: 22px; }
  .summary, .template { padding: 20px; }
  .terms > div { grid-template-columns: 1fr; gap: 4px; padding: 14px 0; }
  .index, .ways, .pair, .trio { grid-template-columns: 1fr; }
  .trio { gap: 28px; margin-top: 30px; }
  .card { grid-template-columns: 1.3fr 1fr; min-height: 210px; }
  .card__text { padding: 20px 18px; }
  .card h3 { font-size: 1.15rem; margin: 16px 0 8px; }
  .gallery { columns: 2; column-gap: 8px; margin-top: 28px; }
  .jcard { grid-template-columns: 96px 1fr; gap: 14px; }
  .gallery a { margin-bottom: 8px; }
  .lb figure { max-width: 100vw; }
  .lb img { max-height: calc(100vh - 140px); }
  .lb__prev, .lb__next { top: auto; bottom: 10px; transform: none; }
  .foot { padding: 48px 0 40px; }
  .foot__grid { grid-template-columns: 1fr; gap: 28px; }

  /* 하단 상담 버튼: 첫 화면을 지나면 나타남 */
  .sticky { display: block; position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 5; text-align: center; background: var(--dark); color: #FBF8F4; font-size: .95rem; letter-spacing: .04em; padding: 15px; text-decoration: none; box-shadow: 0 6px 20px rgba(43, 38, 34, .25); transform: translateY(140%); transition: transform var(--ease); }
  .sticky.is-on { transform: none; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
