/* ==========================================================
   Fonts
   ========================================================== */
@font-face {
  font-family: 'Noto Sans KR';
  /* 기기에 깔린 글꼴(local)은 쓰지 않고 항상 사이트 파일을 쓴다. 파일 안 이름은 'Tap-' 로 시작하게 바꿔 두었다:
     맥에서 설치된 글꼴과 내부 이름이 같으면 두 글꼴의 글자가 뒤섞여 한글이 엉뚱한 음절로 보인다(2026-11 제보). */
  src: url('../fonts/NotoSansKR-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* 라틴/숫자/기호만 Atlas Grotesk가 맡도록 unicode-range를 제한한다.
   한글은 이 범위에 없으므로 자동으로 Noto Sans KR로 떨어진다(섞어짜기). */
@font-face {
  font-family: 'Atlas Grotesk';
  src: url('../fonts/AtlasGrotesk-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6,
    U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

/* 〈 〉 《 》만 반각으로: Noto Sans KR은 전각이라 Pretendard의 해당 글자만 잘라 쓴다.
   Pretendard(SIL OFL 1.1, 예약 이름 때문에 이름을 바꿈) → TAPBrackets-OFL.txt */
@font-face {
  font-family: 'TAP Brackets';
  src: url('../fonts/TAPBrackets-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+3008-300B;
}

/* The typeface being showcased on this site */
@font-face {
  font-family: 'Witz';
  src: url('../fonts/Witz.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* --main/--sub를 애니메이션 가능한 값으로 등록한다.
   CMS 실시간 갱신으로 값이 바뀔 때 body의 transition을 타고 부드럽게 전환된다. */
@property --main {
  syntax: '<color>';
  inherits: true;
  initial-value: #ff5aff;
}

@property --sub {
  syntax: '<color>';
  inherits: true;
  initial-value: #ffdeff;
}

/* ==========================================================
   Design tokens
   ========================================================== */
:root {
  /* palette */
  --main: #ff5aff;          /* 포인트 마젠타: 상단바, 구분선, 영상 프레임 */
  --sub: #ffdeff;           /* 연분홍: 히어로 배경, 타이핑 글자, 프레임 배경 */
  --white: #ffffff;
  --ink: #111111;
  --line-soft: rgba(17, 17, 17, 0.18);

  /* type — 섞어짜기: 라틴/숫자/기호 Atlas Grotesk + 한글 Noto Sans KR */
  --font-ui: 'TAP Brackets', 'Atlas Grotesk', 'Noto Sans KR', sans-serif;
  --font-display: 'Witz', var(--font-ui);

  /* type scale (1512px 원본 기준) */
  --fs-head: 28px;   /* 히어로 타이틀 */
  --fs-label: 24px;  /* 섹션 라벨 / 헤더 행 */
  --fs-body: 18px;   /* 본문, 표 */
  --fs-meta: 13px;   /* 상단바, 컨트롤, 캡션, 푸터 */

  /* layout */
  --gutter: 24px;
  --col-gap: 24px;
}

html {
  -webkit-text-size-adjust: 100%;
  /* 맥 터치패드로 끌어당겼을 때 드러나는 영역(캔버스) 색.
     Safari는 러버밴드 배경색을 background 축약형보다 background-color 단독
     속성에서 훨씬 안정적으로 인식한다. */
  background-color: var(--white);
}

body {
  font-family: var(--font-ui);
  font-size: var(--fs-body);
  color: var(--ink);
  background-color: var(--white);
  -webkit-font-smoothing: antialiased;
  transition: --main 0.3s ease, --sub 0.3s ease;
}

@media (prefers-reduced-motion: reduce) {
  body {
    transition: none;
  }
}

a {
  color: inherit;
  text-decoration: none;
}

/* 텍스트 드래그 선택 영역도 키컬러로 */
::selection {
  background: var(--main);
  color: var(--white);
}

/* utility */
.container {
  padding-inline: var(--gutter);
}

@media (max-width: 768px) {
  :root {
    --fs-head: 20px;
    --fs-label: 18px;
    --fs-body: 15px;
    --fs-meta: 11px;
    --gutter: 16px;
    --col-gap: 16px;
  }
}
