/* HM-TOKENS v1 · bench — 반응형 토큰과 기본 규칙 (Homepage Maker 가 새 프로젝트에 넣은 파일)
   벤치마킹·복제 판: 글자 크기·여백·배치는 원본 실측값 그대로 — 여기엔 글자 크기 토큰이 없고 기본 규칙(규칙 B)만 있다.
   원본 값을 변수로 옮길 때는 아래 :root 에 --fs-(역할) · --space-(번호) 이름으로 더해 쓴다(값은 원본 그대로).
   기본 규칙은 모두 :where() 로 특이도 0 — 사이트 CSS 가 언제나 이긴다(디자인을 덮지 않는다).
   모든 쪽 <head> 에서 사이트 CSS 보다 먼저 정적 <link> 로 부른다. 이 파일이 이미 있으면 앱은 다시 쓰지 않는다(고친 값 보존). */
:root {
  /* 터치 · 안전 영역(노치·홈바 — viewport-fit=cover 일 때 값이 생긴다) */
  --tap-min: 44px;
  --tap-gap: 8px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
}

/* 기본 규칙(규칙 B) — :where() 특이도 0 */
:where(html) { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
/* 입력칸 16px 이상(iOS 자동 확대 방지) · 높이 44px 이상 */
:where(input:not([type="checkbox"], [type="radio"], [type="range"], [type="color"], [type="hidden"], [type="file"], [type="image"]), select, textarea) { font-size: max(16px, 1em); min-height: var(--tap-min); }
/* 누르는 대상 44px 이상 — 글 속 링크는 그대로(줄 높이를 바꾸지 않는다), 아이콘·작은 링크는 class="hm-tap" */
:where(button, [role="button"], input[type="button"], input[type="submit"], input[type="reset"]) { min-height: var(--tap-min); }
:where(.hm-tap) { display: inline-flex; align-items: center; justify-content: center; min-width: var(--tap-min); min-height: var(--tap-min); }
:where(a, button, [role="button"], label, summary) { touch-action: manipulation; }
/* 이미지·영상은 칸을 넘지 않는다(비율 유지) */
:where(img, video) { max-width: 100%; height: auto; }
/* 화면 높이 — 100vh 대신(모바일 주소창 대응) */
:where(.hm-full-h) { min-height: 100vh; min-height: 100svh; min-height: 100dvh; }
/* 움직임 줄이기 설정이면 장식 애니메이션 끄기(규칙 B5) */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
