/* ============================================================================
   BEAUTY VERA — base
   리셋 · 컬러 토큰 · 타이포그래피 · 공통 요소 · 모션 기본
   ========================================================================== */

/* ---------- 폰트 ---------- */
@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/variable/pretendardvariable-dynamic-subset.min.css');
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;1,300&family=Noto+Sans+KR:wght@300;400;500;600;700&display=swap');

/* ---------- 토큰 ---------- */
:root {
  color-scheme: light;

  /* 베이스 — 아이보리 · 크림 · 베이지 */
  --ivory:      #FCF9F5;
  --ivory-deep: #F8F3EC;
  --cream:      #F4EDE4;
  --cream-deep: #EDE3D6;
  --beige:      #E4D8C8;
  --sand:       #CDBCA6;

  /* 텍스트 */
  --ink:      #2B2521;
  --ink-soft: #544A42;
  --muted:    #8A7C6E;
  --faint:    #B4A695;

  /* soft rose accent — 과하지 않게, 포인트로만 */
  --rose-50:  #FBF2EF;
  --rose-100: #F4E2DC;
  --rose-200: #E9CCC3;
  --rose-300: #DBB0A5;
  --rose-500: #B58175;
  --rose-700: #8E5D53;

  /* 표면 */
  --surface:   #FFFDFB;
  --line:      rgba(43, 37, 33, 0.10);
  --line-soft: rgba(43, 37, 33, 0.06);

  /* 그림자 */
  --shadow-sm: 0 1px 2px rgba(74, 58, 48, .04), 0 4px 16px rgba(74, 58, 48, .05);
  --shadow-md: 0 2px 6px rgba(74, 58, 48, .05), 0 14px 40px rgba(74, 58, 48, .09);
  --shadow-lg: 0 4px 12px rgba(74, 58, 48, .06), 0 30px 70px rgba(74, 58, 48, .13);

  /* 타이포 */
  /* Pretendard 를 우선 쓰고, 불러오지 못하는 환경에서는 Noto Sans KR 로 대체됩니다 */
  --sans: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont,
          'Apple SD Gothic Neo', 'Noto Sans KR', 'Malgun Gothic', system-ui, sans-serif;
  --serif: 'Cormorant Garamond', 'Times New Roman', serif;

  /* 리듬 */
  --pad: clamp(24px, 5vw, 64px);
  --maxw: 1240px;
  --gap-section: clamp(88px, 11vw, 168px);

  /* 모션 */
  --ease: cubic-bezier(.22, .61, .36, 1);
  --ease-soft: cubic-bezier(.4, 0, .2, 1);
}

/* ---------- 리셋 ---------- */
*, *::before, *::after { box-sizing: border-box; }

/* hidden 이 붙은 요소는 무조건 감춥니다.
   모달·라이트박스처럼 display 를 지정한 요소가 hidden 상태에서도 화면을 덮어
   클릭과 hover 를 가로채는 것을 막습니다. */
[hidden] { display: none !important; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.75;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  word-break: keep-all;
  /* Cormorant 의 기본 올드스타일 숫자를 끄고 일반 숫자로 표시합니다 */
  font-variant-numeric: lining-nums;
  font-feature-settings: 'lnum' 1, 'onum' 0;
}

h1, h2, h3, h4, p, figure, blockquote { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

img, video {
  display: block;
  max-width: 100%;
  height: auto;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

a { color: inherit; text-decoration: none; }

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

:focus-visible {
  outline: 2px solid var(--rose-500);
  outline-offset: 3px;
  border-radius: 2px;
}

::selection {
  background: var(--rose-100);
  color: var(--ink);
}

/* ---------- 레이아웃 ---------- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.section {
  padding-block: var(--gap-section);
  position: relative;
}

.section--cream { background: var(--cream); }
.section--ivory-deep { background: var(--ivory-deep); }

.section--hairline::before {
  content: '';
  position: absolute;
  inset-inline: var(--pad);
  top: 0;
  height: 1px;
  background: var(--line-soft);
}

/* ---------- 타이포 ---------- */
.eyebrow {
  font-family: var(--serif);
  font-size: clamp(11px, 1.05vw, 13px);
  font-weight: 400;
  letter-spacing: .42em;
  text-transform: uppercase;
  color: var(--rose-500);
  margin-bottom: 20px;
}

.display {
  font-family: var(--serif);
  font-weight: 300;
  letter-spacing: .06em;
  line-height: 1.1;
  color: var(--ink);
}

.h-section {
  font-size: clamp(25px, 3.2vw, 40px);
  font-weight: 500;
  line-height: 1.42;
  letter-spacing: -0.022em;
  color: var(--ink);
}

.h-lead {
  font-size: clamp(15px, 1.5vw, 17px);
  line-height: 1.95;
  color: var(--ink-soft);
}

.section-head {
  margin-bottom: clamp(44px, 5.5vw, 76px);
}

.section-head--center {
  text-align: center;
  max-width: 720px;
  margin-inline: auto;
}

.section-head--center .h-lead { margin-top: 18px; }

.rule {
  width: 34px;
  height: 1px;
  background: var(--rose-300);
  margin: 0 0 26px;
}

.section-head--center .rule { margin-inline: auto; }

/* ---------- 버튼 ---------- */
.btn {
  --btn-bg: var(--rose-700);
  --btn-fg: #FFF9F6;
  --btn-bd: transparent;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 32px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  border: 1px solid var(--btn-bd);
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
  transition: background .4s var(--ease), color .4s var(--ease),
              border-color .4s var(--ease), transform .4s var(--ease),
              box-shadow .4s var(--ease);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(142, 93, 83, .26);
}

.btn:active { transform: translateY(0); }

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  --btn-bd: var(--sand);
}

.btn--ghost:hover {
  --btn-bg: var(--surface);
  --btn-bd: var(--rose-300);
  box-shadow: var(--shadow-sm);
}

.btn--line {
  --btn-bg: transparent;
  --btn-fg: var(--rose-700);
  --btn-bd: var(--rose-200);
  min-height: 48px;
  padding: 0 24px;
  font-size: 14px;
}

.btn--line:hover {
  --btn-bg: var(--rose-50);
  --btn-bd: var(--rose-300);
  box-shadow: none;
}

.btn--lg {
  min-height: 62px;
  padding: 0 44px;
  font-size: 16px;
}

.btn--block { width: 100%; }

.btn__ico {
  width: 17px;
  height: 17px;
  flex: none;
}

/* 텍스트 링크 */
.tlink {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 14px;
  color: var(--ink-soft);
  padding-bottom: 3px;
  border-bottom: 1px solid var(--line);
  transition: color .35s var(--ease), border-color .35s var(--ease);
}

.tlink:hover {
  color: var(--rose-700);
  border-color: var(--rose-300);
}

/* ---------- 칩 ---------- */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  border: 1px solid var(--beige);
  border-radius: 999px;
  background: var(--surface);
  font-size: 13px;
  letter-spacing: -0.01em;
  color: var(--ink-soft);
  transition: border-color .35s var(--ease), color .35s var(--ease),
              background .35s var(--ease);
}

.chip:hover {
  border-color: var(--rose-200);
  background: var(--rose-50);
  color: var(--rose-700);
}

/* ---------- 이미지 프레임 (reveal + hover tilt) ---------- */
.frame {
  position: relative;
  overflow: hidden;
  background: var(--cream-deep);
  border-radius: 3px;
}

.frame img,
.frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.1s var(--ease);
  will-change: transform;
}

/* 스크롤 진입 시 이미지가 아래에서 열리는 모션 */
.frame--reveal img,
.frame--reveal video {
  transform: scale(1.09);
  clip-path: inset(100% 0 0 0);
  transition: transform 1.3s var(--ease), clip-path 1.3s var(--ease);
}

.frame--reveal.is-in img,
.frame--reveal.is-in video {
  transform: scale(1);
  clip-path: inset(0 0 0 0);
}

/* hover 시 미세 확대 + tilt */
.tilt { transition: transform .7s var(--ease), box-shadow .7s var(--ease); }

.tilt:hover img,
.tilt:hover video {
  transform: scale(1.055) rotate(-0.6deg);
}

/* ---------- 스크롤 리빌 ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
}

[data-reveal].is-in {
  opacity: 1;
  transform: none;
}

/* ---------- 접근성 ---------- */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: absolute;
  left: 50%;
  top: -100px;
  transform: translateX(-50%);
  z-index: 200;
  padding: 12px 24px;
  background: var(--ink);
  color: var(--ivory);
  border-radius: 0 0 8px 8px;
  font-size: 14px;
  transition: top .3s var(--ease);
}

.skip:focus { top: 0; }

/* ---------- 모션 최소화 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }

  [data-reveal] { opacity: 1; transform: none; }

  .frame--reveal img,
  .frame--reveal video {
    transform: none;
    clip-path: none;
  }

  .tilt:hover img,
  .tilt:hover video { transform: none; }
}
