:root {
  --fg: #18181b;
  --fg-soft: #52525b;
  --fg-muted: #71717a;
  --bg: #ffffff;
  --border: #ebebee;
  --underline: #d4d4d8;
  --radius: 8px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --fg: #f4f4f5;
    --fg-soft: #b4b4bb;
    --fg-muted: #8b8b94;
    --bg: #111113;
    --border: #26262b;
    --underline: #4a4a52;
  }
}

* {
  box-sizing: border-box;
}

html {
  font-size: 17px;
}

body {
  margin: 0;
  font-family:
    "Manrope",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--fg);
  text-decoration: underline;
  text-decoration-color: var(--underline);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.15s ease;
}

a:hover {
  text-decoration-color: currentColor;
}

.container {
  max-width: 920px;
  margin: 0 auto;
  padding: 72px 24px 32px;
}

/* Hero */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px;
  gap: 44px;
  align-items: center;
  margin-bottom: 60px;
}

.hero-name {
  margin: 0 0 4px;
  font-size: 2.3rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.hero-subtitle {
  margin: 0 0 18px;
  color: var(--fg-soft);
  font-weight: 500;
}

.hero-bio {
  margin: 0 0 20px;
}

.hero-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hero-icons a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--fg-soft);
  font-size: 0.92rem;
  font-weight: 500;
  text-decoration: none;
  transition:
    color 0.15s ease,
    transform 0.15s ease;
}

.hero-icons a:hover {
  color: var(--fg);
  transform: translateY(-2px);
}

a:focus-visible {
  outline: 2px solid var(--fg-soft);
  outline-offset: 4px;
  border-radius: 2px;
}

.icon {
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
}

.hero-avatar {
  display: block;
  width: 180px;
  height: 225px;
  object-fit: cover;
  object-position: center top;
  border-radius: var(--radius);
}

/* Sections */
.section {
  margin: 0 0 52px;
}

.section-title {
  margin: 0 0 18px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
  font-size: 1.45rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

/* News, Experience, Awards */
.timeline {
  --timeline-spacing: 18px;

  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  margin: 0;
  padding: 0;
  list-style: none;
}

.timeline-item {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: subgrid;
  align-items: baseline;
  padding: 6px 0;
}

.timeline-date {
  min-width: 0;
  padding-right: var(--timeline-spacing);
  border-right: 1px solid var(--border);
  text-align: left;
  color: var(--fg-muted);
  font-size: 0.85rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  white-space: normal;
  overflow-wrap: anywhere;
}

.timeline-text {
  min-width: 0;
  padding-left: var(--timeline-spacing);
  font-size: 0.95rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

/* Publications */
.publications {
  margin: 0;
  padding: 0;
  list-style: none;
}

.pub {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 28px;
  padding: 22px 0;
  border-bottom: 1px dashed var(--border);
}

.pub:first-child {
  padding-top: 4px;
}

.pub:last-child {
  border-bottom: 0;
}

.pub-media {
  align-self: center;
  aspect-ratio: 16 / 9;
}

.pub-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  border-radius: var(--radius);
}

.pub-venue {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 6px;
  color: var(--fg-muted);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.pub-title {
  margin: 0 0 6px;
  font-size: 1.12rem;
  font-weight: 600;
  line-height: 1.38;
}

.pub-authors {
  margin: 0 0 8px;
  color: var(--fg-soft);
  font-size: 0.93rem;
}

.pub-authors .me {
  color: var(--fg);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: currentColor;
  text-underline-offset: 3px;
}

.pub-links {
  margin: 0 0 8px;
  font-size: 0.9rem;
  font-weight: 600;
}

.pub-summary {
  margin: 0;
  color: var(--fg-soft);
  font-size: 0.9rem;
  line-height: 1.55;
}

.site-footer {
  max-width: 920px;
  margin: 0 auto;
  padding: 24px;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--fg-muted);
  font-size: 0.85rem;
}

@media (max-width: 720px) {
  .container {
    padding: 40px 16px 24px;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 44px;
  }

  .hero-avatar {
    order: -1;
    width: 128px;
    height: 160px;
  }

  .hero-name {
    font-size: 1.9rem;
  }

  .timeline {
    --timeline-spacing: 12px;
  }

  .timeline-date {
    font-size: 0.78rem;
  }

  .timeline-text {
    font-size: 0.9rem;
  }

  .pub {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}
