:root {
  --ink: #1c2530;
  --ink-soft: #4a5568;
  --paper: #ffffff;
  --paper-alt: #f6f7f9;
  --accent: #0f5c5c;
  --accent-soft: #e4f0ef;
  --border: #e2e5ea;
  --serif: 'Source Serif 4', Georgia, serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --max: 960px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper) url("../assets/mountains-bg.svg") center top / cover no-repeat fixed;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--ink);
  text-decoration: none;
}

.site-nav {
  display: flex;
  gap: 1.5rem;
}

.site-nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 0.15s;
}

.site-nav a:hover { color: var(--accent); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--ink);
  display: block;
}

/* Sections */
.section {
  padding: 4.5rem 0;
}

.section.alt {
  background: var(--paper-alt);
}

.section h2 {
  font-family: var(--serif);
  font-size: 1.6rem;
  margin-bottom: 1.25rem;
  color: var(--ink);
}

.section h2::after {
  content: "";
  display: block;
  width: 42px;
  height: 3px;
  background: var(--accent);
  margin-top: 0.6rem;
  border-radius: 2px;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

/* Hero */
.hero { padding-top: 3.5rem; }

.hero-grid {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 3rem;
  align-items: start;
}

.hero-photo img {
  width: 100%;
  border-radius: 10px;
  border: 1px solid var(--border);
  object-fit: cover;
  aspect-ratio: 1 / 1;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent);
  margin: 0 0 0.4rem;
}

.hero-text h1 {
  font-family: var(--serif);
  font-size: 2.6rem;
  margin: 0 0 0.4rem;
  line-height: 1.15;
}

.subtitle {
  color: var(--ink-soft);
  margin: 0 0 1.2rem;
  font-size: 1rem;
}

.bio {
  max-width: 62ch;
  color: var(--ink-soft);
  margin-bottom: 1.5rem;
}

.hero-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 2rem;
}

.hero-links a {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--accent);
  text-decoration: none;
  border: 1px solid var(--accent);
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  transition: background 0.15s, color 0.15s;
}

.hero-links a:hover {
  background: var(--accent);
  color: #fff;
}

.metrics {
  display: flex;
  gap: 2.5rem;
}

.metrics > div {
  display: flex;
  flex-direction: column;
}

.metric-num {
  font-family: var(--serif);
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--accent);
}

.metric-label {
  font-size: 0.78rem;
  color: var(--ink-soft);
}

/* Tags */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.tags span {
  background: var(--accent-soft);
  color: var(--accent);
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 500;
}

/* Timeline */
.timeline {
  list-style: none;
  padding: 0;
  margin: 0;
  border-left: 2px solid var(--border);
}

.timeline li {
  position: relative;
  padding: 0 0 1.75rem 1.5rem;
}

.timeline li::before {
  content: "";
  position: absolute;
  left: -6px;
  top: 4px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
}

.timeline-date {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.2rem;
}

.timeline-body h3 {
  font-family: var(--serif);
  font-size: 1.05rem;
  margin: 0 0 0.25rem;
}

.timeline-body p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

/* Plain lists */
.plain-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.plain-list li {
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.94rem;
  color: var(--ink-soft);
}

.plain-list li strong { color: var(--ink); }

.plain-list.compact li { padding: 0.4rem 0; font-size: 0.88rem; }

.student-status {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 0.1rem 0.5rem;
  border-radius: 999px;
  margin-right: 0.4rem;
  vertical-align: middle;
}

.student-current .student-status,
.student-status-current {
  background: var(--accent-soft);
  color: var(--accent);
}

.student-former .student-status,
.student-status-former {
  background: #eee;
  color: #8a8f98;
}

.reviewer-list {
  font-size: 0.92rem;
  color: var(--ink-soft);
}

/* Publications */
.pub-subhead {
  font-family: var(--serif);
  font-size: 1.1rem;
  margin: 2rem 0 1rem;
  color: var(--accent);
}

.pub-list {
  padding-left: 1.4rem;
  margin: 0;
}

.pub-list li {
  margin-bottom: 0.9rem;
  font-size: 0.92rem;
  color: var(--ink-soft);
}

.pub-list a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
  white-space: nowrap;
}

.pub-list a:hover { text-decoration: underline; }

.pub-list a.pub-title-link {
  color: var(--ink);
  white-space: normal;
  font-weight: inherit;
}

.pub-list a.pub-title-link:hover {
  color: var(--accent);
  text-decoration: underline;
}

.pub-more {
  margin-top: 1.5rem;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.pub-more a { color: var(--accent); }

/* Beyond the Lab */
.beyond-section {
  background: var(--ink);
  color: #fff;
}

.light-heading { color: #fff; }
.light-heading::after { background: var(--accent); }

.beyond-intro {
  color: #c7ced6;
  margin-bottom: 2rem;
}

.bio-personal {
  color: var(--ink-soft);
  font-style: italic;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 110px;
  gap: 14px;
}

.gallery-item {
  overflow: hidden;
  border-radius: 6px;
  background: #000;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.gallery-item:hover img {
  transform: scale(1.06);
}

.gallery-item.large {
  grid-column: span 2;
  grid-row: span 2;
}

.gallery-item.wide {
  grid-column: span 2;
}

@media (max-width: 800px) {
  .gallery {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 100px;
  }
  .gallery-item.large { grid-column: span 2; grid-row: span 2; }
  .gallery-item.wide { grid-column: span 2; }
}

/* Contact */
.contact-section {
  background: var(--ink);
  color: #fff;
}

.contact-section h2 { color: #fff; }
.contact-section h2::after { background: #fff; }
.contact-section p { color: #c7ced6; }

.contact-section .hero-links a {
  color: #fff;
  border-color: rgba(255,255,255,0.4);
}

.contact-section .hero-links a:hover {
  background: #fff;
  color: var(--ink);
}

.map-embed {
  margin: 1.5rem 0;
  border-radius: 10px;
  overflow: hidden;
}

.map-embed iframe {
  display: block;
}

/* Footer */
.site-footer {
  padding: 1.5rem 0;
  background: var(--ink);
  color: #8b95a3;
  font-size: 0.8rem;
}

/* Responsive */
@media (max-width: 800px) {
  .two-col { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-photo { max-width: 180px; }
  .hero-text h1 { font-size: 2.1rem; }

  .nav-toggle { display: flex; }

  .site-nav {
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 1rem 1.5rem;
    gap: 0.9rem;
    display: none;
  }

  .site-nav.open { display: flex; }
}
