:root {
  --bg: #fff;
  --ink: #161616;
  --muted: #575757;
  --faint: #8a8a8a;
  --red: #8f1d1d;               /* Stony Brook red, toned down a step for text */
  --serif: "Newsreader", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --sans: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.5;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--red); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
img { display: block; max-width: 100%; }
h1, h2, h3, p, ul, figure { margin: 0; }
ul { padding: 0; list-style: none; }

.site-header, main, .site-footer {
  max-width: 1040px;
  margin: 0 auto;
  padding-left: 32px;
  padding-right: 32px;
}

/* header */
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-top: 32px;
  padding-bottom: 64px;
}
.brand { display: flex; align-items: baseline; gap: 14px; }
.wordmark { font-size: 27px; font-weight: 600; letter-spacing: .06em; color: var(--ink); }
.wordmark:hover { text-decoration: none; }
.affil { font-family: var(--sans); font-size: 14px; color: var(--muted); }
nav { display: flex; gap: 28px; font-family: var(--sans); font-size: 15px; }
nav a { color: var(--ink); }
nav a:hover { color: var(--red); text-decoration: none; }

/* intro: statement left, group photo right */
.intro {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 64px;
  align-items: start;
}
.intro h1 {
  font-size: 37px;
  line-height: 1.2;
  font-weight: 400;
  letter-spacing: -.01em;
  max-width: 22ch;
  text-wrap: balance;
}
.intro p { margin-top: 24px; font-size: 20px; line-height: 1.5; max-width: 32em; text-wrap: pretty; }
.group-photo img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; object-position: 50% 48%; background: #eee; }
.group-photo figcaption { margin-top: 10px; font-family: var(--sans); font-size: 13px; color: var(--faint); }

/* sections */
section + section { margin-top: 84px; }
h2 { font-size: 28px; font-weight: 500; line-height: 1.2; margin-bottom: 24px; }

/* people: photo directory */
.people {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px 28px;
}
.people img { width: 100%; aspect-ratio: 1; object-fit: cover; background: #eee; }
.people .name { display: block; margin-top: 12px; font-family: var(--sans); font-size: 15px; font-weight: 600; line-height: 1.3; }
.people .name a { color: var(--ink); }
.people .role { display: block; margin-top: 2px; font-family: var(--sans); font-size: 14px; color: var(--muted); }

/* papers: year in the margin, entries set like a bibliography */
.papers-list {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  column-gap: 28px;
  row-gap: 26px;
}
.year { grid-column: 1; padding-top: 6px; font-family: var(--sans); font-size: 14px; font-weight: 600; color: var(--muted); }
.paper { grid-column: 2; }
.paper .title { font-size: 22px; font-weight: 500; line-height: 1.3; max-width: 34em; }
.paper .title a { color: var(--ink); }
.paper .title a:hover { color: var(--red); text-decoration: none; }
.paper .authors { margin-top: 4px; font-size: 17px; line-height: 1.45; color: var(--muted); }
.paper .authors b { font-weight: 600; color: var(--ink); }
.paper .meta { margin-top: 2px; font-size: 17px; color: var(--muted); }
.paper .venue { font-style: italic; }
.more { margin-top: 30px; font-family: var(--sans); font-size: 15px; color: var(--muted); }

/* footer */
.site-footer {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 96px;
  padding-bottom: 48px;
  font-family: var(--sans);
  font-size: 13px;
  color: var(--faint);
}

@media (max-width: 860px) {
  .site-header, main, .site-footer { padding-left: 20px; padding-right: 20px; }
  .site-header { flex-wrap: wrap; gap: 14px; padding-bottom: 40px; }
  .intro { grid-template-columns: 1fr; gap: 32px; }
  .intro h1 { font-size: 30px; }
  .intro p { font-size: 19px; }
  .group-photo { max-width: 460px; }
  .people { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 20px; }
  .papers-list { grid-template-columns: 1fr; row-gap: 22px; }
  .year, .paper { grid-column: 1; }
  .year { padding-top: 8px; }
  section + section { margin-top: 56px; }
}
