:root {
  color-scheme: dark;
  --ink: #141825;
  --surface: #1c2230;
  --paper: #f7efe0;
  --muted: #c0c3d0;
  --accent: #e7c094;
  --line: #3a4051;
  font-family: "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  color: var(--paper);
  background: var(--ink);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: radial-gradient(ellipse at 50% 5%, #252c46 0%, transparent 55%) no-repeat; }
a { color: inherit; text-underline-offset: .25em; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: .35rem; }
::selection { background: var(--accent); color: var(--ink); }
.wrap { width: min(68rem, calc(100% - 6rem)); margin-inline: auto; }
.skip { position: absolute; left: 1rem; top: 1rem; z-index: 2; padding: .65rem 1rem; color: var(--ink); background: var(--accent); transform: translateY(-160%); }
.skip:focus { transform: none; }
.site-header, .footer { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.site-header { min-height: 5rem; border-bottom: 1px solid var(--line); }
.wordmark, nav { display: flex; align-items: center; }
.wordmark { gap: .7rem; text-decoration: none; font-size: .78rem; font-weight: 750; letter-spacing: .18em; }
.wordmark span { display: grid; place-items: center; width: 2rem; height: 2rem; border: 1px solid #a48869; border-radius: 50%; color: var(--accent); font-size: .98rem; letter-spacing: normal; }
nav { gap: clamp(1rem, 3vw, 2rem); }
nav a, .footer a { font-size: .86rem; text-decoration: none; color: var(--muted); }
nav a:hover, .footer a:hover { color: var(--paper); }
.hero { padding: clamp(3.25rem, 9vw, 7.25rem) 0 clamp(2.5rem, 5vw, 4rem); text-align: center; }
.hero p { margin: 0; }
.hero p:last-child { margin-top: 1.1rem; color: var(--muted); font-size: .98rem; letter-spacing: .08em; }
.hero .eyebrow { color: var(--accent); letter-spacing: .24em; font-size: .74rem; }
h1, h2 { font-family: "Yu Mincho", "Hiragino Mincho ProN", "Songti SC", SimSun, Georgia, serif; }
h1 { margin: .18em 0 0; font-size: clamp(3.7rem, 11vw, 7.4rem); font-weight: 600; letter-spacing: .12em; line-height: 1.12; text-indent: .12em; }
.characters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1.1rem, 3vw, 2.15rem); }
.character { border: 1px solid var(--line); background: var(--surface); border-radius: 1rem; overflow: hidden; scroll-margin-top: 1.5rem; }
.portrait { position: relative; isolation: isolate; aspect-ratio: 5 / 3; overflow: hidden; }
.portrait::before, .portrait::after { content: ""; position: absolute; z-index: -1; pointer-events: none; }
.portrait::before { width: 53%; aspect-ratio: 1; left: 24%; top: -4%; border-radius: 50%; background: var(--moon); opacity: .53; }
.portrait::after { inset: 0; background: repeating-radial-gradient(ellipse at 50% 115%, transparent 0 13px, #fff2 13.7px 14.5px, transparent 15px 27px); mask-image: linear-gradient(transparent 12%, #000 86%); }
.portrait-one { background: linear-gradient(160deg, #453241, #6c495a 52%, #302634); --moon: #e7b8ae; }
.portrait-two { background: linear-gradient(160deg, #203246, #3a5667 52%, #1d2b3e); --moon: #a6c5cf; }
.profile { padding: clamp(1.25rem, 4vw, 2rem); }
h2 { margin: 0 0 1rem; font-size: clamp(1.7rem, 4vw, 2.5rem); font-weight: 600; letter-spacing: .08em; }
.role-summary { margin: 0; color: var(--muted); font-size: .9rem; }
.footer { margin-top: clamp(3rem, 8vw, 6rem); padding-block: 1.35rem 2rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .85rem; }
@media (max-width: 680px) {
  .wrap { width: calc(100% - 2.5rem); }
  .site-header { min-height: 4rem; }
  .characters { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
