/* ---------------------------------------------
   Fidler Lab — design tokens
   Palette:  ink #16233B · paper #EEF0EA · arterial #B23A2E
             vessel #2F5D62 · line #D8DCD2 · muted #5C6560
   Type:     Fraunces (display) / IBM Plex Sans (body) / IBM Plex Mono (data)
--------------------------------------------- */

:root{
  --ink: #16233B;
  --paper: #EEF0EA;
  --paper-raised: #F6F7F2;
  --arterial: #B23A2E;
  --vessel: #2F5D62;
  --line: #D8DCD2;
  --muted: #5C6560;

  --font-display: "Fraunces", serif;
  --font-body: "IBM Plex Sans", sans-serif;
  --font-mono: "IBM Plex Mono", monospace;

  --max: 1120px;
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *{ animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

body{
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a{ color: inherit; text-decoration: none; }
ul{ list-style: none; margin: 0; padding: 0; }

.section-inner{
  max-width: var(--max);
  margin: 0 auto;
  padding: 88px 32px;
}

.kicker{
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--arterial);
  margin: 0 0 14px;
}

h1, h2, h3, h4{
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--ink);
  margin: 0;
}

h2{ font-size: clamp(28px, 3.4vw, 40px); max-width: 20ch; margin-bottom: 40px; }

.text-link{
  color: var(--vessel);
  border-bottom: 1px solid currentColor;
  padding-bottom: 1px;
}
.text-link:hover{ color: var(--arterial); }

/* ---------------- Header ---------------- */
.site-header{
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 32px;
  background: rgba(238, 240, 234, 0.88);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.brand{
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.site-nav{ display: flex; gap: 28px; }
.site-nav a{
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--muted);
  position: relative;
  padding-bottom: 3px;
}
.site-nav a:hover{ color: var(--ink); }
.site-nav a::after{
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 1px;
  background: var(--arterial);
  transition: right 0.2s ease;
}
.site-nav a:hover::after{ right: 0; }

.nav-toggle{
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span{ width: 22px; height: 2px; background: var(--ink); display: block; }

/* ---------------- Hero ---------------- */
.hero{
  position: relative;
  background: var(--ink);
  color: var(--paper);
  overflow: hidden;
  padding-bottom: 0;
}
.hero-inner{
  max-width: var(--max);
  margin: 0 auto;
  padding: 120px 32px 60px;
  position: relative;
  z-index: 2;
}
.hero .eyebrow{
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  color: #9FB2AC;
  margin: 0 0 20px;
}
.hero h1{
  color: #FBFAF6;
  font-size: clamp(44px, 7vw, 84px);
  line-height: 0.98;
  margin: 0 0 24px;
  letter-spacing: -0.01em;
}
.hero-sub{
  max-width: 46ch;
  font-size: 19px;
  color: #D7DCD3;
  margin: 0 0 40px;
}
.hero-actions{ display: flex; gap: 16px; flex-wrap: wrap; }

.btn{
  display: inline-block;
  padding: 13px 26px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.03em;
  border-radius: 2px;
  border: 1px solid transparent;
}
.btn-primary{ background: var(--arterial); color: #FBFAF6; }
.btn-primary:hover{ background: #99312A; }
.btn-ghost{ border-color: #4A5A6E; color: #E4E7DF; }
.btn-ghost:hover{ border-color: #E4E7DF; }

.hero-trace{
  position: relative;
  z-index: 1;
  width: 100%;
  height: 140px;
  display: block;
}
.hero-trace path{
  stroke: var(--arterial);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
  filter: drop-shadow(0 0 6px rgba(178,58,46,0.35));
}

/* ---------------- About ---------------- */
.about{ background: var(--paper-raised); }
.about-grid{
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 56px;
  padding-top: 72px;
  padding-bottom: 72px;
}
.about-lead h2{ margin: 0; }
.about-body p{ color: #3C453F; margin: 0 0 16px; max-width: 56ch; }

/* ---------------- Dividers (vessel segments) ---------------- */
.divider{
  height: 1px;
  max-width: var(--max);
  margin: 0 auto;
  background: var(--line);
  position: relative;
}
.divider::after{
  content: "";
  position: absolute;
  top: -3px;
  left: 8%;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--arterial);
}

/* ---------------- Research ---------------- */
.branch-grid{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.branch-card{
  background: var(--paper);
  padding: 40px;
  position: relative;
}
.branch-tag{
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--vessel);
  border: 1px solid var(--vessel);
  padding: 3px 8px;
  border-radius: 2px;
  margin-bottom: 18px;
}
.branch-card h3{ font-size: 22px; margin: 0 0 12px; }
.branch-figure{
  width: 100%;
  height: auto;
  margin: 4px 0 18px;
  border: 1px solid var(--line);
  background: #fff;
}
.branch-card p{ color: #3C453F; margin: 0; max-width: 42ch; }

/* ---------------- People ---------------- */
.pi-card{
  display: flex;
  gap: 28px;
  align-items: flex-start;
  padding: 32px;
  background: var(--paper-raised);
  border: 1px solid var(--line);
  margin-bottom: 48px;
}
.pi-photo, .person-photo{
  flex-shrink: 0;
  width: 252px; height: 252px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-size: 72px;
  object-fit: cover;
}
.person-photo{ width: 180px; height: 180px; font-size: 54px; background: var(--vessel); margin-bottom: 16px; }
img.pi-photo, img.person-photo{ font-size: 0; }

.group-heading{
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 500;
  color: var(--ink);
  margin: 48px 0 24px;
}
.people-grid + .group-heading,
.pi-card + .group-heading{
  margin-top: 48px;
}
.alumni-list{
  font-size: 14px;
  color: #3C453F;
  margin: 0;
}
.pi-info h3{ font-size: 24px; margin-bottom: 6px; }
.role{ font-family: var(--font-mono); font-size: 13px; color: var(--vessel); margin: 0 0 10px; }
.pi-info p{ color: #3C453F; max-width: 60ch; }

.people-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.person-card h4{ font-size: 17px; margin-bottom: 4px; }
.person-card .focus{ color: #3C453F; font-size: 14px; margin: 6px 0 0; }

.edit-note{
  margin-top: 32px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  border-left: 2px solid var(--arterial);
  padding-left: 12px;
}

/* ---------------- Lab life ---------------- */
.lab-life-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.life-tile{ margin: 0; }
.life-wide{ grid-column: 1 / -1; }
.lab-life-grid img{
  width: 100%;
  height: 340px;
  object-fit: cover;
  border: 1px solid var(--line);
  display: block;
}
.life-wide > img{ height: 460px; }
.life-pair{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.life-pair img{ height: 300px; }
.life-tile figcaption{
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--muted);
  margin-top: 10px;
}
.news-photo{
  display: block;
  width: 100%;
  max-width: 420px;
  height: auto;
  margin-top: 12px;
  border: 1px solid var(--line);
}

/* ---------------- Publications ---------------- */
.pub-list{ display: flex; flex-direction: column; }
.pub-item{
  display: flex;
  gap: 28px;
  padding: 24px 0;
  border-top: 1px solid var(--line);
}
.pub-item:last-child{ border-bottom: 1px solid var(--line); }
.pub-year{
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--arterial);
  flex-shrink: 0;
  width: 52px;
  padding-top: 2px;
}
.pub-title{ font-size: 17px; margin: 0 0 6px; max-width: 62ch; }
.pub-meta{ font-family: var(--font-mono); font-size: 12.5px; color: var(--muted); margin: 0; }
.pub-figure{
  display: block;
  width: 100%;
  max-width: 520px;
  height: auto;
  margin-top: 16px;
  border: 1px solid var(--line);
  background: #fff;
}
.pub-full-link{
  margin-top: 28px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--muted);
}

/* ---------------- News ---------------- */
.news-list li{
  display: flex;
  gap: 24px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  font-size: 15px;
}
.news-list li:last-child{ border-bottom: 1px solid var(--line); }
.news-date{
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--vessel);
  width: 80px;
  flex-shrink: 0;
  padding-top: 2px;
}

/* ---------------- Contact ---------------- */
.contact-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}
.contact-line{ margin: 0 0 18px; color: #3C453F; }
.contact-map{
  height: 420px;
  overflow: hidden;
}
.contact-map img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ---------------- Footer ---------------- */
.site-footer{
  padding: 32px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.footer-logo{ display: inline-block; margin-bottom: 14px; }
.footer-logo img{ height: 36px; width: auto; display: block; opacity: 0.85; }
.footer-logo:hover img{ opacity: 1; }

/* ---------------- Focus states ---------------- */
a:focus-visible, button:focus-visible{
  outline: 2px solid var(--arterial);
  outline-offset: 2px;
}

/* ---------------- Responsive ---------------- */
@media (max-width: 860px){
  .site-nav{ display: none; }
  .nav-toggle{ display: flex; }
  .about-grid, .contact-grid{ grid-template-columns: 1fr; }
  .branch-grid{ grid-template-columns: 1fr; }
  .people-grid{ grid-template-columns: repeat(2, 1fr); }
  .lab-life-grid{ grid-template-columns: 1fr; }
  .hero-inner{ padding-top: 96px; }
}
@media (max-width: 520px){
  .people-grid{ grid-template-columns: 1fr; }
  .section-inner{ padding: 64px 20px; }
  .pi-card{ flex-direction: column; }
  .lab-life-grid img{ height: 220px; }
  .life-wide > img{ height: 220px; }
  .life-pair{ grid-template-columns: 1fr; }
  .life-pair img{ height: 200px; }
}
