:root {
  --bg: #f4f7f4;
  --bg-alt: #e7efe7;
  --ink: #18211b;
  --muted: #425349;
  --accent: #006b53;
  --accent-soft: #d7efe5;
  --line: #c6d4c9;
  --card: #ffffff;
  --shadow: 0 10px 30px rgba(24, 33, 27, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 5%, rgba(0, 107, 83, 0.12), transparent 30%),
    radial-gradient(circle at 90% 15%, rgba(143, 92, 51, 0.15), transparent 28%),
    var(--bg);
  line-height: 1.65;
}

h1,
h2,
h3 {
  margin-top: 0;
  line-height: 1.2;
}

h1,
h2 {
  font-family: "Source Serif 4", Georgia, serif;
}

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

.container {
  width: min(1100px, 92vw);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(244, 247, 244, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 0;
}

.brand {
  text-decoration: none;
  font-weight: 700;
  color: var(--ink);
}

.nav-list {
  display: flex;
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-list a {
  text-decoration: none;
  font-weight: 500;
}

.hero {
  padding: 5rem 0 3rem;
}

.profile-intro {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.profile-photo {
  width: 132px;
  height: 132px;
  border-radius: 50%;
  border: 2px solid var(--line);
  object-fit: cover;
  background: #fff;
  flex-shrink: 0;
}

.profile-name {
  margin: 0;
}

.profile-position {
  margin: 0.2rem 0 0;
  font-weight: 600;
}

.profile-affiliation {
  margin: 0.2rem 0 0;
  color: var(--muted);
}

.section {
  padding: 3.25rem 0;
}

.section.alt {
  background: var(--bg-alt);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.news-section {
  padding-top: 0.2rem;
  padding-bottom: 1.25rem;
}

.news-popup {
  position: relative;
  background: linear-gradient(140deg, #f9fcfa 0%, #eef6f0 100%);
  border: 1px solid #b9d8c3;
  border-left: 6px solid var(--accent);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 1rem 1.25rem 1.05rem;
}

.news-label {
  margin: 0 0 0.2rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
  color: var(--muted);
  font-weight: 700;
}

.news-popup h2 {
  margin: 0 0 0.35rem;
  font-size: clamp(1.25rem, 2vw, 1.65rem);
}

.news-popup p {
  margin: 0;
}

.news-list {
  display: grid;
  gap: 0.8rem;
}

.news-item {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.75rem 0.85rem;
}

.news-item h3 {
  margin: 0 0 0.2rem;
  font-size: 1.02rem;
}

.news-item p {
  margin: 0;
  white-space: pre-line;
}

.news-link {
  display: inline-block;
  margin-top: 0.55rem;
  font-weight: 600;
}

.news-close {
  position: absolute;
  top: 0.45rem;
  right: 0.55rem;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.2rem 0.35rem;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1rem;
}

.pub-list {
  padding-left: 1.25rem;
}

.pub-list li {
  margin-bottom: 0.9rem;
}

.members-grid {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.member-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1rem;
  box-shadow: var(--shadow);
}

.member-head {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
}

.member-head h3 {
  margin: 0;
}

.member-identity {
  min-width: 0;
}

.member-photo {
  width: 74px;
  height: 74px;
  border-radius: 50%;
  border: 1px solid var(--line);
  object-fit: cover;
  background: #fff;
  flex-shrink: 0;
}

.member-role {
  font-weight: 600;
  margin: 0.15rem 0 0.1rem;
}

.member-affiliation {
  margin: 0;
}

.member-focus {
  color: var(--muted);
  margin: 0.45rem 0 0.8rem;
}

.muted {
  color: var(--muted);
}

.teaching-list {
  padding-left: 1.2rem;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1.2rem;
  align-items: stretch;
}

.contact-card,
.contact-visual {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.contact-card {
  padding: 1rem 1.1rem;
}

.contact-list {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
}

.contact-list li {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 0.75rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--line);
}

.contact-list li:last-child {
  border-bottom: 0;
}

.contact-list span:first-child {
  font-weight: 600;
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.contact-chip {
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  background: var(--bg);
}

.contact-visual {
  margin: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.campus-photo {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
}

.photo-credit {
  margin: 0;
  padding: 0.65rem 0.8rem 0.75rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 1rem 0 2rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  animation: reveal 700ms ease forwards;
  animation-play-state: paused;
}

.reveal.visible {
  animation-play-state: running;
}

@keyframes reveal {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 900px) {
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .cards,
  .members-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .profile-intro {
    align-items: flex-start;
  }

  .profile-photo {
    width: 108px;
    height: 108px;
  }

  .member-photo {
    width: 66px;
    height: 66px;
  }

  .nav-list {
    gap: 0.6rem;
    flex-wrap: wrap;
    justify-content: flex-end;
  }

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

  .news-popup {
    padding-right: 2rem;
  }

  .contact-list li {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
  }
}
