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

:root {
  --text:           #111827;
  --text-secondary: #6b7280;
  --text-dim:       #9ca3af;
  --accent:         #1d4ed8;
  --accent-hover:   #1e40af;
  --border:         #e5e7eb;
  --bg:             #ffffff;
  --bg-subtle:      #f9fafb;
  --col-gap:        3rem;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 1rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

/* ── NAV ── */
header {
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: rgba(255,255,255,0.95);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  z-index: 10;
}

nav {
  max-width: 1150px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 3.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-name {
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--text);
  text-decoration: none;
}
.nav-name:hover { text-decoration: none; color: var(--text); }

.nav-links { display: flex; gap: 1.75rem; list-style: none; }
.nav-links a {
  font-size: 0.875rem;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.15s;
}
.nav-links a:hover { color: var(--text); text-decoration: none; }

/* ── PAGE WRAPPER ── */
main {
  max-width: 1150px;
  margin: 0 auto;
  padding: 0 2rem;
}

section {
  padding: 3.75rem 0;
  border-bottom: 1px solid var(--border);
}
section:last-child { border-bottom: none; }

/* ── 2-COL GRID ── */
.section-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--col-gap);
  align-items: start;
}

/* ── SECTION LABEL ── */
.section-label {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 1.75rem;
}


/* ── HERO ── */
.hero { padding-top: 5rem; padding-bottom: 4rem; }

.hero .section-grid { align-items: center; }

h1 {
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.2;
  margin-bottom: 0.5rem;
}

.hero-meta {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  margin-bottom: 1.75rem;
  line-height: 1.5;
}

.hero-bio {
  font-size: 0.9375rem;
  line-height: 1.75;
  color: var(--text);
  margin-bottom: 1rem;
}
.hero-bio:last-child { margin-bottom: 0; }

.hero-links {
  margin-top: 1.5rem;
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.hero-links a {
  font-size: 0.875rem;
  color: var(--text-secondary);
  border: 1px solid var(--border);
  padding: 0.375rem 0.875rem;
  border-radius: 4px;
  text-decoration: none;
  transition: border-color 0.15s, color 0.15s;
}
.hero-links a:hover {
  color: var(--text);
  border-color: #9ca3af;
  text-decoration: none;
}

/* headshot */
.headshot-wrap {
  display: flex;
  justify-content: center;
}

.headshot {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  display: block;
  object-fit: cover;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

/* ── RESEARCH ── */
h2 {
  font-size: 0.9375rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

.research-intro {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
}

.interest-list {
  margin: 0.25rem 0 0 1.125rem;
  line-height: 1.9;
  color: var(--text);
  font-size: 0.9375rem;
}
.interest-list li { margin-bottom: 0.1rem; }

/* projects block — sits below the research/interests row */
.projects-block {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.projects-block .section-label { margin-bottom: 1.25rem; }

/* project card */
.project-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.5rem;
}

.project-header {
  display: flex;
  align-items: baseline;
  gap: 0.625rem;
  flex-wrap: wrap;
  margin-bottom: 0.25rem;
}

.project-name { font-size: 0.9375rem; font-weight: 600; color: var(--text); }
.project-link { font-size: 0.8125rem; color: var(--accent); }
.project-link:hover { color: var(--accent-hover); }

.project-meta {
  font-size: 0.8125rem;
  color: var(--text-dim);
  margin-bottom: 0.875rem;
}

.project-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 0.75rem;
}
.project-desc:last-of-type { margin-bottom: 0; }

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  margin-top: 1rem;
}

.tag {
  font-size: 0.6875rem;
  padding: 0.2rem 0.5625rem;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-secondary);
}

/* ── BACKGROUND ── */
.cv-entry { margin-bottom: 1.75rem; }
.cv-entry:last-child { margin-bottom: 0; }

.cv-role {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 0.1rem;
}

.cv-meta {
  font-size: 0.8125rem;
  color: var(--text-dim);
  margin-bottom: 0.375rem;
}

.cv-detail {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin: 0;
}

/* affil row */
.affil-section {
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}

.affil-label {
  font-size: 0.75rem;
  color: var(--text-dim);
  margin-bottom: 0.625rem;
}

.affil-list { display: flex; flex-wrap: wrap; gap: 0.4rem; }

.affil {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  padding: 0.25rem 0.625rem;
  border: 1px solid var(--border);
  border-radius: 4px;
}

/* ── BEYOND THE LAB ── */
.beyond-entry { margin-bottom: 1.75rem; }
.beyond-entry:last-child { margin-bottom: 0; }

.beyond-title {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 0.1rem;
}

.beyond-meta {
  font-size: 0.8125rem;
  color: var(--text-dim);
  margin-bottom: 0.375rem;
}

.beyond-detail {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin: 0;
}

.charity-links {
  margin-top: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.charity-link {
  font-size: 0.8125rem;
  color: var(--accent);
}
.charity-link:hover { color: var(--accent-hover); }

/* ── FOOTER ── */
footer {
  max-width: 1150px;
  margin: 0 auto;
  padding: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.footer-copy { font-size: 0.8125rem; color: var(--text-dim); }

.footer-links { display: flex; gap: 1.5rem; }
.footer-links a {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.15s;
}
.footer-links a:hover { color: var(--text); text-decoration: none; }

/* ── RESPONSIVE ── */
@media (max-width: 680px) {
  :root { --col-gap: 2rem; }
  nav { padding: 0 1.25rem; }
  .nav-links { gap: 1.25rem; }
  main { padding: 0 1.25rem; }
  footer { padding: 1.5rem 1.25rem; flex-direction: column; align-items: flex-start; }
  .hero { padding-top: 2.75rem; }
  h1 { font-size: 1.625rem; }

  .section-grid { grid-template-columns: 1fr; }

  /* hero: image comes first on mobile */
  .hero .col-right { order: -1; }
  .headshot-wrap { justify-content: center; }
  .headshot { width: 160px; height: 160px; }
}
