/* source/_static/font.css */

/* 1. Pretendard 폰트 로드 (가독성 높은 한글/영문 폰트) */
@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard/dist/web/static/pretendard.css");

/* 2. Sphinx Book Theme 폰트 변수 재정의 */
:root {
  /* 기본 폰트 설정 */
  --pst-font-family-base: "Pretendard", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --pst-font-family-heading: "Pretendard", sans-serif;
  --pst-font-family-monospace: "JetBrains Mono", "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;

  /* 글자 크기 조정 (기본 15~16px은 한글에 작을 수 있어 약간 키움) */
  --pst-font-size-base: 16px;       /* 본문 기본 크기 */
  --pst-font-size-h1: 2.2rem;       /* H1 제목 크기 */
  --pst-font-size-h2: 1.75rem;      /* H2 제목 크기 */
  --pst-font-size-h3: 1.4rem;       /* H3 제목 크기 */
  
  /* 줄 간격 (한글은 영문보다 자간/행간이 넉넉해야 읽기 편함) */
  --pst-line-height-base: 1.7;
}

/* 코드 블록 폰트 크기 미세 조정 */
pre, code, kbd, samp {
  font-family: var(--pst-font-family-monospace);
  font-size: 0.9em; /* 본문보다 살짝 작게 */
}