@font-face {
  font-family: 'Alibaba Sans SEA Regular';
  src: url('./AlibabaSansSEA-Rg.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: 'Alibaba Sans SEA Medium';
  src: url('./AlibabaSansSEA-Md.woff2') format('woff2');
  font-weight: 500;
  font-display: swap;
}

/* Preserve the regular face of mixed-weight PuHuiTi text, replacing its medium face. */
@font-face {
  font-family: 'Portal Localized Text';
  src: local('Alibaba PuHuiTi 3.0 55 Regular'), url('./puhuiti-portal-regular.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: 'Portal Localized Text';
  src: url('./AlibabaSansSEA-Md.woff2') format('woff2');
  font-weight: 500;
  font-display: swap;
}

.portal-localized-fonts:is(:lang(en), :lang(th)) {
  --portal-font-medium: 'Alibaba Sans SEA Medium';
  --portal-font-light: 'Alibaba Sans SEA Regular';
  --portal-font-text: 'Portal Localized Text';
}

@font-face {
  font-family: 'Alibaba Sans HK 75';
  src: url('./AlibabaSansHK-75.woff2') format('woff2');
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: 'Alibaba Sans HK 55';
  src: url('./AlibabaSansHK-55.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: 'Portal Traditional Chinese Text';
  src: local('Alibaba PuHuiTi 3.0 55 Regular'), url('./puhuiti-portal-regular.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: 'Portal Traditional Chinese Text';
  src: url('./AlibabaSansHK-75.woff2') format('woff2');
  font-weight: 500;
  font-display: swap;
}

.portal-localized-fonts:lang(zh-TW) {
  --portal-font-medium: 'Alibaba Sans HK 75';
  --portal-font-light: 'Alibaba Sans HK 55';
  --portal-font-text: 'Portal Traditional Chinese Text';
}

@font-face {
  font-family: 'Alibaba PuHuiTi-Medium';
  src: url('./AlibabaPuHuiTi-Medium.woff2') format('woff2');
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: 'Rany-Medium';
  src: url('./Rany-Medium.otf') format('opentype');
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: 'Rany-Regular';
  src: url('./Rany-Regular.otf') format('opentype');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: 'Rany-Medium Digits';
  src: url('./Rany-Medium.otf') format('opentype');
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  unicode-range: U+0030-0039,U+002B;
}

@font-face {
  font-family: 'Alibaba PuHuiTi 3.0 Light';
  src: url('./AlibabaPuHuiTi-3-45-Light.woff2') format('woff2');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

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

@font-face {
  font-family: 'AlibabaPuHuiTi';
  src: url('./AlibabaPuHuiTi-Medium.woff2') format('woff2');
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: 'Alibaba PuHuiTi';
  src: local('Alibaba PuHuiTi 3.0 55 Regular'), url('./puhuiti-portal-regular.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: 'Alibaba PuHuiTi';
  src: local('Alibaba PuHuiTi 3.0 65 Medium'), url('./puhuiti-portal-medium.woff2') format('woff2');
  font-weight: 500;
  font-display: swap;
}
