*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #f8f9fa;
  --surface: #ffffff;
  --border: #e2e6ea;
  --text: #212529;
  --muted: #6c757d;
  --accent: #1a6faf;
  --accent-light: #e8f2fa;
  --radius: 8px;
  --shadow: 0 1px 4px rgba(0,0,0,0.08);
  --shadow-md: 0 3px 12px rgba(0,0,0,0.10);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
}

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

/* NAV */
nav {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow);
}
.nav-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 4px;
  height: 52px;
}
.nav-brand {
  font-weight: 600;
  font-size: 15px;
  color: var(--text);
  margin-right: auto;
  white-space: nowrap;
}
.nav-brand:hover { text-decoration: none; color: var(--accent); }
nav a.nav-link {
  font-size: 13.5px;
  color: var(--muted);
  padding: 6px 10px;
  border-radius: 5px;
  transition: background 0.15s, color 0.15s;
}
nav a.nav-link:hover, nav a.nav-link.active {
  background: var(--accent-light);
  color: var(--accent);
  text-decoration: none;
}

/* PAGE WRAPPER */
.page { max-width: 960px; margin: 0 auto; padding: 40px 24px 80px; }

/* HERO */
.hero {
  display: flex;
  gap: 36px;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
  margin-bottom: 32px;
}
.hero-photo {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 3px solid var(--border);
}
.hero-body { flex: 1; }
.hero-name { font-size: 24px; font-weight: 700; margin-bottom: 2px; }
.hero-role { color: var(--accent); font-size: 15px; font-weight: 500; margin-bottom: 4px; }
.hero-org { color: var(--muted); font-size: 13.5px; margin-bottom: 14px; }
.hero-links { display: flex; flex-wrap: wrap; gap: 8px; }
.hero-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 4px 12px;
  transition: border-color 0.15s, color 0.15s;
}
.hero-link:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }

/* GRID */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 32px;
}
.grid-2 {
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: 20px;
  margin-bottom: 32px;
}
@media (max-width: 700px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .hero { flex-direction: column; gap: 20px; }
}

/* CARD */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
}
.card-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--muted);
  margin-bottom: 14px;
}
.tag-list { display: flex; flex-wrap: wrap; gap: 6px; }
.tag {
  background: var(--accent-light);
  color: var(--accent);
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 20px;
  font-weight: 500;
}

/* BIO SECTION */
.section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 32px;
  box-shadow: var(--shadow);
  margin-bottom: 32px;
}
.section h2 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 14px;
  color: var(--text);
  border-bottom: 2px solid var(--accent);
  display: inline-block;
  padding-bottom: 2px;
}
.section p { margin-bottom: 12px; color: var(--text); }
.section p:last-child { margin-bottom: 0; }
.section ul, .section ol { padding-left: 20px; margin-bottom: 12px; }
.section li { margin-bottom: 5px; }

/* PUB LIST */
.pub-list { list-style: none; padding: 0; }
.pub-item {
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.pub-item:last-child { border-bottom: none; padding-bottom: 0; }
.pub-title { font-weight: 600; font-size: 14.5px; margin-bottom: 3px; }
.pub-venue { font-size: 13px; color: var(--muted); margin-bottom: 5px; }
.pub-links { display: flex; gap: 8px; flex-wrap: wrap; }
.pub-link {
  font-size: 12px;
  background: var(--accent-light);
  color: var(--accent);
  padding: 2px 10px;
  border-radius: 12px;
  border: 1px solid #c9def0;
}
.pub-link:hover { background: var(--accent); color: #fff; text-decoration: none; }

.section-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin: 20px 0 10px;
}
.section-label:first-child { margin-top: 0; }

/* PAGE HEADER */
.page-header {
  margin-bottom: 28px;
}
.page-header h1 {
  font-size: 26px;
  font-weight: 700;
}
.page-header p { color: var(--muted); margin-top: 4px; }

/* SELECTED PUBS ON HOME */
.sel-pub {
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}
.sel-pub:last-child { border-bottom: none; }
.sel-pub strong { display: block; font-weight: 600; margin-bottom: 2px; }
.sel-pub span { color: var(--muted); font-size: 13px; }

/* CONTACT CARD */
.contact-item { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; font-size: 14px; color: var(--muted); }
.contact-item a { color: var(--text); }
.contact-item:last-child { margin-bottom: 0; }
