@font-face {
  font-family: 'Monticello';
  src: url('../fonts/PrincetonMonticelloDisplay-Regular.woff2') format('woff2'),
       url('../fonts/PrincetonMonticelloDisplay-Regular.woff') format('woff');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Caslon Doric Condensed';
  src: url('../fonts/CaslonDoricCondensed-Bold.woff2') format('woff2'),
       url('../fonts/CaslonDoricCondensed-Bold.woff') format('woff');
  font-weight: bold;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #FBF9F5;
  --ink: #241D2E;
  --muted: #6E657B;
  --purple: #6B4595;
  --tint: #F5EDFB;
  --orange: #A04E00;
  --green: #3E8A4F;
  --rule: #DCD2E6;
  --label: 'Caslon Doric Condensed', 'Arial Narrow', sans-serif;
  --display: 'Monticello', Georgia, serif;
  --body: Georgia, 'Times New Roman', serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.65;
  border-top: 6px solid var(--purple);
}

.sheet {
  max-width: 1060px;
  margin: 0 auto;
  padding: 0 24px;
}

a {
  color: inherit;
  text-decoration-color: var(--orange);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover { color: var(--orange); }

/* ---------- masthead ---------- */

header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  padding: 1.1rem 0 0.9rem;
  border-bottom: 1px solid var(--ink);
}

.wordmark {
  font-family: var(--label);
  font-weight: bold;
  text-decoration: none;
  letter-spacing: 0.04em;
  font-size: 1.5rem;
  line-height: 1;
}

.wordmark .tiger { color: var(--purple); }

.wordmark small {
  font-size: 1rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-left: 0.75em;
}

nav {
  display: flex;
  gap: 1.5rem;
  font-family: var(--label);
  font-weight: bold;
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

nav a { text-decoration: none; }

nav a sup {
  font-size: 0.6em;
  color: var(--orange);
  margin-left: 1px;
}

/* ---------- hero ---------- */

.hero { padding: 3.5rem 0 2.75rem; }

.hero-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3.5rem;
  align-items: center;
}

.mascot {
  width: clamp(150px, 18vw, 230px);
  height: auto;
}

.hero h1 {
  font-family: var(--display);
  font-weight: normal;
  font-size: clamp(2.3rem, 5.2vw, 3.7rem);
  line-height: 1.12;
  max-width: 17em;
}

.hero h1 em {
  font-style: normal;
  color: var(--purple);
}

.hero .lede {
  margin-top: 1.5rem;
  font-size: 1.35rem;
  max-width: 34em;
  color: #3A3345;
}

.hero .scholar-line {
  margin-top: 1rem;
  font-size: 0.98rem;
  color: var(--muted);
}

figure.group { margin: 2.5rem 0 0; }

figure.group img {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid var(--ink);
}

figure.group figcaption {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.5rem;
  font-family: var(--label);
  font-weight: bold;
  font-size: 0.78rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- sections ---------- */

section.row {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 2.5rem;
  border-top: 1px solid var(--ink);
  padding: 2.25rem 0 3rem;
}

.rail h2 {
  font-family: var(--display);
  font-weight: normal;
  font-size: 1.7rem;
  line-height: 1.15;
}

/* ---------- news ---------- */

.news-list { list-style: none; }

.news-list li {
  display: grid;
  grid-template-columns: 6.5em 1fr;
  gap: 1rem;
  align-items: baseline;
  padding: 0.55rem 0.25rem;
  border-bottom: 1px solid var(--rule);
}

.news-list li:first-child { border-top: 1px solid var(--rule); }

.news-date {
  font-family: var(--label);
  font-weight: bold;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--purple);
}

.news-item { font-size: 0.98rem; }

.news-list.collapsed li:nth-child(n+6) { display: none; }

.news-toggle {
  margin-top: 1rem;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--label);
  font-weight: bold;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--purple);
}

.news-toggle:hover { color: var(--orange); }

/* ---------- team ---------- */

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 2rem 1.75rem;
}

.person img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
  border: 1px solid var(--rule);
  filter: saturate(0.92);
}

.person h3 {
  font-family: var(--label);
  font-weight: bold;
  font-size: 1.2rem;
  letter-spacing: 0.03em;
  margin-top: 0.6rem;
  line-height: 1.2;
}

.person h3 a { text-decoration: none; }
.person h3 a:hover { color: var(--orange); }

.person .role {
  font-family: var(--label);
  font-weight: bold;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--purple);
  margin-top: 0.15rem;
}

.person .affil {
  font-size: 0.92rem;
  font-style: italic;
  color: var(--muted);
  line-height: 1.4;
  margin-top: 0.1rem;
}

/* ---------- alumni ---------- */

.alumni {
  margin-top: 2.75rem;
  border-top: 1px solid var(--rule);
  padding-top: 1.4rem;
}

.alumni-head {
  font-family: var(--label);
  font-weight: bold;
  font-size: 1.05rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--purple);
}

.alumni-list {
  list-style: none;
  margin-top: 0.75rem;
  columns: 2;
  column-gap: 3rem;
}

.alumni-list li {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  padding: 0.3rem 0;
  break-inside: avoid;
}

.alum-name {
  font-family: var(--label);
  font-weight: bold;
  font-size: 1.05rem;
  letter-spacing: 0.03em;
}

.alum-name a { text-decoration: none; }
.alum-name a:hover { color: var(--orange); }

.alum-status {
  font-size: 0.9rem;
  font-style: italic;
  color: var(--muted);
}

/* ---------- code ---------- */

.repo-list { list-style: none; }

.repo-list li {
  border-bottom: 1px solid var(--rule);
}

.repo-list li:first-child { border-top: 1px solid var(--rule); }

.repo-list a {
  display: grid;
  grid-template-columns: 9em 1fr auto;
  gap: 1rem;
  align-items: baseline;
  padding: 0.8rem 0.25rem;
  text-decoration: none;
}

.repo-list a:hover { background: var(--tint); color: inherit; }

.repo-list .name {
  font-family: ui-monospace, 'SF Mono', Menlo, monospace;
  font-size: 0.92rem;
  color: var(--purple);
}

.repo-list .desc { font-size: 0.95rem; }

.repo-list .arrow { color: var(--orange); font-family: var(--body); }

.repo-more {
  margin-top: 1rem;
  font-size: 0.95rem;
}

/* ---------- join ---------- */

.join-list dt {
  font-family: var(--label);
  font-weight: bold;
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  color: var(--purple);
}

.join-list dt:not(:first-child) { margin-top: 1.2rem; }

.join-list dd {
  margin-top: 0.25rem;
}

/* ---------- footer ---------- */

footer {
  border-top: 1px solid var(--ink);
  padding: 1.4rem 0 2.5rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: var(--muted);
}

footer .links {
  display: flex;
  gap: 1.25rem;
  font-family: var(--label);
  font-weight: bold;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

footer .links a { text-decoration: none; }

/* ---------- responsive ---------- */

@media (max-width: 720px) {
  section.row {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 1.75rem 0 2.25rem;
  }

  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .repo-list a {
    grid-template-columns: 1fr auto;
  }

  .repo-list .name { grid-row: 1; grid-column: 1; }
  .repo-list .arrow { grid-row: 1; grid-column: 2; }

  .repo-list .desc {
    grid-column: 1 / -1;
    padding-bottom: 0.2rem;
  }

  .hero { padding: 2.5rem 0 2rem; }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .mascot { width: 140px; }
}
