:root {
  --bg: #faf9f6;
  --ink: #20201d;
  --muted: #6c6a64;
  --faint: #96928a;
  --line: #dedbd3;
  --accent: #36546f;
  --accent-soft: #edf2f5;
  --max-width: 1060px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration-color: rgba(54, 84, 111, .42);
  text-underline-offset: .18em;
  text-decoration-thickness: 1px;
}

a:hover { color: var(--accent); }
button { font: inherit; }

.page-shell {
  width: min(calc(100% - 40px), var(--max-width));
  margin: 0 auto;
  padding: 86px 0 42px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 210px;
  gap: 72px;
  align-items: center;
  min-height: 310px;
  padding-bottom: 68px;
  border-bottom: 1px solid var(--line);
}

.eyebrow {
  margin: 0 0 9px;
  color: var(--accent);
  font-size: .76rem;
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: .13em;
  text-transform: uppercase;
}

h1, h2, h3 {
  font-family: "EB Garamond", Georgia, serif;
  color: var(--ink);
}

h1 {
  margin: 0 0 18px;
  font-size: clamp(3.35rem, 8vw, 5.35rem);
  line-height: .88;
  letter-spacing: -.045em;
  font-weight: 600;
}

.role {
  margin: 0;
  font-family: "EB Garamond", Georgia, serif;
  font-size: 1.32rem;
  line-height: 1.3;
  font-weight: 600;
}

.affiliation {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: .93rem;
}

.icon-links {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 24px;
}

.icon-links a,
.icon-links button,
.pub-links a {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink);
  background: rgba(255,255,255,.4);
  transition: transform .14s ease, border-color .14s ease, color .14s ease, background .14s ease;
  text-decoration: none;
}

.icon-links button { appearance: none; cursor: pointer; }

.icon-links a:hover,
.icon-links button:hover,
.icon-links button.copied,
.pub-links a:hover {
  transform: translateY(-1px);
  border-color: #a7b6c2;
  color: var(--accent);
  background: var(--accent-soft);
}

.icon-links a:focus-visible,
.icon-links button:focus-visible,
.pub-links a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.icon-links svg,
.pub-links svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-links .brand-fill,
.pub-links .brand-fill { fill: currentColor; stroke: none; }

.copy-status {
  position: absolute;
  left: 0;
  top: calc(100% + 8px);
  color: var(--muted);
  font-size: .72rem;
  line-height: 1;
  white-space: nowrap;
}

.portrait-wrap {
  margin: 0;
  width: 194px;
  height: 194px;
  justify-self: center;
  overflow: hidden;
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(32,32,29,.08), 0 14px 38px rgba(37,42,46,.08);
}

.portrait {
  display: block;
  width: 112.75%;
  height: 112.75%;
  max-width: none;
  object-fit: cover;
  object-position: left top;
  filter: saturate(.88) contrast(1.02);
}

.section {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 38px;
  padding: 54px 0;
  border-bottom: 1px solid var(--line);
}

.section > h2,
.section-heading-row h2 {
  margin: 0;
  font-size: 1.78rem;
  line-height: 1.1;
  font-weight: 600;
  letter-spacing: -.015em;
}

.section-content,
.publications { min-width: 0; }

.prose p { max-width: 68ch; margin: 0 0 16px; }
.prose p:last-child { margin-bottom: 0; }

.support-note { color: var(--muted); font-size: .92rem; }

.interest-block { margin-top: 18px; }
.interest-label {
  margin: 0 0 6px;
  color: var(--ink);
  font-size: .92rem;
  font-weight: 600;
}
.interest-list {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--muted);
  font-size: .92rem;
}
.interest-list li { margin: 2px 0; }

.publications-section { display: block; }

.section-heading-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 26px;
}

.section-heading-row h2 { min-width: 0; }
.section-heading-row .quiet-link {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: .875rem;
  text-decoration: none;
}
.section-heading-row .quiet-link:hover { color: var(--accent); }
.publications { margin-left: 0; }

.publication {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  padding: 0 0 20px;
  margin-bottom: 20px;
  border-bottom: 1px solid rgba(222, 219, 211, .74);
}

.publication:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: 0; }
.publication h3 {
  margin: 0 0 4px;
  max-width: none;
  font-size: 1.25rem;
  line-height: 1.3;
  font-weight: 600;
  letter-spacing: -.008em;
  overflow-wrap: anywhere;
}

.authors,
.venue { margin: 0; font-size: .875rem; line-height: 1.55; }
.authors { color: #55524d; }
.venue { margin-top: 2px; color: var(--muted); font-style: italic; }

.publication { scroll-margin-top: 28px; }

.pub-links { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 0; align-items: flex-start; }
.pub-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: auto;
  height: auto;
  min-height: 38px;
  padding: 7px 11px;
  border-radius: 999px;
  font-size: .875rem;
  line-height: 1.2;
  font-weight: 500;
}
.pub-links svg { flex: 0 0 auto; width: 16px; height: 16px; }

.education-list { display: grid; gap: 22px; }
.education-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px; align-items: baseline; }
.education-item strong { display: block; font-family: "EB Garamond", Georgia, serif; font-size: 1.13rem; line-height: 1.35; font-weight: 600; }
.education-item span,
.education-item time { color: var(--muted); font-size: .88rem; }
.education-item span { display: block; margin-top: 2px; }
.education-item time { white-space: nowrap; }

footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 0 0;
  color: var(--faint);
  font-size: .75rem;
}

@media (max-width: 760px) {
  .page-shell { width: min(calc(100% - 30px), var(--max-width)); padding-top: 42px; }
  .hero { grid-template-columns: 1fr; gap: 30px; padding-bottom: 46px; }
  .portrait-wrap { grid-row: 1; justify-self: start; width: 132px; height: 132px; }
  h1 { font-size: clamp(3.2rem, 16vw, 4.4rem); }
  .section { grid-template-columns: 1fr; gap: 20px; }
  .section-heading-row { flex-wrap: wrap; gap: 12px 18px; }
  .section { padding: 42px 0; }
  .section-heading-row { margin-bottom: 24px; }
  .publications { margin-left: 0; }
  .publication { grid-template-columns: 1fr; gap: 12px; }
  .publication h3,
  .authors { white-space: normal; }
  .education-item { grid-template-columns: 1fr; gap: 1px; }
  footer { flex-direction: column; gap: 3px; }
}

@media (max-width: 430px) {
  body { font-size: 16.5px; }
  .name-break { display: none; }
  .publication { grid-template-columns: 1fr; }
  .pub-links { padding-top: 0; }
}
