:root {
  --bg: #faf8f3;
  --ink: #20281f;
  --muted: #6d7264;
  --muted-2: #8a8674;
  --border: #e4e0d5;
  --accent: #4a6b3f;
  --accent-dark: #354e2d;
  --pill-bg: #eef0e6;
  --tagline: #7a2e3a;
  --display: 'Sora', sans-serif;
  --sans: 'Work Sans', sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-dark); text-decoration: underline; }

.wrap {
  max-width: 820px;
  margin: 0 auto;
}

/* Nav */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 26px 30px;
  border-bottom: 1px solid var(--border);
}
.nav .brand {
  font-family: var(--display);
  font-size: 20px;
  font-weight: 600;
}
.nav .links { display: flex; gap: 24px; font-size: 15px; font-weight: 500; }
.nav .links a { color: var(--muted-2); }
.nav .links a.active { color: var(--ink); }
.nav .links a.active:hover { text-decoration: none; }

/* Hero */
.hero {
  padding: 40px 30px 36px;
  border-bottom: 1px solid var(--border);
}
.hero-name {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(38px, 6vw, 60px);
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin: 0 0 10px;
}
.hero-name .hero-suffix {
  font-size: 0.4em;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0;
}
.hero-lead {
  font-size: 16.5px;
  font-weight: 500;
  color: var(--tagline);
  margin: 0 0 28px;
}
.hero-body {
  display: flex;
  gap: 32px;
  align-items: flex-start;
}
.headshot {
  flex-shrink: 0;
  width: 220px;
  height: 280px;
  border-radius: 8px;
  object-fit: cover;
  object-position: top;
}
.hero-text { flex: 1; min-width: 0; }
.bio {
  font-size: 16.5px;
  line-height: 1.65;
  margin: 0;
}
.social-links {
  margin: 18px 0 0;
  font-size: 14.5px;
  font-weight: 500;
}

.hero-banner {
  display: block;
  max-width: 460px;
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: 8px;
  margin: 8px auto 24px;
}

/* IWH director callout */
.iwh-quote {
  margin: 20px 0 0;
  padding: 18px 22px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--pill-bg);
}
.iwh-quote-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted-2);
  margin: 0 0 8px;
}
.iwh-quote-text {
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  margin: 0;
}
.iwh-quote-cite {
  font-size: 14px;
  font-weight: 500;
  color: var(--muted-2);
  margin: 10px 0 0;
}

/* Stats block */
.stats-block {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  margin: 32px 0 0;
}
.stats-block.cols-4 {
  grid-template-columns: repeat(4, 1fr);
}
.stats-block.cols-2 {
  grid-template-columns: repeat(2, 1fr);
}
.stat-cell { background: var(--bg); padding: 14px 16px; }
.stat-value {
  font-family: var(--display);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.stat-label {
  font-size: 12.5px;
  color: var(--muted-2);
  margin-top: 3px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

/* Generic content section */
.section {
  padding: 36px 30px;
  border-bottom: 1px solid var(--border);
}
.section:last-of-type { border-bottom: none; }
.section h2 {
  font-family: var(--display);
  font-size: 21px;
  font-weight: 600;
  margin: 0 0 16px;
}
.section h3 {
  font-family: var(--sans);
  font-size: 16.5px;
  font-weight: 600;
  margin: 28px 0 10px;
}
.section h3:first-of-type { margin-top: 20px; }
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 16px;
}
.section-head h2 { margin: 0; }
.section-head .see-all { font-size: 14.5px; font-weight: 500; }

/* Research interest cards */
.interest-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}
.interest-card {
  padding: 16px 20px 16px 0;
  border-top: 1px solid var(--border);
}
.interest-card:nth-child(-n+2) { border-top: none; }
.interest-card-title {
  font-family: var(--display);
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 4px;
}
.interest-card p:not(.interest-card-title) {
  font-size: 14.5px;
  color: var(--muted);
  line-height: 1.5;
  margin: 0;
}

/* News list */
.news-list { display: flex; flex-direction: column; }
.news-item {
  display: flex;
  gap: 16px;
  font-size: 15.5px;
  line-height: 1.6;
  padding: 14px 0;
  border-top: 1px solid var(--border);
}
.news-item:first-child { border-top: none; padding-top: 0; }
.news-item .date {
  flex-shrink: 0;
  width: 84px;
  color: var(--muted-2);
  font-variant-numeric: tabular-nums;
}

/* Publications (home) */
.pub-list { display: flex; flex-direction: column; gap: 20px; }
.pub-list p { margin: 0; }
.pub-title { font-size: 16px; line-height: 1.55; margin: 0 0 4px; }
.pub-meta { font-size: 14.5px; color: var(--muted-2); line-height: 1.5; }

/* CV page */
.cv-header {
  padding: 40px 0 8px;
}
.cv-header .hero-name { margin: 0 0 10px; }
.cv-role-line {
  font-size: 16.5px;
  font-weight: 500;
  color: var(--tagline);
  margin: 0 0 4px;
}
.cv-affil-line {
  font-size: 16.5px;
  color: var(--muted);
  margin: 0 0 16px;
}
.cv-contact-line {
  font-size: 14.5px;
  color: var(--muted-2);
  margin: 0;
}
.cv-contact-line a { font-weight: 500; }
.cv-updated { font-size: 15px; color: var(--muted-2); margin: 16px 0 8px; }

.cv-section {
  padding: 32px 0;
  border-top: 1px solid var(--border);
}
.cv-section h2 {
  font-family: var(--display);
  font-size: 20px;
  font-weight: 600;
  margin: 0 0 16px;
}

.cv-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.cv-section-head h2 { margin: 0; }
.section-tag {
  font-family: monospace;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted-2);
  white-space: nowrap;
}

/* Profile layout with stats box */
.profile-layout {
  display: flex;
  gap: 36px;
  align-items: flex-start;
}
.profile-text { flex: 1; min-width: 0; }
.profile-stats {
  flex-shrink: 0;
  width: 220px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}
.profile-stats .stat-cell { background: var(--bg); }

/* Timeline (Experience) */
.timeline-row {
  display: grid;
  grid-template-columns: 108px 1fr;
  gap: 24px;
  padding: 24px 0;
  border-top: 1px solid var(--border);
}
.timeline-row:first-child { border-top: none; padding-top: 0; }
.timeline-date {
  font-family: monospace;
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--muted-2);
  line-height: 1.5;
  padding-top: 3px;
}
.timeline-content h3:first-child { margin-top: 0; }
.cv-section h3 {
  font-family: var(--sans);
  font-size: 16.5px;
  font-weight: 600;
  margin: 22px 0 6px;
}
.cv-section h3:first-child { margin-top: 0; }
.cv-section p {
  margin: 18px 0 8px;
  font-size: 15.5px;
  line-height: 1.65;
}
.cv-section > p:first-child,
.cv-section h3 + p,
.cv-section h2 + p {
  margin-top: 0;
}
.cv-section h4 {
  font-family: var(--sans);
  font-size: 14.5px;
  font-weight: 600;
  margin: 14px 0 6px;
  color: var(--muted-2);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.cv-list, .skills-list {
  margin: 0;
  padding-left: 20px;
  font-size: 15.5px;
  line-height: 1.85;
}
.cv-list.tight { line-height: 1.7; }
.cv-list li, .skills-list li { margin-bottom: 2px; }

.pub-numbered {
  margin: 0;
  padding-left: 22px;
  font-size: 15px;
  line-height: 1.7;
}
.pub-numbered li { margin-bottom: 12px; }

.bullets {
  margin: 8px 0 0;
  padding-left: 0;
  font-size: 15.5px;
  line-height: 1.75;
  list-style: none;
}
.bullets li {
  position: relative;
  margin-bottom: 6px;
  padding-left: 20px;
}
.bullets li::before {
  content: "▸";
  position: absolute;
  left: 0;
  color: var(--accent);
}
.bullets .tag {
  font-family: monospace;
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--muted-2);
  margin-right: 5px;
}
.bullets .tag::after { content: ":"; }

.cv-section ol:not(.pub-numbered) {
  margin: 8px 0 0;
  padding-left: 22px;
  font-size: 15.5px;
  line-height: 1.75;
}
.cv-section ol:not(.pub-numbered) li { margin-bottom: 6px; }

.cv-page-body { padding: 0 30px 100px; }

@media (max-width: 600px) {
  .hero-body { flex-direction: column; }
  .headshot { width: 160px; height: 200px; }
  .stats-block, .stats-block.cols-4, .stats-block.cols-2 { grid-template-columns: repeat(2, 1fr); }
  .interest-cards { grid-template-columns: 1fr; }
  .interest-card:nth-child(2) { border-top: 1px solid var(--border); }
  .profile-layout { flex-direction: column; }
  .profile-stats { width: 100%; }
  .timeline-row { grid-template-columns: 1fr; gap: 6px; }
  .timeline-date br { display: none; }
}
