/**
 * EB Garamond - 優雅的襯線字體
 * 用於英文、數字，搭配芫荽（中文標題）和思源宋體（中文正文）
 * 可變字體，支持 400-800 字重
 *
 * 兼容性說明：
 * - 現代瀏覽器使用 woff2-variations（可變字體）
 * - 舊版瀏覽器使用 woff2 作為 fallback
 */

@font-face {
  font-family: 'EB Garamond';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: local('EB Garamond'),
       local('EBGaramond'),
       url(/fonts/subsets/eb-garamond-latin.woff2) format('woff2-variations'),
       url(/fonts/subsets/eb-garamond-latin.woff2) format('woff2');
  unicode-range: U+0020-007E, U+00A0-00FF, U+0100-017F, U+0180-024F, U+1E00-1EFF, U+2000-206F, U+2070-209F, U+20A0-20CF, U+2100-214F;
}

/* 靜態字重備用 - 為不支援可變字體的瀏覽器提供特定字重 */
@font-face {
  font-family: 'EB Garamond';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: local('EB Garamond'),
       local('EBGaramond-Regular'),
       url(/fonts/subsets/eb-garamond-latin.woff2) format('woff2');
  unicode-range: U+0020-007E, U+00A0-00FF, U+0100-017F, U+0180-024F, U+1E00-1EFF, U+2000-206F, U+2070-209F, U+20A0-20CF, U+2100-214F;
}

@font-face {
  font-family: 'EB Garamond';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: local('EB Garamond SemiBold'),
       local('EBGaramond-SemiBold'),
       url(/fonts/subsets/eb-garamond-latin.woff2) format('woff2');
  unicode-range: U+0020-007E, U+00A0-00FF, U+0100-017F, U+0180-024F, U+1E00-1EFF, U+2000-206F, U+2070-209F, U+20A0-20CF, U+2100-214F;
}

@font-face {
  font-family: 'EB Garamond';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: local('EB Garamond Bold'),
       local('EBGaramond-Bold'),
       url(/fonts/subsets/eb-garamond-latin.woff2) format('woff2');
  unicode-range: U+0020-007E, U+00A0-00FF, U+0100-017F, U+0180-024F, U+1E00-1EFF, U+2000-206F, U+2070-209F, U+20A0-20CF, U+2100-214F;
}
