@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Lora:ital,wght@0,400;0,600;1,400&display=swap');

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

body {
  font-family: 'Inter', sans-serif;
  background-color: #F9F9F7;
  color: #1C1C1E;
  line-height: 1.65;
  font-size: 16px;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ── Navigation ── */
header {
  border-bottom: 1px solid #E5E5E3;
  padding: 0 1.5rem;
  position: sticky;
  top: 0;
  background: #F9F9F7;
  z-index: 10;
}

nav {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.nav-name {
  font-family: 'Lora', serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: #1C1C1E;
}

.nav-links {
  display: flex;
  gap: 1.75rem;
  list-style: none;
}

.nav-links a {
  color: #666;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: #4A6FA5;
}

/* ── Main content ── */
main {
  max-width: 720px;
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
}

/* ── Footer ── */
footer {
  border-top: 1px solid #E5E5E3;
  text-align: center;
  padding: 1.5rem;
  font-size: 0.85rem;
  color: #999;
}

footer a {
  color: #4A6FA5;
}

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

.profile-photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  background-color: #D0D8E8;
}

.profile-name {
  font-family: 'Lora', serif;
  font-size: 2rem;
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 0.3rem;
}

.profile-title {
  color: #4A6FA5;
  font-size: 1rem;
  margin-bottom: 0.3rem;
}

.profile-institution {
  color: #888;
  font-size: 0.95rem;
}

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

.section-title {
  font-family: 'Lora', serif;
  font-size: 1.35rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #1C1C1E;
}

.page-title {
  font-family: 'Lora', serif;
  font-size: 1.75rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.page-subtitle {
  color: #777;
  margin-bottom: 2.25rem;
  font-size: 0.95rem;
}

/* ── Research interest tags ── */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag {
  background: #EEF1F7;
  color: #4A6FA5;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  font-size: 0.875rem;
}

/* ── Academic profile links ── */
.academic-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.75rem;
  list-style: none;
}

.academic-links a {
  color: #4A6FA5;
  font-size: 0.95rem;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}

.academic-links a:hover {
  border-color: #4A6FA5;
}

/* ── Card list (projects & publications) ── */
.card-list {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.card {
  border-left: 3px solid #4A6FA5;
  padding-left: 1.1rem;
}

.card-title {
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 0.3rem;
  color: #1C1C1E;
}

.card-meta {
  font-size: 0.875rem;
  color: #999;
  margin-bottom: 0.4rem;
}

.card-desc {
  font-size: 0.95rem;
  color: #444;
  line-height: 1.6;
}

.card-link {
  display: inline-block;
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: #4A6FA5;
}

.card-link:hover {
  text-decoration: underline;
}

/* ── Contact form ── */
.contact-intro {
  color: #555;
  margin-bottom: 2rem;
  max-width: 560px;
  line-height: 1.7;
}

.form-group {
  margin-bottom: 1.25rem;
}

label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 0.35rem;
  color: #333;
}

input[type="text"],
input[type="email"],
textarea {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border: 1px solid #D1D1CF;
  border-radius: 6px;
  background: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  color: #1C1C1E;
  transition: border-color 0.2s;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: #4A6FA5;
}

textarea {
  height: 150px;
  resize: vertical;
}

button[type="submit"] {
  background: #4A6FA5;
  color: #fff;
  border: none;
  padding: 0.7rem 1.6rem;
  border-radius: 6px;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
}

button[type="submit"]:hover {
  background: #3a5a8c;
}

/* ── Responsive ── */
@media (max-width: 600px) {
  nav {
    flex-direction: column;
    height: auto;
    padding: 0.75rem 0;
    gap: 0.6rem;
  }

  .nav-links {
    gap: 1.1rem;
  }

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

  .tags,
  .academic-links {
    justify-content: center;
  }
}
