/* ============================================================
   Shared stylesheet — spin-off site.
   Direction: cool clinical restraint, objective tone.
   Palette: teal accent + white/black; sand used only where needed.
   Edit variables below to re-skin the whole site at once.
   ============================================================ */

:root {
  --ink:        #16202b;   /* near-black text */
  --ink-soft:   #4a5763;   /* secondary text */
  --line:       #dde3e8;   /* hairlines, borders */
  --paper:      #ffffff;   /* page background */
  --panel:      #f4f6f7;   /* subtle raised panels */
  --sand:       #efe9de;   /* secondary accent — used sparingly */
  --accent:     #0f6b74;   /* teal */
  --accent-dk:  #0a4c53;   /* darker teal for hover */
  --maxw:       1040px;
  --gutter:     clamp(1.25rem, 4vw, 3rem);
}

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Source Serif 4", Georgia, "Times New Roman", serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ---- Layout ---- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
section { padding: clamp(2.25rem, 5vw, 3.5rem) 0; }
.narrow { max-width: 68ch; }

/* ---- Typography (reduced sizes; more fits on one screen) ---- */
h1, h2, h3, nav, .kicker, .btn, .tag, footer, .role, .date, .contact-line, .logos span, .group-label {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
h1 {
  font-size: clamp(1.6rem, 3.2vw, 2.25rem);
  line-height: 1.12; letter-spacing: -0.015em; font-weight: 600; margin: 0 0 0.75rem;
}
h2 {
  font-size: clamp(1.25rem, 2.4vw, 1.55rem);
  line-height: 1.18; letter-spacing: -0.01em; font-weight: 600; margin: 0 0 0.75rem;
}
h3 { font-size: 1.08rem; font-weight: 600; margin: 0 0 0.35rem; }
p { margin: 0 0 0.9rem; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--accent-dk); }
.lead { font-size: 1.12rem; color: var(--ink-soft); }
.kicker { font-size: 0.85rem; font-weight: 600; color: var(--accent); margin: 0 0 0.5rem; }
.muted { color: var(--ink-soft); }

/* ---- Header / nav ---- */
.site-header {
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,0.9);
  backdrop-filter: saturate(140%) blur(6px);
  position: sticky; top: 0; z-index: 10;
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 60px; gap: 1rem;
}
.brand {
  font-family: "Inter", sans-serif; font-weight: 700; font-size: 1.02rem;
  color: var(--ink); text-decoration: none; letter-spacing: -0.01em;
  display: flex; align-items: center; gap: 0.5rem;
}
.brand svg { width: 22px; height: 22px; display: block; flex: none; }
nav ul { list-style: none; display: flex; gap: 1.25rem; margin: 0; padding: 0; }
nav a { color: var(--ink-soft); text-decoration: none; font-size: 0.92rem; font-weight: 500; }
nav a:hover, nav a[aria-current="page"] { color: var(--accent); }
.nav-toggle { display: none; }

/* ---- Hero (objective, no marketing statement) ---- */
.hero { padding-top: clamp(2.25rem, 5vw, 3.5rem); }

/* ---- Buttons ---- */
.btn {
  display: inline-block; background: var(--accent); color: #fff;
  padding: 0.6rem 1.1rem; border-radius: 6px; text-decoration: none;
  font-weight: 600; font-size: 0.92rem; border: 1px solid var(--accent);
}
.btn:hover { background: var(--accent-dk); border-color: var(--accent-dk); color: #fff; }
.btn.ghost { background: transparent; color: var(--accent); }
.btn.ghost:hover { background: var(--panel); color: var(--accent-dk); }
.btn-row { display: flex; gap: 0.6rem; flex-wrap: wrap; margin-top: 0.25rem; }

/* ---- Grids ---- */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.25rem, 3vw, 2.5rem); }

/* ---- Content blocks ---- */
.block { padding: 1.4rem; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.block h3 { font-size: 1.15rem; }
.tag {
  display: inline-block; font-size: 0.75rem; font-weight: 600;
  padding: 0.15rem 0.55rem; border-radius: 100px; margin-bottom: 0.6rem;
}
.tag.research { background: #e7f1f2; color: var(--accent-dk); }
.tag.dev { background: var(--sand); color: #6b5836; }

/* ---- Supported-by strip ---- */
.strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--panel); }
.strip .wrap { padding-top: 1.6rem; padding-bottom: 1.6rem; }
.logos { display: flex; flex-wrap: wrap; gap: 0.75rem 2rem; align-items: center; }
.logos span { font-weight: 600; color: var(--ink-soft); font-size: 0.9rem; }

/* ---- People (smaller photos; sizes vary by group) ---- */
.people-group { margin-top: 2.25rem; }
.group-label { font-size: 0.85rem; font-weight: 600; color: var(--accent); margin: 0 0 1rem; }
.people-grid { display: grid; gap: 1.5rem 1.75rem; }
.person { text-align: left; }
.person .avatar {
  aspect-ratio: 1/1; border-radius: 8px; background: var(--panel);
  display: flex; align-items: center; justify-content: center;
  color: var(--ink-soft); font-family: "Inter", sans-serif; font-size: 0.75rem;
  margin-bottom: 0.6rem; border: 1px solid var(--line); overflow: hidden;
}
.person .avatar img { width: 100%; height: 100%; object-fit: cover; }
.person h3 { margin-bottom: 0.1rem; font-size: 1rem; }
.person .role { font-size: 0.82rem; color: var(--accent); margin-bottom: 0.35rem; }
.person p.muted { font-size: 0.92rem; margin: 0; }

/* Photo-size tiers: postdocs largest, then trainees, mentors smaller */
.tier-lead   .people-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.tier-lead   .avatar { max-width: 150px; }
.tier-mid    .people-grid { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
.tier-mid    .avatar { max-width: 120px; }
.tier-small  .people-grid { grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); }
.tier-small  .avatar { max-width: 104px; }
/* Collaborators: name + optional logo, no photo box */
.collab-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1rem 1.5rem; }
.collab { padding: 1rem 1.1rem; border: 1px solid var(--line); border-radius: 8px; }
.collab h3 { font-size: 0.98rem; }
.collab .role { font-family:"Inter",sans-serif; font-size: 0.82rem; color: var(--ink-soft); }

/* ---- List entries (publications / news) ---- */
.entry { padding: 1.25rem 0; border-bottom: 1px solid var(--line); }
.entry:first-of-type { padding-top: 0; }
.entry .date { font-size: 0.82rem; color: var(--ink-soft); }
.entry h3 { margin-top: 0.25rem; }
.entry p { font-size: 0.95rem; }

/* ---- Contact (aligned like other pages — single column, not split) ---- */
.contact-line { margin-bottom: 0.6rem; }
.contact-line strong { display: inline-block; min-width: 5.5rem; color: var(--ink-soft); font-weight: 500; }

/* ---- Footer ---- */
footer { border-top: 1px solid var(--line); background: #fff; font-size: 0.88rem; color: var(--ink-soft); }
footer .wrap { padding-top: 1.6rem; padding-bottom: 1.6rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }
footer a { color: var(--ink-soft); }
footer nav ul { gap: 1rem; }

/* ---- Regulatory notice ---- */
.notice {
  font-family: "Inter", sans-serif; font-size: 0.85rem; color: var(--ink-soft);
  background: var(--panel); border-left: 3px solid var(--accent);
  padding: 0.8rem 1rem; border-radius: 0 6px 6px 0; margin: 1.1rem 0;
}

/* ---- Responsive ---- */
@media (max-width: 720px) {
  .grid-2 { grid-template-columns: 1fr; }
  nav ul {
    display: none; position: absolute; top: 60px; left: 0; right: 0;
    flex-direction: column; background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 1rem var(--gutter); gap: 0.9rem;
  }
  nav ul.open { display: flex; }
  .nav-toggle {
    display: block; background: none; border: 1px solid var(--line); border-radius: 6px;
    font-family: "Inter", sans-serif; font-size: 0.9rem; padding: 0.4rem 0.7rem; cursor: pointer; color: var(--ink);
  }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* ---- Contact form ---- */
.field { margin-bottom: 1.1rem; }
.field label {
  display: block; font-family: "Inter", sans-serif; font-size: 0.9rem;
  font-weight: 500; color: var(--ink); margin-bottom: 0.35rem;
}
.field input, .field textarea {
  width: 100%; font-family: "Inter", sans-serif; font-size: 1rem; color: var(--ink);
  background: #fff; border: 1px solid var(--line); border-radius: 6px;
  padding: 0.6rem 0.7rem; -webkit-appearance: none;
}
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(15,107,116,0.12);
}
.field textarea { resize: vertical; min-height: 7rem; }
.form-note {
  font-family: "Inter", sans-serif; font-size: 0.82rem; color: var(--ink-soft);
  margin-top: 0.75rem;
}

/* ---- Home hero: text + circular eye ---- */
.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}
.hero-text { max-width: 60ch; }
.hero-media { display: flex; justify-content: flex-start; } /* sit left in its column, not far right */
.eye-circle {
  width: 100%;
  max-width: 280px;            /* smaller than before */
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}
@media (max-width: 760px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-media { order: -1; justify-content: center; }  /* eye on top, centered when stacked */
  .eye-circle { max-width: 220px; }
}
