/* CJK-only faces keep the original Latin lettering and give Chinese its own voice. */
@font-face {
  font-family: "Bricolage Grotesque Variable";
  src: url("./fonts/smiley-sans-cjk.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+2E80-9FFF, U+F900-FAFF, U+FF00-FFEF;
}
@font-face {
  font-family: "Human Text CJK";
  src: url("./fonts/lxgw-wenkai-cjk.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+2E80-9FFF, U+F900-FAFF, U+FF00-FFEF;
}
:root {
  --f-display: "Bricolage Grotesque Variable", "Bricolage Grotesque", "PingFang SC", "Microsoft YaHei", sans-serif;
  --f-body: "Human Text CJK", "Bricolage Grotesque Variable", "PingFang SC", sans-serif;
  --f-serif: "Instrument Serif", "Human Text CJK", "Songti SC", serif;
  --f-mono: "Cutive Mono", "Human Text CJK", "PingFang SC", monospace;
}
html[lang="zh-CN"] .lt-line {
  font-family: var(--f-body);
  letter-spacing: 0;
  line-height: 1.22;
}
html[lang="zh-CN"] .i-head {
  width: max-content;
  max-width: calc(100vw - 2 * var(--pad));
  line-height: 1.15;
  letter-spacing: .005em;
}
html[lang="zh-CN"] .i-cap {
  letter-spacing: .015em;
  line-height: 1.34;
  text-wrap: balance;
}
html[lang="zh-CN"] .i-em { font-family: var(--f-serif); }
html[lang="zh-CN"] .t-surface { font-family: var(--f-body); font-weight: 400; line-height: 1.12; letter-spacing: .01em; }
html[lang="zh-CN"] .t-under { line-height: 1.28; }
html[lang="zh-CN"] .t-say { letter-spacing: 0; }
html[lang="zh-CN"] .ou-r1 { line-height: 1.22; letter-spacing: .015em; }
html[lang="zh-CN"] .ou-r2 { line-height: 1.35; }
html[lang="zh-CN"] .index-card__t { line-height: 1.3; letter-spacing: .015em; }
html[lang="zh-CN"] .read { font-family: var(--f-body); line-height: 1.9; letter-spacing: .025em; }
html[lang="zh-CN"] .read h2,
html[lang="zh-CN"] .read h3 { font-family: var(--f-display); letter-spacing: .015em; line-height: 1.5; }
html[lang="zh-CN"] .file__text { line-height: 1.85; letter-spacing: .025em; }
@media (max-width: 700px) {
  html[lang="zh-CN"] .i-head { max-width: none; line-height: 1.18; }
  html[lang="zh-CN"] .i-cap { line-height: 1.4; }
  html[lang="zh-CN"] .h-quote { line-height: 1.5; letter-spacing: .015em; }
  html[lang="zh-CN"] .read { font-size: 18px; }
}

html[lang="zh-CN"] .c7-sh,
html[lang="zh-CN"] .c10-l { text-wrap: balance; }

/* A persistent, expandable credit keeps authorship visible without covering the stage. */
.author-credit {
  position: fixed;
  right: 16px;
  bottom: 12px;
  z-index: 10000;
  max-width: min(340px, calc(100vw - 32px));
  color: #201e1f;
  font: 12px/1.65 var(--f-body);
  letter-spacing: 0;
}
.author-credit summary {
  width: fit-content;
  margin-left: auto;
  padding: 5px 12px;
  border: 1px solid #201e1f26;
  border-radius: 20px;
  background: #f4efe8ed;
  cursor: pointer;
  list-style: none;
}
.author-credit summary::-webkit-details-marker { display: none; }
.author-credit summary:focus-visible { outline: 2px solid #fc4109; outline-offset: 3px; }
.author-credit__body {
  position: absolute;
  bottom: calc(100% + 10px);
  right: 0;
  width: min(340px, calc(100vw - 32px));
  padding: 16px;
  border: 1px solid #201e1f26;
  border-radius: 12px;
  background: #f4efe8;
  box-shadow: 0 6px 24px #201e1f26;
  font-size: 14px;
}
.author-credit__body p { margin: 0 0 10px; }
.author-credit__body a { color: inherit; text-underline-offset: 3px; }
@media (max-width: 700px) {
  .author-credit { right: 12px; bottom: 10px; font-size: 11px; }
}
