:root {
  --bg: #F7F9FB;
  --surface: #FFFFFF;
  --text: #1B1F24;
  --heading: #1B3A2E;
  --accent: #2D6A4F;
  --accent-2: #D68C45;
  --muted: #5B6770;
  --border: #DDE3E8;
  --font-title: "Source Serif 4", Georgia, serif;
  --font-body: "Inter", system-ui, sans-serif;
  --radius: 12px;
  --max: 1100px;
}

* { box-sizing: border-box; }

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

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

h1, h2, h3 {
  font-family: var(--font-title);
  color: var(--heading);
  line-height: 1.2;
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2rem, 4vw, 2.8rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-top: 0; }
h3 { font-size: 1.15rem; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible {
  outline: 3px solid var(--accent-2);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Header */
.site-header {
  background: rgba(255,255,255,.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 10;
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 64px;
  flex-wrap: wrap;
}
.brand {
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--heading);
}
.site-header nav {
  display: flex;
  gap: 20px;
  margin-left: auto;
  flex-wrap: wrap;
}
.site-header nav a {
  color: var(--muted);
  font-size: .95rem;
  font-weight: 500;
}
.site-header nav a:hover { color: var(--accent); }

/* Buttons */
.btn {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 8px;
  font-size: .95rem;
  font-weight: 600;
  transition: .15s ease;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: #245741; text-decoration: none; }
.btn-ghost {
  border: 1px solid var(--border);
  color: var(--heading);
  background: var(--surface);
}
.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  text-decoration: none;
}

/* Hero */
.hero {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 40px;
  align-items: start;
  padding: 64px 0 48px;
}
.portrait {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  object-fit: cover;
}
.role { color: var(--muted); font-size: 1.05rem; margin: 0 0 16px; }
.bio { max-width: 62ch; margin: 0 0 24px; }
.actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.profiles {
  list-style: none;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  padding: 0;
  margin: 0;
}
.profiles a { font-size: .92rem; font-weight: 500; }

/* Sections */
section {
  padding: 48px 0;
  border-top: 1px solid var(--border);
}
.hint { color: var(--muted); font-size: .95rem; margin-top: -.5em; }

/* Cards */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
}
.card p { margin: 0; color: var(--muted); font-size: .97rem; }

/* Tags */
.tags {
  list-style: none;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding: 0;
  margin: 24px 0 0;
}
.tags li {
  background: #E7F1EC;
  color: #245741;
  border-radius: 999px;
  padding: 4px 12px;
  font-size: .85rem;
  font-weight: 500;
}

/* Publications */
.pubs { padding-left: 1.2em; }
.pubs li { margin-bottom: 18px; }
.badges {
  display: inline-flex;
  gap: 6px;
  margin-left: 8px;
  vertical-align: middle;
}
.badge {
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .03em;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 2px 8px;
  color: var(--muted);
  background: var(--surface);
}
.badge:hover {
  border-color: var(--accent);
  color: var(--accent);
  text-decoration: none;
}

/* Plain lists */
.plain { list-style: none; padding: 0; margin: 0; }
.plain li {
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}
.plain li:last-child { border-bottom: 0; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
  color: var(--muted);
  font-size: .9rem;
}

/* Mobile */
@media (max-width: 760px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 40px;
    gap: 24px;
  }
  .portrait { max-width: 200px; }
  .site-header nav {
    order: 3;
    width: 100%;
    margin-left: 0;
    padding-bottom: 12px;
  }
  section { padding: 36px 0; }
}