/* Researcher personal page — clean, readable, academic */

:root {
  --bg: #faf9f6;
  --text: #1c1c1c;
  --text-muted: #4a4a4a;
  --accent: #2c5282;
  --accent-soft: #e6eef5;
  --border: #e0ddd8;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "DM Sans", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

/* Hero */
.hero {
  padding: 3rem 1.5rem 4rem;
  border-bottom: 1px solid var(--border);
}

.hero-content {
  max-width: 56rem;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2.5rem;
  align-items: center;
}

.hero-text h1 {
  font-family: var(--serif);
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 600;
  margin: 0 0 0.35em;
  letter-spacing: -0.02em;
}

.tagline {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin: 0 0 0.2em;
}

.affiliation {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin: 0 0 1.5rem;
}

.affiliation a,
.affiliation a:visited {
  color: var(--accent);
  text-decoration: none;
}

.affiliation a:hover {
  text-decoration: underline;
}

.hero-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

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

.hero-links a:hover {
  text-decoration: underline;
}

.avatar-placeholder {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: var(--accent-soft);
  border: 2px solid var(--border);
}

.hero-image img {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
}

/* Sections */
main {
  max-width: 56rem;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
}

.section {
  margin-bottom: 3rem;
}

.section h2 {
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 600;
  margin: 0 0 1rem;
  color: var(--text);
  letter-spacing: -0.01em;
}

.section p {
  margin: 0 0 1rem;
  color: var(--text-muted);
}

.section p:last-child {
  margin-bottom: 0;
}

.section a {
  color: var(--accent);
  text-decoration: none;
}

.section a:hover {
  text-decoration: underline;
}

/* Research interests */
.interests {
  margin: 0;
  padding: 0;
  list-style: none;
}

.interests li {
  margin-bottom: 0.85rem;
  padding-left: 0;
  color: var(--text-muted);
}

.interests strong {
  color: var(--text);
  font-weight: 500;
}

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

.publications li {
  margin-bottom: 1.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border);
}

.publications li:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.pub-authors {
  display: block;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0.2em;
}

.pub-title {
  font-style: italic;
  display: inline;
  color: var(--accent);
  text-decoration: none;
}

.pub-title:hover {
  text-decoration: underline;
}

.pub-venue {
  display: block;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 0.25em;
}

.pub-note {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 1rem 0 0;
}

.pub-links {
  display: block;
  font-size: 0.9rem;
  margin-top: 0.35em;
}

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

.more-link {
  margin-top: 0.5rem;
}

/* Education */
.education {
  margin: 0;
  padding: 0;
  list-style: none;
}

.education li {
  margin-bottom: 0.5rem;
  color: var(--text-muted);
}

/* Footer */
footer {
  max-width: 56rem;
  margin: 0 auto;
  padding: 1.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: center;
  border-top: 1px solid var(--border);
}

/* Responsive */
@media (max-width: 640px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-image {
    order: -1;
    justify-self: center;
  }

  .hero-links {
    justify-content: center;
  }
}

/* Copy-to-clipboard popup */
.copy-popup {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.copy-popup-visible {
  opacity: 1;
}

.copy-popup-inner {
  background: var(--accent);
  color: #fff;
  padding: 1rem 1.5rem;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 500;
  box-shadow: 0 8px 24px rgba(44, 82, 130, 0.25);
  transform: scale(0.95);
  transition: transform 0.2s ease;
}

.copy-popup-visible .copy-popup-inner {
  transform: scale(1);
}

