:root {
  --bg: #fbfaf7;
  --surface: #ffffff;
  --ink: #16202e;
  --ink-soft: #4a5566;
  --ink-faint: #7b8494;
  --line: #e4e1da;
  --navy: #1c2b45;
  --accent: #0f7c7a;
  --accent-soft: #e3f1f0;
  --bullet: #1c2b45;
  --strong-bg: #1c2b45;
  --strong-ink: #ffffff;
  --strong-hover: #0f7c7a;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --max: 1040px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #11161f;
    --surface: #18202c;
    --ink: #e8ebf0;
    --ink-soft: #b3bbc7;
    --ink-faint: #848d9b;
    --line: #2a3442;
    --navy: #0c121b;
    --accent: #4fc1bb;
    --accent-soft: #173235;
    --bullet: #ffffff;
    --strong-bg: #4fc1bb;
    --strong-ink: #0b1a1c;
    --strong-hover: #6fd3cd;
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 72px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 60px; gap: 16px; }
.nav .brand { font-family: var(--serif); font-weight: 600; font-size: 19px; color: var(--ink); white-space: nowrap; }
.nav .brand:hover { text-decoration: none; }
.nav ul { list-style: none; display: flex; gap: 26px; margin: 0; padding: 0; }
.nav ul a { color: var(--ink-soft); font-size: 14.5px; font-weight: 500; }
.nav ul a:hover { color: var(--accent); text-decoration: none; }

/* ---------- Hero ---------- */
.hero { padding: 72px 0 64px; border-bottom: 1px solid var(--line); }
.hero .wrap { display: grid; grid-template-columns: 1fr auto; gap: 48px; align-items: center; }
.hero h1 {
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(38px, 6vw, 56px); line-height: 1.08; letter-spacing: -0.01em;
  margin: 0 0 10px;
}
.hero h1 .cred { font-size: 0.5em; font-weight: 400; color: var(--ink-faint); letter-spacing: 0; }
.hero .role { font-size: 19px; color: var(--ink-soft); margin: 0 0 22px; }
.hero .affil { list-style: none; padding: 0; margin: 0 0 30px; color: var(--ink-soft); font-size: 15.5px; }
.hero .affil li { padding-left: 16px; position: relative; margin-bottom: 4px; }
.hero .affil li::before { content: ""; position: absolute; left: 0; top: 0.72em; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.hero img {
  display: block; width: 140px; height: 140px; object-fit: cover; object-position: center 22%;
  border-radius: 50%; box-shadow: 0 10px 24px -14px rgba(22, 32, 46, 0.5); border: 3px solid var(--surface);
}

.links { display: flex; flex-wrap: wrap; gap: 10px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px; border-radius: 8px;
  font-size: 14.5px; font-weight: 500;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  transition: border-color .15s, color .15s, background .15s;
}
.btn:hover { text-decoration: none; border-color: var(--accent); color: var(--accent); }
.btn svg { width: 17px; height: 17px; flex: none; }
.btn.primary { background: var(--strong-bg); border-color: var(--strong-bg); color: var(--strong-ink); }
.btn.primary:hover { background: var(--strong-hover); border-color: var(--strong-hover); color: var(--strong-ink); }

/* ---------- Sections ---------- */
section.block { padding: 72px 0; border-bottom: 1px solid var(--line); }
.eyebrow { font-size: 12.5px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); margin: 0 0 8px; }
h2 { font-family: var(--serif); font-weight: 600; font-size: 34px; line-height: 1.2; margin: 0 0 28px; }
h3 { font-family: var(--serif); font-weight: 600; font-size: 22px; margin: 0 0 14px; }

/* Research */
.research { display: grid; grid-template-columns: 1.35fr 1fr; gap: 48px; }
.research p { margin: 0 0 18px; color: var(--ink-soft); }
.research p.lead { font-family: var(--serif); font-size: 21px; line-height: 1.5; color: var(--ink); }
.themes { display: grid; gap: 14px; align-content: start; }
.theme { background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: 10px; padding: 16px 18px; }
.theme strong { display: block; font-size: 15.5px; margin-bottom: 2px; }
.theme span { font-size: 14.5px; color: var(--ink-soft); line-height: 1.5; display: block; }

.awards ul { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 7px; }
.awards li { display: grid; grid-template-columns: 40px 1fr; gap: 8px; font-size: 14px; line-height: 1.45; color: var(--ink-soft); }
.awards .yr { font-weight: 600; color: var(--accent); font-size: 13px; padding-top: 1px; }

/* Teaching */
.teach { display: grid; grid-template-columns: 1.25fr 1fr; gap: 48px; }
.teach .past li { grid-template-columns: 120px 1fr; }
.mentees { display: grid; gap: 14px; }
.mentees .what { margin-top: 0; }
.mentees p { margin: 8px 0 0; font-size: 14.5px; color: var(--ink-soft); line-height: 1.55; }

/* Publications */
.pub-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; flex-wrap: wrap; margin-bottom: 8px; }
.pub-head h2 { margin-bottom: 0; }
.pub-note { font-size: 14px; color: var(--ink-faint); margin: 10px 0 32px; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.filters button {
  font: inherit; font-size: 14px; font-weight: 500;
  padding: 7px 14px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink-soft);
}
.filters button[aria-pressed="true"] { background: var(--strong-bg); border-color: var(--strong-bg); color: var(--strong-ink); }

.year-group { display: grid; grid-template-columns: 80px 1fr; gap: 24px; padding: 22px 0; border-top: 1px solid var(--line); }
.year-group[hidden] { display: none; }
.year { font-family: var(--serif); font-size: 22px; font-weight: 600; color: var(--ink-faint); }
.pubs { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; }
.pub { position: relative; padding-left: 22px; }
.pub::before { content: ""; position: absolute; left: 0; top: 0.5em; width: 8px; height: 8px; border-radius: 50%; background: var(--bullet); }
.pub[hidden] { display: none; }
.pub .title { font-weight: 600; font-size: 16.5px; line-height: 1.45; color: var(--ink); margin: 0 0 4px; }
.pub .authors { font-size: 14.5px; color: var(--ink-soft); margin: 0 0 2px; }
.pub .authors b { color: var(--ink); font-weight: 600; }
.pub .venue { font-size: 14.5px; color: var(--ink-faint); margin: 0 0 8px; }
.pub .venue em { color: var(--ink-soft); }
.pub .actions { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 500; padding: 4px 10px; border-radius: 6px;
  border: 1px solid var(--line); color: var(--ink-soft); background: var(--surface);
}
.tag:hover { text-decoration: none; border-color: var(--accent); color: var(--accent); }
.tag.pdf { background: var(--accent-soft); border-color: transparent; color: var(--accent); }
.tag svg { width: 14px; height: 14px; }
.badge { font-size: 11.5px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); margin-left: 6px; }
.footnote { font-size: 13.5px; color: var(--ink-faint); margin-top: 24px; }

/* Clinical */
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 20px 22px; }
.card .when { font-size: 13px; font-weight: 600; letter-spacing: 0.04em; color: var(--accent); text-transform: uppercase; }
.card .what { font-weight: 600; font-size: 17px; margin: 4px 0 2px; }
.card .where { color: var(--ink-soft); font-size: 15px; }
.subhead { font-size: 13px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-faint); margin: 36px 0 14px; }
.subhead:first-of-type { margin-top: 0; }
.past { list-style: none; padding: 0; margin: 0; }
.past li { display: grid; grid-template-columns: 130px 1fr; gap: 16px; padding: 12px 0; border-top: 1px solid var(--line); font-size: 15.5px; }
.past li .when { color: var(--ink-faint); }
.past li span.where { color: var(--ink-soft); }
.certs { display: flex; flex-wrap: wrap; gap: 10px; }
.certs span { font-size: 14.5px; padding: 8px 14px; border-radius: 8px; background: var(--accent-soft); color: var(--ink); }

/* Consulting */
.consult { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.consult .col { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 28px; }
.consult .col p.desc { color: var(--ink-soft); font-size: 15px; margin: -4px 0 18px; }
.consult ul { list-style: none; margin: 0; padding: 0; }
.consult li { padding: 14px 0; border-top: 1px solid var(--line); }
.consult li strong { display: block; font-size: 16.5px; }
.consult li span { font-size: 14.5px; color: var(--ink-soft); }

/* Contact / footer */
.contact { text-align: center; padding: 80px 0; }
.contact p { color: var(--ink-soft); max-width: 560px; margin: 0 auto 26px; }
.contact .links { justify-content: center; }
footer { padding: 28px 0 40px; font-size: 13.5px; color: var(--ink-faint); text-align: center; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .nav ul { display: none; }
  .hero { padding: 40px 0 48px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 28px; }
  .hero .photo { order: -1; }
  .hero img { width: 96px; height: 96px; }
  .research, .consult, .cards, .teach { grid-template-columns: 1fr; }
  .teach .past li { grid-template-columns: 1fr; }
  .year-group { grid-template-columns: 1fr; gap: 10px; }
  .past li { grid-template-columns: 1fr; gap: 2px; }
  section.block { padding: 56px 0; }
  h2 { font-size: 29px; }
}
@media (max-width: 480px) {
  .wrap { padding: 0 16px; }
}
