/* GAM:BIT project site — project-site family per AA-WEBPAGESTYLEGUIDE.md §1b/§7:
   monochrome-leaning, minimalist, sans-serif, zero build. Keep the variable
   NAMES/ROLES identical across all project sites even if values differ. */

:root {
  --ink:       #16212c;   /* primary text */
  --ink-soft:  #4a5a6a;   /* secondary text */
  --ink-faint: #8494a4;   /* tertiary text, metadata, footer */
  --line:      #dde4ea;   /* hairline borders */
  --panel:     #f2f5f8;   /* card / pill background tint */
  --bg:        #ffffff;   /* page background */
  --accent:    #2b5c8a;   /* single accent tint, drawn from the logo blues */
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  line-height: 1.6;
}

.wrap { max-width: 920px; margin: 0 auto; padding: 0 1.25rem; }

/* Sticky, blurred header (the "app-like" touch of the project-site family) */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; align-items: center; gap: 1rem;
  padding-top: 0.6rem; padding-bottom: 0.6rem;
}
.brand { display: flex; align-items: center; gap: 0.55rem; text-decoration: none; color: var(--ink); }
.brand img { height: 28px; width: 28px; }
.brand-name { font-weight: 700; letter-spacing: 0.02em; }
nav.site-nav { margin-left: auto; display: flex; gap: 1.1rem; }
nav.site-nav a {
  color: var(--ink-soft); text-decoration: none;
  font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.08em;
  padding: 0.2rem 0; border-bottom: 2px solid transparent;
}
nav.site-nav a:hover { color: var(--ink); }
nav.site-nav a.active { color: var(--accent); border-bottom-color: var(--accent); }

/* Hero (home page) */
.hero { text-align: center; padding: 3rem 0 1.5rem; }
.hero-logo { width: 128px; height: 128px; }
.hero h1 { margin: 0.8rem 0 0.3rem; font-size: 2.4rem; letter-spacing: 0.03em; }
.hero .tagline { color: var(--ink-soft); font-size: 1.1rem; margin: 0; }
.hero .lede { max-width: 640px; margin: 1.2rem auto 0; color: var(--ink-soft); }

/* Plain page headers */
.page-head { padding: 2.4rem 0 0.4rem; }
.page-head h1 { margin: 0 0 0.2rem; }
.page-head .subtitle { color: var(--ink-soft); margin: 0; }

h2 { margin-top: 2.2rem; }
a { color: var(--accent); }

/* Cards — a card is always a link out, never a dead end (style guide §4) */
.teasers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin: 2rem 0; }
.teaser-card, .card {
  border: 1px solid var(--line); border-radius: 10px;
  background: var(--panel); padding: 1rem 1.2rem;
}
.teaser-card h2 { margin: 0 0 0.4rem; font-size: 1.1rem; }
.teaser-card p { margin: 0 0 0.6rem; font-size: 0.92rem; color: var(--ink-soft); }
.view-all { font-weight: 600; text-decoration: none; }

/* News */
.news-item { border-bottom: 1px solid var(--line); padding: 0.9rem 0; }
.news-item:last-child { border-bottom: none; }
.news-date { color: var(--ink-faint); font-size: 0.82rem; }
.news-item h3 { margin: 0.15rem 0 0.3rem; font-size: 1.02rem; }
.news-item p { margin: 0; color: var(--ink-soft); }

/* People */
.person { display: flex; gap: 1rem; align-items: center; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); padding: 0.9rem 1.1rem; margin: 0.8rem 0; }
.person .avatar {
  width: 56px; height: 56px; border-radius: 50%; flex: none;
  background: var(--accent); color: #fff; display: flex;
  align-items: center; justify-content: center; font-size: 1.4rem; font-weight: 700;
}
.person img.avatar { object-fit: cover; }
.person h3 { margin: 0; font-size: 1.05rem; }
.person .role { color: var(--ink-faint); font-size: 0.85rem; }
.person p { margin: 0.25rem 0 0; font-size: 0.92rem; color: var(--ink-soft); }
.person .links a { margin-right: 0.7rem; font-size: 0.85rem; }

/* Publications */
.pub { border-bottom: 1px solid var(--line); padding: 0.9rem 0; }
.pub .venue { color: var(--ink-faint); font-size: 0.85rem; }
.pub h3 { margin: 0 0 0.15rem; font-size: 1.02rem; }
.pub .authors { color: var(--ink-soft); font-size: 0.92rem; }
.empty-note { color: var(--ink-faint); font-style: italic; }

/* Footer */
footer.site-footer {
  margin-top: 3.5rem; border-top: 1px solid var(--line);
  padding: 1.4rem 0 2.2rem; color: var(--ink-faint); font-size: 0.85rem;
}
footer.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; justify-content: space-between; }
footer.site-footer a { color: var(--ink-soft); text-decoration: none; }
footer.site-footer a:hover { color: var(--ink); }
.lab-credit { display: inline-flex; align-items: center; gap: 0.4em; }
.lab-icon { height: 1em; width: auto; display: inline-block; }

@media (max-width: 640px) {
  .teasers { grid-template-columns: 1fr; }
  .hero h1 { font-size: 1.9rem; }
}
