/*
 * 루나토끼 랜딩 자체 호스팅 서체 — iOS 번들(App/Fonts/*.otf)을 woff2로 변환한 것.
 * 전체 글리프 유지(서브셋 아님). pyftsubset --unicodes='*' --flavor=woff2.
 *
 * 사용:  <link rel="stylesheet" href="/fonts/fonts.css">
 *        font-family: var(--font-sans) / var(--font-serif)
 *
 * 주의: Pretendard 4종 합계 ≈ 3.2MB. 랜딩은 Regular(400)·SemiBold(600)만 있어도
 *       시안을 재현할 수 있다(Medium 500·Bold 700은 칩/라벨용). 필요한 굵기만
 *       <link rel="preload">하고 나머지는 font-display:swap에 맡길 것.
 */

@font-face {
  font-family: 'Pretendard';
  src: url('/fonts/Pretendard-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Pretendard';
  src: url('/fonts/Pretendard-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Pretendard';
  src: url('/fonts/Pretendard-SemiBold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Pretendard';
  src: url('/fonts/Pretendard-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'MaruBuri';
  src: url('/fonts/MaruBuri-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'MaruBuri';
  src: url('/fonts/MaruBuri-SemiBold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --font-sans: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo',
    'Noto Sans KR', 'Malgun Gothic', system-ui, sans-serif;
  --font-serif: 'MaruBuri', 'Noto Serif KR', 'Apple SD Gothic Neo', Georgia, serif;
}

/* 일본어(html·랜딩 컨테이너의 lang=ja): 가나는 Pretendard, 한자는 한국어 폴백으로 갈라져
   굵기·모양이 섞이므로 시스템 일본어 서체를 Pretendard보다 앞에 둔다. 외부 파일 추가 없음. */
:lang(ja) {
  --font-sans: 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Noto Sans JP', 'Yu Gothic', 'Meiryo',
    system-ui, sans-serif;
  --font-serif: 'Hiragino Mincho ProN', 'Noto Serif JP', 'Yu Mincho', serif;
}
