:root {
  color-scheme: dark;
  --page: #0c1425;
  --ink: #f2efe6;
  --soft: #c0c7d5;
  --quiet: #a8b6ca;
  --accent: #ffc879;
  --accent-ink: #282019;
  --line: #344151;
  --art: url("share-atlas.svg#space");
  font: 16px/1.6 system-ui, "PingFang SC", "Microsoft YaHei", sans-serif;
}
:root[data-theme="city"] {
  color-scheme: light;
  --page: #f8f5ed;
  --ink: #322d27;
  --soft: #594f45;
  --quiet: #6d6358;
  --accent: #984634;
  --accent-ink: #fff8ed;
  --line: #d8cfbf;
  --art: url("share-atlas.svg#city");
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--page); }
.page { width: min(100% - 64px, 1100px); margin-inline: auto; }
.masthead, .brand, .enter { display: flex; align-items: center; }
.masthead { min-height: 86px; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--line); }
.brand { gap: 10px; font-size: 1.3rem; font-weight: 720; letter-spacing: .055em; text-decoration: none; color: var(--ink); }
.brand img { border-radius: 10px; }
.motto { color: var(--quiet); font-size: .87rem; letter-spacing: .09em; }
.hero { display: grid; grid-template-columns: .86fr 1.14fr; gap: clamp(12px, 3vw, 44px); align-items: center; padding-block: clamp(30px, 6vw, 84px); }
.level { margin: 0 0 17px; color: var(--quiet); font-size: .83rem; font-weight: 650; letter-spacing: .12em; }
.level span { color: var(--ink); margin-inline-start: .35em; }
h1 { font-family: "Songti SC", "Noto Serif CJK SC", "Noto Serif SC", "STSong", "SimSun", serif; font-size: clamp(2.6rem, 4.5vw, 4.2rem); line-height: 1.24; letter-spacing: -.045em; margin: 0; }
h1 span { color: var(--accent); }
.lead { margin: 24px 0 28px; max-width: 24em; font-size: 1.04rem; line-height: 1.9; color: var(--soft); }
.enter { width: fit-content; gap: 22px; color: var(--accent-ink); background: var(--accent); padding: 11px 20px; border-radius: 8px; font-weight: 700; text-decoration: none; }
.enter svg, .tools svg { stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; fill: none; }
.enter:hover { filter: brightness(1.08); }
a:focus-visible { outline: 3px solid var(--accent); outline-offset: 5px; }
.atlas { width: 100%; aspect-ratio: 640/466; background: var(--art) center / 100% 100% no-repeat; border-radius: 46% 46% 4px 4px / 44% 44% 4px 4px; }
.tools { display: grid; grid-template-columns: 1fr 1fr .98fr; border-block: 1px solid var(--line); }
.tools > div { display: flex; gap: clamp(10px, 1.6vw, 20px); align-items: flex-start; padding: 26px 18px 26px 0; }
.tools > div + div { padding-left: clamp(12px, 2.8vw, 34px); border-left: 1px solid var(--line); }
.tools svg { width: 28px; height: 28px; flex: none; margin-top: 1px; color: var(--accent); }
.tools h2 { font-size: 1.06rem; margin: 0 0 4px; }
.tools p { margin: 0; color: var(--soft); font-size: .88rem; }
.page .site-footer { border: 0; margin-top: 0; }
@media (max-width: 760px) {
  .page { width: min(100% - 36px, 570px); }
  .masthead { min-height: 67px; }
  .brand { font-size: 1.1rem; }
  .brand img { width: 31px; height: 31px; }
  .motto { font-size: .74rem; letter-spacing: .03em; }
  .hero { grid-template-columns: 1fr; gap: 28px; padding-block: 30px 24px; }
  .lead { margin: 16px 0 19px; font-size: 1rem; }
  .level { margin-bottom: 10px; }
  .atlas { width: min(100%, 440px); justify-self: center; }
  .tools { grid-template-columns: 1fr; }
  .tools > div, .tools > div + div { padding: 16px 2px; border-left: 0; gap: 16px; }
  .tools > div + div { border-top: 1px solid var(--line); }
  .tools h2 { margin-bottom: 0; }
}
@media (forced-colors: active) {
  .enter { border: 1px solid ButtonText; }
}

.masthead-tools { display:flex; align-items:center; gap:14px; justify-content:flex-end; }
html:not([lang^="zh"]) .hero h1 { letter-spacing:-.025em; font-size:clamp(2.55rem,4.5vw,3.55rem); overflow-wrap:break-word; }
@media(max-width:680px) { .masthead-tools .motto { display:none; } }


/* The public page opens the same poster composer without loading the map. */
#share-dialog {
  --card:#162136; --paper:#101a2c; --rule:var(--line); --red-dark:#a5eddf;
  --serif:ui-serif,serif; --sans:system-ui,sans-serif; line-height:1.5;
}
:root[data-theme="city"] #share-dialog { --card:#fffcf6; --paper:#f6f0e4; --red-dark:#8b4032 }
#share-dialog :where(button) { cursor:pointer }
#share-close, .share-kind button, #share-instagram-send { border:0 }
#share-dialog button:focus-visible { outline:2px solid var(--red-dark); outline-offset:2px }
.masthead + .share-load-error { display:block; margin-top:10px; color:var(--soft); }
.masthead + .share-load-error a { color:var(--accent); }
@media(max-width:380px) {
  .masthead {gap:8px}
  .masthead .brand {min-width:0;line-height:1.25}
}
