@font-face {
  font-family: Inter;
  src: url('fonts/inter.woff2') format('woff2');
  font-weight: 400 700;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --surface: #10141c;
  --ink: #edf3ff;
  --muted: #a6b3c7;
  --line: #303a4b;
  --accent: #a0ccff;
  --reading: Inter, 'PingFang SC', 'Microsoft YaHei', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--surface); color: var(--ink); font: 1rem/1.6 var(--reading); }
h1, h2, h3, p, ul { margin: 0; }
h1, h2, h3 { line-height: 1.18; }
a { color: var(--accent); text-underline-offset: .25em; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
button { color: inherit; font: inherit; }
[hidden] { display: none !important; }
section[id], footer[id] { scroll-margin-top: 1.5rem; }

.shell { width: min(100% - 5rem, 68rem); margin-inline: auto; }
.skip { position: absolute; z-index: 5; top: 1rem; left: 1rem; padding: .6rem 1rem; transform: translateY(-160%); background: var(--accent); color: var(--surface); }
.skip:focus { transform: none; }

.masthead { border-bottom: 1px solid var(--line); }
.masthead-inner { min-height: 4.25rem; display: flex; align-items: center; gap: clamp(1rem, 3vw, 2.6rem); }
.identity { display: inline-flex; align-items: center; min-height: 2.75rem; margin-right: auto; color: var(--ink); text-decoration: none; }
.mark { display: inline-flex; align-items: baseline; gap: .22em; color: var(--ink); font-size: .93rem; font-weight: 700; letter-spacing: -.05em; }
.mark::after { content: ''; width: .26rem; height: .26rem; background: var(--accent); }
.masthead nav { display: flex; align-items: center; gap: clamp(.5rem, 2.75vw, 1.9rem); }
.masthead nav a, .locale { display: inline-flex; align-items: center; min-height: 2.75rem; color: var(--muted); text-decoration: none; white-space: nowrap; font-size: .875rem; font-weight: 550; }
.masthead nav a:hover, .locale:hover { color: var(--ink); text-decoration: underline; }
.locale { padding-left: clamp(.85rem, 2.1vw, 1.65rem); border-left: 1px solid var(--line); min-height: 1.5rem; color: var(--accent); }

.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); isolation: isolate; }
.hero::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: 0 0 0 37%;
  opacity: .53;
  animation: grid-in .7s ease-out both;
  background:
    linear-gradient(to right, #a0ccff22 1px, transparent 1px),
    linear-gradient(to bottom, #a0ccff22 1px, transparent 1px),
    radial-gradient(ellipse at 85% 12%, #314b76, transparent 73%);
  background-size: 36px 36px, 36px 36px, auto;
  mask-image: radial-gradient(ellipse at 85% 6%, #000 13%, transparent 78%);
}

@keyframes grid-in {
  from { opacity: 0; transform: translateY(-.5rem); }
  to { opacity: .53; transform: translateY(0); }
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(13rem, .43fr);
  align-items: end;
  gap: 2rem 3.75rem;
  padding-block: clamp(3.5rem, 7vw, 6rem) clamp(3rem, 5.5vw, 4.65rem);
}
.secondary-name { color: var(--muted); font-size: 1.05rem; font-weight: 500; letter-spacing: .08em; }
[lang="zh-CN"] .secondary-name { letter-spacing: .015em; }
.hero h1 { margin-top: .3rem; font-size: clamp(3rem, 7.2vw, 6.9rem); font-weight: 650; letter-spacing: -.078em; line-height: 1.04; }
[lang="zh-CN"] .hero h1 { font-size: clamp(2.8rem, 6.7vw, 5.65rem); line-height: 1.16; letter-spacing: -.055em; }
.role { max-width: 32rem; margin-top: .95rem; color: var(--muted); font-size: clamp(1rem, 1.75vw, 1.4rem); font-weight: 500; line-height: 1.42; letter-spacing: -.025em; }
.hero-links, .text-links, .footer-links { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem 1.15rem; }
.hero-links { margin-top: 1.55rem; }
.hero-links a { display: inline-flex; align-items: center; min-height: 2.75rem; text-decoration: none; font-size: .875rem; font-weight: 600; }
.hero-links a:first-child { padding-inline: .9rem; background: var(--accent); color: #101b2e; border: 1px solid var(--accent); border-radius: .3rem; transition: background .16s, color .16s; }
.hero-links a:first-child:hover { background: transparent; color: var(--accent); }
.hero-links a:hover { text-decoration: underline; }
.profile-details { padding: .12rem 0 .12rem 1.2rem; margin-bottom: .2rem; border-left: 1px solid var(--line); color: var(--ink); font-size: .9375rem; font-weight: 500; list-style: none; }
.profile-details li + li { margin-top: .35rem; }
.profile-details .location { color: var(--muted); font-size: .875rem; }

.section-grid { display: grid; grid-template-columns: minmax(0, .38fr) minmax(0, 1fr); align-items: start; gap: 1.5rem clamp(2rem, 5.5vw, 4.65rem); padding-block: clamp(2.2rem, 4.8vw, 3.65rem); }
.section-grid + .section-grid { border-top: 1px solid var(--line); }
.section-heading h2, .footer-content h2 { font-size: clamp(1.45rem, 3vw, 2rem); font-weight: 630; letter-spacing: -.048em; }
.print { display: inline-flex; align-items: center; min-height: 2.75rem; margin-top: .38rem; padding: 0; color: var(--accent); border: 0; background: none; text-decoration: underline; text-underline-offset: .25em; font-size: .875rem; font-weight: 550; cursor: pointer; }
.print:hover { text-decoration-thickness: 2px; }

.entries { padding: 0; list-style: none; }
.entry { display: grid; grid-template-columns: minmax(7.5rem, .34fr) minmax(0, 1fr); gap: .25rem 1.45rem; align-items: baseline; }
.entry + .entry { margin-top: 1.12rem; padding-top: 1.12rem; border-top: 1px solid var(--line); }
.entry-meta { color: var(--muted); font-size: .8125rem; font-weight: 550; font-variant-numeric: tabular-nums; }
.entry-body h3 { font-size: 1.125rem; font-weight: 650; letter-spacing: -.014em; }
.entry-body p { margin-top: .23rem; color: var(--muted); line-height: 1.55; }
.text-links { margin-top: .45rem; font-size: .875rem; font-weight: 550; }

footer { border-top: 1px solid var(--line); }
.footer-content { display: flex; align-items: center; justify-content: space-between; gap: 1.2rem 2rem; padding-block: 2rem 2.6rem; }
.footer-links { font-size: .9375rem; font-weight: 550; }
.not-found { display: grid; align-content: center; min-height: 75vh; gap: 1rem; }
.not-found h1 { font-size: clamp(2.5rem, 7vw, 5rem); letter-spacing: -.07em; }
.not-found p { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }

@media (max-width: 49rem) {
  .shell { width: min(100% - 2.5rem, 34rem); }
  .masthead-inner { min-height: 3.5rem; gap: .85rem; }
  .masthead nav a:first-child { display: none; }
  .masthead nav a, .locale { font-size: .8125rem; }
  .hero::before { inset-inline-start: 12%; }
  .hero-inner { grid-template-columns: 1fr; gap: 1.3rem; padding-block: 2.65rem 2.3rem; }
  .hero h1 { font-size: clamp(2.65rem, 10.5vw, 4.6rem); }
  .profile-details { padding-left: .8rem; font-size: .875rem; }
  .profile-details li + li { margin-top: .17rem; }
  .hero-links { margin-top: 1.05rem; }
  .section-grid { grid-template-columns: 1fr; gap: .85rem; }
  .section-heading { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: .1rem 1rem; }
  .print { min-height: 2.75rem; margin: 0; }
  .entry { grid-template-columns: 1fr; }
  .text-links a, .footer-links a { display: inline-flex; align-items: center; min-height: 2.75rem; }
}

@media (max-width: 24rem) {
  .shell { width: calc(100% - 2rem); }
  .masthead-inner { gap: .7rem; }
  .locale { padding-left: .65rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero::before { animation: none; }
  .hero-links a:first-child { transition: none; }
}

@media print {
  @page { margin: 16mm; }
  :root { color-scheme: light; --surface: #fff; --ink: #111; --muted: #333; --line: #b5b5b5; --accent: #111; }
  body { font-size: 10pt; line-height: 1.35; }
  .shell { width: 100%; }
  .masthead, .skip, .hero-links, .hero::before, .print { display: none; }
  .hero-inner { display: block; padding-block: 0 .9rem; }
  .hero h1, [lang="zh-CN"] .hero h1 { font-size: 32pt; }
  .profile-details { margin-top: .45rem; }
  .secondary-name, .role, .profile-details, .profile-details .location { font-size: 10pt; }
  .role { margin-top: .28rem; }
  .section-grid { grid-template-columns: 1fr; gap: .45rem; padding-block: .8rem; }
  .section-heading h2, .footer-content h2 { font-size: 15pt; }
  .entry { grid-template-columns: 7.5rem 1fr; break-inside: avoid; }
  .entry + .entry { margin-top: .4rem; padding-top: .4rem; }
  .entry-body h3 { font-size: 11pt; }
  .entry-meta, .text-links, .footer-links { font-size: 9pt; }
  .text-links { margin-top: .15rem; }
  .text-links a, .footer-links a { min-height: auto; }
  .footer-content { padding-block: .65rem; }
}
