/*
  tokens.css — 싱크대 맞춤제작 (custom.korhomecrafty.com) 디자인 토큰
  파치먼트(웜 스톤) + 에스프레소 잉크 + 테라코타/올리브 2톤 포인트. 세리프 헤드라인 + 산세리프 본문.
  형제 사이트(업소용싱크대제작)의 차콜+에메랄드/둥근 카드+소프트 섀도우 시스템과 의도적으로 다른 팔레트·서체·형태 언어를 사용한다.
  전 페이지가 이 파일을 참조한다. 색상·폰트·간격은 페이지에서 재정의하지 않는다(페이지 전용 CSS는 새 클래스만 추가).
*/

@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+KR:wght@700;900&display=swap');

@font-face{
  font-family: "Pretendard Variable";
  src: url("/assets/fonts/PretendardVariable.woff2") format("woff2-variations"),
       url("/assets/fonts/PretendardVariable.woff2") format("woff2");
  font-weight: 45 920;
  font-style: normal;
  font-display: swap;
}

:root{
  /* 면 — 웜 파치먼트(스톤) 계열, 형제사이트보다 채도 있는 리넨톤 */
  --paper: #F1E9D8;
  --card: #FFFFFF;
  --mist: #E6DAC0;        /* 딥 파치먼트 — 섹션 배경 구분/테이블 배경 */
  --tint: #F6E1CE;        /* 소프트 테라코타 틴트 */
  --line: #D9C7A2;
  --line-2: #C2A876;

  /* 글자 — 에스프레소 브라운블랙 */
  --ink: #221A12;
  --ink-2: #4C3D2C;
  --ink-3: #79654C;
  --white: #FFFFFF;

  /* 헤더/다크 서피스용 — 딥 에스프레소(헤더는 어둡게, 형제사이트와 반대로 푸터를 밝게 뒤집는다) */
  --navy: #221A12;
  --navy-soft: #3A2C1B;

  /* 강조 — 테라코타(주) + 올리브(보조) 2톤 체계, 형제사이트의 단일 그린 포인트와 구분 */
  --accent: #B5502E;
  --accent-deep: #8A3A1F;
  --accent-soft: #F2D4C0;
  --accent2: #5B6329;
  --accent2-deep: #414A1C;
  --accent2-soft: #E3E6CB;
  /* 과거 앰버 포인트 명칭 — 동일 테라코타 값으로 매핑(변수명 유지, 컴포넌트 CSS 재사용용) */
  --amber: var(--accent);
  --amber-deep: var(--accent-deep);
  --amber-soft: var(--accent-soft);

  /* 플랫 형태 언어 — 블러 섀도우 대신 하단 라인형 섀도우 */
  --sh-1: 0 1px 0 rgba(34,26,18,.14);
  --sh-2: 0 2px 0 rgba(34,26,18,.16);
  --sh-3: 0 4px 0 rgba(34,26,18,.20);

  /* 각진 형태 — 형제사이트(10~14px 라운드)와 달리 샤프한 코너 */
  --r: 3px;
  --r-lg: 4px;
  --r-chip: 999px;

  --font-sans: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --font-serif: "Noto Serif KR", "Nanum Myeongjo", serif;
}

*, *::before, *::after{ box-sizing: border-box; }
html{ -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body{
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink);
  background: var(--paper);
  word-break: keep-all;
  overflow-wrap: break-word;
}
@media (min-width: 1024px){ body{ font-size: 17px; } }

h1, h2, h3, h4{
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.3;
  color: var(--ink);
}
h1, h2{ font-family: var(--font-serif); letter-spacing: 0; }
h1{ font-weight: 900; line-height: 1.18; font-size: clamp(30px, 6.2vw, 46px); }
h2{ font-weight: 700; font-size: clamp(22px, 4.4vw, 32px); }
h3{ font-size: clamp(17px, 2.4vw, 20px); font-weight: 800; }
h4{ font-size: 16px; font-weight: 800; }

p{ margin: 0 0 16px; }
p:last-child{ margin-bottom: 0; }
@media (min-width: 1024px){ p{ margin-bottom: 18px; } }

.lead{ font-size: clamp(16px, 2.2vw, 19px); line-height: 1.7; color: var(--ink-2); }
.caption{ font-size: 14px; color: var(--ink-3); }

.eyebrow{
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--accent); font-weight: 800; font-size: 12.5px; letter-spacing: .18em; text-transform: uppercase;
}
.eyebrow::before{ content:""; width: 26px; height: 2px; background: var(--accent2); flex: none; }

strong{ font-weight: 700; }
a{ color: var(--accent); }

table{ border-collapse: collapse; width: 100%; }

/* ===== 레이아웃 ===== */
.container{ max-width: 1180px; margin-inline: auto; padding-inline: 20px; }
@media (min-width: 768px){ .container{ padding-inline: 32px; } }

.section{ padding-block: 56px; border-top: 1px solid var(--line); }
@media (min-width: 768px){ .section{ padding-block: 88px; } }
.section--mist{ background: var(--mist); }
.section--navy{ background: var(--navy); color: var(--white); border-top-color: transparent; }
.section--navy h2, .section--navy h3{ color: var(--white); }

.card{
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 3px solid var(--line);
  border-radius: var(--r-lg);
  padding: 22px;
  box-shadow: none;
  transition: border-color .15s ease;
}
@media (min-width: 768px){ .card{ padding: 28px; } }
a.card:hover, .card.is-link:hover{ border-left-color: var(--accent); }

.grid{ display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 640px){ .grid--2{ grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px){
  .grid--3{ grid-template-columns: repeat(3, 1fr); }
  .grid--4{ grid-template-columns: repeat(4, 1fr); }
}

/* ===== 버튼 — 샤프 코너 + 레터스페이싱(형제사이트의 둥근 필 버튼과 구분) ===== */
a, button{ font-family: inherit; }
.btn-primary{
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 28px; border-radius: var(--r);
  background: var(--accent); color: var(--white); font-weight: 800; font-size: 15px;
  letter-spacing: .04em; text-transform: uppercase;
  border: 1px solid var(--accent); box-shadow: var(--sh-1); text-decoration: none; cursor: pointer;
}
.btn-primary:hover{ background: var(--accent-deep); border-color: var(--accent-deep); }
.btn-ghost{
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 26px; border-radius: var(--r);
  background: transparent; color: var(--ink); font-weight: 800; font-size: 15px;
  letter-spacing: .04em; text-transform: uppercase;
  border: 1.5px solid var(--ink); text-decoration: none; cursor: pointer;
}
.btn-ghost:hover{ border-color: var(--accent); color: var(--accent-deep); }
.btn-secondary{
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 0 18px; border-radius: var(--r);
  font-weight: 800; font-size: 13.5px; letter-spacing: .04em; text-transform: uppercase; text-decoration: none; cursor: pointer;
  background: var(--accent); color: var(--white); border: none; box-shadow: none;
}
.btn-secondary:hover{ background: var(--accent-deep); }

:where(a, button, summary):focus-visible{ outline: 3px solid var(--accent2); outline-offset: 2px; border-radius: var(--r); }

/* ===== 이미지 카드(1:1) ===== */
.thumb{ position: relative; overflow: hidden; border-radius: var(--r); aspect-ratio: 1/1; background: var(--mist); }
.thumb img{ width: 100%; height: 100%; object-fit: cover; display: block; }

/* ===== 전후사진 (드래그 비교 슬라이더) ===== */
.ba-slider{
  position: relative; overflow: hidden; border-radius: var(--r-lg); aspect-ratio: 1/1;
  background: var(--mist); touch-action: none; user-select: none; --pos: 50%; cursor: ew-resize;
  border: 1px solid var(--line);
}
.ba-slider__img{ position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.ba-slider__before-wrap{
  position: absolute; inset: 0;
  clip-path: inset(0 calc(100% - var(--pos)) 0 0);
  -webkit-clip-path: inset(0 calc(100% - var(--pos)) 0 0);
}
.ba-slider__divider{
  position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px;
  background: var(--accent); box-shadow: none; pointer-events: none; z-index: 2;
}
.ba-slider__divider::after{
  content: "⟷"; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 36px; height: 36px; border-radius: var(--r); background: var(--accent); box-shadow: var(--sh-2);
  display: flex; align-items: center; justify-content: center; font-size: 15px; color: var(--white); font-weight: 700;
}
.ba-slider__tag{
  position: absolute; top: 10px; z-index: 3;
  padding: 4px 12px; border-radius: var(--r); font-size: 11.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  color: var(--white); background: var(--ink); pointer-events: none;
}
.ba-slider__tag--before{ left: 10px; }
.ba-slider__tag--after{ right: 10px; background: var(--accent); }
.ba-slider__range{
  position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; z-index: 4;
  opacity: 0; -webkit-appearance: none; appearance: none; background: transparent;
  pointer-events: none; /* 실제 드래그는 site.js가 포인터 이벤트로 처리, 이 input은 키보드(방향키) 접근성용으로만 유지 */
}
.ba-slider__range:focus-visible{ outline: 3px solid var(--accent2); outline-offset: 2px; }
.ba-slider__range::-webkit-slider-thumb{ -webkit-appearance: none; width: 100%; height: 100%; }
.ba-slider__range::-moz-range-thumb{ width: 100%; height: 100%; border: none; background: transparent; }
.ba-slider__range::-moz-range-track{ width: 100%; height: 100%; background: transparent; border: none; }
.ba-caption{ margin-top: 10px; font-size: 14px; color: var(--ink-2); text-align: center; }

/* ===== 표/체크리스트 — 굵은 상하 룰 라인(에디토리얼 스타일) ===== */
.tbl-wrap{ overflow-x: auto; border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); }
.tbl{ min-width: 480px; width: 100%; }
.tbl caption{ text-align: left; padding: 12px 2px; font-weight: 800; font-family: var(--font-serif); }
.tbl th, .tbl td{ padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--line); font-size: 15px; }
.tbl thead th{ background: transparent; color: var(--ink); font-weight: 800; white-space: nowrap; border-bottom: 2px solid var(--ink); text-transform: uppercase; letter-spacing: .03em; font-size: 13px; }
.tbl tbody tr:last-child td{ border-bottom: none; }
.tbl tbody tr:nth-child(even){ background: var(--mist); }

@media (max-width: 640px){
  .tbl{ min-width: 0; }
  .tbl caption{ padding: 8px 2px; font-size: 13px; }
  .tbl th, .tbl td{ padding: 6px 6px; font-size: 11px; line-height: 1.4; }
  .tbl thead th{ white-space: normal; }
}

.checklist{ list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.checklist li{ display: flex; gap: 10px; align-items: flex-start; font-size: 15px; }
.checklist li::before{ content: "✓"; flex: none; width: 22px; height: 22px; display: inline-flex; align-items: center; justify-content: center; border-radius: var(--r); background: var(--accent2-soft); color: var(--accent2-deep); font-weight: 800; font-size: 13px; }

/* ===== FAQ ===== */
.faq-item{ border: none; border-bottom: 1px solid var(--line); border-radius: 0; margin-bottom: 0; overflow: hidden; }
.faq-item summary{
  list-style: none; cursor: pointer; padding: 18px 4px; font-weight: 800; font-size: 16px;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.faq-item summary::-webkit-details-marker{ display: none; }
.faq-item summary::after{ content: "+"; font-size: 22px; color: var(--accent); flex: none; font-weight: 400; }
.faq-item[open] summary::after{ content: "−"; }
.faq-item[open] summary{ border-bottom: none; }
.faq-a{ padding: 0 4px 18px; color: var(--ink-2); font-size: 15px; line-height: 1.7; }

/* ===== 브레드크럼 ===== */
.breadcrumb{ font-size: 12.5px; color: var(--ink-3); margin-bottom: 14px; letter-spacing: .02em; }
.breadcrumb a{ color: var(--ink-3); text-decoration: none; }
.breadcrumb a:hover{ color: var(--accent-deep); }
.breadcrumb .sep{ margin: 0 6px; }

/* ===== 배지/칩 ===== */
.badge{ display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: var(--r-chip); background: var(--accent-soft); color: var(--accent-deep); font-weight: 800; font-size: 12.5px; letter-spacing: .04em; text-transform: uppercase; }
.badge .dot{ width: 6px; height: 6px; border-radius: 50%; background: var(--accent2); }
.chip{ display: inline-flex; padding: 6px 14px; border-radius: var(--r-chip); background: var(--card); border: 1px solid var(--line-2); font-size: 13px; font-weight: 700; color: var(--ink-2); text-decoration: none; }
.chip:hover{ border-color: var(--accent); color: var(--accent-deep); }

.dateline{ font-size: 13px; color: var(--ink-3); }

/* ===== 제작 과정 타임라인 / 흐름 스텝(공유 컴포넌트) — 각진 마커로 형제사이트와 구분 ===== */
.flow-strip{ display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.flow-node{ display: inline-flex; align-items: center; padding: 10px 18px; border-radius: var(--r); background: var(--card); border: 1px solid var(--ink); font-weight: 800; font-size: 14px; letter-spacing: .01em; }
.flow-arrow{ color: var(--accent); font-weight: 700; }

.timeline{ display: grid; gap: 0; counter-reset: step; }
.timeline-step{ position: relative; padding: 0 0 28px 48px; border-left: 2px solid var(--line-2); }
.timeline-step:last-child{ border-left-color: transparent; padding-bottom: 0; }
.timeline-step::before{
  counter-increment: step; content: counter(step, decimal-leading-zero);
  position: absolute; left: -21px; top: 0; width: 40px; height: 40px; border-radius: var(--r);
  background: var(--ink); color: var(--white); font-weight: 800; font-size: 14px; font-family: var(--font-serif);
  display: flex; align-items: center; justify-content: center;
}
.timeline-step h3{ margin-bottom: 6px; font-family: var(--font-serif); }

/* ===== 판단 매트릭스 / 비교 카드 ===== */
.matrix-grid{ display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 768px){ .matrix-grid{ grid-template-columns: repeat(2, 1fr); } }
.matrix-card{ border-radius: var(--r-lg); border: 1px solid var(--line); border-top: 3px solid var(--accent); padding: 22px; background: var(--card); }
.matrix-card h3{ color: var(--ink); margin-bottom: 10px; font-family: var(--font-serif); }

@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
}
