/* ===========================================================
   Moments Lab — static rebuild stylesheet
   Palette pulled from the live site's brand assets:
     navy   #15124C  (header/footer, wordmark, body text)
     teal   #3FB6A8
     coral  #E08787
     gold   #E3A23C
     violet #8177B2
   Headings: Oswald (condensed, matches the wordmark)
   Body:     Barlow (open, free stand-in for the site's licensed
             Adobe font, Acumin — see note in README)
   =========================================================== */

@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@400;500;600;700&family=Barlow:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap');

:root {
  --navy: #15124c;
  --navy-soft: #211d5e;
  --white: #ffffff;
  --paper: #fbfaf8;
  --ink: #1c1a2e;
  --ink-soft: #4a4766;
  --teal: #3fb6a8;
  --coral: #e08787;
  --gold: #e3a23c;
  --violet: #8177b2;
  --rule: #e3e1f0;
  --max: 760px;
  --wide: 1040px;
  --border:#d9d6ea;
  --card-bg:#fbfaff;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Barlow', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 1.06rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Oswald', 'Barlow Condensed', sans-serif;
  color: var(--navy);
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 0.6em;
}

h1 { font-size: clamp(2rem, 4vw, 2.85rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 3vw, 1.9rem); }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.05rem; text-transform: none; }

p { margin: 0 0 1.1em; }

a {
  color: var(--navy);
  text-decoration-color: var(--teal);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}
a:hover { color: var(--coral); }

img { max-width: 100%; display: block; }

/* ---------- header / nav ---------- */

.site-header {
  background: var(--navy) url('../images/header-banner.png') left center / auto 150% no-repeat;
  min-height: clamp(50px, 50vw, 160px);
  display: flex;
  align-items: center;
  position: relative;
}

.nav-wrap {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.85rem 2rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
  grid-column: 1;
  justify-self: start;
}
.brand img { height: clamp(64px, 10vw, 120px); width: auto; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.6rem;
  cursor: pointer;
  padding: 0.25rem 0.4rem;

}


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

.main-nav a {
  color: var(--white);
  text-decoration: none;
  font-family: 'Oswald', sans-serif;
  font-weight: 500;
  font-size: 1.5rem;
  letter-spacing: 0.02em;
  padding: 0.3rem 0.1rem;
  border-bottom: 2px solid transparent;
  transition: border-color 0.15s ease, opacity 0.15s ease;
}
.main-nav a:hover,
.main-nav a[aria-current="page"] {
  border-bottom-color: var(--teal);
}

/* ---------- page shell ---------- */

main { padding-bottom: 4rem; flex: 1 0 auto; }

.hero {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 3rem 1.5rem 1rem;
}

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

.col p, .col li { text-align: left; }

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

.eyebrow-note {
  color: var(--ink-soft);
  font-style: italic;
}

/* ---------- home hero ---------- */

.home-hero h1 {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 1.1em;
}
.home-hero h1 em { font-style: normal; color: var(--teal); }

.home-hero .lede {
  max-width: 620px;
  margin: 0 auto 1.4em;
  text-align: center;
  font-size: 1.15rem;
  color: var(--ink-soft);
}

.questions-panel {
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: 10px;
  padding: 2rem 2.2rem;
  max-width: 720px;
  margin: 1.8rem auto;
  box-shadow: 0 10px 30px -22px rgba(21,18,76,0.35);
}
.questions-panel img { max-width: 100%; margin: 0 auto 1.4rem; }
.questions-panel ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.questions-panel li {
  position: relative;
  padding-left: 1.4rem;
  margin-bottom: 0.9rem;
  font-size: 1.06rem;
}
.questions-panel li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
}
.questions-panel strong { color: var(--navy); }

.cta-row { text-align: center; margin: 1.6rem 0; }
.btn {
  display: inline-block;
  background: var(--navy);
  color: var(--white) !important;
  font-family: 'Oswald', sans-serif;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-decoration: none;
  padding: 0.7rem 1.8rem;
  border-radius: 999px;
  transition: background 0.15s ease;
}
.btn:hover { background: var(--teal); color: var(--white) !important; }

/* ---------- research page ---------- */

.research-page .col p { text-align: justify; hyphens: auto; }

.research-figure { margin: 2.2rem 0; text-align: center; }
.research-figure img {
  margin: 0 auto;
  border-radius: 8px;
}

.divider-squiggle {
  display: block;
  max-width: 320px;
  margin: 2.6rem auto;
  opacity: 0.85;
}

.related-research { max-width: var(--wide); margin: 0 auto; padding: 1rem 1.5rem 3rem; }
.related-research > p { max-width: var(--max); margin-left: auto; margin-right: auto; }

details.line-card {
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: 10px;
  padding: 1.1rem 1.5rem;
  margin-bottom: 1rem;
}
details.line-card summary {
  font-family: 'Oswald', sans-serif;
  font-weight: 500;
  font-size: 1.15rem;
  color: var(--navy);
  cursor: pointer;
}
details.line-card summary::-webkit-details-marker { color: var(--teal); }
details.line-card p { margin-top: 0.9rem; }
details.line-card .works-label {
  font-family: 'Oswald', sans-serif;
  font-size: 0.9rem;
  letter-spacing: 0.03em;
  color: var(--ink-soft);
  margin: 1rem 0 0.4rem;
}
details.line-card ul { margin: 0; padding-left: 1.1rem; }
details.line-card li { margin-bottom: 0.6rem; }

.collab-note { text-align: center; color: var(--ink-soft); font-style: italic; margin-top: 1.5rem; }

/* ---------- people page ---------- */

.team-section { max-width: var(--wide); margin: 0 auto; padding: 0.5rem 1.5rem 2.5rem; }
.team-section h2 {
  font-size: 1.5rem;
  text-align: center;
  letter-spacing: 0.04em;
  color: var(--navy);
  border-top: 1px solid var(--rule);
  padding-top: 2.2rem;
  margin-top: 1rem;
  margin-bottom: 1.8rem;
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
}
.team-section:first-of-type h2 { border-top: none; padding-top: 0; }

.people-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}
.person-card { width: 100%; max-width: 280px; text-align: center; }
.person-photo {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 8px;
  margin: 0 auto 0.9rem;
  background: var(--rule);
}
.person-photo img { width: 100%; height: 100%; object-fit: cover; }
.person-card h3 { margin-bottom: 0.4rem; }
.person-card p { font-size: 0.98rem; color: var(--ink-soft); }
.person-card .email { font-size: 0.92rem; color: var(--navy); margin-top: 0.5rem; }

/* solo layout: photo on top like other cards, but a wider card so bio text isn't so narrow */
.people-grid.solo .person-card { max-width: 480px; }
.people-grid.solo .person-photo { max-width: 280px; }

.lab-photos-divider {
  max-width: var(--wide);
  margin: 1rem auto 0;
  padding: 0 1.5rem;
}
.lab-photos-divider hr {
  border: none;
  border-top: 1px solid var(--rule);
  margin: 0;
}

.lab-photos {
  max-width: var(--wide);
  margin: 2.2rem auto 3rem;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.2rem;
}
.lab-photos figure { margin: 0; }
.lab-photos img { border-radius: 8px; width: 100%; height: 240px; object-fit: cover; }
.lab-photos figcaption {
  font-size: 0.9rem;
  color: var(--ink-soft);
  font-style: italic;
  margin-top: 0.5rem;
  text-align: center;
}

/* ---------- publications page ---------- */

.pubs-page .col h3 {
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  margin-top: 2.2rem;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 0.4rem;
}
.pubs-page .col h3:first-of-type { margin-top: 0.5rem; }
.pub-entry { margin-bottom: 1.1rem; font-size: 1rem; }
.pub-entry .pub-title { font-weight: 600; }
.pub-entry .pub-venue { font-style: italic; }
.pub-entry .pub-extra { display: block; font-size: 0.92rem; color: var(--ink-soft); margin-top: 0.15rem; padding-left: 1.4rem; }
.pub-footnote { font-size: 0.9rem; color: var(--ink-soft); margin-top: 1.5rem; }


/* ---------- resources / contact ---------- */
.res-grid{ display:grid; grid-template-columns:repeat(1,3fr); width:400px; gap:22px; margin-top:26px;}
.res-card{ border:2px solid var(--border); border-radius:8px; padding:40px; background:var(--card-bg); }
.res-card h3{ font-size:1.1rem; margin-bottom:8px; font-weight:700; }
.res-card p{ font-size:0.96rem; text-align: center}
.res-card a.btn{ font-family:'Oswald',sans-serif; font-weight:600; text-decoration:underline; color:var(--link); }
@media (max-width:400px){ .res-grid{ grid-template-columns:1fr; } }

.recruit-heading{
  text-align:center; font-weight:700; font-size:1.4rem;
  text-decoration:underline; text-decoration-color:var(--link);
  text-decoration-thickness:3px; text-underline-offset:7px;
  margin:44px 0 26px;
}

/* ---------- resources page ---------- */

.resources-page .col h4 {
  margin-top: 2rem;
  color: var(--navy);
}
.resources-page .col ul { padding-left: 1.1rem; }
.resources-page .col li { margin-bottom: 0.85rem; }


.resources-page2 .col h4 {
  margin-top: 2rem;
  color: var(--navy);
}
.resources-page2 .col ul { padding-left: 5rem; }
.resources-page2 .col li { margin-bottom: 0.85rem; }

/* ---------- contact page ---------- */

.contact-page .col h2 { margin-top: 1.8rem; }
.contact-block { background: var(--white); border: 1px solid var(--rule); border-radius: 10px; padding: 1.6rem 1.9rem; margin-top: 0.6rem; }
.contact-block p { text-align: center; }
.contact-block p:last-child { margin-bottom: 0; }

/* ---------- lab photo lightbox ---------- */

.lab-photos img { cursor: zoom-in; }

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(21, 18, 76, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 2rem;
}
.lightbox.open { display: flex; }

.lightbox-figure {
  margin: 0;
  max-width: min(90vw, 900px);
  text-align: center;
}
.lightbox-img {
  max-width: 100%;
  max-height: 78vh;
  border-radius: 6px;
  margin: 0 auto;
}
.lightbox-caption {
  color: var(--white);
  font-style: italic;
  margin-top: 1rem;
  font-size: 0.98rem;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  background: none;
  border: none;
  color: var(--white);
  cursor: pointer;
  line-height: 1;
}
.lightbox-close {
  top: 1.2rem;
  right: 1.5rem;
  font-size: 2.2rem;
}
.lightbox-prev,
.lightbox-next {
  top: 50%;
  transform: translateY(-50%);
  font-size: 3rem;
  padding: 0.5rem 1rem;
}
.lightbox-prev { left: 0.5rem; }
.lightbox-next { right: 0.5rem; }
.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover { color: var(--teal); }

/* ---------- footer ---------- */

.site-footer {
  background: var(--navy);
  color: var(--white);
  text-align: center;
  padding: 2.2rem 1.5rem;
  font-family: 'Oswald', sans-serif;
  letter-spacing: 0.03em;
}

/* ---------- responsive ---------- */

@media (max-width: 720px) {
  .nav-toggle { display: block; }
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--navy-soft);
    display: none;
  }
  .main-nav.open { display: block; }
  .main-nav ul {
    flex-direction: column;
    gap: 0;
    padding: 0.5rem 1.5rem 1rem;
  }
  .main-nav a { display: block; padding: 0.7rem 0; }
  .questions-panel { padding: 1.5rem; }
}
