/* ========================================================
   common.css — CSS 리셋 + 기본 base + 웹폰트
   ※ 디자인 토큰(:root 변수)과 공통 유틸리티는 style.css 로 이관.
     이 파일은 리셋/base/폰트/rem 스케일만 담당한다.
   ======================================================== */

/* ========================
   웹폰트 — General Sans (영문 전용, Fontshare CDN)
   삼우 WSG 영문 타이포는 General Sans, 국문은 Pretendard 사용.
   사내망/오프라인 환경이면 woff 를 다운로드해 font/ 로 옮기고
   아래 @import 를 로컬 @font-face 로 교체한다.
======================== */
@import url("https://api.fontshare.com/v2/css?f[]=general-sans@400,500,600,700&display=swap");

/* ========================
   웹폰트 — Pretendard (국문)
   파일: common_en/font/Pretendard-*.woff
======================== */
@font-face {
  font-family: "Pretendard";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../font/Pretendard-Regular.woff") format("woff");
}
@font-face {
  font-family: "Pretendard";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../font/Pretendard-Medium.woff") format("woff");
}
@font-face {
  font-family: "Pretendard";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../font/Pretendard-SemiBold.woff") format("woff");
}
@font-face {
  font-family: "Pretendard";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../font/Pretendard-Bold.woff") format("woff");
}
@font-face {
  font-family: "Pretendard";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("../font/Pretendard-ExtraBold.woff") format("woff");
}

/* ========================
   리셋 + 기본 base
======================== */
* {margin: 0; padding: 0; letter-spacing: -.04em; -webkit-box-sizing: border-box; box-sizing: border-box; -webkit-print-color-adjust: exact !important; print-color-adjust: exact; /* page-break-after: avoid; page-break-before: avoid; page-break-inside: avoid; break-inside: avoid-page; break-before: avoid-page; break-after: avoid-page; */ word-break: keep-all; caret-color: transparent;}
/* 입력 요소는 입력 커서(캐럿) 표시 복원 — 위 * 리셋의 caret-color:transparent 무효화 */
input, textarea, [contenteditable] {caret-color: auto;}
/* 2026-09-30 - 1920 마지마다는 비율대로 줄고, 그 위로는 더 안 커진다
   (0.052vw × 1920 = 0.9984px) */
html {width: 100%; height: 100%; font-size: min(0.052vw, 0.9984px); background: #fff;}
body {position: relative; font-family: "Pretendard", sans-serif; font-weight: normal; font-size: 16rem; letter-spacing: -0.02em; line-height: 150%; color: #1a1a1a; height: 100%; -webkit-text-size-adjust: 100%; -moz-text-size-adjust: 100%; -ms-text-size-adjust: 100%; -webkit-overflow-scrolling: touch; -webkit-print-color-adjust: exact !important; overflow-x: hidden; background: #fff; line-height: 24rem;}
body, div, h1, h2, h3, h4, h5, h6, ul, ol, li, dl, dt, dd, p, form, fieldset, table, tr, th, td, address {margin: 0; padding: 0; font-weight: normal;}
address {font-style: normal;} /* 브라우저 기본 이탤릭 해제 */
[hidden] {display: none !important;} /* display 지정 요소도 hidden 이 우선하도록 */
ul, ol, li {list-style: none;}
img, fieldset {border: none; vertical-align: top;}
legend, caption {overflow: hidden; position: absolute; border: 0; width: 1px; height: 1px; clip: rect(1px, 1px, 1px, 1px);}
textarea, button {vertical-align: middle;}
option {padding: 10px;}
input[type="text"] {-webkit-appearance: none;}
input[type="date"] {-webkit-appearance: none; color: #1A1A1A; background: #fff;}
input[type="radio"], input[type="checkbox"] {border: 0; padding: 0; /* height: auto; */ -webkit-box-shadow: none; -moz-box-shadow: none; box-shadow: none;}
input[type="password"]::-ms-reveal, input[type="password"]::-ms-clear {display: none;}
select {padding: 5rem; -webkit-appearance: none; -moz-appearance: none; appearance: none;}
textarea {padding: 10rem; vertical-align: middle; background: #fff; border: 1px solid #e1e1e1; font-family: "Pretendard", sans-serif; color: #000; letter-spacing: -.04rem; font-size: max(16rem, 12px); -webkit-appearance: none; -webkit-box-shadow: none; -moz-box-shadow: none; box-shadow: none; border-radius: 0; resize: vertical;}
a {text-decoration: none; color: inherit;}
a:hover, a:focus, a:active {text-decoration: none;}
table {border-collapse: collapse; width: 100%; background: #fff;}
button {background: none; border: none; padding: 0; margin: 0; cursor: pointer; font-family: "Pretendard", sans-serif; text-align: left; display: block;}
button:focus-visible {box-shadow: 0 0 0 2px #000; outline: 2px solid #000;}
article, aside, details, figcaption, figure, footer, header, hgroup, main, nav, section, summary {display: block;}
strong, b {font-family: "Pretendard", sans-serif;}
th {font-family: "Pretendard", sans-serif;}
:root {
  --brandColor: #1428a0; /* 삼우 대표 블루 */
}
input:focus, select:focus, option:focus, textarea:focus, button:focus{
	outline: none;
}

/* ========================
   반응형 rem 스케일
   · 기본(데스크톱): html font-size 0.052vw (1920 기준 1rem ≈ 1px)
   · 모바일(1024 이하): 0.2564vw (390 기준 1rem ≈ 1px)
   ※ 디자인 토큰의 반응형 재선언은 style.css @media 참조.
======================== */
@media (max-width: 1024px) {
  /* 2026-10-13 - 390 에서 1rem=1px. 그대로 두면 1024 에서 2.63px 까지 커져
     글자·여백이 2.6배가 된다 — 585(=1.5px) 부터는 더 키우지 않는다 */
  html {
    font-size: min(0.2564vw, 1.5px);
  }
}
