:root{
  --bg:#0b0b0b;
  --text:#111;
  --muted:#4a4a4a;
  --accent:#d4b000; /* yellow-ish */
  --max: 980px;
}

*{ box-sizing:border-box; }
body{
  margin:0;
  font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;
  color:var(--text);
  background:#fff;
}

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

.topbar{
  background: var(--bg);
  color:#fff;
}

.lead{
  font-size: 18px;
  line-height: 1.6;
  margin-top: 6px;
  margin-bottom: 22px;
  color: #222;
}

.hero-figure{
  margin: 18px 0 34px;
}
.hero-figure img{
  width: 100%;
  height: auto;
  display: block;
}

.theme{
  margin: 28px 0 0;
}
.theme h2{
  margin: 0 0 10px;
  font-size: 22px;
  text-transform: lowercase;
}
.theme p{
  margin: 0;
  line-height: 1.65;
  font-size: 17px;
}

.gallery{
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin: 26px 0 10px;
}
.gallery img{
  width: 100%;
  height: auto;
  display:block;
}

@media (min-width: 820px){
  .gallery{
    grid-template-columns: 1fr 1fr;
  }
}

.topbar-inner{
  height:72px;
  display:flex;
  align-items:center;
  justify-content:space-between;
}

.brand{
  font-size: 34px;
  letter-spacing: 0.5px;
}
.brand-link{ color:#fff; text-decoration:none; }
.pierson{ font-weight: 300; }
.lab{ color: var(--accent); font-weight: 300; }

.nav a{
  color:#fff;
  text-decoration:none;
  margin-left: 26px;
  font-size: 20px;
  font-weight: 300;
  opacity:0.9;
}
.nav a:hover{ opacity:1; text-decoration: underline; }
.nav a.active{ opacity:1; text-decoration: underline; }

.hero{
  text-align:center;
  padding: 48px 0 40px;
}
.hero h1{
  margin: 0 0 10px;
  font-size: 34px;
  font-weight: 700;
}
.subhead{
  margin: 0 0 30px;
  font-size: 22px;
  font-weight: 400;
}
.subhead a{
  color: #222;
  text-decoration: underline;
}

.hero-image{
  display:flex;
  justify-content:center;
  margin-top: 10px;
}
.hero-image img{
  max-width: 760px;
  width: 100%;
  height: auto;
}

.page{
  padding: 36px 0 60px;
}
.page h1{ margin-top:0; }

.footer{
  background: var(--bg);
  color:#fff;
  padding: 18px 0;
  font-size: 14px;
  opacity:0.9;
}

/* Alternating research rows */
.row{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: center;
  margin: 48px 0;
}

.row-reverse{
  direction: rtl;
}
.row-reverse > *{
  direction: ltr;
}

/* IMPORTANT: research images should stay full width */
.row-image img{
  width: 100%;
  height: auto;
  display: block;
}

.row-text h2{
  margin-top: 0;
  font-size: 22px;
  text-transform: lowercase;
}

.row-text p{
  font-size: 17px;
  line-height: 1.65;
}

/* Stack on mobile */
@media (max-width: 800px){
  .row{
    grid-template-columns: 1fr;
    gap: 18px;
  }
}

/* People page */
.people-section{
  margin: 40px 0 54px;
}

.section-title{
  background: #2b2b2b;
  color: #fff;
  padding: 14px 16px;
  font-size: 28px;
  font-weight: 300;
  margin: 0 0 22px;
}

.people-grid{
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
}

.person-card{
  margin: 0;
}

.person-figure{
  margin: 0;
}

.person-figure img{
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid #222;
}

.person-caption{
  padding-top: 12px;
}

.person-name{
  margin: 0 0 8px;
  font-size: 28px;
  line-height: 1.15;
}

.person-text{
  margin: 0;
  font-size: 18px;
  line-height: 1.55;
  max-width: 65ch;
}

/* Alumni list */
.alumni-list{
  margin: 0;
  padding-left: 20px;
}
.alumni-list li{
  margin: 10px 0;
  line-height: 1.6;
}

/* Responsive layout */
@media (min-width: 760px){
  .people-grid{
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 980px){
  .people-grid-3{
    grid-template-columns: 1fr 1fr 1fr;
  }
}

/* People page headshots */
.page.people .person-image{
  width: 200px;
  height: 200px;
}

.page.people .person-image img{
  width: 200px;
  height: 200px;
  object-fit: cover;
}

/* PEOPLE page: force headshots to 200x200 */
.people-grid .person-figure{
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 18px;
  align-items: start;
  margin: 0;
}

.people-grid .person-figure img{
  width: 200px;
  height: 200px;
  object-fit: cover;
  display: block;
}

/* Remove default figure spacing if any */
.people-grid .person-figure,
.people-grid .person-caption{
  margin: 0;
}

/* Mobile: stack image above text */
@media (max-width: 700px){
  .people-grid .person-figure{
    grid-template-columns: 1fr;
  }
  .people-grid .person-figure img{
    width: 200px;
    height: 200px;
  }
}

/* ------------------------------------------------------------------
   FIXED: People-only overrides (scoped so research page is unaffected)
   ------------------------------------------------------------------ */

/* ------------------------------
   People-only layout overrides
   (do NOT affect research rows)
   ------------------------------ */

/* helper for 2-up grids on people page */
.people-section .people-grid-2{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

@media (max-width: 800px){
  .people-section .people-grid-2{
    grid-template-columns: 1fr;
  }
}

/* side-by-side headshot + text for people cards ONLY */
.people-section .person-figure{
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.people-section .person-figure img{
  width: 180px;
  height: 180px;
  object-fit: cover;
  flex-shrink: 0;
}

.people-section .person-caption{
  max-width: 100%;
}

.people-section .person-name{
  margin: 0 0 0.25rem 0;
}

.people-section .person-text{
  margin: 0;
  line-height: 1.4;
}

/* IMPORTANT:
   Do NOT style .row or .row-image globally here.
   Research uses .row and .row-image and should remain full-width images.
*/

