:root {
  color-scheme: light only;
  --bg: #ffffff;
  --text: #1f2328;
  --text-muted: #656d76;
  --text-soft: #424a53;
  --accent: #4f46e5;
  --accent-soft: rgba(79, 70, 229, 0.08);
  --border: #d8dee4;
  --chip-bg: #f6f8fa;
  --chip-bg-hover: #eaeef2;
  --award-bg: #fff4d6;
  --award-text: #8a6500;
  --award-border: #f1d27a;
  --max-width: 760px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    "Helvetica Neue",
    Arial,
    sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 4rem 1.5rem 6rem;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.15s ease;
}

a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

h1,
h2,
h3 {
  color: var(--text);
  font-weight: 600;
  letter-spacing: -0.01em;
}

h1 {
  font-size: 2.25rem;
  margin: 0 0 0.5rem;
  letter-spacing: -0.02em;
}

h2 {
  font-size: 1.4rem;
  margin: 3.5rem 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

h3.year {
  font-size: 1.1rem;
  margin: 2rem 0 0.75rem;
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* Hero */
.hero {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
  margin-bottom: 1rem;
}

.avatar {
  width: 168px;
  height: 168px;
  object-fit: cover;
  border-radius: 12px;
  flex-shrink: 0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.hero-text {
  flex: 1;
  min-width: 0;
}

.subtitle {
  font-size: 1rem;
  color: var(--text-muted);
  margin: 0 0 1rem;
  font-weight: 500;
}

.bio {
  font-size: 1rem;
  color: var(--text-soft);
  margin: 0 0 1.25rem;
  line-height: 1.7;
}

.bio strong {
  color: var(--text);
  font-weight: 600;
}

/* Socials */
.socials {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: transparent;
  transition:
    background 0.15s ease,
    transform 0.15s ease,
    box-shadow 0.15s ease;
}

/* Brand colors per platform, in DOM order: email, scholar, github, linkedin */
.socials a:nth-child(1) {
  color: #ea4335;
} /* Gmail red */
.socials a:nth-child(2) {
  color: #4285f4;
} /* Google Scholar blue */
.socials a:nth-child(3) {
  color: #24292f;
} /* GitHub */
.socials a:nth-child(4) {
  color: #0a66c2;
} /* LinkedIn */

.socials a:hover {
  background: var(--chip-bg);
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.socials svg {
  width: 20px;
  height: 20px;
}

/* Focus list */
.focus-list {
  padding-left: 1.25rem;
  margin: 0.75rem 0 0;
}

.focus-list li {
  margin-bottom: 0.5rem;
  color: var(--text-soft);
}

.focus-list strong {
  color: var(--text);
  font-weight: 600;
}

/* Publications */
.pub-list {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: pub;
}

.pub {
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--border);
}

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

.pub-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 0.25rem;
  line-height: 1.45;
}

.pub-authors {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin: 0 0 0.25rem;
  line-height: 1.55;
}

.pub-authors strong {
  color: var(--text-soft);
  font-weight: 600;
}

.pub-venue {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.venue {
  font-style: italic;
}

.pub-link {
  display: inline-flex;
  align-items: center;
  padding: 0.1rem 0.5rem;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--accent);
  background: var(--chip-bg);
  border-radius: 5px;
  font-style: normal;
  transition:
    background 0.15s ease,
    color 0.15s ease;
}

.pub-link:hover {
  background: var(--chip-bg-hover);
  text-decoration: none;
}

.pub-stars {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.1rem 0.5rem;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-soft);
  background: var(--chip-bg);
  border-radius: 5px;
  font-style: normal;
  transition: background 0.15s ease;
}

.pub-stars:hover {
  background: var(--chip-bg-hover);
  text-decoration: none;
}

.pub-stars .star-glyph {
  color: #f1c40f;
  font-size: 0.95em;
  line-height: 1;
}

.pub-award {
  display: inline-flex;
  align-items: center;
  padding: 0.1rem 0.5rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--award-text);
  background: var(--award-bg);
  border: 1px solid var(--award-border);
  border-radius: 5px;
  font-style: normal;
}

/* Mobile */
@media (max-width: 600px) {
  main {
    padding: 2.5rem 1.25rem 4rem;
  }

  .hero {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.25rem;
  }

  .hero-text {
    text-align: left;
  }

  .avatar {
    width: 140px;
    height: 140px;
  }

  h1 {
    font-size: 2rem;
    text-align: center;
  }

  .subtitle {
    text-align: center;
  }

  .socials {
    justify-content: center;
  }

  h2 {
    margin-top: 2.5rem;
  }

  .pub-venue {
    align-items: flex-start;
  }
}
