/* ===============================
   fonts.css (Variable + Fallback)
   - 변수 폰트 1줄로 전 구간 커버
   - @supports로 구형 브라우저에 정적 웨이트 제공
   - 전역 폰트 스택 일원화
   =============================== */

/* 1) Pretendard Variable (권장 기본) */
@font-face {
  font-family: 'Pretendard';
  font-style: normal;
  font-weight: 100 900;             /* VF 축 범위 */
  font-display: swap;
  src: url('https://res.almightylist.kr/fonts/Pretendard-Variable.woff2') format('woff2-variations'),
       url('https://res.almightylist.kr/fonts/Pretendard-Variable.woff2') format('woff2');
}

/* 2) Fallback: 변수 폰트 미지원 브라우저용(선택)
   - 필요한 굵기만 최소로 두는 걸 권장(예: 400, 500, 700)
   - 모든 웨이트가 꼭 필요하면 더 추가해도 됨 */
@supports not (font-variation-settings: normal) {
  @font-face {
    font-family: 'Pretendard';
    font-weight: 400;
    font-style: normal;
    font-display: swap;
    src: url('https://res.almightylist.kr/fonts/Pretendard-Regular.woff2') format('woff2'),
         url('https://res.almightylist.kr/fonts/Pretendard-Regular.woff') format('woff');
  }
  @font-face {
    font-family: 'Pretendard';
    font-weight: 500;
    font-style: normal;
    font-display: swap;
    src: url('https://res.almightylist.kr/fonts/Pretendard-Medium.woff2') format('woff2'),
         url('https://res.almightylist.kr/fonts/Pretendard-Medium.woff') format('woff');
  }
  @font-face {
    font-family: 'Pretendard';
    font-weight: 700;
    font-style: normal;
    font-display: swap;
    src: url('https://res.almightylist.kr/fonts/Pretendard-Bold.woff2') format('woff2'),
         url('https://res.almightylist.kr/fonts/Pretendard-Bold.woff') format('woff');
  }
}

/* 3) Swiper 아이콘 폰트(텍스트 폰트와 분리) */
@font-face {
  font-family: 'swiper-icons';
  font-weight: 400;
  font-style: normal;
  font-display: block;
  src: url("data:application/font-woff;charset=utf-8;base64,d09GRgABAAAAAAZgABAAAAAAD...") format('woff');
}

/* 4) 전역 폰트 적용: 여기만 유지(다른 CSS의 font-family는 제거) */
html, body {
  font-family: 'Pretendard', 'Noto Sans KR', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
}
