:root {
  --bg: #fbf9f6;
  --surface: #ffffff;
  --ink: #1d1c24;
  --body: #45444f;
  --muted: #777582;
  --rule: #e9e4dc;
  --accent: #b8472a;
  --accent-soft: #f6e6de;
  --pill: #efebe4;
  --pill-hover: #e4dfd6;
  --serif: 'Newsreader', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #15151b;
    --surface: #1d1d25;
    --ink: #f0eef2;
    --body: #c5c3cd;
    --muted: #918f9c;
    --rule: #2b2b35;
    --accent: #f0906a;
    --accent-soft: #3a2620;
    --pill: #25252e;
    --pill-hover: #30303b;
  }
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 64px; }
body {
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.65;
  color: var(--body);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
b { font-weight: 600; color: var(--ink); }

.container { max-width: 860px; margin: 0 auto; padding: 0 28px; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 14px; padding-bottom: 14px;
}
.nav-name {
  font-family: var(--serif); font-size: 19px; font-weight: 600;
  color: var(--ink); text-decoration: none; letter-spacing: -0.2px;
}
.nav-links { display: flex; gap: 26px; font-size: 13.5px; }
.nav-links a { color: var(--muted); text-decoration: none; transition: color .15s; }
.nav-links a:hover { color: var(--accent); }

/* Hero */
.hero { display: flex; gap: 40px; align-items: flex-start; padding: 56px 0 44px; }
.hero-photo {
  width: 240px; height: auto; aspect-ratio: 3 / 4; flex-shrink: 0;
  border-radius: 22px; object-fit: cover;
  box-shadow: 0 10px 30px -12px rgba(184, 71, 42, .45);
}
.hero-body { flex: 1; min-width: 0; }
h1 {
  font-family: var(--serif); font-weight: 500;
  font-size: 44px; line-height: 1.08; letter-spacing: -1px;
  color: var(--ink); margin-bottom: 10px;
}
.hero-role { font-size: 14px; color: var(--muted); margin-bottom: 18px; line-height: 1.55; }
.hero-bio { margin-bottom: 12px; max-width: 600px; }
.hero-bio a {
  color: var(--ink); font-weight: 500; text-decoration: none;
  border-bottom: 1px solid var(--accent);
}
.hero-bio a:hover { color: var(--accent); }
.hero-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.pill {
  font-size: 13px; font-weight: 500; text-decoration: none;
  padding: 6px 16px; border-radius: 999px;
  background: var(--pill); color: var(--ink); transition: background .15s;
}
.pill:hover { background: var(--pill-hover); }
.pill-primary { background: var(--accent); color: #fff; }
.pill-primary:hover { background: var(--accent); filter: brightness(1.1); }
@media (prefers-color-scheme: dark) { .pill-primary { color: #15151b; } }

/* Sections */
section { padding: 36px 0 12px; border-top: 1px solid var(--rule); }
h2 {
  font-family: var(--serif); font-weight: 500;
  font-size: 26px; letter-spacing: -0.4px;
  color: var(--ink); margin-bottom: 18px;
}
h2::after {
  content: ''; display: block; width: 28px; height: 2px;
  background: var(--accent); margin-top: 8px;
}

/* Publications */
.pub { display: flex; gap: 22px; padding: 18px 0; align-items: flex-start; }
.pub + .pub { border-top: 1px solid var(--rule); }
.pub-thumb {
  width: 184px; height: 116px; flex-shrink: 0;
  border-radius: 10px; overflow: hidden;
  background: #fff; border: 1px solid var(--rule);
}
.pub-thumb img, .pub-thumb video { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.pub-body { flex: 1; min-width: 0; }
.pub-title { font-size: 15.5px; font-weight: 600; color: var(--ink); line-height: 1.4; margin-bottom: 4px; }
.pub-title i { font-family: 'Times New Roman', Times, serif; font-size: 17px; }
.pub-title a { text-decoration: none; }
.pub-title a:hover { color: var(--accent); }
.pub-authors { font-size: 13px; color: var(--muted); line-height: 1.6; margin-bottom: 6px; }
.pub-authors a { text-decoration: none; }
.pub-authors a:hover { color: var(--ink); text-decoration: underline; }
.pub-note { font-size: 13px; color: var(--accent); line-height: 1.5; margin-bottom: 3px; }
.pub-note b { color: var(--accent); }
.pub-note a { text-decoration: none; border-bottom: 1px solid var(--accent-soft); }
.pub-note a:hover { border-bottom-color: var(--accent); }
.pub-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 8px; font-size: 12.5px; }
.pub-meta a { color: var(--body); font-weight: 500; text-decoration: none; border-bottom: 1px solid var(--rule); }
.pub-meta a:hover { color: var(--accent); border-bottom-color: var(--accent); }
.badge {
  font-size: 10.5px; font-weight: 600; letter-spacing: .6px; text-transform: uppercase;
  padding: 2px 9px; border-radius: 4px; white-space: nowrap;
  color: var(--accent); background: var(--accent-soft);
}
.badge-outline { background: transparent; color: var(--muted); box-shadow: inset 0 0 0 1px var(--rule); }
.pub-legend { font-size: 12px; color: var(--muted); padding: 10px 0 14px; }

.service-list { list-style: none; padding-bottom: 20px; }
.service-list li { margin-bottom: 6px; }

.night-sky { max-width: 640px; margin-bottom: 12px; }
.arrow-link {
  color: var(--accent); font-weight: 500; text-decoration: none;
  border-bottom: 1px solid var(--accent-soft);
}
.arrow-link:hover { border-bottom-color: var(--accent); }

/* Footer */
.footer {
  margin-top: 28px; padding: 28px 0 36px;
  border-top: 1px solid var(--rule);
  font-size: 12.5px; color: var(--muted); text-align: center;
}

/* Mobile */
@media (max-width: 680px) {
  .container { padding: 0 20px; }
  .nav-links { gap: 16px; font-size: 13px; }
  .hero { flex-direction: column; gap: 24px; padding: 36px 0 32px; }
  .hero-photo { width: 200px; border-radius: 18px; }
  h1 { font-size: 34px; }
  .pub { flex-direction: column; gap: 12px; }
  .pub-thumb { width: 100%; height: auto; aspect-ratio: 16 / 10; }
}
