/* ============================================
   Maier Laboratory — Design tokens
   ============================================ */
:root {
  --paper: #F5F6F2;
  --paper-raised: #FBFBF9;
  --ink: #16211C;
  --muted: #5C6660;
  --teal: #0B6E58;
  --teal-dim: #0B6E5814;
  --amber: #B8862B;
  --line: #D7DBD3;
  --line-strong: #B9C1BA;
  --max: 760px;
  --wide: 1080px;
}

* { box-sizing: border-box; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: "Newsreader", Georgia, serif;
  font-weight: 500;
  line-height: 1.15;
  margin: 0;
  letter-spacing: -0.01em;
}

a {
  color: var(--teal);
  text-decoration-color: var(--line-strong);
  text-underline-offset: 3px;
}
a:hover { text-decoration-color: var(--teal); }

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
}

p { margin: 0 0 1em; color: var(--ink); }
p:last-child { margin-bottom: 0; }

.muted { color: var(--muted); }

/* ============================================
   Layout shells
   ============================================ */
.wrap {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 0 32px;
}
.prose {
  max-width: var(--max);
}

section {
  padding: 88px 0;
  border-bottom: 1px solid var(--line);
}
section:last-of-type { border-bottom: none; }

/* Section marker: a small mass-spec peak cluster, standing in for an eyebrow label */
.peak-mark {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 20px;
  margin-bottom: 20px;
}
.peak-mark span {
  width: 3px;
  background: var(--amber);
  border-radius: 1px;
}
.peak-mark span:nth-child(1) { height: 40%; background: var(--line-strong); }
.peak-mark span:nth-child(2) { height: 100%; }
.peak-mark span:nth-child(3) { height: 55%; background: var(--line-strong); }
.peak-mark span:nth-child(4) { height: 70%; background: var(--teal); }

.section-head {
  margin-bottom: 40px;
}
.section-head h2 {
  font-size: clamp(28px, 3.4vw, 36px);
}
.section-head .dek {
  margin-top: 10px;
  color: var(--muted);
  max-width: var(--max);
}

/* ============================================
   Nav
   ============================================ */
header.site-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(245, 246, 242, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 16px 32px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
}
.wordmark {
  font-family: "Newsreader", serif;
  font-size: 19px;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}
nav.links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  font-size: 14.5px;
}
nav.links a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
}
nav.links a:hover { border-bottom-color: var(--teal); color: var(--teal); }

/* ============================================
   Hero
   ============================================ */
.hero {
  padding: 84px 0 72px;
  border-bottom: 1px solid var(--line);
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}
.hero .kicker {
  font-size: 14.5px;
  color: var(--teal);
  margin-bottom: 14px;
}
.hero h1 {
  font-size: clamp(30px, 4.2vw, 44px);
  color: var(--ink);
}
.hero .tagline {
  margin-top: 18px;
  font-size: 18px;
  color: var(--muted);
  font-family: "Newsreader", serif;
  font-style: italic;
}
.hero .lede {
  margin-top: 22px;
  font-size: 17px;
  max-width: 52ch;
}
.hero-figure {
  width: 100%;
  margin: 0;
}
.hero-figure-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 420 / 260;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
}
.hero-bg-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.5) saturate(1.05) contrast(1.05);
}
.hero-spectrum-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero-figure figcaption {
  margin-top: 10px;
  font-size: 12.5px;
  color: var(--muted);
  text-align: right;
}

@media (max-width: 820px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-figure { order: -1; max-width: 340px; margin: 0 auto; }
}

/* ============================================
   Research
   ============================================ */
.research-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-top: 40px;
}
.research-figure {
  margin: 0;
}
.research-figure img {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid var(--line);
  border-radius: 3px;
}
.research-figure figcaption {
  margin-top: 10px;
  font-size: 14px;
  color: var(--muted);
  font-family: "Newsreader", serif;
  font-style: italic;
}
.research-item {
  background: var(--paper-raised);
  padding: 24px 26px;
}
.research-item h3 {
  font-size: 17px;
  font-weight: 500;
}
@media (max-width: 700px) {
  .research-grid { grid-template-columns: 1fr; }
}

.networks {
  margin-top: 44px;
  display: grid;
  gap: 28px;
}
.network-item {
  padding-left: 20px;
  border-left: 2px solid var(--teal-dim);
}
.network-item h3 {
  font-size: 16px;
  font-weight: 600;
  font-family: "IBM Plex Sans", sans-serif;
  color: var(--ink);
  margin-bottom: 6px;
}
.network-item p { color: var(--muted); max-width: var(--max); }
.instrument-list {
  margin: 12px 0 0;
  padding-left: 20px;
  max-width: var(--max);
  color: var(--muted);
}
.instrument-list li { margin-bottom: 8px; }
.instrument-list a { color: var(--ink); }

/* ============================================
   Team
   ============================================ */
.pi-card {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 28px;
  align-items: start;
  padding-bottom: 40px;
  margin-bottom: 44px;
  border-bottom: 1px solid var(--line);
}
.pi-avatar {
  width: 120px;
  height: 120px;
  border-radius: 4px;
  overflow: hidden;
  background: var(--teal);
  color: var(--paper);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Newsreader", serif;
  font-size: 40px;
  flex-shrink: 0;
}
.pi-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.pi-card h3 { font-size: 24px; }
.pi-card .role {
  color: var(--teal);
  font-size: 14.5px;
  margin-top: 4px;
  margin-bottom: 14px;
}
.pi-card p { max-width: 62ch; color: var(--ink); }
@media (max-width: 560px) {
  .pi-card { grid-template-columns: 64px 1fr; }
  .pi-avatar { width: 64px; height: 64px; font-size: 24px; }
}

.team-group { margin-bottom: 36px; }
.team-group h3 {
  font-family: "IBM Plex Sans", sans-serif;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--muted);
  margin-bottom: 16px;
}
.team-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 18px;
}
.team-list li {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 18px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}
.team-list li:first-child { border-top: none; }
.member-name { font-weight: 600; }
.member-role { display: block; font-weight: 400; color: var(--muted); font-size: 14px; margin-top: 2px; }
.member-desc { color: var(--ink); }
@media (max-width: 640px) {
  .team-list li { grid-template-columns: 1fr; gap: 4px; }
}

/* ============================================
   Lab Life
   ============================================ */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
}
.photo-item { margin: 0; }
.photo-item img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 3px;
  border: 1px solid var(--line);
}
.photo-item figcaption {
  margin-top: 10px;
  font-size: 14px;
  color: var(--muted);
  font-family: "Newsreader", serif;
  font-style: italic;
}

.team-photo {
  margin-top: 44px;
}

/* ============================================
   Publications
   ============================================ */
.pub-links {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  max-width: var(--max);
}
.pub-link {
  background: var(--paper-raised);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-decoration: none;
  color: var(--ink);
  gap: 16px;
}
.pub-link:hover { background: var(--teal-dim); }
.pub-link .label { font-weight: 600; }
.pub-link .desc { color: var(--muted); font-size: 14.5px; display: block; margin-top: 2px; }
.pub-link .arrow { color: var(--teal); font-size: 20px; flex-shrink: 0; }

/* ============================================
   Contact / footer
   ============================================ */
section.contact-section {
  padding: 0;
  border-bottom: none;
  position: relative;
  overflow: hidden;
  min-height: 460px;
  display: flex;
  align-items: center;
}
.contact-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.contact-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.contact-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(200deg, rgba(11,110,88,0.35), rgba(22,33,28,0.62));
}
.contact-wrap {
  position: relative;
  z-index: 1;
  padding: 72px 32px;
  width: 100%;
}
.contact-panel {
  max-width: 620px;
  background: rgba(251,251,249,0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.6);
  border-radius: 6px;
  padding: 40px 44px;
}
.contact-panel .section-head { margin-bottom: 28px; }

@media (max-width: 560px) {
  .contact-panel { padding: 28px 24px; }
  .contact-wrap { padding: 48px 20px; }
  section.contact-section { min-height: 380px; }
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
.contact-block h3 {
  font-family: "IBM Plex Sans", sans-serif;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 10px;
}
.contact-block a { color: var(--ink); }
@media (max-width: 600px) {
  .contact-grid { grid-template-columns: 1fr; }
}

footer {
  padding: 32px 0;
  font-size: 13px;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}
