/* MEMORYCORD WSC — 레퍼런스 oathbiome.com 톤: 크림 바탕 + 브라운 글자 + 딥그린 밴드 + 형광 옐로 포인트.
   큰 세리프 헤딩(Noto Serif KR 300) / 본문·라벨은 Pretendard. 좌우 기준선 --pad, 콘텐츠 최대폭 1440. */
:root {
  --cream: #F6F2EB;
  --brown: #301912;
  --green: #103228;
  --sand: #CBBEAF;
  --taupe: #7A6656;        /* 레퍼런스 #A39280 은 크림 위 2.6:1 → 본문 보조색은 5:1 로 어둡게 */
  --yellow: #FBFF36;
  --line: rgba(48, 25, 18, .16);
  --pad: max(5vw, calc((100vw - 1440px) / 2));
  --space: clamp(80px, 9vw, 140px);
  --gap: clamp(32px, 5vw, 80px);
  --r: 14px;
  --serif: "Noto Serif KR", "Nanum Myeongjo", serif;
  --ease: 300ms cubic-bezier(0.4, 0, 0.2, 1);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--cream); color: var(--brown);
  font: 400 17px/1.75 "Pretendard Variable", Pretendard, -apple-system, "Apple SD Gothic Neo", sans-serif;
  letter-spacing: -0.015em; word-break: keep-all; -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { display: block; width: 100%; height: auto; }
strong, b { font-weight: 600; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: var(--pad); top: 8px; background: var(--brown); color: var(--cream); padding: 8px 12px; z-index: 10; }

/* ───────── header : 사진 위에 떠 있는 크림 글자 ───────── */
.hdr { position: absolute; inset: 0 0 auto; z-index: 5; display: flex; align-items: center; gap: 40px; padding: 28px var(--pad); color: var(--cream); }
.logo { font-weight: 600; letter-spacing: .3em; text-decoration: none; font-size: 13px; margin-right: auto; }
.nav { display: flex; gap: 32px; font-size: 14px; }
.nav a { text-decoration: none; opacity: .85; transition: opacity var(--ease); }
.nav a:hover, .nav a[aria-current] { opacity: 1; text-decoration: underline; text-underline-offset: 6px; }
.pill { text-decoration: none; font-size: 14px; font-weight: 500; padding: 10px 22px; border-radius: 999px; background: var(--yellow); color: var(--brown); transition: background var(--ease), color var(--ease); }
.pill:hover { background: var(--cream); }

/* ───────── hero : 풀블리드 사진 + 좌하단 큰 세리프 ───────── */
.hero { position: relative; min-height: clamp(640px, 100vh, 980px); display: flex; align-items: flex-end; color: var(--cream); background: var(--green); overflow: hidden; }
.hero-img { position: absolute; inset: 0; }
.hero-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(16,50,40,.45) 0, rgba(16,50,40,0) 28%, rgba(48,25,18,.15) 50%, rgba(48,25,18,.78) 100%); }
.hero-img img { position: absolute; inset: 0; height: 100%; object-fit: cover; opacity: 0; animation: heroFade 18s infinite; }
.hero-img img:nth-child(1) { opacity: 1; animation-delay: 0s; }
.hero-img img:nth-child(2) { animation-delay: -12s; }
.hero-img img:nth-child(3) { animation-delay: -6s; }
@keyframes heroFade {
  0% { opacity: 1; transform: scale(1); }
  28% { opacity: 1; }
  34% { opacity: 0; transform: scale(1.05); }
  94% { opacity: 0; transform: scale(1); }
  100% { opacity: 1; transform: scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-img img { animation: none; }
  .hero-img img:not(:first-child) { display: none; }
}
.hero-txt { position: relative; display: grid; grid-template-columns: 7fr 5fr; column-gap: var(--gap); align-items: end; width: 100%; padding: 160px var(--pad) clamp(56px, 9vh, 104px); }
/* DOM 순서: H1 → 답변 → 영문 디스플레이 (H1 바로 아래가 답변). 화면에선 디스플레이가 왼쪽 크게 */
.hero-txt h1 { grid-column: 2; grid-row: 1; align-self: start; font-size: 13px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; padding: 6px 14px; border: 1px solid rgba(246,242,235,.6); border-radius: 999px; justify-self: start; margin-bottom: 24px; }
.hero-txt .lead { grid-column: 2; grid-row: 2; font-size: 16px; line-height: 1.85; max-width: 460px; opacity: .95; }
.hero-txt .lead strong { font-weight: 600; }
.hero-txt .display { grid-column: 1; grid-row: 1 / span 3; align-self: end; }
.hero-txt .btn { grid-column: 2; grid-row: 3; justify-self: start; }
.display { font-family: var(--serif); font-weight: 300; font-size: clamp(48px, 7.4vw, 128px); line-height: 1; letter-spacing: -.045em; }
.display em { font-style: normal; display: block; opacity: .62; }

.btn { display: inline-flex; align-items: center; gap: 12px; margin-top: 36px; font-size: 15px; font-weight: 500; text-decoration: none; padding: 15px 28px; border-radius: 999px; background: var(--yellow); color: var(--brown); transition: background var(--ease), color var(--ease); }
.btn::after { content: "→"; transition: transform var(--ease); }
.btn:hover { background: var(--brown); color: var(--cream); }
.btn:hover::after { transform: translateX(5px); }

/* ───────── sections : 좌 제목 5 / 우 내용 7 ───────── */
.sec { display: grid; grid-template-columns: 5fr 7fr; column-gap: var(--gap); padding: var(--space) var(--pad); border-top: 1px solid var(--line); }
.hero + .sec, .sec.dark + .sec, .cta + .sec { border-top: 0; }
.sec > * { grid-column: 2; min-width: 0; }
.sec > .eyebrow, .sec > h2 { grid-column: 1; grid-row: 1 / span 30; align-self: start; }
.sec > .eyebrow + h2 { margin-top: 44px; }   /* 같은 칸에 겹쳐 두고 라벨 높이만큼 내림 → 오른쪽 내용이 길어도 제목이 밀리지 않음 */
.eyebrow { font-size: 12px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--taupe); margin-bottom: 20px; }
h2 { font-family: var(--serif); font-size: clamp(32px, 3.6vw, 60px); line-height: 1.12; font-weight: 300; letter-spacing: -.05em; }
h3 { font-size: 19px; line-height: 1.5; font-weight: 600; margin: 40px 0 10px; letter-spacing: -.02em; }
.sec > p { max-width: 680px; }
.sec > p + p { margin-top: 16px; }
.sec > p + * { margin-top: 40px; }
.note { font-size: 14px; color: var(--taupe); margin-top: 20px; max-width: 680px; }
.sec a:not(.btn):not(.ch) { text-underline-offset: 4px; }

/* 딥그린 밴드 */
.sec.dark { background: var(--green); color: var(--cream); border-top: 0; }
.sec.dark .eyebrow, .sec.dark .note { color: var(--sand); }
.sec.dark .steps li { border-color: rgba(246,242,235,.18); }
.sec.dark .steps li::before { color: var(--yellow); }

/* table */
.tbl { overflow-x: auto; margin-bottom: 8px; background: #fff; border-radius: var(--r); padding: 8px 28px 16px; }
table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 640px; }
caption { text-align: left; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--taupe); padding: 20px 0 12px; }
th, td { text-align: left; padding: 16px 12px 16px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { font-size: 12px; font-weight: 500; color: var(--taupe); letter-spacing: .06em; }
tbody tr:last-child > * { border-bottom: 0; }
tbody th { font-weight: 600; white-space: nowrap; }
.price td:nth-child(4), .price td:nth-child(5) { white-space: nowrap; font-variant-numeric: tabular-nums; }
.price td:nth-child(5) { font-weight: 600; }

/* lists */
.list { list-style: none; border-top: 1px solid var(--line); }
.list li { padding: 18px 0; border-bottom: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 24px; }
.list li small { flex-basis: 100%; font-size: 14px; color: var(--taupe); }
.list.cols { display: grid; grid-template-columns: 1fr 1fr; column-gap: 32px; }
.steps { list-style: none; counter-reset: st; }
.steps li { counter-increment: st; position: relative; padding: 28px 0 28px 72px; border-top: 1px solid var(--line); }
.steps li::before { content: counter(st, decimal-leading-zero); position: absolute; left: 0; top: 24px; font-family: var(--serif); font-size: 32px; font-weight: 300; color: var(--taupe); }
.steps li strong { display: block; font-size: 18px; margin-bottom: 6px; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.facts div { background: #fff; border-radius: var(--r); padding: 28px; }
.facts b { display: block; font-family: var(--serif); font-weight: 300; font-size: clamp(40px, 4vw, 64px); line-height: 1; letter-spacing: -.04em; margin-bottom: 14px; }
.facts span { font-size: 15px; color: var(--taupe); }
.checks { list-style: none; }
.checks li { padding: 16px 0; border-bottom: 1px solid var(--line); }
.checks li strong { display: block; }

/* 사진 */
figure { margin: 0; }
figure img { border-radius: var(--r); }
figcaption { font-size: 13px; color: var(--taupe); margin-top: 10px; }
.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.gallery figure:nth-child(even) { margin-top: 64px; }
.gallery img { aspect-ratio: 4 / 5; object-fit: cover; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; }
.wide { grid-column: 1 / -1; margin-top: 64px; }
.wide img { aspect-ratio: 21 / 9; object-fit: cover; }

/* 상담 채널 */
.channels { display: grid; gap: 12px; }
.ch { display: flex; justify-content: space-between; align-items: center; gap: 16px; text-decoration: none; padding: 26px 30px; border-radius: var(--r); background: #fff; transition: background var(--ease), color var(--ease); }
.ch strong { font-size: 19px; }
.ch span { font-size: 15px; color: var(--taupe); }
.ch:hover { background: var(--brown); color: var(--cream); }
.ch:hover span { color: var(--sand); }
.ch.primary { background: var(--yellow); }
.ch.primary span { color: var(--brown); }

/* FAQ */
.faq .qa { border-top: 1px solid var(--line); padding: 8px 0 28px; }
.faq .qa:last-child { border-bottom: 1px solid var(--line); }
.faq .qa h3 { margin-top: 24px; }

/* CTA 밴드 */
.cta { background: var(--brown); color: var(--cream); padding: var(--space) var(--pad); text-align: center; }
.cta .display { margin-bottom: 28px; }
.cta-txt { max-width: 520px; margin: 0 auto; opacity: .9; }

.related { padding-top: 72px; padding-bottom: 48px; }
.related h2 { font-size: clamp(24px, 2.2vw, 32px); position: static; }
.related ul { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; }
.related a { display: inline-block; text-decoration: none; padding: 10px 20px; border: 1px solid var(--brown); border-radius: 999px; font-size: 15px; transition: background var(--ease), color var(--ease); }
.related a:hover { background: var(--brown); color: var(--cream); }
.updated { padding: 0 var(--pad) 64px; font-size: 13px; color: var(--taupe); }

/* footer */
.ftr { background: var(--green); color: var(--cream); display: grid; grid-template-columns: 5fr 7fr; column-gap: var(--gap); padding: 80px var(--pad) 64px; font-size: 13px; line-height: 2; }
.ftr-logo { font-family: var(--serif); font-size: clamp(40px, 5vw, 80px); font-weight: 300; letter-spacing: -.04em; line-height: 1; }
.ftr-sig { color: var(--sand); margin-top: 16px; }
.ftr-info { color: var(--sand); align-self: end; }
.ftr-info a { color: var(--cream); }

/* ───────── mobile ───────── */
@media (max-width: 900px) {
  body { font-size: 16px; }
  .hdr { gap: 16px; padding: 20px var(--pad); }
  .nav { display: none; }
  .hero { min-height: 92vh; }
  .hero-img::after { background: linear-gradient(180deg, rgba(16,50,40,.5) 0, rgba(16,50,40,0) 22%, rgba(48,25,18,.35) 42%, rgba(48,25,18,.88) 100%); }
  .hero-txt { display: flex; flex-direction: column; align-items: flex-start; padding-top: 120px; }
  .hero-txt .display { order: -1; align-self: flex-start; margin-bottom: 28px; font-size: clamp(44px, 12vw, 72px); }
  .hero-txt h1 { margin-bottom: 16px; }
  .sec, .ftr { grid-template-columns: 1fr; }
  .sec > *, .sec > .eyebrow, .sec > h2 { grid-column: 1; grid-row: auto; }
  .sec > h2, .sec > .eyebrow + h2 { margin: 0 0 32px; }
  .facts, .list.cols { grid-template-columns: 1fr; }
  .gallery { gap: 10px; }
  .gallery figure:nth-child(even) { margin-top: 32px; }
  .split { grid-template-columns: 1fr; }
  .tbl { padding: 4px 20px 8px; }
  table { min-width: 0; }
  thead { display: none; }
  table tr { display: block; padding: 16px 0; border-bottom: 1px solid var(--line); }
  tbody tr:last-child { border-bottom: 0; }
  th, td { display: block; border: 0; padding: 4px 0; }
  td[data-label]::before { content: attr(data-label); display: inline-block; min-width: 88px; font-size: 13px; color: var(--taupe); }
  .ch { flex-direction: column; align-items: flex-start; gap: 4px; padding: 22px 24px; }
  .ftr-info { margin-top: 40px; }
}
