/* Pretendard subset — local woff2 only */
@font-face {
  font-family: 'Pretendard';
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  src: url('/assets/fonts/Pretendard-Regular.subset.woff2') format('woff2');
}
@font-face {
  font-family: 'Pretendard';
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  src: url('/assets/fonts/Pretendard-Medium.subset.woff2') format('woff2');
}
@font-face {
  font-family: 'Pretendard';
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  src: url('/assets/fonts/Pretendard-SemiBold.subset.woff2') format('woff2');
}
@font-face {
  font-family: 'Pretendard';
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  src: url('/assets/fonts/Pretendard-Bold.subset.woff2') format('woff2');
}

/* Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  font-size: var(--t-body-size);
  line-height: 1.5;
  color: var(--label);
  background-color: var(--bg-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  letter-spacing: -0.01em;
  word-break: keep-all;
  overflow-wrap: break-word;
  min-height: 100vh;
  /* site-header(fixed)가 콘텐츠를 가리지 않도록 헤더 높이만큼 패딩 — PC 기본값 */
  padding-top: var(--header-height);
}

/* 모바일: 헤더 + 카테고리 바 둘 다 fixed이므로 패딩 더 크게 */
@media (max-width: 767px) {
  body { padding-top: calc(var(--header-height) + 56px); }
  /* 카테고리 바 없는 페이지 (스드메/캘린더/정보/포스트)는 헤더 분만 */
  html[data-page="services"] body,
  html[data-page="calendar"] body,
  html[data-page="info"] body,
  html[data-page="post"] body {
    padding-top: var(--header-height);
  }
}
/* 모바일 메뉴는 position: fixed + visibility: hidden로 가로 스크롤 영향 없음.
   overflow-x: hidden|clip은 position: sticky를 깨뜨리므로 사용 금지. */

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

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

a {
  color: var(--ios-blue);
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: var(--label);
}

/* sr-only */
.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;
}

/* Icons */
.icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  fill: currentColor;
  vertical-align: middle;
}
.icon--lg { width: 22px; height: 22px; }
.icon--xl { width: 28px; height: 28px; }

/* Focus visible (iOS-style ring) */
:focus-visible {
  outline: 2px solid var(--ios-blue);
  outline-offset: 2px;
  border-radius: var(--radius-xs);
}

/* Selection */
::selection {
  background: var(--ios-blue-soft);
  color: var(--ios-blue-pressed);
}
