: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); }
: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; }
}

/* 원본 실측값(ssdream.co.kr 1440 · 390)을 옮긴 글자·여백 토큰 */
:root {
  --fs-h1: clamp(28px, 1.2rem + 1.9vw, 44px);
  --fs-h2: clamp(22px, 1rem + 1.4vw, 36px);
  --fs-h3: clamp(18px, 1rem + 0.3vw, 20px);
  --fs-hero: clamp(24px, 0.9rem + 1.9vw, 38.4px);
  --fs-lead: clamp(16px, 0.9rem + 0.4vw, 20px);
  --fs-lead-l: clamp(18px, 0.9rem + 0.9vw, 26px);
  --fs-body: 16px;
  --fs-small: 14px;
  --fs-micro: 12px;
  --fs-cap: 13px;
  --fs-num: clamp(40px, 1.6rem + 3vw, 72px);
  --fs-num-s: clamp(32px, 1.4rem + 1.6vw, 44px);
  --fs-mega: clamp(48px, 1rem + 9vw, 170px);
  --fs-quote: clamp(20px, 1rem + 1.2vw, 34px);
  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px; --space-5: 20px; --space-6: 24px;
  --space-8: 32px; --space-10: 40px; --space-12: 48px; --space-16: 64px; --space-20: 80px; --space-30: 120px; --space-40: 160px;
  --sec-y: clamp(64px, 3rem + 6vw, 160px);
  --gutter: clamp(16px, 0.5rem + 1.6vw, 28px);
  --header-h: 72px;
}
@media (max-width: 767px) { :root { --header-h: 60px; } }
