/* ── NES / 8-bit theme (light) ──────────────────────────────────────────── */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300..700;1,9..40,300..700&family=Press+Start+2P&display=swap');

:root {
  --bg:         #ffffff;
  --bg-panel:   #f0f0f0;
  --bg-card:    #fafafa;
  --text:       #1a1a1a;
  --muted:      #666;
  --border:     #b0a898;
  --red:        #5c5c5c;
  --blue:       #0a3fa0;
  --darkblue:   #072a6e;
  --yellow:     #c8900a;
  --green:      #1e7a00;
  --cyan:       #006f8e;
  --pixel:      "Press Start 2P", monospace;
  --prose:      "DM Sans", sans-serif;
  --max-w:      900px;
}

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

body {
  font-family: var(--prose);
  font-size: 15px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
}

/* ── Header ──────────────────────────────────────────────────────────────── */

header {
  background: var(--blue);
  border-bottom: 4px solid var(--red);
}

.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 1rem 1.5rem;
}

.header-name a {
  font-family: var(--pixel);
  color: #fff;
  text-decoration: none;
  font-size: 11px;
  letter-spacing: 1px;
  text-shadow: 2px 2px 0 rgba(0,0,0,0.5);
}

.header-name a::before { content: "▶ "; color: var(--yellow); }

nav { display: flex; gap: 1rem; flex-wrap: wrap; }

nav a {
  font-family: var(--pixel);
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  font-size: 9px;
  padding: 4px 8px;
  border: 2px solid transparent;
  transition: all 0.1s;
}

nav a:hover, nav a.active {
  color: #fff;
  border-color: #fff;
  background: rgba(255,255,255,0.12);
}

nav a.active::before { content: "► "; }

nav a.nav-cv {
  color: var(--yellow);
  border-color: var(--yellow);
  margin-left: 0.5rem;
}

nav a.nav-cv:hover {
  background: var(--yellow);
  color: #fff;
  border-color: var(--yellow);
}

nav a.nav-cv::before { content: "↓ "; }

/* ── Main ────────────────────────────────────────────────────────────────── */

main {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 2.5rem 1.5rem 5rem;
}

.page-content > section { margin-bottom: 3rem; }

h1 {
  font-family: var(--pixel);
  font-size: 15px;
  color: var(--blue);
  text-shadow: 2px 2px 0 rgba(0,0,0,0.12);
  margin-bottom: 2rem;
  letter-spacing: 1px;
}

h2 {
  font-family: var(--pixel);
  font-size: 10px;
  color: var(--blue);
  letter-spacing: 1px;
  margin-bottom: 1.2rem;
  padding-bottom: 0.5rem;
  border-bottom: 3px solid var(--red);
}

h2::before { content: "» "; color: var(--red); }

/* ── NES Cartridge ───────────────────────────────────────────────────────── */

.bio-layout {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.cart-img {
  flex-shrink: 0;
  width: 240px;
  image-rendering: auto;
}

/* ── Bio text (next to cartridge) ────────────────────────────────────────── */

.bio-text { flex: 1; min-width: 220px; }

.bio-text h1 { margin-bottom: 0.5rem; }

.bio-position {
  font-family: var(--pixel);
  font-size: 8px;
  color: #888;
  letter-spacing: 0.03em;
  line-height: 2.2;
  margin-bottom: 1rem;
}

.bio-interests {
  margin-top: 1.2rem;
  background: transparent;
  border: 1px solid #8a94a6;
  padding: 0.7rem 0.9rem 0.8rem;
}

.bio-interests-label {
  font-family: var(--pixel);
  font-size: 8px;
  color: var(--blue);
  letter-spacing: 2px;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  opacity: 0.75;
}

.bio-interests p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text);
}

/* ── Bio links ───────────────────────────────────────────────────────────── */

.bio-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.9rem;
}

.bio-link {
  font-family: var(--pixel);
  font-size: 7px;
  letter-spacing: 0.5px;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.1s;
}

.bio-link:hover { color: var(--blue); }

/* ── Pixel divider ───────────────────────────────────────────────────────── */

.pixel-divider {
  margin: 2rem 0;
  height: 8px;
  background: repeating-linear-gradient(
    90deg,
    var(--blue)    0px,  var(--blue)    16px,
    var(--red)     16px, var(--red)     24px,
    var(--blue)    24px, var(--blue)    40px,
    transparent    40px, transparent    48px
  );
}

/* ── Honors ──────────────────────────────────────────────────────────────── */

.honors-list { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; }

.honors-list li {
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
  padding: 0.6rem 0.8rem;
  background: var(--bg-card);
  border: 2px solid var(--border);
  font-size: 14px;
  line-height: 1.6;
}

.year-badge {
  font-family: var(--pixel);
  display: inline-block;
  min-width: 3rem;
  font-size: 7px;
  color: #fff;
  background: var(--red);
  padding: 4px 6px;
  text-align: center;
  flex-shrink: 0;
  margin-top: 3px;
}

/* ── Section nav ─────────────────────────────────────────────────────────── */

.section-nav { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 2rem; }

.section-nav::before {
  font-family: var(--pixel);
  content: "◄ SELECT STAGE ►";
  display: block;
  width: 100%;
  font-size: 8px;
  color: var(--muted);
  letter-spacing: 2px;
  margin-bottom: 0.6rem;
  animation: blink 1.5s step-start infinite;
}

.section-nav a {
  font-family: var(--pixel);
  font-size: 8px;
  color: var(--blue);
  text-decoration: none;
  border: 2px solid var(--border);
  padding: 4px 8px;
  background: var(--bg-card);
  transition: all 0.1s;
}

.section-nav a:hover { border-color: var(--red); color: var(--red); }

/* ── Publications ────────────────────────────────────────────────────────── */

.pub-list { list-style: none; padding: 0; }

.year-divider {
  font-family: var(--pixel);
  font-size: 9px;
  color: #fff;
  background: var(--blue);
  padding: 4px 10px;
  margin-top: 1.2rem;
  margin-bottom: 0.4rem;
  display: block;
  border-left: 4px solid var(--red);
}

.pub-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.8rem 0.6rem;
  border-bottom: 1px solid var(--bg-panel);
}

.pub-item:hover { background: var(--bg-card); }

.pub-title { color: var(--text); line-height: 1.5; font-size: 14px; }
.pub-title a { color: var(--blue); text-decoration: none; }
.pub-title a:hover { color: var(--red); }

.pub-authors { color: var(--muted); font-size: 13px; line-height: 1.5; }
.pub-authors strong { color: var(--green); }

.pub-venue { color: var(--muted); font-size: 13px; line-height: 1.5; }
.pub-note { font-size: 13px; color: var(--red); }

.see-all {
  margin-top: 1rem;
  font-family: var(--pixel);
  font-size: 9px;
}
.see-all a { color: var(--blue); text-decoration: none; }
.see-all a:hover { color: var(--red); }

.note {
  font-size: 13px;
  color: var(--muted);
  padding: 0.6rem 0.9rem;
  border-left: 3px solid var(--border);
  margin-bottom: 1rem;
  background: var(--bg-panel);
  line-height: 1.6;
}

/* ── Grants ──────────────────────────────────────────────────────────────── */

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

.grant-item {
  padding: 1rem;
  margin-bottom: 0.7rem;
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-left: 5px solid var(--green);
}

.grant-title { font-size: 14px; color: var(--text); line-height: 1.5; margin-bottom: 0.5rem; }
.grant-title strong { color: var(--blue); }

.grant-meta { display: flex; flex-direction: column; gap: 0.2rem; font-size: 13px; color: var(--muted); line-height: 1.6; }
.grant-meta strong { color: var(--text); }

/* ── Students ────────────────────────────────────────────────────────────── */

/* Player select screen */
.player-select-screen {
  background: #08081e;
  border: 4px solid var(--blue);
  padding: 1.5rem;
  margin-bottom: 0.5rem;
}

.player-select-label {
  font-family: var(--pixel);
  font-size: 8px;
  color: var(--yellow);
  text-align: center;
  letter-spacing: 3px;
  margin-bottom: 1.5rem;
  animation: blink 1.5s step-start infinite;
}

.player-select-screen .student-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1rem;
}

.player-select-screen .student-card {
  background: #14143a;
  border: 3px solid #334488;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  overflow: hidden;
  transition: border-color 0.1s, background 0.1s;
  cursor: default;
}

.player-select-screen .student-card:hover {
  border-color: var(--yellow);
  background: #20204e;
}

.player-select-screen .student-card img,
.player-select-screen .student-img-placeholder {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
}

.player-select-screen .student-img-placeholder {
  background: #1e1e44;
  display: flex;
  align-items: center;
  justify-content: center;
}

.player-select-screen .student-img-placeholder::after {
  content: "?";
  font-family: var(--pixel);
  font-size: 36px;
  color: rgba(255,255,255,0.15);
}

.player-select-screen .student-card-body {
  padding: 0.6rem 0.5rem 0.7rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  width: 100%;
  background: #0e0e28;
}

.player-select-screen .student-name {
  font-family: var(--pixel);
  font-size: 7px;
  line-height: 1.9;
  color: #ffffff;
  text-decoration: none;
  display: block;
}

.player-select-screen a.student-name:hover { color: var(--yellow); }

.player-select-screen .student-info {
  font-size: 12px;
  color: rgba(255,255,255,0.55);
  line-height: 1.5;
}

/* Alumni grid */
.student-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 1.2rem;
}

.student-card {
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-top: 4px solid var(--cyan);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  overflow: hidden;
}

.student-card-link {
  display: flex;
  flex-direction: column;
  width: 100%;
  text-decoration: none;
  color: inherit;
}

.student-card img,
.student-img-placeholder {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
}

.student-img-placeholder {
  background: var(--bg-panel);
  display: flex;
  align-items: center;
  justify-content: center;
}

.student-img-placeholder::after {
  content: "?";
  font-family: var(--pixel);
  font-size: 36px;
  color: rgba(0,0,0,0.12);
}

.student-card-body {
  padding: 0.7rem 0.6rem 0.8rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  width: 100%;
}

.student-name {
  font-family: var(--pixel);
  font-size: 7px;
  line-height: 1.9;
  color: var(--blue);
  text-decoration: none;
  display: block;
}

a.student-name:hover { color: var(--red); }

.student-info {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
}

.alumni-card { border-top-color: var(--yellow); }

.thesis-title { font-size: 12px; color: var(--muted); line-height: 1.5; font-style: italic; }
.student-now { font-size: 12px; color: var(--green); line-height: 1.4; }

.student-award {
  font-size: 11px;
  color: #7a5800;
  background: #fff3c0;
  border: 1px solid var(--yellow);
  padding: 3px 8px;
  line-height: 1.5;
  text-align: center;
}

.student-award::before { content: "★ "; }

/* Award on dark player-select background */
.player-select-screen .student-award {
  color: var(--yellow);
  background: rgba(200, 150, 0, 0.15);
  border-color: rgba(200, 150, 0, 0.5);
}

/* ── Service ─────────────────────────────────────────────────────────────── */

.service-list { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }

.service-item {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  padding: 0.7rem 0.8rem;
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-left: 5px solid var(--blue);
}

.service-venue {
  font-family: var(--pixel);
  font-size: 7px;
  color: #fff;
  background: var(--blue);
  padding: 4px 7px;
  white-space: nowrap;
  flex-shrink: 0;
  min-width: 4rem;
  text-align: center;
  margin-top: 2px;
}

.service-body {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.service-role { font-size: 14px; color: var(--text); font-weight: 600; line-height: 1.4; }

.service-meta { font-size: 13px; color: var(--muted); line-height: 1.6; }

/* ── Teaching ────────────────────────────────────────────────────────────── */

.teaching-award {
  background: #120e00;
  border: 3px solid var(--yellow);
  padding: 1rem 1.4rem;
  margin-bottom: 2.5rem;
  text-align: center;
}

.teaching-award-label {
  font-family: var(--pixel);
  font-size: 7px;
  color: var(--yellow);
  letter-spacing: 3px;
  margin-bottom: 0.6rem;
  animation: blink 1.5s step-start infinite;
}

.teaching-award-name {
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  line-height: 1.5;
}

.teaching-award-year {
  font-family: var(--pixel);
  font-size: 7px;
  color: rgba(255,255,255,0.45);
  margin-top: 0.5rem;
  letter-spacing: 1px;
}

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

.course-item {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 0.85rem 0.6rem;
  border-bottom: 1px solid var(--bg-panel);
}

.course-item:hover { background: var(--bg-card); }

.course-item--other { opacity: 0.8; }

.course-header {
  display: flex;
  align-items: baseline;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.course-code {
  font-family: var(--pixel);
  font-size: 7px;
  color: #fff;
  background: var(--blue);
  padding: 3px 7px;
  border-left: 3px solid var(--red);
  white-space: nowrap;
  flex-shrink: 0;
}

.course-code--alt { background: var(--cyan); border-left-color: var(--cyan); }

.course-name { font-size: 14px; font-weight: 600; color: var(--text); line-height: 1.4; text-decoration: none; }
a.course-name { color: var(--blue); }
a.course-name:hover { color: var(--red); }

.course-meta {
  font-family: var(--pixel);
  font-size: 7px;
  color: var(--muted);
  letter-spacing: 0.3px;
  line-height: 1.8;
}

.course-desc { font-size: 13px; color: var(--muted); line-height: 1.65; }

/* ── Footer ──────────────────────────────────────────────────────────────── */

footer {
  font-family: var(--pixel);
  background: var(--blue);
  border-top: 4px solid var(--red);
  text-align: center;
  padding: 1.5rem;
  font-size: 8px;
  color: rgba(255,255,255,0.6);
}

footer::before {
  display: block;
  content: "INSERT COIN TO CONTINUE";
  color: #fff;
  margin-bottom: 0.5rem;
  animation: blink 1s step-start infinite;
}

footer::after {
  display: block;
  content: "© NORTHEASTERN UNIVERSITY. ALL RIGHTS RESERVED.";
  font-size: 7px;
  color: rgba(255,255,255,0.35);
  margin-top: 0.6rem;
  letter-spacing: 1px;
}


@keyframes blink { 50% { opacity: 0; } }

/* ── Responsive ──────────────────────────────────────────────────────────── */

@media (max-width: 600px) {
  h1 { font-size: 12px; }
  .bio-layout { flex-direction: column; align-items: center; }
}
