/* Axura reading typography. Self-hosted fonts for article text and UI previews. */

@font-face { font-family: "Axura LXGW WenKai TC"; font-style: normal; font-weight: 300; font-display: swap; src: url("../../fonts/lxgw-wenkai-tc/LXGWWenKaiTC-Light.ttf") format("truetype"); }
@font-face { font-family: "Axura LXGW WenKai TC"; font-style: normal; font-weight: 400; font-display: swap; src: url("../../fonts/lxgw-wenkai-tc/LXGWWenKaiTC-Regular.ttf") format("truetype"); }
@font-face { font-family: "Axura LXGW WenKai TC"; font-style: normal; font-weight: 700; font-display: swap; src: url("../../fonts/lxgw-wenkai-tc/LXGWWenKaiTC-Bold.ttf") format("truetype"); }

@font-face { font-family: "Axura HarmonyOS Sans TC"; font-style: normal; font-weight: 300; font-display: swap; src: url("../../fonts/harmonyos-sans-tc/HarmonyOS_Sans_TC_Light.ttf") format("truetype"); }
@font-face { font-family: "Axura HarmonyOS Sans TC"; font-style: normal; font-weight: 400; font-display: swap; src: url("../../fonts/harmonyos-sans-tc/HarmonyOS_Sans_TC_Regular.ttf") format("truetype"); }
@font-face { font-family: "Axura HarmonyOS Sans TC"; font-style: normal; font-weight: 500; font-display: swap; src: url("../../fonts/harmonyos-sans-tc/HarmonyOS_Sans_TC_Medium.ttf") format("truetype"); }
@font-face { font-family: "Axura HarmonyOS Sans TC"; font-style: normal; font-weight: 700; font-display: swap; src: url("../../fonts/harmonyos-sans-tc/HarmonyOS_Sans_TC_Bold.ttf") format("truetype"); }

:root {
  --axura-font-lxgw: "Axura LXGW WenKai TC", "Noto Serif SC", "Source Han Serif SC", "PingFang SC", "Microsoft Yahei", serif;
  --axura-font-classic: "Axura HarmonyOS Sans TC", "HarmonyOS Sans", "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
}

.entry-content, .entry-content p, .entry-content li, .entry-content blockquote,
.entry-title, .entry-title a, h1.entry-title,
.single-center .single-header h1.entry-title, .pattern-center h1.entry-title, .pattern-center-axura h1.entry-title,
.toc, .toc-list, .toc-link,
.post-list-thumb .float-content p, .post-list-thumb .post-title h3, .post-list-thumb .post-title h3 a,
.post-list-thumb .post-meta, .post-list-thumb .post-date, .comment .body, .comment .body p {
  font-family: var(--axura-font-lxgw) !important;
}

body.serif .entry-content, body.serif .entry-content p, body.serif .entry-content li, body.serif .entry-content blockquote,
body.serif .entry-title, body.serif .entry-title a, body.serif h1.entry-title,
body.serif .single-center .single-header h1.entry-title, body.serif .pattern-center h1.entry-title, body.serif .pattern-center-axura h1.entry-title,
body.serif .toc, body.serif .toc-list, body.serif .toc-link,
body.serif .post-list-thumb .float-content p, body.serif .post-list-thumb .post-title h3, body.serif .post-list-thumb .post-title h3 a,
body.serif .post-list-thumb .post-meta, body.serif .post-list-thumb .post-date, body.serif .comment .body, body.serif .comment .body p {
  font-family: var(--axura-font-classic) !important;
}

/* LXGW renders optically smaller than the previous serif stack. */
.entry-content, .comment .body { font-size: calc(1em + 1px); }
.post-list-thumb .post-meta, .post-list-thumb .post-date { font-size: calc(1em + 1px); }
.post-list-thumb .float-content p { font-size: 14px !important; line-height: 1.55; }

.entry-content strong, .entry-content b, .entry-content h1, .entry-content h2, .entry-content h3, .entry-content h4, .entry-content h5, .entry-content h6,
.comment .body strong, .comment .body b { font-weight: 700 !important; }
body.serif .entry-content strong, body.serif .entry-content b, body.serif .comment .body strong, body.serif .comment .body b { font-weight: 600 !important; }
body.serif .entry-content h1, body.serif .entry-content h2, body.serif .entry-content h3,
body.serif .entry-content h4, body.serif .entry-content h5, body.serif .entry-content h6 {
  font-weight: 600 !important;
}

.skin-menu .font-family-controls button { font-size: 12px; line-height: 1.2; }
.skin-menu .font-family-controls .control-btn-serif { font-family: var(--axura-font-classic) !important; font-weight: 500; }
.skin-menu .font-family-controls .control-btn-sans-serif { font-family: var(--axura-font-lxgw) !important; font-weight: 700; }
