@font-face {
  font-family: "Atlas Serif";
  src: url("../assets/fonts/atlas-serif.woff") format("woff");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #141612;
  --header: #131510;
  --surface: #1b1e18;
  --surface-light: #22251e;
  --line: #383a2e;
  --line-gold: #63573d;
  --ink: #f0eadb;
  --muted: #b7b4a5;
  --subtle: #a29e8e;
  --gold: #d6b782;
  --gold-bright: #ebd3a5;
  --serif: "Atlas Serif", "Noto Serif CJK SC", "Songti SC", SimSun, Georgia, serif;
  --body: "Noto Sans CJK SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --header-height: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--body); font-size: 16px; line-height: 1.7; }
h1, h2, h3, p, figure, dl, dd { margin: 0; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.36; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button { color: inherit; }
:focus-visible { outline: 2px solid var(--gold-bright); outline-offset: 5px; }
#main:focus, #map-title:focus { outline: none; }
#main { min-height: calc(100vh - var(--header-height) - 100px); }
.frame { width: min(100% - 112px, 1232px); margin-inline: auto; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.skip-link { position: fixed; z-index: 20; top: 8px; left: 8px; padding: 8px 16px; background: var(--gold); color: #18160f; transform: translateY(-150%); }
.skip-link:focus { transform: none; }
.topbar { position: sticky; z-index: 10; top: 0; background: var(--header); border-bottom: 1px solid #303126; }
.topbar-inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; min-height: var(--header-height); gap: 30px; }
.brand { display: inline-flex; width: max-content; align-items: center; gap: 12px; }
.seal { display: grid; width: 37px; height: 37px; place-items: center; border: 1px solid #9f8357; border-radius: 2px; color: var(--gold); font: 22px/1 var(--serif); }
.brand-text { display: grid; gap: 4px; line-height: 1.2; }
.brand-text strong { font-family: var(--serif); font-size: 17px; font-weight: 400; letter-spacing: .055em; }
.brand-text small { color: var(--subtle); font-size: 9px; letter-spacing: .18em; }
.primary-nav { display: flex; align-items: stretch; gap: 34px; align-self: stretch; }
.primary-nav a { display: inline-flex; align-items: center; gap: 8px; padding: 2px 10px 0; border-bottom: 2px solid transparent; color: var(--muted); font-size: 15px; }
.primary-nav a:hover, .primary-nav a[aria-current] { color: var(--gold-bright); }
.primary-nav a[aria-current] { border-bottom-color: var(--gold); }
.edition { justify-self: end; display: flex; align-items: center; gap: 9px; color: var(--gold); font-size: 13px; letter-spacing: .06em; white-space: nowrap; }
.edition span { width: 6px; height: 6px; border: 1px solid var(--gold); transform: rotate(45deg); }
.icon { position: relative; display: inline-block; flex: none; width: 15px; height: 15px; }
.icon-search::before, .icon-zoom::before { content: ""; position: absolute; top: 0; left: 0; width: 11px; height: 11px; border: 1px solid currentColor; border-radius: 50%; }
.icon-search::after, .icon-zoom::after { content: ""; position: absolute; right: 0; bottom: 0; width: 6px; height: 1px; background: currentColor; transform: rotate(45deg); transform-origin: right; }
.icon-zoom { background: linear-gradient(currentColor, currentColor) 3px 5px / 5px 1px no-repeat, linear-gradient(currentColor, currentColor) 5px 3px / 1px 5px no-repeat; }

.kicker { color: var(--gold); font-size: 12px; line-height: 1.5; letter-spacing: .19em; }
.kicker[lang="en"] { font-family: system-ui, sans-serif; font-size: 11px; font-weight: 600; letter-spacing: .21em; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.button { display: inline-flex; min-height: 45px; padding: 9px 20px; align-items: center; justify-content: center; border: 1px solid transparent; border-radius: 2px; font-size: 14px; line-height: 1.4; cursor: pointer; text-align: center; transition: background-color .16s ease, border-color .16s ease, color .16s ease; }
.button-primary { background: #c9ab75; color: #17160f; border-color: #c9ab75; font-weight: 600; }
.button-primary:hover { background: #e0c38f; border-color: #e0c38f; }
.button-secondary { color: var(--gold-bright); border-color: var(--line-gold); background: transparent; }
.button-secondary:hover { background: #2b281e; border-color: var(--gold); }
.text-link { color: var(--gold-bright); text-decoration: underline; text-decoration-color: #8c7955; text-underline-offset: 4px; }
.text-link:hover { color: #fff1cf; text-decoration-color: currentColor; }
