/* cyrillic-ext */
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 300 600; font-display: swap; src: url('fonts/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa2JL7W0Q5n-wU.woff2') format('woff2'); unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
/* cyrillic */
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 300 600; font-display: swap; src: url('fonts/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa0ZL7W0Q5n-wU.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
/* greek-ext */
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 300 600; font-display: swap; src: url('fonts/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa2ZL7W0Q5n-wU.woff2') format('woff2'); unicode-range: U+1F00-1FFF; }
/* greek */
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 300 600; font-display: swap; src: url('fonts/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa1pL7W0Q5n-wU.woff2') format('woff2'); unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF; }
/* vietnamese */
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 300 600; font-display: swap; src: url('fonts/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa2pL7W0Q5n-wU.woff2') format('woff2'); unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }
/* latin-ext */
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 300 600; font-display: swap; src: url('fonts/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa25L7W0Q5n-wU.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
/* latin */
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 300 600; font-display: swap; src: url('fonts/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa1ZL7W0Q5nw.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --accent:     #9e3269;
  --accent-lt:  #fce8f1;
  --text:       #1f1f23;
  --muted:      #5c5c6a;
  --border:     #e8e0e5;
  --bg:         #ffffff;
  --bg-alt:     #faf8f9;
  --award:      #7a2d55;
  --award-bg:   #fce8f1;
  --max:        740px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 15px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
}

/* ── PAGE-SCOPED OVERRIDES ─────────────────────────────
   index.html and publication pages share this stylesheet but were
   authored with slightly different scale/max-width, and both reuse
   the class names .badge, .badge-VENUE, and .award-badge for different
   visual treatments (compact inline badges in a list vs. larger pill
   badges on a paper's own page) — scoped here rather than renamed, so
   each page's markup didn't need to change. */
body.pub-page {
  --max: 680px;
  font-size: 16px;
  line-height: 1.6;
}

/* ── NAV ────────────────────────────────────────────── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
nav .inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
nav .logo {
  font-weight: 600;
  font-size: 14px;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.01em;
}
nav ul {
  list-style: none;
  display: flex;
  gap: 28px;
}
nav a {
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  transition: color .15s;
}
nav a:hover { color: var(--accent); }

/* ── SECTIONS (index.html) ─────────────────────────────── */
section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 64px 24px;
}
section + section {
  border-top: none;
}
.wave-divider {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
  overflow: hidden;
  white-space: nowrap;
  font-size: 7.5px;
  line-height: 1;
  letter-spacing: 0.04em;
  user-select: none;
}
.wave-divider::before {
  content: "Arise, ye workers from your slumbers \B7  Arise, ye prisoners of want \B7  For reason in revolt now thunders \B7  And at last ends the age of cant \B7  So comrades, come rally \B7  And the last fight let us face \B7  The Internationale unites the human race \B7  Arise, ye workers from your slumbers \B7  Arise, ye prisoners of want \B7  For reason in revolt now thunders \B7  And at last ends the age of cant \B7  So comrades, come rally \B7  And the last fight let us face \B7  The Internationale unites the human race \B7 ";
  color: var(--border);
  display: block;
}

h2 {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 28px;
}

/* ── HERO ───────────────────────────────────────────── */
#about {
  padding-top: 72px;
  padding-bottom: 56px;
}
.hero {
  display: flex;
  gap: 48px;
  align-items: flex-start;
}
.hero-photo-wrap {
  flex-shrink: 0;
  width: 240px;
  background: #fff;
  padding: 10px 10px 32px;
  box-shadow: 2px 4px 18px rgba(0,0,0,0.13), 0 1px 3px rgba(0,0,0,0.08);
  transform: rotate(-2.4deg);
  transition: transform .3s ease;
  position: relative;
}
.hero-photo-wrap:hover {
  transform: rotate(0deg);
}
.hero-photo-wrap::after {
  content: "📷 Eric Zeng";
  position: absolute;
  bottom: 6px;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 9px;
  color: var(--muted);
  opacity: 0;
  transition: opacity .2s ease;
}
.hero-photo-wrap:hover::after {
  opacity: 1;
}
.hero-photo {
  width: 100%;
  height: 260px;
  object-fit: cover;
  object-position: center top;
  filter: grayscale(6%);
  display: block;
}
.hero-text h1 {
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 4px;
}
.hero-text .role {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 16px;
  min-height: 1.5em;
}
.hero-text .role strong {
  color: var(--text);
  font-weight: 500;
}
.cursor {
  display: inline-block;
  width: 2px;
  height: 0.9em;
  background: var(--accent);
  margin-left: 1px;
  vertical-align: middle;
  animation: blink .75s step-end infinite;
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}
.hero-text p {
  font-size: 14.5px;
  color: #374151;
  margin-bottom: 10px;
  max-width: 460px;
}
.links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}
.links a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--accent);
  text-decoration: none;
  background: var(--accent-lt);
  padding: 4px 10px;
  border-radius: 20px;
  transition: background .15s;
}
.links a:hover { background: #d0ebe7; }

/* ── RESEARCH ───────────────────────────────────────── */
.research-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.research-card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 18px 20px;
}
.research-card h3 {
  font-size: 13.5px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text);
}
.research-card p {
  font-size: 13px;
  color: #4b5563;
  line-height: 1.55;
}

/* ── PUBLICATIONS LIST (index.html) ────────────────────── */
.pub-year-group {
  margin-bottom: 36px;
}
.pub-year {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: .06em;
  border-bottom: 1px solid var(--border);
  padding-bottom: 6px;
  margin-bottom: 14px;
}
.pub {
  padding: 12px 0;
  border-bottom: 1px solid #f3f4f6;
}
.pub:last-child { border-bottom: none; }
.pub-title {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  line-height: 1.4;
  margin-bottom: 4px;
}
.pub-title a {
  color: inherit;
  text-decoration: none;
}
.pub-title a:hover { color: var(--accent); }
.pub-authors {
  font-size: 12.5px;
  color: var(--muted);
  margin-bottom: 6px;
}
.pub-authors .me { color: var(--text); font-weight: 500; }
.pub-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.index-page .badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 4px;
  letter-spacing: .02em;
}
.index-page .badge-chi    { background: #f0e8f5; color: #6b2f8a; }
.index-page .badge-soups  { background: #fce8f1; color: #8c1f54; }
.index-page .badge-usenix { background: #f0e8f5; color: #6b2f8a; }
.index-page .badge-cscw   { background: #fce8f1; color: #8c1f54; }
.index-page .badge-tochi  { background: #f0e8f5; color: #6b2f8a; }
.index-page .badge-springer { background: #f0eef1; color: #4a4552; }
.index-page .badge-thesis  { background: #f0eef1; color: #4a4552; }
.index-page .badge-other   { background: #f0eef1; color: #4a4552; }
.index-page .badge-pets    { background: #fce8f1; color: #8c1f54; }
.index-page .badge-ccs     { background: #f0e8f5; color: #6b2f8a; }
.index-page .award-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 4px;
  background: var(--award-bg);
  color: var(--award);
}

/* ── AWARDS ─────────────────────────────────────────── */
.awards-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.award-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 16px 0;
  border-bottom: 1px solid #f3f4f6;
}
.award-item:last-child { border-bottom: none; }
.award-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  background: #fce8f1;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  margin-top: 1px;
  color: #7a2d55;
}
.award-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.35;
  margin-bottom: 2px;
}
.award-issuer {
  font-size: 12.5px;
  color: var(--muted);
  margin-bottom: 3px;
}
.award-note {
  font-size: 12px;
  color: #5f6977;
  font-style: italic;
}

/* ── PRESS ──────────────────────────────────────────── */
.press-group { margin-bottom: 28px; }
.press-group-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: .06em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--border);
  padding-bottom: 6px;
  margin-bottom: 10px;
}
.press-item {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid #f3f4f6;
}
.press-item:last-child { border-bottom: none; }
.press-outlet {
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  min-width: 90px;
}
.press-title { font-size: 13.5px; color: var(--text); }
.press-title a { color: inherit; text-decoration: none; }
.press-title a:hover { color: var(--accent); }
.press-lang { font-size: 11px; color: var(--muted); margin-left: 4px; }
.press-date { font-size: 11px; color: var(--muted); white-space: nowrap; margin-left: auto; padding-left: 12px; }
.press-item-wrap {
  display: flex;
  flex-direction: column;
  padding: 9px 0;
  border-bottom: 1px solid #f3f4f6;
}
.press-item-wrap:last-child { border-bottom: none; }
.press-item-wrap .press-item {
  padding: 0;
  border-bottom: none;
}

/* ── CONTACT / FOOTER (index.html) ─────────────────────── */
footer {
  border-top: none;
  padding: 0;
}

/* ── PUBLICATION PAGES (header/main/venue-row/etc.) ────── */
body.pub-page header {
  border-bottom: 1px solid var(--border);
  padding: 16px 24px;
}
body.pub-page header a {
  font-size: 13px;
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}
body.pub-page header a:hover { text-decoration: underline; }
body.pub-page main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 48px 24px 80px;
}
.venue-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 16px;
}
.badge {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
}
.badge-chi    { background: #f0e8f5; color: #6b2f8a; }
.badge-soups  { background: #fce8f1; color: #8c1f54; }
.badge-usenix { background: #f0e8f5; color: #6b2f8a; }
.badge-cscw   { background: #fce8f1; color: #8c1f54; }
.badge-tochi  { background: #f0e8f5; color: #6b2f8a; }
.badge-springer { background: #f0eef1; color: #4a4552; }
.badge-thesis  { background: #f0eef1; color: #4a4552; }
.badge-other   { background: #f0eef1; color: #4a4552; }
.badge-pets    { background: #fce8f1; color: #8c1f54; }
.badge-ccs     { background: #f0e8f5; color: #6b2f8a; }
.award-badge {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
  background: #fdf3e7;
  color: #96631a;
}
body.pub-page h1 {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.35;
  margin-bottom: 6px;
}
.subtitle {
  font-size: 15px;
  color: var(--muted);
  margin-bottom: 12px;
}
.authors {
  font-size: 15px;
  color: var(--muted);
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}
.authors .me { color: var(--text); font-weight: 500; }
.pub-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.pub-link {
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
  text-decoration: none;
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: 6px;
}
.pub-link:hover { background: var(--accent-lt); }
.pub-link-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
}
.block {
  margin-top: 36px;
}
.block h2 {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin-bottom: 12px;
}
.abstract {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text);
}
.video-caption {
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 8px;
}
.video-wrap {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  border-radius: 8px;
  overflow: hidden;
  background: var(--bg-alt);
}
.video-wrap + .video-caption {
  margin-top: 20px;
}
.video-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.bibtex-wrap {
  position: relative;
}
.bibtex {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px;
  padding-right: 76px;
  overflow-x: auto;
  white-space: pre;
}
.copy-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 12px;
  font-weight: 500;
  font-family: inherit;
  color: var(--accent);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 4px 10px;
  cursor: pointer;
}
.copy-btn:hover { background: var(--accent-lt); }
.copy-btn.copied { color: #1f7a3d; border-color: #1f7a3d; }

/* ── RESPONSIVE ─────────────────────────────────────── */
@media (max-width: 600px) {
  .hero { flex-direction: column; gap: 24px; }
  .hero-photo-wrap { width: 75vw; max-width: 280px; }
  .hero-photo { height: auto; aspect-ratio: 4/5; }
  .research-grid { grid-template-columns: 1fr; }
  nav ul { gap: 16px; }
  body.pub-page h1 { font-size: 20px; }
}
