/* ── Variables ──────────────────────────────────────────────────────────────── */
:root {
  --bg:           #F9F8F5;
  --bg-card:      #FFFFFF;
  --fg:           #1C1B18;
  --fg-muted:     #6B6961;
  --accent:       #2E5EA8;
  --accent-hover: #1D4585;
  --accent-bg:    #EBF0FA;
  --border:       #E2DFD8;
  --max-w:        780px;
  --serif:  'Crimson Pro', Georgia, 'Times New Roman', serif;
  --sans:   'DM Sans', 'Helvetica Neue', Arial, sans-serif;
  --radius: 6px;
}

/* ── Reset & Base ────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

body { min-height: 100vh; display: flex; flex-direction: column; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; color: var(--accent-hover); }

ul { list-style: none; }

/* ── Navigation ──────────────────────────────────────────────────────────────── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 3.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  background: rgba(249, 248, 245, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav-brand {
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--fg);
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.nav-brand:hover { text-decoration: none; color: var(--fg); }

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--fg-muted);
  letter-spacing: 0.02em;
  padding-bottom: 2px;
  border-bottom: 1.5px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--fg);
  border-bottom-color: var(--fg);
  text-decoration: none;
}

/* ── Main content ────────────────────────────────────────────────────────────── */
main {
  flex: 1;
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 3.5rem 2rem 6rem;
}

/* ── Typography ──────────────────────────────────────────────────────────────── */
h1 {
  font-family: var(--serif);
  font-size: 2.1rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

h2 {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 600;
  margin: 2.75rem 0 1rem;
  padding-bottom: 0.45rem;
  border-bottom: 1px solid var(--border);
}

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

.description-justified { text-align: justify; }

/* ── Hero (home page) ────────────────────────────────────────────────────────── */
.hero { margin-bottom: 2.5rem; }
.hero h1 { margin-bottom: 0.3rem; }
.hero-tagline {
  font-family: var(--serif);
  font-size: 1.1rem;
  font-style: italic;
  color: var(--fg-muted);
  margin-bottom: 0.2rem;
}
.hero-meta {
  font-size: 0.85rem;
  color: var(--fg-muted);
}

/* ── News list ────────────────────────────────────────────────────────────────── */
.news-heading,
.news-list {
  max-width: 90%;
  margin-left: auto;
  margin-right: auto;
}

.news-item {
  display: grid;
  grid-template-columns: 6.5rem 1fr;
  gap: 0 1.5rem;
  padding: 0.15rem 0;
  border-bottom: 1px solid var(--border);
  align-items: start;
}
.news-item:first-child { border-top: 1px solid var(--border); }

.news-date {
  font-size: 0.78rem;
  color: var(--fg-muted);
  padding-top: 0.2rem;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.news-title {
  font-weight: 500;
  font-size: 0.95rem;
  margin-bottom: 0.2rem;
  color: var(--fg);
}
.news-title a { color: var(--fg); }
.news-title a:hover { color: var(--accent); }

.news-text {
  font-size: 0.875rem;
  color: var(--fg-muted);
  margin: 0;
  line-height: 1.55;
}

/* ── Publications ─────────────────────────────────────────────────────────────── */
.pub-year-label {
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--fg-muted);
  margin: 2.25rem 0 0.75rem;
}

.pub-item {
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--border);
}
.pub-item:first-child { border-top: 1px solid var(--border); }

.pub-title {
  font-weight: 500;
  font-size: 0.97rem;
  color: var(--fg);
  margin-bottom: 0.25rem;
  line-height: 1.45;
}
.pub-authors {
  font-size: 0.85rem;
  color: var(--fg-muted);
  margin-bottom: 0.15rem;
}
.pub-venue {
  font-size: 0.85rem;
  font-style: italic;
  color: var(--fg-muted);
  margin-bottom: 0.4rem;
}
.pub-links { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.pub-link {
  display: inline-block;
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  background: var(--accent-bg);
  color: var(--accent);
  padding: 0.15rem 0.55rem;
  border-radius: 3px;
  transition: background 0.15s, color 0.15s;
}
.pub-link:hover {
  background: var(--accent);
  color: #fff;
  text-decoration: none;
}

/* ── Members ──────────────────────────────────────────────────────────────────── */
.member-group-label {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin: 2rem 0 0.6rem;
}

.member-item {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border);
}
.member-item:first-child { border-top: 1px solid var(--border); }

.member-photo {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid var(--border);
  background: var(--accent-bg);
}

.member-info { flex: 1; min-width: 0; }

.member-name {
  font-weight: 500;
  font-size: 0.97rem;
  margin-bottom: 0.1rem;
}
.member-role {
  font-size: 0.85rem;
  color: var(--fg-muted);
  margin-bottom: 0.35rem;
}
.member-bio {
  font-size: 0.875rem;
  color: var(--fg-muted);
  margin: 0 0 0.45rem;
  line-height: 1.55;
}

.alumni-item {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.15rem 0;
  border-bottom: 1px solid var(--border);
}
.alumni-item:first-child { border-top: 1px solid var(--border); }
.alumni-item .member-name { margin-bottom: 0; }
.alumni-item .member-role { margin-bottom: 0; white-space: nowrap; }

/* ── Offers & Teaching ────────────────────────────────────────────────────────── */
.offers-intro,
.teaching-intro {
  font-size: 0.92rem;
  color: var(--fg-muted);
  margin-bottom: 2rem;
  margin-top: 0.5rem;
}

.offer-item,
.teaching-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.6rem;
  margin-bottom: 1.1rem;
  background: var(--bg-card);
}
.offer-badge,
.teaching-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: var(--accent-bg);
  color: var(--accent);
  padding: 0.18rem 0.6rem;
  border-radius: 3px;
  margin-bottom: 0.7rem;
}
.offer-title,
.teaching-title {
  font-weight: 500;
  font-size: 1.02rem;
  margin-bottom: 0.6rem;
  color: var(--fg);
}
.offer-desc,
.teaching-desc {
  font-size: 0.89rem;
  color: var(--fg-muted);
  line-height: 1.6;
  margin-bottom: 0.85rem;
}
.offer-req-label {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin-bottom: 0.35rem;
}
.offer-reqs {
  list-style: disc;
  padding-left: 1.25rem;
  font-size: 0.86rem;
  color: var(--fg-muted);
  margin-bottom: 1rem;
  line-height: 1.65;
}
.offer-reqs li { margin-bottom: 0.15rem; }
.offer-footer,
.teaching-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  font-size: 0.82rem;
  color: var(--fg-muted);
  border-top: 1px solid var(--border);
  padding-top: 0.85rem;
}
.offer-footer a,
.teaching-footer a { color: var(--accent); }

/* ── Footer ───────────────────────────────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--border);
  padding: 1.25rem 2rem;
  text-align: center;
  font-size: 0.79rem;
  color: var(--fg-muted);
  line-height: 1.7;
}

/* ── Responsive ───────────────────────────────────────────────────────────────── */
@media (max-width: 640px) {
  nav { padding: 0 1.25rem; }
  .nav-brand { font-size: 0.9rem; max-width: 55%; overflow: hidden; text-overflow: ellipsis; }
  .nav-links { gap: 1.1rem; }
  .nav-links a { font-size: 0.8rem; }
  main { padding: 2rem 1.25rem 4rem; }
  h1 { font-size: 1.65rem; }
  .news-item { grid-template-columns: 1fr; gap: 0.15rem; }
  .news-date { font-size: 0.75rem; }
}
