/* TheSudoku LevelTest — self-hosted fonts (v1.0.85, H-2 fix)
 *
 * 이유: html-to-image 의 toBlob 이 라이선스 카드 PNG 를 만들 때
 * cross-origin stylesheets 의 cssRules 를 읽지 못해 SecurityError 발생,
 * 폰트가 PNG 에 inline 되지 못해 fallback 폰트로 렌더링되던 문제.
 * 같은 origin (/fonts/*) 에서 서빙하면 cssRules 가 그대로 읽혀 inline 됨.
 *
 * Pretendard: subset (Korean + Latin) — 5 weights (~270KB each)
 * Playfair Display: Latin-only (Bold) — only used for "TheSudoku" wordmark
 */

@font-face {
  font-family: 'Pretendard';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: local('Pretendard Regular'),
       url('/fonts/Pretendard-Regular.subset.woff2') format('woff2');
}

@font-face {
  font-family: 'Pretendard';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: local('Pretendard Medium'),
       url('/fonts/Pretendard-Medium.subset.woff2') format('woff2');
}

@font-face {
  font-family: 'Pretendard';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: local('Pretendard SemiBold'),
       url('/fonts/Pretendard-SemiBold.subset.woff2') format('woff2');
}

@font-face {
  font-family: 'Pretendard';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: local('Pretendard Bold'),
       url('/fonts/Pretendard-Bold.subset.woff2') format('woff2');
}

@font-face {
  font-family: 'Pretendard';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: local('Pretendard ExtraBold'),
       url('/fonts/Pretendard-ExtraBold.subset.woff2') format('woff2');
}

@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/PlayfairDisplay-Bold.woff2') format('woff2');
}
