:root {
  color-scheme: light;
  --paper: #faf9f6;
  --ink: #302e29;
  --muted: #817c72;
  --rule: #e6e2da;
  --dictionary-highlight: #eee9df;
  background: var(--paper);
  color: var(--ink);
  font-family: Georgia, 'Times New Roman', serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0 auto; padding: 40px 40px 28px; max-width: 1080px; background: var(--paper); color: var(--ink); font: 18px/1.85 Georgia, 'Times New Roman', serif; }
a { color: inherit; }
.dictionary-site-header { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding-bottom: 25px; border-bottom: 1px solid var(--rule); font: 12px/1.5 Arial, sans-serif; }
.dictionary-site-header nav { display: flex; align-items: center; flex-wrap: wrap; gap: 24px; }
.dictionary-site-header a { text-decoration: none; color: var(--muted); transition: color 160ms ease; }
.dictionary-site-header a:hover, .dictionary-site-header a[aria-current] { color: var(--ink); }
.dictionary-site-header .brand { flex: none; color: var(--ink); font: 13px/1.5 Georgia, serif; letter-spacing: .19em; white-space: nowrap; }
#dictionary { max-width: 680px; margin: 52px auto 0; }
.language-toggle { display: flex; justify-content: flex-end; gap: 21px; margin: 0 0 34px; }
.language-toggle button { appearance: none; padding: 5px 0; border: 0; border-bottom: 1px solid transparent; border-radius: 0; background: transparent; color: var(--muted); font: 12px/1.5 Arial, sans-serif; cursor: pointer; }
.language-toggle button:hover { color: var(--ink); }
body:has(.content-en.active) #en-btn, body:has(.content-cn.active) #cn-btn { color: var(--ink); border-bottom-color: var(--ink); }
.content-en, .content-cn { display: none; }
.content-en.active, .content-cn.active { display: block; }
h1 { margin: 0 0 51px; padding: 0; border: 0; color: var(--ink); font: 400 52px/1.12 Georgia, 'Times New Roman', serif; letter-spacing: -.045em; text-wrap: balance; }
h1 .dictionary-subtitle { display: block; margin-top: 14px; color: #797368; font-size: 24px; line-height: 1.35; letter-spacing: -.015em; }
h2 { margin: 52px 0 16px; padding: 25px 0 0; border: 0; border-top: 1px solid var(--rule); color: var(--ink); font: 400 25px/1.4 Georgia, 'Times New Roman', serif; letter-spacing: -.025em; text-wrap: balance; }
h1 + h2 { margin-top: 0; padding-top: 0; border-top: 0; }
h3 { color: var(--ink); font-size: 20px; font-weight: 400; }
p { margin: 0 0 1.1em; }
p[id] { scroll-margin-top: 32px; transition: background-color 250ms ease; }
a.internal-link { color: inherit; text-decoration: none; border-bottom: 1px solid #c5bdb0; transition: border-color 160ms ease; }
a.internal-link:hover { border-color: var(--ink); }
#dictionary .layer-number { padding: 0; margin-right: .65em; border-radius: 0; background: none; color: #a09a8f; font: 11px/1.4 Arial, sans-serif; font-variant-numeric: tabular-nums; vertical-align: .13em; }
.note { margin: 1.3em 0 1.5em; padding-left: 18px; border-left: 1px solid #c9c2b5; color: #716b61; font-style: italic; }
.content-cn { font-family: 'Songti SC', 'Noto Serif CJK SC', SimSun, serif; line-height: 1.95; }
.content-cn h1, .content-cn h2 { font-family: inherit; letter-spacing: 0; }
.content-cn h1 { font-size: 43px; line-height: 1.35; }
.content-cn h1 .dictionary-subtitle { font-size: 23px; }
.dictionary-site-footer { max-width: 680px; margin: 65px auto 0; padding-top: 22px; border-top: 1px solid var(--rule); color: var(--muted); font: 11px/1.6 Arial, sans-serif; }
:focus-visible { outline: 2px solid #93846f; outline-offset: 5px; }
@media (max-width: 700px) {
  body { padding: 25px 24px; font-size: 17px; line-height: 1.8; }
  .dictionary-site-header { flex-direction: column-reverse; align-items: flex-start; gap: 18px; padding-bottom: 21px; }
  .dictionary-site-header nav { gap: 13px 20px; font-size: 11px; }
  #dictionary { margin-top: 31px; }
  .language-toggle { margin-bottom: 30px; }
  h1 { font-size: 42px; margin-bottom: 37px; }
  h1 .dictionary-subtitle { margin-top: 12px; font-size: 21px; }
  h2 { font-size: 23px; margin-top: 39px; padding-top: 22px; }
  .content-cn h1 { font-size: 34px; }
  .content-cn h1 .dictionary-subtitle { font-size: 20px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; } }
