/* Type scale — one value per role. Sizes: title 30 · section 19 · subsection 17 · body 16 · small 14 · caption 12.
   Line height: headings 1.2 · paragraphs 1.5 · everything else 1.4 · caption 1.35.
   Tracking: headings 0 · text -0.015em. */
:root {
  --fs-title: 30px; --fs-section: 19px; --fs-subsection: 17px; --fs-body: 16px; --fs-small: 14px; --fs-caption: 12px;
  --lh-heading: 1.2; --lh-text: 1.4; --lh-prose: 1.5; --lh-caption: 1.35;
  --ls-text: -0.015em;
  --gap-list: 6px; --gap-pubs: 12px; --pad-section: 12px; --head-gap: 6px; --page-top: 24px;
}
p, h1, li, .lede { text-wrap: pretty; }
/* Paragraphs of running text */
.lede, #intro, .area p, .prow p { line-height: var(--lh-prose); }
html, body { margin: 0; background: #fff; color: #000; font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif; -webkit-font-smoothing: antialiased; font-size: var(--fs-body); line-height: var(--lh-text); }
/* Tracking relative to each element's own size (an inherited em value would freeze at the body size). */
:where(body, body *) { letter-spacing: var(--ls-text); }
a { color: #d56325; text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible { outline: 2px solid #d56325; outline-offset: 3px; border-radius: 2px; }
.page { min-height: 100vh; display: flex; flex-direction: column; overflow: visible; }
.wrap { max-width: 1040px; width: 100%; margin: 0 auto; padding: 0 24px; box-sizing: border-box; }
header { position: -webkit-sticky; position: sticky; top: 0; z-index: 20; flex-shrink: 0; background: #fff; border-bottom: 1px solid rgba(0,0,0,0.12); }
header .wrap { height: 60px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; color: #d56325; }
.brand .logo { height: 26px; width: auto; display: block; overflow: visible; }
.menu { display: none; }
.brand:hover { color: #d56325; text-decoration: none; }
#nav { display: flex; gap: 28px; font-size: var(--fs-small); }
#nav a { color: rgba(60,60,67,0.6); display: inline-grid; }
#nav a::after { content: attr(data-label); font-weight: 600; height: 0; visibility: hidden; grid-area: 1 / 1; }
#nav a > span { grid-area: 1 / 1; }
#nav a:hover { color: #000; text-decoration: none; }
#nav a.on { color: #000; font-weight: 600; }
main { flex: 1; }
main.wrap { padding-bottom: 36px; }
h1 { margin: var(--page-top) 0 10px; font-size: var(--fs-title); line-height: var(--lh-heading); font-weight: 700; letter-spacing: 0; text-wrap: pretty; }
h2 { margin: 0; font-size: var(--fs-section); line-height: var(--lh-heading); font-weight: 700; letter-spacing: 0; }
.muted { color: rgba(60,60,67,0.6); }
.small { font-size: var(--fs-small); }
.hero { padding: 24px 0 24px; }
.lede { margin: 0; max-width: 880px; text-wrap: pretty; }
/* Home main photo (photos/main/): full content width, whole image, between the header and the headline */
.home-photo:empty { display: none; }
.home-photo { margin-top: 12px; }
.home-photo img { display: block; width: 100%; height: auto; border-radius: 10px; background: rgba(118,118,128,0.12); }
.home-photo:not(:empty) + .hero { padding-top: 24px; }
.sec { padding: var(--pad-section) 0; border-top: 0.5px solid rgba(60,60,67,0.18); }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: var(--head-gap); }
ul, ol { list-style: none; margin: 0; padding: 0; }
.areas { display: flex; flex-direction: column; gap: var(--gap-list); }
.pubs { display: flex; flex-direction: column; gap: var(--gap-pubs); }
.pub { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 16px; }
.pub .t { font-weight: 600; text-wrap: pretty; }
.pub .t a { color: #000; text-decoration: none; }
.pub .t a:hover { text-decoration: underline;  }
.pub div div + div { margin-top: 2px; }
.year-sec { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 24px; padding: var(--pad-section) 0; border-top: 0.5px solid rgba(60,60,67,0.18); }
.year-sec .pub { display: block; }
.area { scroll-margin-top: 60px; padding: var(--pad-section) 0; border-top: 0.5px solid rgba(60,60,67,0.18); }
.area h2 { margin-bottom: var(--head-gap); }
.area p { margin: 0 0 8px; max-width: 880px; text-wrap: pretty; }
.area ul { display: flex; flex-direction: column; gap: var(--gap-list); padding-left: 16px; border-left: 0.5px solid rgba(60,60,67,0.29); }
.area ul a { color: #000; text-decoration: none; }
.area ul a:hover { text-decoration: underline;  }
.group { padding: var(--pad-section) 0; border-top: 0.5px solid rgba(60,60,67,0.18); }
.group h2 { margin-bottom: var(--head-gap); }
.people { display: flex; flex-direction: column; gap: var(--gap-list); }
.person { display: grid; grid-template-columns: minmax(0, 260px) minmax(0, 1fr); gap: 16px; }
.person b, .alum b { font-weight: 600; }
a.site { color: #000; text-decoration: none; }
a.site:hover { text-decoration: underline;  }
a.site .lk { font-weight: 400; font-size: 0.85em; color: rgba(60,60,67,0.6); }
.alumni { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px 32px; }
.alum { display: flex; flex-direction: column; gap: 2px; font-size: var(--fs-small); overflow-wrap: anywhere; }
.alum .who { display: block; }
.alum .who .muted, .alum > .muted { font-size: var(--fs-caption); line-height: var(--lh-caption); }
.alum .now { color: #000; }
footer { border-top: 1px solid rgba(0,0,0,0.12); }
footer .wrap { padding: 20px 24px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: var(--fs-caption); line-height: var(--lh-caption); color: rgba(60,60,67,0.6); }
footer .nowrap { white-space: nowrap; }
/* Breakpoints: desktop >1024, tablet 641–1024, mobile ≤640 */
@media (max-width: 1024px) {
  .wrap { padding: 0 32px; }
  .menu { display: flex; flex-direction: column; justify-content: center; gap: 6px; width: 44px; height: 44px; margin-right: -10px; padding: 0; background: none; border: 0; border-radius: 0; cursor: pointer; }
  .menu span { display: block; width: 22px; height: 1.5px; background: #000; margin: 0 auto; transition: transform 200ms cubic-bezier(.32,.72,0,1), opacity 150ms; }
  .nav-open .menu span:first-child { transform: translateY(3.75px) rotate(45deg); }
  .nav-open .menu span:last-child { transform: translateY(-3.75px) rotate(-45deg); }
  #nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; gap: 0; padding: 8px 32px 16px; background: #fff; border-bottom: 0.5px solid rgba(60,60,67,0.29); font-size: var(--fs-body); z-index: 10; }
  .nav-open #nav { display: flex; }
  #nav a { padding: 12px 0; border-top: 0.5px solid rgba(60,60,67,0.18); color: #000; }
  #nav a:first-child { border-top: 0; }
  #nav a.on { font-weight: 600; }
  footer .wrap { padding: 20px 32px; }
  :root { --fs-title: 30px; }
  :root { --fs-title: 28px; --page-top: 20px; }
  .hero { padding: 20px 0 20px; }
  .year-sec { grid-template-columns: 120px minmax(0, 1fr); gap: 20px; }
  .person { grid-template-columns: minmax(0, 220px) minmax(0, 1fr); }
  .alumni { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 24px; }
  .pub { grid-template-columns: 88px minmax(0, 1fr); gap: 12px; }
}
@media (max-width: 640px) {
  :root { --fs-title: 24px; --fs-section: 18px; --fs-subsection: 16px; --fs-body: 15px; --pad-section: 10px; --page-top: 16px; }
  .wrap { padding: 0 20px; }
  #nav { padding: 4px 20px 12px; }
  h1 { margin-bottom: 8px; }
  .hero { padding: 16px 0 16px; }
  .home-photo { margin-top: 10px; }
  .home-photo:not(:empty) + .hero { padding-top: 16px; }
  .hero h1 br { display: none; }
  .sec-head { flex-wrap: wrap; gap: 8px; }
  .pub { grid-template-columns: 1fr; gap: 2px; }
  .year-sec { grid-template-columns: 1fr; gap: 12px; }
  .person { grid-template-columns: 1fr; gap: 2px; }
  .alumni { grid-template-columns: 1fr; gap: 12px; }
  footer .wrap { padding: 16px 20px; flex-direction: column; gap: 4px; }
}
/* profile */
.profile { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 24px; align-items: center; padding: 12px 0 16px; }
.avatar { width: 112px; height: 112px; border-radius: 50%; object-fit: cover; background: rgba(118,118,128,0.12); }
.profile h1 { margin: 0 0 4px; }
.links { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.prow { scroll-margin-top: 24px; padding: var(--pad-section) 0; border-top: 0.5px solid rgba(60,60,67,0.18); }
.prow h2 { margin-bottom: var(--head-gap); font-size: var(--fs-subsection); }
.prow p { margin: 0; max-width: 880px; text-wrap: pretty; }
.prow ul { display: flex; flex-direction: column; gap: var(--gap-list); font-size: var(--fs-small); }
.prow ul a, .profile p a:not(.back) { color: #000; text-decoration: underline; text-decoration-color: rgba(60,60,67,0.35); text-underline-offset: 3px; text-decoration-thickness: 1px; }
.prow ul a:hover, .profile p a:not(.back):hover { color: #d56325; text-decoration-color: #d56325; }
.links a { color: #d56325; }
a.back { color: #000; }
.tabs { display: flex; gap: 28px; border-bottom: 0.5px solid rgba(60,60,67,0.29); font-size: var(--fs-small); }
.tabs a { display: inline-grid; color: rgba(60,60,67,0.6); padding: 8px 0 10px; margin-bottom: -0.5px; border-bottom: 2px solid transparent; }
.tabs a::after { content: attr(data-label); font-weight: 600; height: 0; visibility: hidden; grid-area: 1 / 1; }
.tabs a > span { grid-area: 1 / 1; }
.tabs a:hover { color: #000; text-decoration: none; }
.tabs a.on { color: #000; font-weight: 600; border-bottom-color: #000; }
#panel-main .prow:first-child, #panel-biography .prow:first-child { border-top: 0; }
.gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; padding: 16px 0; }
.gallery a { display: block; }
.gallery img { display: block; width: 100%; height: 280px; object-fit: contain; border-radius: 10px; background: rgba(118,118,128,0.12); cursor: zoom-in; }
.gallery li { margin: 0; }
.gallery figcaption, .gallery .cap { margin-top: 8px; font-size: var(--fs-caption); line-height: var(--lh-caption); color: rgba(60,60,67,0.6); }

@media (max-width: 640px) {
  .profile { grid-template-columns: 1fr; gap: 10px; padding: 10px 0 12px; }
  .avatar { width: 96px; height: 96px; }
  .tabs { gap: 20px; }
  .gallery { grid-template-columns: 1fr; gap: 14px; padding: 12px 0; }
}

/* ── Home only ─────────────────────────────────────────────
   Three sizes on this page: title · section heading · text (15px for intro, lists and links). */
[data-page="home"] .lede,
[data-page="home"] .areas,
[data-page="home"] .pubs,
[data-page="home"] .sec-head .small { font-size: 15px; }
[data-page="home"] .sec-head { margin-bottom: calc(var(--pad-section) + 1px); } /* heading → content */
[data-page="home"] .sec { padding-top: calc(var(--pad-section) + 2px); } /* rule → heading, 2px more than heading → content */
[data-page="home"] .areas { gap: 5px; margin-top: -3px; margin-bottom: 3px; } /* Research list: offset the line spacing above its first row so the gap under the heading reads like Recent Publications */
[data-page="home"] .pubs { gap: 10px; }

/* ── Research page only ────────────────────────────────────
   Spacing: papers → next rule 18, rule → heading 14, description → papers 14, heading → description 8, between papers 6.
   Description is a 16px paragraph; selected papers are a 14px block set off by a left rule. */
[data-page="research"] .area { padding: 14px 0 18px; }
[data-page="research"] .area h2 { margin-bottom: 8px; }
[data-page="research"] .area p { margin: 0 0 14px; }
[data-page="research"] .area ul { gap: 6px; padding: 2px 0 2px 16px; border-left: 2px solid rgba(60,60,67,0.2); }
[data-page="research"] .area ul li { line-height: 1.4; }
@media (max-width: 640px) {
  [data-page="research"] .area { padding: 12px 0 14px; }
  [data-page="research"] .area p { margin-bottom: 12px; }
}

/* ── Profile page, Biography tab only ── About paragraph at the same size as the Selected Honors list */
#panel-biography .prow p { font-size: var(--fs-small); }
