:root {
  --ink: #0c1a2e;
  --muted: #4a5b73;
  --line: #d9e2ef;
  --bg: #f6f8fc;
  --card: #ffffff;
  --accent: #104378;
  --accent-soft: #e8eef6;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Source Sans 3", system-ui, -apple-system, sans-serif;
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  text-decoration-thickness: 2px;
}

.wrap {
  max-width: 52rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}

header.site {
  background: linear-gradient(160deg, #0a2540 0%, #104378 55%, #1a5a9e 100%);
  color: #f0f4fa;
  padding: 3rem 0 4rem;
}

header.site .badge {
  display: inline-block;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.9;
  margin-bottom: 0.75rem;
}

header.site h1 {
  font-family: "Source Serif 4", Georgia, serif;
  font-weight: 600;
  font-size: clamp(2rem, 5vw, 2.75rem);
  line-height: 1.15;
  margin: 0 0 0.75rem;
}

header.site .lead {
  font-size: 1.15rem;
  max-width: 36rem;
  opacity: 0.92;
  margin: 0;
}

nav.top {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
}

nav.top a {
  color: #fff;
  text-decoration: none;
  font-size: 0.95rem;
  border-bottom: 1px solid transparent;
}

nav.top a:hover {
  border-bottom-color: rgba(255, 255, 255, 0.6);
}

main {
  margin-top: -2rem;
  padding-bottom: 4rem;
}

.card {
  background: var(--card);
  border-radius: 12px;
  box-shadow: 0 4px 24px rgba(12, 26, 46, 0.08);
  border: 1px solid var(--line);
  padding: 2rem 2rem 2.25rem;
  margin-bottom: 1.5rem;
}

.card h2 {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 1.35rem;
  margin: 0 0 1rem;
  color: var(--ink);
}

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

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

.people-intro {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0 0 1.25rem;
  line-height: 1.5;
}

.people {
  list-style: none;
  margin: 0;
  padding: 0;
}

.people > li {
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  gap: 1.25rem;
  align-items: start;
}

.people > li:first-child {
  padding-top: 0;
}

.people > li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.people__photo {
  width: 7.5rem;
  height: 7.5rem;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--line);
  background: var(--accent-soft);
}

.people__photo--svg {
  object-fit: contain;
  padding: 0;
  background: transparent;
}

.people__body {
  display: grid;
  gap: 0.25rem;
  min-width: 0;
}

.people .role {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  font-weight: 600;
}

.people .name {
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--ink);
}

/* One row per member: LinkedIn, UoM profile, Google Scholar */
.people__links {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.65rem;
  margin-top: 0.6rem;
  width: 100%;
}

.people__icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fff;
  text-decoration: none !important;
  box-shadow: 0 1px 2px rgba(12, 26, 46, 0.06);
  transition: transform 0.12s ease, box-shadow 0.12s ease, border-color 0.12s ease;
}

.people__icon-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(12, 26, 46, 0.12);
  border-color: #b8c9de;
}

.people__icon-link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.people__icon-link img {
  display: block;
  width: 26px;
  height: 26px;
  object-fit: contain;
  pointer-events: none;
}

@media (max-width: 520px) {
  .people > li {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .people__body {
    justify-items: center;
  }

  .people__links {
    justify-content: center;
  }
}

footer.site {
  border-top: 1px solid var(--line);
  padding: 2rem 0 3rem;
  font-size: 0.9rem;
  color: var(--muted);
  text-align: center;
}

footer.site a {
  color: var(--muted);
}

footer.site a:hover {
  color: var(--accent);
}
