@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&display=swap');

/* ---------------------------------------------------------------------- */
/* Reset & tokens                                                          */
/* ---------------------------------------------------------------------- */

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

:root {
  --bg: #ffffff;
  --text: #111111;
  --text-secondary: #444444;
  --text-muted: #888888;
  --border: #e0e0e0;
  --accent-soft: #f5f5f5; /* active tab fill */
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 400;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: opacity 0.15s;
}

a:hover {
  opacity: 0.5;
}

.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 28px 32px;
}

/* ---------------------------------------------------------------------- */
/* Header                                                                  */
/* ---------------------------------------------------------------------- */

.header {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-bottom: 20px;
}

.header-text {
  flex: 0 0 63%;
}

.header-photo {
  flex: 0 0 37%;
}

.header-photo img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

.name {
  font-size: 2.0rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 8px;
}

.bio p {
  font-size: 14px;
  font-weight: 300;
  line-height: 1.4;
  color: var(--text);
  margin-bottom: 6px;
}

.bio p:last-of-type {
  margin-bottom: 0;
}

.social-icons {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  margin-top: 10px;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
}

.social-link i {
  font-size: 13px;
  color: var(--text-muted);
}

.social-sep {
  color: var(--border);
}

/* ---------------------------------------------------------------------- */
/* Section headers                                                         */
/* ---------------------------------------------------------------------- */

.section-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.section-title {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--text);
  text-transform: uppercase;
  white-space: nowrap;
}

.section-line {
  flex: 1;
  height: 1px;
  background: var(--border);
}

section {
  margin-bottom: 48px;
}

/* ---------------------------------------------------------------------- */
/* Year groups & category tags                                             */
/* ---------------------------------------------------------------------- */

.year-group {
  margin-bottom: 8px;
}

.year-heading {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  margin: 32px 0 12px;
}

.year-group:first-child .year-heading {
  margin-top: 0;
}

.tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2px 8px;
  margin-bottom: 8px;
}

/* ---------------------------------------------------------------------- */
/* Category filter                                                         */
/* ---------------------------------------------------------------------- */

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 24px;
}

.filter-btn {
  font-family: inherit;
  padding: 4px 12px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: none;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.15s, background 0.15s, border-color 0.15s;
}

.filter-btn:hover {
  color: var(--text);
}

.filter-btn.active {
  background: var(--accent-soft);
  color: var(--text);
  border-color: var(--text-muted);
}

.filter-btn:focus-visible {
  outline: 2px solid var(--text-muted);
  outline-offset: 2px;
}

/* ---------------------------------------------------------------------- */
/* Research entry cards                                                    */
/* ---------------------------------------------------------------------- */

.entry {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  padding: 22px 0;
  border-bottom: 1px solid var(--border);
}

.entry[hidden],
.year-group[hidden] {
  display: none;
}

.entry:first-child {
  border-top: 1px solid var(--border);
}

.entry-body {
  flex: 1;
  min-width: 0;
}

.entry h3 {
  font-size: 15px;
  font-weight: 500;
  line-height: 1.3;
  margin-bottom: 6px;
}

.entry h3 a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.authors {
  font-size: 14px;
  line-height: 1.4;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.authors strong {
  font-weight: 600;
  color: var(--text);
}

.entry-meta {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.entry-meta .venue {
  font-weight: 600;
  color: var(--text);
}

.entry-meta .year {
  color: var(--text-muted);
}

.entry-links a {
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
}

.entry-links i {
  margin-right: 3px;
  color: var(--text-muted);
}

.abstract {
  font-size: 12px;
  font-style: italic;
  line-height: 1.4;
  color: var(--text-secondary);
  margin-top: 8px;
}

.award-badge {
  display: inline-block;
  background: #eee09e;
  color: #4f5357;
  font-size: 10px;
  font-weight: 500;
  padding: 3px 7px;
  margin-left: 6px;
  border-radius: 8px;
}

.award-badge i {
  margin-right: 3px;
}

.footnote {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 16px;
}

/* Entries without a thumbnail span full width */
.entry.no-thumb .entry-body {
  flex: 1 1 100%;
}

/* ---------------------------------------------------------------------- */
/* Footer                                                                   */
/* ---------------------------------------------------------------------- */

.footer {
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
  padding-top: 24px;
}

/* ---------------------------------------------------------------------- */
/* Responsive                                                               */
/* ---------------------------------------------------------------------- */

@media (max-width: 700px) {
  .container {
    padding: 48px 20px;
  }

  .name {
    font-size: 1.5rem;
  }

  .header {
    flex-direction: column-reverse;
    align-items: flex-start;
    gap: 20px;
  }

  .header-text,
  .header-photo {
    flex: 1 1 auto;
    width: 100%;
  }

  .header-photo {
    max-width: 140px;
  }

  .entry {
    flex-direction: column;
  }
}

@media (max-width: 600px) {
  .social-icons {
    gap: 6px 12px;
  }

  .social-link {
    font-size: 13px;
  }
}

@media (max-width: 500px) {
  .container {
    padding: 32px 16px;
  }

  .name {
    font-size: 1.3rem;
  }
}
