:root {
  color-scheme: light;
  --bg: #f7f8f5;
  --surface: #ffffff;
  --surface-muted: #eef3ec;
  --text: #1f2724;
  --muted: #66716d;
  --border: #d9e0db;
  --accent: #116853;
  --accent-strong: #0a4d3b;
  --link: #145f93;
  --shadow: 0 18px 48px rgba(22, 38, 32, 0.08);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
}

a {
  color: var(--link);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

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

.site-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.profile-header {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 32px;
  align-items: center;
  padding: 48px 0 32px;
}

.profile-photo-wrap {
  width: 180px;
  aspect-ratio: 1;
  border-radius: 50%;
  padding: 6px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.profile-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

.eyebrow,
.section-kicker {
  margin: 0 0 6px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 10px;
  font-size: clamp(2.45rem, 6vw, 4.4rem);
  line-height: 1;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0;
  font-size: 1.55rem;
  line-height: 1.2;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 14px;
  font-size: 1.05rem;
  line-height: 1.3;
  letter-spacing: 0;
}

.lead {
  max-width: 760px;
  margin-bottom: 18px;
  color: #33413c;
  font-size: 1.22rem;
  line-height: 1.5;
}

.contact-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  color: var(--muted);
  font-size: 0.95rem;
}

.profile-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.profile-links a,
.page-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--accent-strong);
  font-weight: 650;
  text-decoration: none;
}

.profile-links a:hover,
.page-nav a:hover {
  border-color: rgba(17, 104, 83, 0.45);
  background: var(--surface-muted);
}

.page-nav {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: rgba(247, 248, 245, 0.94);
  backdrop-filter: blur(12px);
}

.page-nav {
  scrollbar-width: none;
}

.page-nav::-webkit-scrollbar {
  display: none;
}

.mobile-news {
  display: none;
}

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 28px;
  align-items: start;
  padding: 28px 0 48px;
}

.main-column,
.side-column {
  display: grid;
  gap: 22px;
}

.section,
.side-panel {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.section {
  padding: 28px;
}

.side-panel {
  padding: 22px;
}

.side-column {
  position: sticky;
  top: 82px;
}

.section-heading {
  display: grid;
  gap: 2px;
  margin-bottom: 22px;
}

.section-heading.compact {
  margin-bottom: 16px;
}

.prose {
  color: #2d3733;
}

.prose p {
  margin-bottom: 16px;
}

.prose p:last-child,
.prose ul:last-child {
  margin-bottom: 0;
}

.prose.compact {
  font-size: 0.95rem;
  line-height: 1.55;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 24px;
}

.stat {
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-muted);
}

.stat-value {
  display: block;
  color: var(--accent-strong);
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1;
}

.stat-label {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.3;
}

.publication-list,
.student-list,
.talk-list,
.news-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.publication-list {
  display: grid;
  gap: 12px;
}

.publication-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  padding: 16px 0;
  border-top: 1px solid var(--border);
}

.publication-item:first-child {
  border-top: 0;
  padding-top: 0;
}

.publication-title {
  margin-bottom: 6px;
  color: var(--text);
  font-weight: 720;
  line-height: 1.4;
}

.publication-title a {
  color: inherit;
}

.publication-authors,
.publication-meta {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.45;
}

.tag {
  align-self: start;
  max-width: 130px;
  padding: 4px 8px;
  border-radius: 999px;
  background: #e4f0ec;
  color: var(--accent-strong);
  font-size: 0.75rem;
  font-weight: 750;
  line-height: 1.25;
  text-align: center;
}

.student-groups {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px;
}

.student-list {
  display: grid;
  gap: 14px;
}

.student-list li,
.talk-list li,
.grant-list li,
.service-list li,
.news-list li {
  display: grid;
  gap: 3px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.student-list li:first-child,
.talk-list li:first-child,
.grant-list li:first-child,
.service-list li:first-child,
.news-list li:first-child {
  padding-top: 0;
  border-top: 0;
}

.student-list span,
.talk-list span,
.grant-list span,
.service-list span,
.news-list span {
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.45;
}

.student-list .topic {
  color: #34413d;
}

.talk-list {
  display: grid;
  gap: 14px;
}

.news-list {
  display: grid;
  gap: 14px;
  max-height: 680px;
  overflow: auto;
  padding-right: 4px;
}

.news-list time {
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.3;
}

.grant-list,
.service-list {
  display: grid;
  gap: 13px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding: 24px 0 42px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.88rem;
}

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

  .side-column {
    position: static;
  }

  .news-list {
    max-height: none;
  }

  .desktop-news {
    display: none;
  }

  .mobile-news {
    display: block;
  }
}

@media (max-width: 720px) {
  .site-shell {
    width: min(100% - 22px, 1180px);
  }

  .profile-header {
    grid-template-columns: 1fr;
    gap: 20px;
    padding-top: 28px;
  }

  .profile-photo-wrap {
    width: 132px;
  }

  .lead {
    font-size: 1.05rem;
  }

  .page-nav {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding: 10px 0;
    scrollbar-width: thin;
    scrollbar-color: #9aa7a2 transparent;
  }

  .page-nav a {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .page-nav::-webkit-scrollbar {
    display: block;
    height: 5px;
  }

  .page-nav::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: #9aa7a2;
  }

  .page-nav::-webkit-scrollbar-track {
    background: transparent;
  }

  .section,
  .side-panel {
    padding: 20px;
  }

  .stat-grid,
  .student-groups {
    grid-template-columns: 1fr;
  }

  .publication-item {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .tag {
    justify-self: start;
    max-width: 100%;
  }
}
