/* General layout */
:root {
  --accent: #1f6f78;
  --accent-light: #e5f3f5;
  --text-muted: #5f6b72;
}

body {
  line-height: 1.65;
}

.navbar-title {
  font-weight: 700;
  letter-spacing: 0.02em;
}

h1, h2, h3 {
  color: #143f46;
}

a {
  color: var(--accent);
}

/* Home hero */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(260px, 0.8fr);
  gap: 3rem;
  align-items: center;
  max-width: 1100px;
  margin: 3rem auto 2rem auto;
  padding: 0 1rem;
}

.hero h1 {
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  margin-bottom: 0.4rem;
}

.hero-text p {
  font-size: 1.08rem;
}

.profile-photo {
  width: 100%;
  max-width: 330px;
  border-radius: 24px;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.16);
  display: block;
  margin-left: auto;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.5rem;
  margin-bottom: 1rem;
}

.social-links {
  color: var(--text-muted);
  font-size: 0.98rem;
}

/* Cards */
.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
  margin: 1.5rem 0 2rem 0;
}

.card-custom {
  background: var(--accent-light);
  border: 1px solid rgba(31, 111, 120, 0.14);
  border-radius: 18px;
  padding: 1.2rem 1.3rem;
}

.card-custom h3 {
  margin-top: 0;
}

/* Publication list */
#selected-journal-publications + ol li,
#working-papers + ol li {
  margin-bottom: 0.85rem;
}

/* Responsive */
@media (max-width: 800px) {
  .hero {
    grid-template-columns: 1fr;
    margin-top: 2rem;
  }

  .profile-photo {
    margin-left: 0;
    max-width: 260px;
  }

  .cards {
    grid-template-columns: 1fr;
  }
}
