/* Hu Research Lab @ Colgate — clean minimal academic theme.
   You can tweak colors/spacing here; content lives in ../content/. */

:root {
  --accent: #821019;
  --ink: #1a1a1a;
  --muted: #6b6b6b;
  --line: #e6e6e6;
  --bg: #ffffff;
  --bg-soft: #faf9f8;
  --maxw: 1120px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --serif: Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
}
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; }

/* Header */
.site-header {
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(180%) blur(8px); z-index: 10;
}
.header-inner { display: flex; align-items: center; justify-content: space-between;
  padding-top: 16px; padding-bottom: 16px; flex-wrap: wrap; gap: 8px; }
.brand { font-weight: 700; font-size: 1.05rem; color: var(--ink); }
.brand:hover { text-decoration: none; color: var(--accent); }
nav { display: flex; gap: 22px; flex-wrap: wrap; }
nav a { color: var(--muted); font-size: 0.95rem; }
nav a:hover { color: var(--accent); text-decoration: none; }
nav a.active { color: var(--ink); font-weight: 600; }

/* Headings */
h1 { font-size: 2rem; margin: 40px 0 10px; letter-spacing: -0.01em; }
h2 { font-size: 1.35rem; margin: 34px 0 10px; }
h3 { font-size: 1.1rem; margin: 20px 0 6px; }
main { padding-bottom: 80px; }

/* Rotating slideshow (shared: home banner + team gallery) */
.slideshow {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
}
.slideshow .slides { position: absolute; inset: 0; }
.slideshow .slide {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0; transition: opacity 1.2s ease-in-out;
}
.slideshow .slide.active { opacity: 1; }
.hero-slideshow { height: 560px; margin: 32px 0 8px; }
/* Team gallery: taller, shows the whole photo (no cropping) on a soft backdrop */
.team-gallery { height: 480px; margin: 20px 0 40px; background: #edeae6; }
.team-gallery .slide { background-size: contain; background-repeat: no-repeat; }

/* Caption bar shown at the bottom of a slide */
.slide-caption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 26px 18px 12px; color: #fff; font-size: 0.9rem; text-align: center;
  background: linear-gradient(to top, rgba(0,0,0,0.6), rgba(0,0,0,0));
}
.hero-overlay {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 40px;
  background: linear-gradient(to top, rgba(0,0,0,0.62) 0%, rgba(0,0,0,0.15) 45%, rgba(0,0,0,0) 75%);
  color: #fff;
}
.hero-overlay h1 { color: #fff; margin: 0 0 8px; font-size: 2.6rem; line-height: 1.12;
  text-shadow: 0 2px 12px rgba(0,0,0,0.4); }
.hero-overlay .tagline { color: rgba(255,255,255,0.92); font-size: 1.2rem; margin: 0;
  text-shadow: 0 1px 8px rgba(0,0,0,0.4); }
.slide-dots { position: absolute; bottom: 16px; right: 20px; display: flex; gap: 9px; }
.slide-dots .dot {
  width: 11px; height: 11px; border-radius: 50%; cursor: pointer;
  border: 0; padding: 0; background: rgba(255,255,255,0.45);
  transition: background 0.2s, transform 0.2s;
}
.slide-dots .dot:hover { background: rgba(255,255,255,0.75); }
.slide-dots .dot.active { background: #fff; transform: scale(1.15); }

/* Hero (plain text fallback) */
.hero { padding: 56px 0 8px; }
.hero h1 { font-size: 2.6rem; line-height: 1.15; margin: 0 0 12px; }
.tagline { font-size: 1.25rem; color: var(--muted); margin: 0; }
.intro { font-size: 1.05rem; }
.home-news { margin-top: 40px; border-top: 1px solid var(--line); padding-top: 20px; }
.contact { margin-top: 40px; border-top: 1px solid var(--line); padding-top: 20px; }
.news-teaser { list-style: none; padding: 0; }
.news-teaser li { padding: 6px 0; }
.news-teaser .date { color: var(--muted); font-variant-numeric: tabular-nums; margin-right: 12px; font-size: 0.9rem; }

/* News list */
.news-item { display: grid; grid-template-columns: 120px 1fr; gap: 24px;
  padding: 26px 0; border-bottom: 1px solid var(--line); }
.news-date { color: var(--muted); font-size: 0.9rem; font-variant-numeric: tabular-nums; padding-top: 4px; }
.news-body h2 { margin-top: 0; }
.news-img { border-radius: 8px; margin: 10px 0; }

/* Research projects — full-width text, optional figure below */
.project-card { padding: 30px 0; border-bottom: 1px solid var(--line); }
.project-text h2 { margin-top: 0; }
.project-figure { margin: 18px 0 0; text-align: center; }
.project-figure img { border-radius: 8px; width: 100%; max-width: 620px; }

/* Publications */
.pub-section { color: var(--accent); border-bottom: 2px solid var(--line);
  padding-bottom: 6px; margin-top: 40px; }
.pub-list { list-style: none; padding: 0; }
.pub { display: grid; grid-template-columns: 34px 1fr; gap: 10px; padding: 20px 0;
  border-bottom: 1px solid var(--line); align-items: start; }
.pub-num { color: var(--muted); font-weight: 700; font-variant-numeric: tabular-nums; }
.pub-entry .pub-authors, .pub-entry .pub-title, .pub-entry .pub-venue { display: inline; }
.pub-title { font-weight: 600; }
/* linked titles: obviously clickable — accent color, underline, ↗ marker */
.pub-title a { color: var(--accent); text-decoration: underline;
  text-decoration-thickness: 1px; text-underline-offset: 2px; }
.pub-title a:hover { text-decoration-thickness: 2px; }
.pub-title a::after { content: " \2197"; font-size: 0.8em; display: inline-block; }
.pub-venue { color: var(--muted); }
.pub-links { margin-top: 4px; font-size: 0.85rem; }
.pub-note { margin-top: 3px; font-size: 0.82rem; color: var(--muted); }
.pub-legend { color: var(--muted); font-size: 0.88rem; margin: 8px 0 0; }
.pub-toc { grid-column: 1 / -1; margin: 12px 0 2px; text-align: center; }
.pub-toc img { width: 100%; max-width: 360px; border: 1px solid var(--line);
  border-radius: 6px; }
/* undergraduate co-authors highlighted in royal blue */
.ugrad { color: #4169e1; font-weight: 600; }

/* Team */
.people-lead { display: flex; justify-content: center; flex-wrap: wrap;
  gap: 36px; margin-top: 24px; }
.people-grid { display: flex; flex-wrap: wrap; justify-content: center;
  gap: 36px; margin-top: 34px; }
.people-grid .person { width: 190px; }
.person { text-align: center; }
.person img, .photo-placeholder { width: 150px; height: 150px; object-fit: cover;
  border-radius: 50%; margin: 0 auto 12px; display: block; }
.photo-placeholder { background: var(--bg-soft); border: 1px solid var(--line);
  font-size: 3rem; line-height: 150px; color: var(--muted); }
.person h3 { margin: 6px 0 2px; }
.person .role { color: var(--muted); font-size: 0.9rem; margin: 0 0 2px; }
.person .class-year { color: var(--muted); font-size: 0.82rem; margin: 0 0 2px; opacity: 0.85; }
.person .since { color: var(--muted); font-size: 0.82rem; margin: 0 0 6px; opacity: 0.85; }
.person p { font-size: 0.9rem; }
.person ul, .person ol { text-align: left; display: inline-block;
  margin: 8px auto; padding-left: 18px; font-size: 0.88rem; }
.person ul li, .person ol li { margin: 2px 0; }
.person .now { color: var(--accent); }
.alumni-list { line-height: 1.9; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-soft);
  padding: 30px 0; color: var(--muted); font-size: 0.9rem; margin-top: 40px; }
.site-footer p { margin: 4px 0; }
.muted { color: var(--muted); }
code { background: var(--bg-soft); padding: 1px 5px; border-radius: 4px; font-size: 0.85em; }

/* Mobile */
@media (max-width: 640px) {
  .news-item { grid-template-columns: 1fr; gap: 8px; }
  .hero h1 { font-size: 2rem; }
  .hero-slideshow { height: 400px; }
  .hero-overlay { padding: 24px; }
  .hero-overlay h1 { font-size: 1.8rem; }
  .hero-overlay .tagline { font-size: 1rem; }
  nav { gap: 14px; }
}
