/* 리디자인 공통 기반: 초기화, 본문 기본값, 공통 조각 */

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

/* 화면 사이를 옮겨 갈 때, 새 화면이 그려질 준비가 될 때까지 이전 화면을 그대로 보여 준다 (Chrome · Edge 126+, Safari 18.2+).
   이 규칙이 없으면 새 화면의 파일을 받는 동안 브라우저가 빈 화면을 잠깐 보여 주는데, 어두운 테마의 브라우저에서는 그 빈 화면이 검게 나와
   "검게 깜빡이는" 것처럼 보인다. 처음 가는 화면은 파일을 새로 받아서 그 시간이 더 길다 (2026-11-26 실제 도메인에서 약 0.65초).
   전환 효과는 넣지 않는다 (시안에 없다): 이전 화면은 새 화면이 준비되는 순간 바로 사라진다. */
@view-transition { navigation: auto; }
::view-transition-old(root) { display: none; }
::view-transition-new(root) { animation: none; }

html {
  /* 빈 화면이 보이더라도 본문과 같은 색이게 한다 (body 의 배경과 같은 값) */
  background: var(--color-surface-page);
  /* 세로 스크롤바를 항상 두어 폭 계산(--u)이 흔들리지 않게 한다 */
  overflow-y: scroll;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--color-surface-page);
  color: var(--color-text-default);
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: calc(16 * var(--u));
  line-height: 1.4;            /* 기본값. 시안 요소는 정수 px 줄 높이를 따로 지정한다 */
  word-break: keep-all;        /* 한글은 단어 단위 줄바꿈 */
  overflow-wrap: anywhere;     /* 긴 영문·URL 은 강제 줄바꿈 */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, p, ul, ol, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
hr { border: 0; margin: 0; }

/* 키보드 포커스는 항상 보이게 (Action Button · Focus: 2px) */
:focus-visible {
  outline: calc(2 * var(--u)) solid var(--color-focus);
  outline-offset: calc(2 * var(--u));
}

/* 화면에는 숨기고 보조기기에만 제공 */
.v2-sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* 영문 소제목 (예: 05 LET’S CONNECT) — Regular 16 / 140% / 자간 8% */
.v2-eyebrow {
  font-weight: 400;
  font-size: calc(16 * var(--u));
  line-height: calc(22 * var(--u));
  letter-spacing: 0.08em;
  color: var(--color-text-secondary);
}
html[data-bp="m"] .v2-eyebrow { font-size: calc(12 * var(--u)); line-height: calc(17 * var(--u)); }

/* 메뉴가 열려 있는 동안 배경 스크롤 잠금 (js/v2/layout.js 가 top 을 지정) */
body.v2-scroll-locked {
  position: fixed;
  left: 0;
  right: 0;
  width: 100%;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

/* 약관 모달(기존 구현 재사용)의 글꼴을 새 서체로 맞춘다 */
.legal-modal-overlay, .legal-modal-overlay * { font-family: var(--font-sans); }
