:root {
  --ink: #1b2430;
  --muted: #5e6875;
  --paper: #fbfaf7;
  --panel: #ffffff;
  --line: #dce2e8;
  --accent: #1f5a7a;
  --accent-soft: #eaf2f6;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  line-height: 1.58;
}

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

.site-header {
  border-bottom: 1px solid var(--line);
  background: rgba(251,250,247,0.96);
}
.nav {
  max-width: var(--max);
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  gap: 22px;
  align-items: center;
  justify-content: space-between;
}
.brand {
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: .01em;
}
.nav-links { display: flex; gap: 18px; flex-wrap: wrap; }
.nav-links a, .current-page { text-decoration: none; color: var(--muted); font-size: 0.95rem; }
.nav-links a:hover, .current-page { color: var(--accent); }

main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 52px 24px 72px;
}
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 210px;
  gap: 48px;
  align-items: center;
  margin-bottom: 46px;
}
.eyebrow {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  text-transform: uppercase;
  letter-spacing: .09em;
  color: var(--accent);
  font-size: .76rem;
  font-weight: 700;
  margin-bottom: 8px;
}
h1, h2, h3 { line-height: 1.18; }
h1 { font-size: clamp(2.5rem, 5vw, 4rem); margin: 0 0 10px; font-weight: 600; letter-spacing: -.025em; }
h2 { font-size: 1.7rem; margin: 42px 0 14px; }
h3 { font-size: 1.15rem; margin: 28px 0 8px; }
.lede { font-size: 1.18rem; color: #34404d; max-width: 690px; }

.photo {
  width: 200px;
  height: 200px;
  object-fit: cover;
  border-radius: 18px;
  border: 1px solid var(--line);
  box-shadow: 0 10px 28px rgba(27,36,48,.10);
  background: var(--accent-soft);
}

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px 24px;
  margin: 24px 0;
}
.card h2, .card h3 { margin-top: 0; }


.clean-list { padding-left: 1.25rem; }
.clean-list li { margin-bottom: 8px; }
.pub-list { padding-left: 1.35rem; }
.pub-list li { margin-bottom: 14px; }
.meta { color: var(--muted); font-size: .92rem; }
.note { color: var(--muted); font-style: italic; }


.home-copy {
  max-width: 820px;
}
.home-copy p + p {
  margin-top: 1.35rem;
}
.home-links {
  line-height: 1.65;
}

.collaborator-list {
  list-style: none;
  padding: 0;
  margin: 14px 0 8px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  column-gap: 28px;
  row-gap: 5px;
  font-size: .95rem;
}
.collaborator-list li {
  min-width: 0;
}

footer {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px 38px;
  color: var(--muted);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: .82rem;
}

@media (max-width: 1000px) {
  .collaborator-list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 820px) {
  .collaborator-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 700px) {
  body { font-size: 17px; }
  .nav { align-items: flex-start; gap: 12px; }
  .hero { grid-template-columns: 1fr; gap: 26px; }
  .hero-photo { order: -1; }
  .photo { width: 145px; height: 145px; }
  main { padding-top: 36px; }
  .collaborator-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 440px) {
  .collaborator-list { grid-template-columns: 1fr; }
}

/* Compact bibliography on the research page */
.publication-list {
  padding-left: 1.7rem;
  margin-top: 12px;
  font-size: 0.91rem;
  line-height: 1.42;
}
.publication-list li {
  padding-left: .18rem;
  margin-bottom: 9px;
}
.pub-title {
  font-weight: 600;
  color: var(--ink);
}
.pub-details {
  margin-top: 1px;
  color: #4f5a67;
  font-size: .92em;
}
.pub-links {
  white-space: nowrap;
  margin-left: .28rem;
}
.pub-link {
  display: inline-block;
  margin-left: .22rem;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: .82em;
  text-decoration: none;
  border-bottom: 1px solid #b8c8d2;
}
.pub-link::before { content: "["; color: var(--muted); }
.pub-link::after { content: "]"; color: var(--muted); }
.publication-more {
  margin-top: 22px;
  font-size: .94rem;
}
