@font-face {
    font-family: 'Bilbo Swash Caps';
    src: url('../fonts/external/BilboSwashCaps/BilboSwashCaps-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Alex Brush';
    src: url('../fonts/external/AlexBrush/AlexBrush-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Cormorant Garamond';
    src: url('../fonts/external/CormorantGaramond/CormorantGaramond-Light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Cormorant Garamond';
    src: url('../fonts/external/CormorantGaramond/CormorantGaramond-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Playfair Display';
    src: url('../fonts/external/PlayfairDisplay/PlayfairDisplay-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Playfair Display';
    src: url('../fonts/external/PlayfairDisplay/PlayfairDisplay-Italic.ttf') format('truetype');
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}

/*
  [성능 최적화 2026-04-18]
  - 모든 @font-face에 font-display 추가 (FOIT 방지)
  - 메인에 필수인 Pretendard(400/600/700)와 JalnanGothic은 swap
  - Pretendard Thin(200), Light(300)는 제거 (사용 1~4건, 가까운 weight로 자동 대체)

  [2026-04-20 수정]
  - 에디터/청첩장 전용 폰트를 `optional` → `swap` 으로 전환.
    code splitting 으로 템플릿 CSS(예: DesignSimple_line_03.css)가 초기 렌더 이후
    lazy load 되면, `optional`은 webfont 를 스킵하고 fallback 을 고정시켜 버림.
    (Notted/Playfair 등이 적용 안 되는 현상 #1450)
    `swap` 은 fallback → webfont 스왑을 허용하므로 late-load 에도 폰트가 적용됨.
*/

@font-face {
	font-family: 'Notted';
	/* 돌잔치: Notted(구매 전)는 쓰지 않는다 → Allura(OFL) */
	src: url('../fonts/english/handwriting/Allura/original/Allura-Regular.woff2') format('woff2');
	font-weight: normal;
	font-style: normal;
	font-display: swap;
}

/*
  [돌잔치 라이선스 반영 2026-11-25, docs/baby/license-review.md]
  Termina(Fort Foundry 구매분)는 baby 도메인 포함 여부가 확인되지 않아 쓰지 않는다.
  잘난고딕(JalnanGothic)은 임베딩 조건 원문 확인 전이라 쓰지 않는다.
  화면 CSS·Tailwind 곳곳이 아래 이름을 쓰므로 이름은 그대로 두고, 파일만 OFL·공공누리 서체로 바꾼다.
  - Termina-Regular / Termina-Bold → Montserrat Regular / Bold (OFL)
  - JalnanGothic → 배민 도현체 (BMDOHYEON, 공공누리)
  라이선스가 확인되면 원래 파일 주소로 되돌린다.
*/
@font-face {
	font-family: 'Termina-Regular';
	src: url('../fonts/english/sans-serif/Montserrat/original/Montserrat-Regular.woff2') format('woff2');
	font-weight: normal;
	font-style: normal;
	font-display: swap;
}


@font-face {
	font-family: 'Termina-Bold';
	src: url('../fonts/english/sans-serif/Montserrat/original/Montserrat-Bold.woff2') format('woff2');
	font-weight: normal;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: 'NanumMyeongjo';
	src: url('../fonts/korean/serif/NanumMyeongjo/original/NanumMyeongjo-Regular.woff2') format('woff2');
	font-weight: normal;
	font-style: normal;
	font-display: swap;
}

/* Pretendard Thin (100) - 초경량 — 히어로 서브타이틀 느낌 톤용 */
@font-face {
    font-family: 'Pretendard';
    src: url('../fonts/korean/gothic/Pretendard/original/Pretendard-Thin.woff2') format('woff2');
    font-weight: 100;
    font-style: normal;
    font-display: swap;
}

/* Pretendard Light (300) - 히어로 타이틀/서브타이틀 가벼운 톤용 */
@font-face {
    font-family: 'Pretendard';
    src: url('../fonts/korean/gothic/Pretendard/original/Pretendard-Light.woff2') format('woff2');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

/* Pretendard Regular (400) - 메인 필수 */
@font-face {
    font-family: 'Pretendard';
    src: url('../fonts/korean/gothic/Pretendard/original/Pretendard-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* Pretendard Medium (500) - 히어로 타이틀용 */
@font-face {
    font-family: 'Pretendard';
    src: url('../fonts/korean/gothic/Pretendard/original/Pretendard-Medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

/* Pretendard SemiBold (600) - 메인 필수 */
@font-face {
    font-family: 'Pretendard';
    src: url('../fonts/korean/gothic/Pretendard/original/Pretendard-SemiBold.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

/* Pretendard Bold (700) - 메인 필수 */
@font-face {
    font-family: 'Pretendard';
    src: url('../fonts/korean/gothic/Pretendard/original/Pretendard-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}


@font-face {
    font-family: 'Chosunilbo_myungjo';
    /* 돌잔치: 조선일보명조체(확인 필요)는 쓰지 않는다 → 나눔명조(OFL) */
    src: url('../fonts/korean/serif/NanumMyeongjo/original/NanumMyeongjo-Regular.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}


@font-face {
    font-family: 'GowunDodum-Regular';
    src: url('../fonts/korean/serif/Gowun-Dodum/u005d-v1/GowunDodum-Regular-u005d-v1.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}


@font-face {
    font-family: 'MapoFlowerIsland';
    src: url('../fonts/korean/serif/MapoFlowerIsland/original/MapoFlowerIsland-Regular.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Solinsunny';
    src: url('../fonts/korean/handwriting/Solinsunny/original/Solinsunny-Regular.woff2') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'YoonChildfundkoreaDaeHan';
    src: url('../fonts/korean/handwriting/YoonChildfundkoreaDaeHan/original/YoonChildfundkoreaDaeHan.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'NanumSongeulssiPen';
    src: url('../fonts/korean/handwriting/NanumSongeulssiPen/original/NanumSongeulssiPen-Regular.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'SangsangTokkiGeummyeonSeongsil';
    /* 돌잔치: 상상토끼 금면성실(확인 필요)은 쓰지 않는다 → 나눔손글씨 송글씨펜(OFL) */
    src: url('../fonts/korean/handwriting/NanumSongeulssiPen/original/NanumSongeulssiPen-Regular.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'OwnglyphConcon';
    /* 돌잔치: 온글잎 콘콘체(확인 필요)는 쓰지 않는다 → 나눔손글씨 펜(OFL) */
    src: url('../fonts/korean/handwriting/NanumPen/original/NanumPen-Regular.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'iceJaram-Regular';
    /* 돌잔치: 인천교육자람(확인 필요)은 쓰지 않는다 → 카페24 고운밤(OFL) */
    src: url('../fonts/korean/handwriting/Cafe24Oneprettynight/original/Cafe24Oneprettynight-Regular.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}


@font-face {
    font-family: 'JalnanGothic';
    /* 돌잔치: 라이선스 확인 전까지 배민 도현체 파일을 쓴다(위 주석 참고) */
    src: url('../fonts/korean/gothic/BMDOHYEON/original/BMDOHYEON-Bold.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}
