:root {
  --coral: #fa9a85;
  --accent: #c2513a;
  --accent-soft: #fdeee9;
  --link-border: #f4c3b6;
  --bg: #fbfaf7;
  --nav-bg: rgba(251, 250, 247, 0.92);
  --text: #1c1c1c;
  --muted: #62666d;
  --rule: #e6e3dc;
  --award: #8a5a00;
  --award-bg: #fbf1d9;
  --award-border: #ecd9a8;
  --dashed: #c9c5bc;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}
[data-theme="dark"] {
  --accent: #fa9a85;
  --accent-soft: rgba(250, 154, 133, 0.12);
  --link-border: rgba(250, 154, 133, 0.4);
  --bg: #161719;
  --nav-bg: rgba(22, 23, 25, 0.9);
  --text: #e9e7e3;
  --muted: #9da1a8;
  --rule: #2d2f33;
  --award: #f2c76b;
  --award-bg: rgba(242, 199, 107, 0.12);
  --award-border: rgba(242, 199, 107, 0.35);
  --dashed: #4a4d52;
  color-scheme: dark;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  font-size: 16px;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* Nav */
nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--nav-bg);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--rule);
}
.nav-inner {
  max-width: 880px;
  margin: 0 auto;
  padding: 0.9rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
nav .logo { font-family: var(--serif); font-weight: 600; font-size: 1.1rem; color: var(--text); }
nav .links { display: flex; gap: 1.5rem; }
nav .links a { color: var(--muted); font-size: 0.92rem; font-weight: 500; }
nav .links { align-items: center; }
nav .links a:hover { color: var(--text); text-decoration: none; }
nav .links a { padding: 0.2rem 0; border-bottom: 2px solid transparent; transition: color 0.2s, border-color 0.2s; }
nav .links a.active { color: var(--accent); border-bottom-color: var(--coral); }
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}
.theme-toggle:hover { color: var(--text); border-color: var(--muted); }
.theme-toggle svg { width: 1rem; height: 1rem; }
.theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

main { max-width: 880px; margin: 0 auto; padding: 0 1.5rem; }

/* Hero */
.hero {
  display: flex;
  gap: 2.5rem;
  align-items: flex-start;
  padding: 3.5rem 0 2.5rem;
}
.hero-photo { flex-shrink: 0; width: 220px; }
.hero-photo img {
  width: 220px;
  height: 260px;
  object-fit: cover;
  object-position: center 30%;
  border-radius: 4px;
  display: block;
}
.contact-links { display: flex; gap: 1.2rem; margin-top: 0.9rem; font-size: 0.92rem; font-weight: 500; }
.hero-content { flex: 1; min-width: 0; }
.hero-content h1 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 2.3rem;
  line-height: 1.15;
  letter-spacing: -0.01em;
}
.hero-content .role { color: var(--muted); margin: 0.4rem 0 1.3rem; }
.about-text { margin-bottom: 1rem; }
.interests { color: var(--muted); font-size: 0.95rem; }
.quote {
  font-family: var(--serif);
  font-style: italic;
  color: var(--muted);
  font-size: 0.95rem;
  border-left: 2px solid var(--coral);
  padding-left: 0.9rem;
  margin-top: 1.5rem;
  line-height: 1.5;
}

/* Sections */
section { padding: 1.5rem 0 1rem; scroll-margin-top: 4rem; }
section h2 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--rule);
}

/* Entries (publications + projects) */
.entry {
  display: flex;
  gap: 1.5rem;
  padding: 1.6rem 0;
  border-bottom: 1px solid var(--rule);
}
.entry:last-child { border-bottom: none; }
.entry-image {
  width: 150px;
  height: 100px;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid var(--rule);
  flex-shrink: 0;
  background: white;
}
.entry-content { flex: 1; min-width: 0; }
.venue {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.35rem;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.1rem 0.55rem;
  border-radius: 999px;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
}
.badge svg { width: 0.8rem; height: 0.8rem; }
.badge.award { color: var(--award); background: var(--award-bg); border: 1px solid var(--award-border); }
.badge.soon { color: var(--muted); background: transparent; border: 1px dashed var(--dashed); }
.entry h3 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.15rem;
  line-height: 1.35;
  margin-bottom: 0.3rem;
}
.authors { font-size: 0.92rem; color: var(--muted); margin-bottom: 0.4rem; }
.authors b { color: var(--text); font-weight: 600; }
.entry p.desc { font-size: 0.95rem; margin-bottom: 0.2rem; }
.entry p.note { font-size: 0.88rem; color: var(--muted); font-style: italic; }
.entry .links { margin-top: 0.7rem; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.entry .links a {
  font-size: 0.82rem;
  font-weight: 500;
  padding: 0.2rem 0.7rem;
  border: 1px solid var(--link-border);
  border-radius: 4px;
  color: var(--accent);
}
.entry .links a:hover { background: var(--accent-soft); text-decoration: none; }
.entry .links a.link-disabled {
  color: var(--muted);
  border-style: dashed;
  border-color: var(--dashed);
  pointer-events: none;
}

footer {
  max-width: 880px;
  margin: 3rem auto 0;
  padding: 2rem 1.5rem;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 0.85rem;
}

@media (max-width: 680px) {
  .hero { flex-direction: column; align-items: center; padding-top: 2rem; }
  .hero-photo { width: 100%; max-width: 320px; display: flex; flex-direction: column; align-items: center; }
  .quote { text-align: left; }
  .hero-photo img { width: 200px; height: 240px; }
  .contact-links { justify-content: center; }
  .hero-content h1 { font-size: 1.9rem; }
  .entry { flex-direction: column; gap: 0.9rem; }
  .entry-image { width: 100%; height: 160px; }
  nav .links { gap: 1rem; }
}
