@font-face {
  font-family: "Noto Serif SC";
  font-style: normal;
  font-weight: 500;
  font-display: block;
  src: url("../assets/noto-serif-sc-subset.woff") format("woff");
  unicode-range: U+4E00-9FFF;
}

:root {
  --ink: #12110e;
  --ink-2: #1b1915;
  --paper: #f4eee4;
  --paper-dim: #c9bfb0;
  --quiet: #9c9183;
  --brass: #d7b57a;
  --line: rgba(244, 238, 228, 0.14);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Songti SC", "Noto Serif CJK SC", serif;
  --song: "Noto Serif SC", "Songti SC", "STSong", "Noto Serif CJK SC", serif;
  --sans: "Avenir Next", "PingFang SC", "Hiragino Sans GB", "Helvetica Neue", sans-serif;
  --measure: 68rem;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--paper);
  background:
    radial-gradient(900px 480px at 0% 0%, rgba(215, 181, 122, 0.07), transparent 60%),
    var(--ink);
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
}

::selection {
  background: rgba(215, 181, 122, 0.35);
  color: var(--paper);
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover { color: var(--brass); }

.frame {
  display: grid;
  grid-template-columns: 4.25rem minmax(0, 1fr);
  min-height: 100vh;
}

.spine {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  border-right: 1px solid var(--line);
  color: var(--quiet);
  font-family: var(--song);
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  writing-mode: vertical-rl;
  text-orientation: mixed;
}

sup {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.68em;
  line-height: 0;
}

.page {
  width: min(var(--measure), calc(100% - 6.5rem));
  margin: 0 auto;
  padding: 4.5rem 0 4rem;
}

.masthead {
  padding-bottom: 2.4rem;
  border-bottom: 1px solid var(--line);
}

.identity {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2.5rem;
}

.identity-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1rem;
  padding-bottom: 0.35rem;
}

.zh-name {
  margin: 0 0 0.7rem;
  font-family: var(--song);
  font-size: 0.95rem;
  letter-spacing: 0.55em;
  color: var(--brass);
}

h1 {
  margin: 0;
  font-weight: 500;
  font-size: clamp(3.6rem, 7vw, 5.4rem);
  line-height: 0.9;
  letter-spacing: -0.035em;
}

.role {
  margin: 1.15rem 0 0;
  max-width: 22rem;
  color: var(--paper-dim);
  font-size: 1.05rem;
  line-height: 1.45;
}

.mail {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.92rem;
  letter-spacing: 0.01em;
}

.interests {
  margin: 0;
  padding: 0;
  list-style: none;
}

.interests li {
  font-size: clamp(1.35rem, 2vw, 1.7rem);
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.interests li + li { margin-top: 0.15rem; }

.bio {
  max-width: 44rem;
  margin: 2.4rem 0 0;
  color: var(--paper-dim);
  font-size: 1.05rem;
  line-height: 1.65;
}

.bio p { margin: 0; }

.bio p + p { margin-top: 0.9rem; }

.nav {
  display: flex;
  gap: 1.4rem;
  font-family: var(--sans);
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.nav a { text-decoration: none; color: var(--quiet); }
.nav a:hover { color: var(--paper); }

section { padding-top: 2.8rem; }

.section-label {
  margin: 0 0 0.4rem;
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--quiet);
}

.paper {
  display: grid;
  grid-template-columns: 7.2rem minmax(0, 1fr);
  gap: 0.4rem 1.6rem;
  padding: 1.25rem 0 1.3rem;
  border-top: 1px solid var(--line);
}

.paper:last-of-type { border-bottom: 1px solid var(--line); }

.idx {
  display: block;
  font-variant-numeric: tabular-nums;
  font-size: 0.95rem;
  color: var(--quiet);
}

.venue {
  display: block;
  margin-top: 0.28rem;
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--brass);
  line-height: 1.35;
}

.status {
  display: block;
  margin-top: 0.12rem;
  font-family: var(--sans);
  font-size: 0.68rem;
  letter-spacing: 0.02em;
  color: var(--quiet);
  line-height: 1.3;
}

.paper h3 {
  margin: 0;
  font-size: 1.22rem;
  font-weight: 500;
  line-height: 1.28;
  letter-spacing: -0.015em;
  text-wrap: pretty;
}

.paper h3 a {
  text-decoration: none;
  background-image: linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0 1px;
  transition: background-size 0.25s ease, color 0.2s ease;
}

.paper h3 a:hover { background-size: 100% 1px; }

.authors {
  margin: 0.4rem 0 0;
  color: var(--paper-dim);
  font-size: 0.92rem;
  line-height: 1.45;
}

.authors strong { color: var(--paper); font-weight: 600; }

.note {
  margin: 0.35rem 0 0;
  color: var(--quiet);
  font-size: 0.9rem;
  font-style: italic;
}

.links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  margin: 0.45rem 0 0;
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.02em;
}

.links a {
  color: #8eb4ff;
  text-decoration: none;
}

.links a:hover { color: var(--brass); }

.links .sep { color: var(--quiet); }

.footnote {
  margin: 0.85rem 0 0;
  color: var(--quiet);
  font-size: 0.82rem;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem 4rem;
  padding-top: 2.8rem;
}

.entry + .entry { margin-top: 1.25rem; }

.entry-top {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: baseline;
}

.entry h3 {
  margin: 0;
  min-width: 0;
  font-size: 1.05rem;
  font-weight: 550;
  letter-spacing: -0.01em;
}

.when, .where {
  margin: 0;
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--quiet);
  white-space: nowrap;
}

.detail {
  margin: 0.18rem 0 0;
  color: var(--paper-dim);
  font-size: 0.95rem;
}

.zh-sub {
  font-family: var(--song);
  color: var(--quiet);
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 3rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  font-family: var(--sans);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--quiet);
}

footer a { text-decoration: none; }

@media (max-width: 860px) {
  .frame { grid-template-columns: 1fr; }
  .spine { display: none; }
  .page {
    width: min(var(--measure), calc(100% - 2.4rem));
    padding-top: 2.4rem;
  }
  .identity, .split { display: block; }
  .identity-meta { align-items: flex-start; margin-top: 1.4rem; }
  .bio { margin-top: 1.8rem; }
  .paper { grid-template-columns: 1fr; }
  .paper .meta { display: flex; gap: 0.8rem; align-items: baseline; }
  .venue { margin-top: 0; }
  h1 { font-size: clamp(3.3rem, 16vw, 4.6rem); }
  .role { max-width: none; }
}

@media print {
  body { background: white; color: black; }
  .spine { display: none; }
  .frame { display: block; }
  a { color: black; text-decoration: none; }
  .zh-name, .venue { color: #6a5424; }
  .paper, .masthead, footer { border-color: #ccc; }
}
