/* ssl-projectpage-template — monochrome, minimalist stylesheet.
   See ../../AA-WEBPAGESTYLEGUIDE.md §1b/§7 for the design philosophy and
   the list of parameters (site identity, logo, lab link-back) to change when
   forking this for a new project. */

:root {
  --ink:        #1a1a1a;   /* primary text */
  --ink-soft:   #4d4d4d;   /* secondary text */
  --ink-faint:  #8a8a8a;   /* muted / meta */
  --line:       #e4e4e4;   /* hairlines, borders */
  --panel:      #f7f7f7;   /* subtle panel fill */
  --bg:         #ffffff;   /* page ground */
  --accent:     #1a1a1a;   /* links / emphasis (monochrome by default) */
  --maxw:       880px;
  --radius:     10px;
  --pad:        clamp(1.25rem, 4vw, 2.5rem);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
          Arial, "Helvetica Neue", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ---------- Layout ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad); }

main { padding: clamp(2.5rem, 7vw, 4.5rem) 0 4rem; }

section { margin: 0 0 clamp(2.5rem, 6vw, 3.75rem); }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav {
  max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad);
  display: flex; align-items: center; gap: 1.5rem;
  min-height: 64px;
}
.brand { display: flex; align-items: center; gap: 0.6rem; margin-right: auto; text-decoration: none; }
.brand img { height: 30px; width: auto; display: block; }
.brand .brand-name { font-weight: 700; letter-spacing: -0.01em; color: var(--ink); font-size: 1.05rem; }
.nav a.navlink {
  text-decoration: none; color: var(--ink-soft); font-size: 0.95rem;
  font-weight: 500; padding: 0.25rem 0; position: relative;
}
.nav a.navlink:hover { color: var(--ink); }
.nav a.navlink[aria-current="page"] { color: var(--ink); }
.nav a.navlink[aria-current="page"]::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px;
  height: 2px; background: var(--ink);
}

/* ---------- Hero ---------- */
.hero { padding: clamp(2rem, 6vw, 3.5rem) 0 1rem; }
.hero-head {
  display: flex; align-items: center; gap: clamp(1rem, 3vw, 1.75rem);
  margin: 0 0 1.5rem;
}
.hero img.hero-logo {
  width: clamp(88px, 18vw, 128px); height: auto; flex: 0 0 auto; display: block;
}
.hero-title { min-width: 0; }
.hero h1 {
  font-size: clamp(2rem, 5vw, 2.9rem); line-height: 1.1; margin: 0 0 0.4rem;
  letter-spacing: -0.025em; font-weight: 700;
}
.hero .tagline {
  font-size: clamp(1.05rem, 2.4vw, 1.3rem); color: var(--ink-soft);
  margin: 0; font-weight: 400;
}
.hero p.lede { font-size: 1.1rem; color: var(--ink-soft); max-width: 64ch; }

/* ---------- Headings ---------- */
h2.section-title {
  font-size: 1.5rem; letter-spacing: -0.015em; margin: 0 0 1.5rem;
  padding-bottom: 0.6rem; border-bottom: 1px solid var(--line); font-weight: 700;
}
a { color: var(--accent); text-underline-offset: 2px; }
a:hover { text-decoration: underline; }

/* ---------- News ---------- */
.news-list { display: flex; flex-direction: column; gap: 1.5rem; }
.news-item { padding: 0 0 1.5rem; border-bottom: 1px solid var(--line); }
.news-item:last-child { border-bottom: 0; }
.news-item time { display: block; font-size: 0.82rem; color: var(--ink-faint);
  text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 0.35rem; }
.news-item h3 { margin: 0 0 0.4rem; font-size: 1.15rem; font-weight: 650; }
.news-item p { margin: 0; color: var(--ink-soft); }

/* ---------- People ---------- */
.people-grid {
  display: grid; gap: 1.5rem;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}
.person {
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.25rem; background: var(--bg);
}
.person .avatar {
  width: 56px; height: 56px; border-radius: 50%; object-fit: cover;
  background: var(--panel); margin-bottom: 0.85rem; display: block;
  border: 1px solid var(--line);
}
.person .avatar.placeholder {
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; color: var(--ink-faint); font-size: 1.1rem;
}
.person h3 { margin: 0 0 0.15rem; font-size: 1.05rem; }
.person .role { margin: 0 0 0.6rem; color: var(--ink-faint); font-size: 0.9rem; }
.person p.bio { margin: 0 0 0.6rem; font-size: 0.92rem; color: var(--ink-soft); }
.person .links a { font-size: 0.85rem; margin-right: 0.75rem; }

/* ---------- Publications ---------- */
.pub-list { display: flex; flex-direction: column; gap: 1.4rem; }
.pub {
  padding: 0 0 1.4rem; border-bottom: 1px solid var(--line);
  display: grid; grid-template-columns: 56px 1fr; gap: 1rem;
}
.pub:last-child { border-bottom: 0; }
.pub .year {
  font-weight: 700; color: var(--ink-faint); font-size: 0.95rem; padding-top: 0.1rem;
}
.pub h3 { margin: 0 0 0.25rem; font-size: 1.05rem; font-weight: 650; line-height: 1.4; }
.pub .authors { margin: 0 0 0.2rem; font-size: 0.92rem; color: var(--ink-soft); }
.pub .venue { margin: 0 0 0.5rem; font-size: 0.9rem; color: var(--ink-faint); font-style: italic; }
.pub .links a { font-size: 0.85rem; margin-right: 0.75rem; }

/* ---------- Empty state ---------- */
.empty { color: var(--ink-faint); font-style: italic; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line); margin-top: 2rem;
  padding: 2rem 0; color: var(--ink-faint); font-size: 0.88rem;
}
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; align-items: center; }
.site-footer a { color: var(--ink-soft); }

/* Lab link-back credit (AA-WEBPAGESTYLEGUIDE.md §7.3). Omit the whole <a> in
   the HTML for a project with no lab affiliation. */
.lab-credit { display: inline-flex; align-items: center; gap: 0.4em; }
.lab-icon   { height: 1em; width: auto; display: inline-block; }

/* ---------- Responsive nav ---------- */
@media (max-width: 540px) {
  .nav { gap: 1rem; flex-wrap: wrap; min-height: 56px; padding-top: 0.5rem; padding-bottom: 0.5rem; }
  .brand .brand-name { display: none; }
  body { font-size: 16px; }
}
