:root {
  color-scheme: dark;
  --bg: #121712;
  --surface: #191f18;
  --surface-raised: #222920;
  --border: #373e32;
  --ink: #f0ebdf;
  --muted: #b7baac;
  --gold: #d4b57e;
  --gold-strong: #ebc68a;
  --display: "Cormorant Garamond", Georgia, "Songti SC", serif;
  --body: "DM Sans", system-ui, -apple-system, "PingFang SC", sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding: 5rem; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 1rem/1.62 var(--body); }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button, summary { cursor: pointer; }
button { color: inherit; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--gold-strong); outline-offset: 5px; }
.wrap { width: min(100% - 96px, 1264px); margin-inline: auto; }
.sr-only, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.skip:focus { position: fixed; z-index: 20; top: 12px; left: 12px; padding: 8px 16px; background: var(--gold); color: #1a170f; }
.masthead { position: relative; z-index: 3; background: #141914; border-bottom: 1px solid #323a30; }
.nav-row { min-height: 73px; display: flex; justify-content: space-between; gap: 24px; align-items: center; }
.brand { display: inline-flex; align-items: center; gap: 13px; white-space: nowrap; color: var(--ink); font: 700 .83rem/1.2 var(--body); letter-spacing: .1em; }
.mark { width: 30px; height: 30px; display: grid; place-items: center; color: var(--gold); border: 1px solid #967e57; font-size: 1.45rem; line-height: 1; transform: rotate(45deg); }
.brand strong { color: var(--gold-strong); }
.brand small { display: block; color: var(--muted); font-size: .69rem; letter-spacing: .21em; margin-top: .2rem; }
.desktop-nav { display: flex; align-items: center; gap: clamp(1rem, 3.25vw, 3.2rem); }
.desktop-nav a, .language { font-size: .9rem; font-weight: 600; color: var(--muted); white-space: nowrap; }
.desktop-nav a:hover, .desktop-nav a[aria-current], .language:hover { color: var(--gold-strong); }
.nav-actions { display: flex; gap: 17px; align-items: center; }
.search-trigger { display: flex; align-items: center; gap: 9px; padding: 7px 10px; border: 1px solid var(--border); border-radius: 4px; background: #1b221a; font-size: .87rem; color: var(--muted); }
.search-trigger:hover { background: var(--surface-raised); color: var(--ink); }
.magnifier { position: relative; width: 11px; height: 11px; margin: 0 3px 3px 0; border: 1.5px solid currentColor; border-radius: 50%; }
.magnifier::after { position: absolute; content: ""; width: 5px; height: 1.5px; right: -4px; bottom: -2px; background: currentColor; transform: rotate(47deg); }
kbd { display: inline-grid; place-items: center; width: 19px; height: 21px; border: 1px solid #41483d; border-radius: 3px; font-size: .73rem; }
.mobile-nav { display: none; }

.hero { isolation: isolate; position: relative; display: grid; min-height: min(70vw, 552px); overflow: hidden; background: #252f27; }
.hero-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 62% 46%; z-index: -2; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, #111710f5 0%, #111710cc 27%, #11171050 58%, #15221a04 85%), linear-gradient(0deg, #121712de, transparent 40%); }
.hero-inner { position: relative; display: flex; align-items: center; padding-block: 58px 68px; }
.hero-copy { width: min(100%, 660px); }
.kicker { color: var(--gold); font-weight: 700; letter-spacing: .145em; text-transform: uppercase; font-size: .82rem; }
.hero h1 { margin: 17px 0 19px; font: 700 clamp(4.8rem, 9.4vw, 9.25rem)/.76 var(--display); letter-spacing: -.046em; }
.hero h1 > span, .hero h1 > em { display: block; }
.hero h1 em { font-style: normal; color: var(--gold-strong); }
.hero h1 i { color: var(--ink); font-style: normal; }
.hero-copy > p:not(.kicker) { max-width: 46ch; color: #d7d8cb; font-size: clamp(1rem, 1.65vw, 1.15rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 11px; margin-top: 27px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 45px; padding: 10px 17px; border: 1px solid transparent; border-radius: 4px; font-size: .9rem; font-weight: 700; }
.button.primary { background: var(--gold); color: #1c1a13; }
.button.primary:hover { background: var(--gold-strong); }
.button.secondary { border-color: #a5a39289; background: #1a2117a6; }
.button.secondary:hover { background: #30382b; }
.hero-credit { position: absolute; right: 0; bottom: 29px; color: #e1e1d0; font-size: .78rem; }
.facts { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: -13px; border: 1px solid #45483a; background: #1b221a; border-radius: 5px; box-shadow: 0 16px 30px #0c110b48; }
.facts a { display: grid; align-content: start; padding: 18px 22px; min-width: 0; }
.facts a + a { border-left: 1px solid #3a4136; }
.facts a:hover { background: var(--surface-raised); }
.facts span, .facts small { color: var(--muted); font-size: .84rem; }
.facts strong { color: var(--gold-strong); font: 700 clamp(1.55rem, 2.4vw, 2.25rem)/1.05 var(--display); overflow-wrap: anywhere; margin: 5px 0 4px; }
.section { padding-block: 49px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 23px; }
h2 { font: 600 clamp(2.1rem, 4.1vw, 3.6rem)/1.04 var(--display); }
.section h2 { margin-top: 5px; }
.text-link { display: inline-block; color: var(--gold-strong); font-weight: 700; font-size: .89rem; border-bottom: 1px solid #a38858; padding-block: .16em; text-wrap: nowrap; }
.text-link:hover { color: var(--ink); border-color: var(--ink); }
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.entry-card { display: block; overflow: hidden; border: 1px solid var(--border); border-radius: 5px; background: var(--surface); min-width: 0; }
.entry-card:hover { border-color: #9f875f; background: var(--surface-raised); }
.card-picture { aspect-ratio: 2.05; overflow: hidden; background: var(--surface-raised); }
.card-picture img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.entry-card:hover .card-picture img { transform: scale(1.035); }
.card-text { padding: 18px 19px 20px; }
.card-text h3 { margin: 5px 0 7px; font: 700 clamp(1.55rem, 2.9vw, 2.55rem)/1.02 var(--display); }
.card-text p { color: var(--muted); }
.card-text .kicker { font-size: .76rem; }
.lower { display: grid; grid-template-columns: 1.2fr 1fr; gap: 24px; padding-top: 0; }
.journal { padding: 25px 25px 23px; border: 1px solid var(--border); border-radius: 5px; background: var(--surface); }
.journal h2 { font-size: clamp(2rem, 3.5vw, 3rem); }
.journal-list { margin: 17px 0 14px; }
.journal-list a { display: grid; grid-template-columns: 105px 1fr auto; align-items: start; gap: 12px; padding-block: 10px; border-top: 1px solid var(--border); }
.journal-list a:hover strong { color: var(--gold); }
.journal-list time { color: var(--muted); font-size: .84rem; margin-top: 3px; }
.journal-list span { color: var(--gold); }
.primer { position: relative; isolation: isolate; min-height: 260px; display: grid; align-content: end; overflow: hidden; background: #263129; border: 1px solid var(--border); border-radius: 5px; }
.primer::after { position: absolute; content: ""; inset: 0; background: linear-gradient(10deg, #131b13 10%, #131b13b0 51%, #131b1326); z-index: -1; }
.primer img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.primer > div { padding: 24px; }
.primer p:not(.kicker) { color: #e1e1d4; margin: 7px 0 11px; }

.page-top { margin-bottom: 28px; }
.page-top h1 { font: 700 clamp(3.25rem, 7.4vw, 6.8rem)/.92 var(--display); letter-spacing: -.035em; margin: 10px 0 15px; }
.page-top > p:not(.kicker) { color: var(--muted); max-width: 67ch; font-size: 1.13rem; }
.breadcrumb { display: flex; gap: 10px; color: var(--muted); font-size: .89rem; margin-bottom: 25px; }
.breadcrumb a:hover { color: var(--gold-strong); }
.article-picture { position: relative; border: 1px solid var(--border); border-radius: 5px; overflow: hidden; }
.article-picture img { width: 100%; height: clamp(211px, 36vw, 350px); object-fit: cover; }
.article-picture figcaption { position: absolute; bottom: 10px; right: 10px; background: #141a11d9; color: var(--ink); padding: 4px 8px; font-size: .78rem; }
.article-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(185px, 260px); align-items: start; gap: clamp(22px, 6vw, 92px); margin-top: 25px; }
.prose { max-width: 77ch; }
.prose section, .question { padding-block: 22px; border-bottom: 1px solid var(--border); }
.prose h2 { font-size: clamp(1.8rem, 3.6vw, 2.65rem); margin: 0 0 9px; }
.prose p { color: #d2d5c8; }
.article-aside { display: grid; gap: 12px; position: sticky; top: 1.2rem; }
.article-aside nav { border: 1px solid var(--border); border-radius: 5px; background: var(--surface); padding: 16px; }
.article-aside h2 { font: 700 1rem/1.4 var(--body); color: var(--gold-strong); margin: 0; }
.article-aside ul, .source-list { list-style: none; padding: 0; margin: 8px 0 0; }
.article-aside li { padding: 4px 0; font-size: .92rem; color: var(--muted); }
.article-aside a:hover, .source-list a:hover { color: var(--ink); text-decoration: underline; }
.source-list li { padding-block: 4px; }
.source-list a { color: var(--gold-strong); text-decoration: underline; text-underline-offset: 3px; }
.question { padding-block: 16px; }
.question summary { font-weight: 700; color: var(--ink); }
.question p { margin: 8px 0 0; }

.directory-controls { display: grid; gap: 8px; margin: 0 0 25px; }
.directory-controls label { color: var(--gold); font-weight: 700; }
input[type="search"] { border-radius: 4px; border: 1px solid #5c6354; background: #1b211a; color: var(--ink); padding: 9px 12px; width: min(100%, 490px); }
.filters { display: flex; gap: 7px; flex-wrap: wrap; margin-top: 7px; }
.filters button { padding: 6px 12px; background: var(--surface); border: 1px solid var(--border); border-radius: 4px; font-size: .9rem; }
.filters button[aria-pressed="true"] { color: #211b10; background: var(--gold); border-color: var(--gold); }
.filters button:hover:not([aria-pressed="true"]) { border-color: var(--gold); }
.footer { border-top: 1px solid var(--border); background: #101610; }
.footer-grid { display: grid; grid-template-columns: 1.35fr 1fr auto; gap: 29px; padding-block: 28px; color: var(--muted); font-size: .9rem; }
.footer-grid > div:first-child p { max-width: 54ch; margin-top: 12px; }
.footer-grid > div:nth-child(2) { display: grid; align-content: start; gap: 5px; color: var(--gold); }
.updated { text-align: right; }
.search-dialog { width: min(100% - 32px, 610px); max-height: min(72vh, 650px); padding: 20px 22px 25px; border: 1px solid #626856; border-radius: 6px; background: #1b2219; color: var(--ink); box-shadow: 0 16px 70px #000a; }
.search-dialog::backdrop { background: #070b08ba; }
.dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 12px; }
.dialog-head h2 { font-size: clamp(1.85rem, 6vw, 2.65rem); }
.dialog-head button { border: 1px solid var(--border); background: var(--surface-raised); border-radius: 4px; font-size: 1.4rem; line-height: 1; padding: 3px 9px 5px; }
.search-dialog input { width: 100%; }
.search-results { margin-top: 12px; }
.search-results > a { display: grid; padding: 9px 4px; border-bottom: 1px solid var(--border); }
.search-results > a:hover { background: var(--surface-raised); }
.search-results > a strong { color: var(--gold-strong); }
.search-results > p, .search-results > a span { color: var(--muted); font-size: .9rem; }
html[lang="zh-Hans"] .hero h1 { font-size: clamp(3.7rem, 8.7vw, 7.85rem); line-height: .94; }
html[lang="zh-Hans"] .hero h1 > span > em { font-family: var(--display); }
html[lang="zh-Hans"] h1, html[lang="zh-Hans"] h2, html[lang="zh-Hans"] h3 { font-family: "Songti SC", "Noto Serif CJK SC", Georgia, serif; letter-spacing: 0; }
html[lang="zh-Hans"] .page-top h1 { font-size: clamp(2.6rem, 6.4vw, 5.6rem); line-height: 1.1; }

@media (max-width: 1000px) {
  .wrap { width: calc(100% - 52px); }
  .hero { min-height: 505px; }
  .hero h1 { font-size: clamp(4.35rem, 10.6vw, 7rem); }
  .facts a { padding-inline: 13px; }
}
@media (max-width: 740px) {
  .wrap { width: calc(100% - 32px); }
  .nav-row { min-height: 59px; gap: 12px; }
  .nav-actions { gap: 11px; }
  .desktop-nav, .search-word, .search-trigger kbd { display: none; }
  .search-trigger { min-width: 36px; min-height: 34px; justify-content: center; }
  .mobile-nav { display: block; }
  .mobile-nav summary { padding: 5px 8px; color: var(--muted); font-size: .88rem; list-style: none; border: 1px solid var(--border); border-radius: 4px; }
  .mobile-nav nav { position: absolute; right: 14px; top: 55px; min-width: 140px; border: 1px solid var(--border); border-radius: 4px; background: var(--surface-raised); }
  .mobile-nav a { display: block; padding: 8px 11px; }
  .mobile-nav a:hover { background: var(--surface); }
  .hero { min-height: 466px; }
  .hero-art { object-position: 65% 50%; }
  .hero::before { background: linear-gradient(90deg, #111710df 0%, #11171091 62%, #15221a23), linear-gradient(0deg,#121712d9,transparent 36%); }
  .hero-inner { padding-block: 49px 68px; }
  .hero-credit { bottom: 24px; right: 0; }
  .facts { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .facts a + a { border-left: 0; }
  .facts a:nth-child(2n) { border-left: 1px solid #3a4136; }
  .facts a:nth-child(n + 3) { border-top: 1px solid #3a4136; }
  .facts a { padding: 11px 14px; }
  .section { padding-block: 30px; }
  .section-heading { align-items: start; flex-direction: column; gap: 9px; margin-bottom: 15px; }
  .card-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 11px; }
  .card-text { padding: 13px; }
  .lower { padding-top: 0; grid-template-columns: minmax(0,1fr); gap: 15px; }
  .article-grid, .footer-grid { grid-template-columns: minmax(0,1fr); }
  .article-aside { position: static; }
  .footer-grid { gap: 14px; }
  .updated { text-align: left; }
}
@media (max-width: 475px) {
  .brand { gap: 9px; font-size: .72rem; }
  .mark { width: 23px; height: 23px; font-size: 1.1rem; }
  .hero { min-height: 435px; }
  .hero h1 { font-size: clamp(3.8rem, 15vw, 5rem); }
  .hero-actions { gap: 7px; }
  .button { padding-inline: 11px; }
  .card-grid { grid-template-columns: minmax(0,1fr); }
  .card-picture { aspect-ratio: 2.5; }
  .journal { padding: 17px; }
  .journal-list a { grid-template-columns: 83px 1fr; gap: 5px; }
  .journal-list span { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0s !important; }
}
