/* ── Reset & Base ── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --text: #1a1a1a;
  --text-secondary: #4a4a4a;
  --text-tertiary: #777;
  --accent: #2563eb;
  --accent-hover: #1d4ed8;
  --accent-subtle: #eff4ff;
  --bg: #fdfdfd;
  --border: #e5e7eb;
  --border-light: #f0f0f0;
  --max-width: 700px;
}

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

/* ── Layout ── */
main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 5rem 1.5rem 3rem;
}

/* ── Header / Profile ── */
.profile {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-bottom: 3rem;
}

.avatar {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 3px solid var(--border-light);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.intro {
  padding-top: 0.15rem;
}

h1 {
  font-size: 1.85rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: var(--text);
}

.subtitle {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-top: 0.3rem;
  font-weight: 400;
}

.links {
  margin-top: 0.85rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.links a {
  font-size: 0.825rem;
  font-weight: 500;
  color: var(--accent);
  text-decoration: none;
  padding: 0.25rem 0.7rem;
  border-radius: 4px;
  border: 1px solid var(--border);
  transition: all 0.15s ease;
  background: var(--bg);
}

.links a:hover {
  background: var(--accent-subtle);
  border-color: var(--accent);
  color: var(--accent-hover);
}

/* ── Sections ── */
section {
  margin-bottom: 2.75rem;
}

h2 {
  font-size: 1.05rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-tertiary);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1.5px solid var(--border);
}

p {
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.75;
}

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

p a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}

p a:hover {
  text-decoration: underline;
}

/* ── Publications ── */
.pub-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.pub-list li {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding-left: 0.75rem;
  border-left: 2px solid var(--border);
  transition: border-color 0.15s ease;
}

.pub-list li:hover {
  border-left-color: var(--accent);
}

.pub-title a {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
  text-decoration: none;
  line-height: 1.45;
}

.pub-title a:hover {
  color: var(--accent);
}

.pub-authors {
  font-size: 0.85rem;
  color: var(--text-tertiary);
  line-height: 1.5;
}

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

.pub-venue {
  font-size: 0.8rem;
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* ── Awards ── */
.award-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.award-list li {
  font-size: 0.9rem;
  color: var(--text-secondary);
  padding-left: 1.25rem;
  position: relative;
  line-height: 1.6;
}

.award-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--border);
}

/* ── Footer ── */
footer {
  margin-top: 3.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

footer p {
  font-size: 0.78rem;
  color: #aaa;
  text-align: center;
  letter-spacing: 0.01em;
}

/* ── Responsive ── */
@media (max-width: 520px) {
  main {
    padding: 2.5rem 1.25rem 2rem;
  }

  .profile {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

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

  .links {
    justify-content: center;
  }

  h1 {
    font-size: 1.5rem;
  }

  .pub-list li {
    padding-left: 0.6rem;
  }
}
