:root {
  --bg: #F5F5F5;
  --text: #2E2E2E;
  --muted: #6b7280;
  --brand: #E21833;
  --brand-hover: #9E1B32;
  --accent: #FFD200;
  --card: #FFFFFF;
  --stroke: #e5e7eb;
  --hyplnk: #0011EE
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

a {
  color: var(--hyplnk);
  text-decoration: none;
}

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

header {
  background: #fff;
  border-bottom: 3px solid var(--brand);
  position: sticky;
  top: 0;
  z-index: 50;
}

.nav-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: .75rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--brand);
}

nav ul {
  display: flex;
  gap: 1.2rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

nav li a {
  font-weight: 600;
  color: var(--text);
  padding-bottom: .25rem;
}

nav li a:hover {
  border-bottom: 2px solid var(--brand);
  color: var(--brand);
}

.mobile-toggle {
  display: none;
}

main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--brand);
}

h2 {
  font-size: 1.5rem;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  color: var(--brand-hover);
}

p {
  margin: 1rem 0;
}

.muted {
  color: var(--muted);
}

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

.hero img {
  width: 100%;
  max-width: 500px;   /* keeps image from stretching too wide */
  max-height: 350px;  /* limits vertical size */
  object-fit: cover;  /* crops gracefully if needed */
  border-radius: .5rem;
  border: 1px solid var(--accent);
  margin: 0 auto;     /* centers image in its column */
  display: block;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.card {
  background: var(--card);
  border: 1px solid var(--stroke);
  border-radius: .5rem;
  padding: 1rem;
  text-align: center;
  line-height: normal;
  transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--brand);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.card img {
  max-width: 100%;
  max-width: 180px;   /* keeps photos smaller */
  max-height: 180px;  /* prevents tall images */
  object-fit: cover;  /* crops excess neatly */
  border-radius: 50%; /* optional: circular portraits */
  margin: 0 auto 0.75rem auto;
  display: block;
}
<!-- .card img {
  max-width: 100%;
  border-radius: .5rem;
  margin-bottom: .75rem;
}  -->

.card h3 a {
  color: var(--brand-hover);
  display: inline-block;
  padding: 0.25rem 0.5rem;
  border-radius: .25rem;
  transition: background 0.2s, color 0.2s;
}

.card h3 a:hover {
  background: var(--accent);
  color: var(--text);
}

.alumni-list {
  list-style: disc;
  padding-left: 1.5rem;
  line-height: 1.8;
  color: var(--text);
}

.alumni-list li {
  margin-bottom: 0.5rem;
}

footer {
  border-top: 3px solid var(--brand);
  padding: 2rem 1rem;
  text-align: center;
  font-size: .9rem;
  color: var(--muted);
  background: #fff;
}

.pubs-year {
  margin-bottom: 2rem;
}

.pubs-year h2 {
  margin-bottom: 0.5rem;
  border-bottom: 2px solid var(--accent);
  display: inline-block;
  padding-bottom: 0.2rem;
}

.year-toggle {
  display: block;
  width: 100%;
  text-align: left;
  background: var(--brand);
  color: #fff;
  font-weight: 600;
  font-size: 1.1rem;
  padding: 0.5rem 0.75rem;
  border: none;
  border-radius: 0.25rem;
  margin-bottom: 0.5rem;
  cursor: pointer;
  transition: background 0.2s;
}

.year-toggle:hover {
  background: var(--brand-hover);
}

.year-toggle[aria-expanded="true"]::after {
  content: " ?";
  font-size: 0.9rem;
}

.year-toggle[aria-expanded="false"]::after {
  content: " ?";
  font-size: 0.9rem;
}

.pubs-list {
  list-style: none;
  padding-left: 0;
  margin-left: 0;
}

.pubs-list li {
  margin-bottom: 1rem;
  line-height: 1.6;
  padding-left: 1rem;
  border-left: 4px solid var(--accent); /* thicker, more visible */
  background: #fff;
}

.pub-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.pub-text {
  flex: 3;
}

.pub-image img {
  max-width: 140px;
  height: auto;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

@media (max-width: 768px) {
  .hero {
    grid-template-columns: 1fr;
  }

  /* Reorder hero so image comes first on small screens */
  .hero img {
    order: -1;
    margin-bottom: 1rem;
    max-width: 100%;
    max-height: 200px;
    object-fit: cover;
  }

img {
  <! width: 100%;
  max-width: 250px;   /* keeps image from stretching too wide */
  max-height: 350px;  /* limits vertical size */
  object-fit: cover;  /* crops gracefully if needed */
  margin: 0 auto;     /* centers image in its column */
  display: block;
}

  nav ul {
    display: none;
    flex-direction: column;
    background: #fff;
    padding: 1rem;
    position: absolute;
    top: 60px;
    right: 1rem;
    border: 1px solid var(--stroke);
    border-radius: .5rem;
  }

  nav ul.show {
    display: flex;
  }

  .mobile-toggle {
    display: inline-flex;
    border: none;
    background: transparent;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--brand);
  }

  .pub-item {
    flex-direction: column;
  }
  .pub-image img {
    max-width: 100%;
    margin-top: 0.5rem;
  }


}
