@font-face {
  font-family: 'Pretendard';
  src: url('/fonts/PretendardVariable.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --bg: #ffffff;
  --ivory: #f8f6f3;
  --beige: #e4dfd9;
  --line-soft: #eae5df;
  --wood: #7a5c45;
  --ink: #2b2623;
  --text: #4a4541;
  --muted: #6e6761;
}

* { box-sizing: border-box; }
html { scroll-padding-top: 6rem; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Pretendard', system-ui, -apple-system, 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  letter-spacing: -0.01em;
  word-break: keep-all;
  text-wrap: pretty;
}
h1, h2, h3, p, dl, dd, ol, ul { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: var(--wood); }
a:hover { color: var(--ink); }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--wood); outline-offset: 3px; }
img { display: block; max-width: 100%; height: auto; }
[hidden] { display: none !important; }

h1, h2 { color: var(--ink); font-weight: 700; line-height: 1.3; text-wrap: balance; }
h1 { font-size: clamp(1.5rem, 0.75rem + 3.4vw, 3.75rem); line-height: 1.25; letter-spacing: -0.035em; }
h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); letter-spacing: -0.025em; }
.lead { font-size: 1.1875rem; line-height: 1.6; letter-spacing: -0.015em; }
.note { font-size: 0.9375rem; color: var(--muted); }
.strong { color: var(--ink); font-weight: 600; }
.muted { color: #bdb5ac; }

.wrap { max-width: 75rem; margin-inline: auto; padding-inline: clamp(1.25rem, 5vw, 4rem); }
.wrap.narrow { max-width: 52.5rem; }
.band { background: var(--ivory); border-block: 1px solid var(--beige); }
.band > .wrap, .sec { display: flex; flex-direction: column; gap: 1.75rem; padding-block: clamp(4rem, 8vw, 7rem); }

/* 머리말 (스크롤해도 위에 고정) */
.site-header { position: sticky; top: 0; z-index: 10; background: #fff; border-bottom: 1px solid var(--beige); }
.bar { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.75rem; padding-block: 0.875rem; }
.bar nav { margin-left: auto; }
.brand { display: flex; flex-direction: column; gap: 2px; text-decoration: none; color: var(--ink); line-height: 1.3; }
.brand-name { font-size: 1.25rem; font-weight: 700; letter-spacing: -0.01em; }
.brand-sub { font-size: 0.75rem; letter-spacing: 0.18em; color: var(--muted); }
nav ul { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1.75rem; }
.bar nav a { display: inline-block; padding: 0.625rem 0.375rem; text-decoration: none; color: var(--text); font-size: 0.9375rem; }
.bar nav a[aria-current='page'] { color: var(--ink); font-weight: 700; border-bottom: 2px solid var(--ink); }

/* 버튼 · 글자 링크 */
.btn { display: inline-block; background: var(--ink); color: #fff; font-weight: 600; text-decoration: none; padding: 0.9375rem 1.875rem; border: 1px solid var(--ink); border-radius: 2px; text-align: center; }
.btn:hover { background: #453d38; color: #fff; }
.btn-line { background: #fff; color: var(--ink); }
.btn-line:hover { background: var(--ivory); color: var(--ink); }
.btn-sm { padding: 0.6875rem 1.375rem; font-size: 0.9375rem; }
.more { align-self: flex-start; font-weight: 600; padding-block: 0.375rem; }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 0.5rem; }

/* 페이지 맨 위: 분위기 사진을 가득 깔고 글을 가운데에 */
.hero { position: relative; isolation: isolate; display: grid; place-items: center; min-height: clamp(17rem, 40vh, 24rem); text-align: center; border-bottom: 1px solid var(--beige); }
.hero-home { min-height: clamp(26rem, 68vh, 42rem); }
.hero-bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
/* 사진 위에 밝은 아이보리 막: 글자 뒤 가운데는 진하게, 가장자리는 옅게 해서 사진 색이 살아 있게 한다 */
.hero::before { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse 58% 72% at center, rgb(255 255 255 / 0.88) 0%, rgb(255 255 255 / 0.62) 55%, rgb(255 255 255 / 0) 100%); }
.hero-copy { display: flex; flex-direction: column; align-items: center; gap: 1.25rem; padding-block: 3.5rem; }
.hero:not(.hero-home) h1 { font-size: clamp(2rem, 4vw, 3rem); }
.hero .lead { max-width: 32em; text-wrap: balance; }
.hero .actions { justify-content: center; }
.hero-plain { background: var(--ivory); }
/* 어두운 사진: 밝은 막을 걷고 흰 글자 · 흰 버튼 */
.hero-dark::before { background: radial-gradient(ellipse 62% 85% at center, rgb(43 38 35 / 0.66) 0%, rgb(43 38 35 / 0.5) 55%, rgb(43 38 35 / 0.2) 100%); }
.hero-dark :is(h1, .lead) { color: #fff; }
.hero-dark .btn { background: #fff; color: var(--ink); border-color: #fff; }

/* 소식: 진행 중일 때만 첫 화면 아래에 한두 줄 */
.news { border-bottom: 1px solid var(--beige); }
.news .wrap { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.5rem 2rem; padding-block: 1.5rem; }
.news h2 { font-size: 0.9375rem; font-weight: 700; letter-spacing: 0; color: var(--wood); }
.news ul { flex: 1 1 24rem; min-width: 0; display: flex; flex-direction: column; gap: 1rem; }
.news li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.25rem 2rem; }
.news li > div { flex: 1 1 22rem; min-width: 0; }
.news strong { color: var(--ink); font-weight: 600; }
.news p { font-size: 0.9375rem; }
.period { font-size: 0.9375rem; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }

/* 카드 */
.cards { display: flex; flex-wrap: wrap; gap: 1.25rem; }
.cards.top { align-items: flex-start; }
.card { flex: 1 1 19rem; min-width: 0; background: var(--ivory); border: 1px solid var(--beige); border-radius: 2px; padding: 1.75rem; display: flex; flex-direction: column; gap: 0.75rem; }
.card h3 { font-size: 0.9375rem; font-weight: 700; color: var(--ink); padding-bottom: 0.75rem; border-bottom: 1px solid var(--beige); }
.card h2 { font-size: 1.3125rem; }
.card .more { margin-top: auto; }

/* 가격·시간 줄 */
dl { display: flex; flex-direction: column; }
.row { display: flex; justify-content: space-between; gap: 1rem; padding-block: 0.75rem; border-top: 1px solid var(--beige); }
.row.plain { border: 0; padding-block: 0; }
.row dd { color: var(--ink); font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.card > dl:not(.list) { gap: 0.75rem; }
.split { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 0.5rem 1rem; }

/* 상담 순서 */
.band > .steps { flex-direction: row; flex-wrap: wrap; gap: 2.5rem 4rem; }
.steps > div { flex: 1 1 19rem; min-width: 0; display: flex; flex-direction: column; gap: 0.875rem; }
.steps ol { flex: 2 1 30rem; min-width: 0; border-bottom: 1px solid #d9d2ca; }
.steps li { display: flex; gap: 1.5rem; padding-block: 1.375rem; border-top: 1px solid #d9d2ca; }
.steps strong { display: block; color: var(--ink); font-weight: 700; }
.num { min-width: 2rem; font-size: 1.125rem; font-weight: 600; color: var(--wood); }

/* 사진 */
.ph { width: 100%; object-fit: cover; border-radius: 2px; }
.space { display: flex; flex-wrap: wrap; gap: 1.25rem; }
.space .wide { flex: 2 1 30rem; aspect-ratio: 3 / 2; }
.space .tall { flex: 1 1 15rem; aspect-ratio: 3 / 4; }
/* 스타일 사진: 좌우로 넘겨 보는 줄. 다음 사진이 살짝 보이게 하고, 화면 가장자리까지 이어지게 한다 */
.gallery { --pad: clamp(1.25rem, 5vw, 4rem); position: relative; }
.styles { display: flex; gap: 1rem; margin-inline: calc(-1 * var(--pad)); padding-inline: var(--pad); scroll-padding-inline: var(--pad); overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none; touch-action: manipulation; }
.styles > figure { flex: 0 0 min(72%, 17rem); scroll-snap-align: start; }
.gallery-nav { position: absolute; inset: 0; z-index: 1; display: none; justify-content: space-between; align-items: center; pointer-events: none; }
.gallery-nav button { pointer-events: auto; width: 2.75rem; height: 2.75rem; margin-inline: -1.375rem; margin-bottom: 2rem; background: #fff; color: var(--ink); border: 1px solid var(--beige); border-radius: 50%; font: inherit; font-size: 1.125rem; cursor: pointer; touch-action: manipulation; }
.gallery-nav button:disabled { visibility: hidden; }
@media (hover: hover) and (pointer: fine) { .gallery-nav:not([hidden]) { display: flex; } }
@media (prefers-reduced-motion: no-preference) { .styles { scroll-behavior: smooth; } }
.styles .tall { aspect-ratio: 3 / 4; }
figure { margin: 0; display: flex; flex-direction: column; gap: 0.625rem; }
figcaption { font-size: 0.9375rem; color: var(--ink); }
.empty { padding-block: 2rem; color: var(--muted); }

/* 탭(스타일) · 유형 버튼(시술): 선택 표시는 밑줄 */
.tabs { display: flex; gap: 0.25rem; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--beige); }
.tabs button { position: relative; flex: none; padding: 0.75rem 1.25rem; background: none; border: 0; font: inherit; color: var(--muted); cursor: pointer; }
.tabs button:is([aria-selected='true'], [aria-pressed='true']) { color: var(--ink); font-weight: 600; }
.tabs button:is([aria-selected='true'], [aria-pressed='true'])::after { content: ''; position: absolute; inset: auto 0 0; border-bottom: 2px solid var(--ink); }
.tabs button:focus-visible { outline-offset: -2px; }

/* 리뷰 숫자 */
.stat-num { font-size: 3rem; font-weight: 700; line-height: 1.1; color: var(--ink); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.stat-num span { margin-left: 0.25rem; font-size: 1.125rem; font-weight: 400; color: var(--muted); letter-spacing: 0; }

/* 자주 묻는 질문: 눌러서 펼치기 */
.jump ul { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.jump a { display: inline-block; padding: 0.5rem 1rem; border: 1px solid var(--beige); border-radius: 2px; text-decoration: none; color: var(--ink); font-size: 0.9375rem; }
.jump a:hover { background: var(--ivory); }
.qa { display: flex; flex-direction: column; }
.qa h2 { font-size: 1.3125rem; padding-bottom: 0.875rem; }
details { border-top: 1px solid var(--beige); }
.qa details:last-child { border-bottom: 1px solid var(--beige); }
summary { display: flex; justify-content: space-between; gap: 1rem; padding-block: 1.125rem; font-weight: 600; color: var(--ink); cursor: pointer; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; flex: none; font-weight: 400; font-size: 1.25rem; line-height: 1.3; color: var(--muted); }
details[open] summary::after { content: '−'; }
details p { max-width: 44em; padding-bottom: 1.375rem; }

/* 예약 안내 띠 */
.band > .cta { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem 3rem; padding-block: clamp(3.5rem, 6vw, 5rem); }
.cta > div { flex: 1 1 22rem; min-width: 0; display: flex; flex-direction: column; gap: 0.5rem; }
.cta h2 { font-size: 1.625rem; }

/* 꼬리말 */
.site-footer { background: var(--ink); color: #d8d2cb; font-size: 0.875rem; }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1.5rem 3rem; padding-block: 2.5rem 3rem; }
.foot address, .foot ul { display: flex; flex-direction: column; gap: 0.375rem; font-style: normal; }
.foot strong { font-size: 1.0625rem; font-weight: 600; color: #fff; }
.site-footer a { color: #f8f6f3; }

@media (max-width: 40rem) {
  html { scroll-padding-top: 7.5rem; }
  nav ul { gap: 0.25rem 1rem; }
  .btn { width: 100%; }
  .book { width: auto; margin-left: auto; order: 2; }
  .brand { order: 1; }
  .brand-sub { display: none; }
  .bar nav { order: 3; width: 100%; margin-left: 0; }
  .bar { padding-block: 0.625rem; gap: 0.25rem 1rem; }
}
