/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --teal:          #1e3d4f;
  --teal-dark:     #182f3d;
  --gold-box:      rgba(160, 148, 100, 0.45);
  --gold-border:   rgba(190, 175, 120, 0.6);
  --text-light:    rgba(255, 255, 255, 0.92);
  --text-dim:      rgba(255, 255, 255, 0.55);
  --text-dark:     #111111;
  --text-body:     #333333;
  --text-muted:    #888888;
  --bg:            #ffffff;
  --border:        #e0e0e0;
  --max-width:     1100px;
  --content-width: 780px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'EB Garamond', 'Garamond', Georgia, serif;
  color: var(--text-body);
  background: var(--bg);
  line-height: 1.7;
  font-size: 16px;
}

a { color: inherit; text-decoration: none; }

/* ── NAV (dark teal, part of hero) ── */
#site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  background: var(--teal-dark);
  height: auto;
  display: flex; flex-direction: column; align-items: center;
  padding: 1rem 2rem 0.75rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.nav-inner {
  width: 100%; max-width: var(--max-width);
  display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
}
.nav-logo {
  display: inline-block;
  font-family: 'Cormorant Garamond', 'Cormorant', Georgia, serif;
  font-size: 2rem; font-weight: 400; letter-spacing: 0.01em;
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none; white-space: nowrap;
  margin-bottom: 0.2rem;
}
.nav-links {
  display: flex; gap: 0; list-style: none; flex-wrap: wrap; justify-content: center;
}
.nav-links li a {
  display: block; padding: 0.25rem 1.4rem;
  color: rgba(255, 255, 255, 0.85);
  font-family: 'Cormorant Garamond', 'Cormorant', Georgia, serif;
  font-size: 1.15rem; font-weight: 400; letter-spacing: 0.02em;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.15s;
}
.nav-links li a:hover { color: #fff; text-decoration: none; }
.nav-links li a.active {
  color: #fff;
  border-bottom-color: transparent;
  text-decoration: underline;
  text-decoration-color: rgba(255,255,255,0.7);
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}

/* Hamburger */
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; padding: 4px; position: absolute; right: 1.5rem; top: 1.1rem;
}
.hamburger span {
  display: block; width: 22px; height: 1.5px;
  background: rgba(255,255,255,0.7); border-radius: 1px; transition: 0.3s;
}

/* Mobile nav */
@media (max-width: 640px) {
  .nav-links {
    display: none; flex-direction: column; align-items: center; gap: 0;
    padding: 0.5rem 0;
  }
  .nav-links.open { display: flex; }
  .nav-links li a { padding: 0.5rem 1rem; }
  .hamburger { display: flex; }
}

/* ── PAGE WRAPPER ── */
.page-body { min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }

/* ── NAV HEIGHT OFFSET — calculated dynamically via JS ── */
/* fallback: ~80px for the two-line nav */
.page-body { padding-top: 80px; }

/* ── HERO — dark teal, full remaining viewport ── */
.hero-section {
  position: relative; overflow: hidden;
  background: var(--teal);
  background-image: linear-gradient(
    to bottom,
    var(--teal-dark) 0%,
    var(--teal) 18%
  );
  /* roughly half the viewport so white section is visible on load */
  height: 52vh;
  min-height: 320px;
  display: flex; align-items: center;
  padding: 2rem 2.5rem 2.5rem;
}
canvas#particles {
  position: absolute; inset: 0; width: 100%; height: 100%;
  pointer-events: none;
}
.hero-inner {
  position: relative; z-index: 2;
  max-width: 1000px; margin: 0 auto; width: 100%; text-align: center;
}
.hero-statement {
  font-family: 'Cormorant Garamond', 'Cormorant', Georgia, serif;
  font-size: clamp(1.6rem, 2.6vw, 2.4rem);
  font-weight: 400; font-style: normal;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.3; letter-spacing: 0em;
  max-width: 1000px; text-align: center;
}

/* ── HOME RESEARCH SECTION (white, below hero) ── */
.home-research {
  background: #fff;
  padding: 2rem 3.5rem 6rem;
}
.home-research-inner {
  max-width: 820px;
  margin: 0 auto;
}
.home-research h2 {
  font-family: 'Cormorant Garamond', 'Cormorant', Georgia, serif;
  font-size: 2.2rem; font-weight: 400;
  color: #666; margin-bottom: 1.5rem;
  letter-spacing: 0.01em;
}
.home-research p {
  /* Original: font-family: 'Cormorant Garamond', 'Cormorant', Georgia, serif; font-size: 1.45rem; font-weight: 400; */
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 1.05rem; font-weight: 300;
  color: #111; line-height: 1.65;
  margin-bottom: 1.4rem;
  text-align: justify;
}
.home-research .goals-heading {
  font-family: 'Cormorant Garamond', 'Cormorant', Georgia, serif;
  font-weight: 400; color: #666; margin-bottom: 0.5rem; font-size: 2.2rem;
}
.home-research ul {
  margin: 0.5rem 0 1.4rem 1.4rem;
}
.home-research ul li {
  /* Original: font-family: 'Cormorant Garamond', 'Cormorant', Georgia, serif; font-size: 1.4rem; font-weight: 400; */
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 1.05rem; font-weight: 300;
  color: #111; line-height: 1.75; margin-bottom: 0.5rem; text-align: justify;
}

.research-images {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-top: 2.5rem;
}
.research-images img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
}

/* ── CONTENT PAGES ── */
.content-page { padding: 100px 2.5rem 80px; }
.content-inner { max-width: var(--content-width); margin: 0 auto; }
.content-inner h1 {
  font-size: 1.8rem; font-weight: 400;
  color: #888; margin-bottom: 0.4rem; letter-spacing: -0.01em;
  font-family: 'Cormorant Garamond', 'Cormorant', Georgia, serif;
}
.position-subheading {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.25rem; font-weight: 500;
  color: #888; margin: 1.6rem 0 0.4rem;
}

.page-divider {
  width: 32px; height: 1px; background: var(--text-muted);
  margin: 1rem 0 2.5rem;
}

/* ── RESEARCH PAGE ── */
.research-body p {
  margin-bottom: 1.5rem; color: var(--text-body);
  font-size: 1.05rem; font-weight: 400; line-height: 1.85;
}
.research-goals { margin: 0.5rem 0 0 1.2rem; }
.research-goals li {
  margin-bottom: 0.65rem; font-size: 1rem;
  color: var(--text-body); line-height: 1.7;
}
.goals-heading { font-weight: 600; color: var(--text-dark); margin-bottom: 0.5rem; font-size: 1rem; }

/* ── PEOPLE PAGE ── */
.people-section { margin-bottom: 3rem; }
.people-section h2 {
  font-size: 0.78rem; font-weight: 400; color: var(--text-muted);
  font-family: 'DM Sans', sans-serif;
  text-transform: uppercase; letter-spacing: 0.1em;
  border-bottom: 1px solid var(--border); padding-bottom: 0.6rem;
  margin-bottom: 2rem;
}
.person-card { display: flex; align-items: center; gap: 2rem; }
.person-initials {
  width: 200px; height: 200px; border-radius: 0; flex-shrink: 0;
  background: #ddd; display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem; font-weight: 400; color: #777;
  font-family: 'Cormorant Garamond', Georgia, serif;
}
.person-photo { width: 200px; height: 200px; border-radius: 0; flex-shrink: 0; overflow: hidden; background: #ddd; }
.person-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
.person-info h3 { font-size: 1.5rem; font-weight: 400; color: var(--text-dark); margin-bottom: 0.2rem; font-family: 'Cormorant Garamond', 'Cormorant', Georgia, serif; }
.person-info .title { font-size: 1.1rem; color: var(--text-muted); margin-bottom: 0.75rem; font-family: 'Cormorant Garamond', 'Cormorant', Georgia, serif; font-weight: 400; }
.person-info .contact-line { font-size: 0.95rem; color: var(--text-muted); margin-bottom: 0.2rem; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-weight: 300; }
.person-info .contact-line a { color: var(--text-body); border-bottom: 1px solid var(--border); }
.person-info .contact-line a:hover { border-color: var(--text-dark); text-decoration: none; }
.person-info .links-line { margin-top: 0.65rem; font-size: 0.95rem; color: var(--text-muted); font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-weight: 300; }
.person-info .links-line a { color: #4a90c8; border-bottom: 1px solid rgba(74,144,200,0.3); padding-bottom: 1px; }
.person-info .links-line a:hover { border-color: var(--text-dark); text-decoration: none; }

@media (max-width: 480px) { .person-card { flex-direction: column; } }

@media (max-width: 640px) {
  .home-research .goals-heading { text-align: left; }
  .home-research p { text-align: left; }
  .home-research ul li { text-align: left; }
}

/* ── PLACEHOLDER PAGES ── */
.placeholder-page { align-items: flex-start; justify-content: flex-start; }
.placeholder-page p { color: var(--text-muted); font-size: 0.95rem; font-family: 'DM Sans', sans-serif; }
.position-body {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 1.05rem; font-weight: 300;
  color: var(--teal-dark); line-height: 1.65;
}

/* ── PUBLICATIONS PAGE ── */
.pub-list {
  list-style: none;
  padding-left: 0;
}
.pub-list li {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 1.05rem; font-weight: 300;
  color: var(--teal-dark); line-height: 1.45;
  margin-bottom: 1.2rem; text-align: justify;
}
.pub-list em { font-style: italic; }
.pmid-link {
  font-size: inherit; font-weight: 400;
  color: #4a90c8;
  text-decoration: underline;
  white-space: nowrap;
}
.pmid-link:hover { color: #2a6fa8; text-decoration: underline; }

/* ── CONTACT PAGE ── */
.contact-block { margin-bottom: 2.5rem; }
.contact-subheading {
  font-family: 'Cormorant Garamond', 'Cormorant', Georgia, serif;
  font-size: 1.8rem; font-weight: 400;
  color: #888; margin-bottom: 0.5rem;
}
.contact-detail {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 1.05rem; font-weight: 300;
  color: var(--teal-dark); line-height: 1.4;
}

/* ── FOOTER ── */
footer {
  background: var(--teal-dark);
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 1.5rem 2.5rem; text-align: center;
  color: rgba(255,255,255,0.35);
  font-size: 0.95rem; letter-spacing: 0.03em;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}
footer a { color: rgba(255,255,255,0.45); border-bottom: 1px solid rgba(255,255,255,0.15); }
footer a:hover { color: rgba(255,255,255,0.8); text-decoration: none; }
