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

:root {
  --accent: #0f766e;          /* change this one line to re-theme the whole site */
  --text: #000;
  --muted: #6c757d;
  --light-gray: #e9ecef;
  --font: 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --nav-h: 56px;
}

html { scroll-behavior: smooth; }

body {
  background: #fff;
  color: var(--text);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

/* ── NAV ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: #fff;
  border-bottom: 1px solid #f0f0f0;
  z-index: 100;
  display: flex;
  align-items: center;
  padding: 0 2rem;
}
.nav-brand {
  font-size: 1.05rem;
  font-weight: 400;
  color: var(--text);
  text-decoration: none;
  margin-right: auto;
}
.nav-brand strong { font-weight: 700; }
.nav-brand:hover { text-decoration: none; }
.nav-links { display: flex; gap: 1.75rem; list-style: none; }
.nav-links a { font-size: 0.95rem; color: var(--text); text-decoration: none; }
.nav-links a:hover, .nav-links a.active { color: var(--accent); text-decoration: none; }

/* ── PAGE ── */
.page {
  max-width: 900px;
  margin: 0 auto;
  padding: calc(var(--nav-h) + 2.5rem) 2rem 4rem;
}

h1.page-title {
  font-size: 2rem;
  font-weight: 300;
  color: var(--text);
  margin-bottom: 2rem;
}

/* ── ABOUT ── */
.about-name {
  font-size: 2.5rem;
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}
.about-name strong { font-weight: 700; }
.about-body { overflow: hidden; }
.about-body p { margin-bottom: 1rem; }
.about-body p:last-child { margin-bottom: 0; }

.profile-photo {
  float: right;
  width: 270px;
  margin: 0 0 1.5rem 2.5rem;
  border-radius: 4px;
  display: block;
}
.profile-photo-placeholder {
  float: right;
  width: 270px;
  height: 310px;
  margin: 0 0 1.5rem 2.5rem;
  border-radius: 4px;
  background: #f5f5f5;
  border: 1px solid #e0e0e0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.5rem;
  color: #bbb;
  font-size: 0.82rem;
  text-align: center;
}
.profile-photo-placeholder svg { width: 48px; height: 48px; opacity: 0.25; }

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.5rem;
  clear: both;
}
.social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.85rem;
  color: var(--muted);
  border: 1px solid #ccc;
  border-radius: 4px;
  padding: 0.22rem 0.65rem;
  text-decoration: none;
  transition: color 0.13s, border-color 0.13s;
}
.social-link:hover { color: var(--accent); border-color: var(--accent); text-decoration: none; }
.social-link svg { width: 14px; height: 14px; flex-shrink: 0; }

/* ── SECTION HEADS ── */
h2.sub-head {
  font-size: 1.85rem;
  font-weight: 300;
  margin: 3rem 0 1.2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--light-gray);
}
.view-all {
  font-size: 0.85rem;
  color: var(--accent);
  margin-left: 0.75rem;
  font-weight: 400;
}

/* ── NEWS TABLE ── */
.news-table { width: 100%; border-collapse: collapse; }
.news-table td {
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--light-gray);
  vertical-align: top;
  font-size: 0.95rem;
}
.news-table tr:last-child td { border-bottom: none; }
.news-table .date-cell {
  width: 140px;
  white-space: nowrap;
  font-weight: 700;
  padding-right: 2rem;
  color: var(--text);
}

/* ── PUBLICATIONS ── */
.pub-filter {
  width: 100%;
  max-width: 360px;
  padding: 0.5rem 0.85rem;
  font-size: 0.95rem;
  font-family: var(--font);
  border: 1px solid #ccc;
  border-radius: 4px;
  outline: none;
  margin-bottom: 1.5rem;
  color: var(--text);
}
.pub-filter:focus { border-color: var(--accent); }

.pub-year-group { margin-bottom: 2rem; }
.pub-year-label {
  font-size: 2.5rem;
  font-weight: 300;
  color: #d0d0d0;
  text-align: right;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
  line-height: 1;
}
.pub-item {
  display: flex;
  gap: 1.5rem;
  padding: 1rem 0;
  border-top: 1px solid var(--light-gray);
  align-items: flex-start;
}
.pub-thumb {
  width: 120px;
  height: 80px;
  flex-shrink: 0;
  object-fit: cover;
  border-radius: 3px;
  border: 1px solid #e8e8e8;
}
.pub-thumb-placeholder {
  width: 120px;
  height: 80px;
  flex-shrink: 0;
  background: #f5f5f5;
  border: 1px solid #e8e8e8;
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pub-thumb-placeholder svg { width: 28px; height: 28px; opacity: 0.2; }
.pub-details { flex: 1; min-width: 0; }
.pub-title { font-size: 1rem; font-weight: 600; color: var(--text); margin-bottom: 0.25rem; line-height: 1.45; }
.pub-authors { font-size: 0.9rem; color: var(--text); margin-bottom: 0.2rem; }
.pub-authors .me { text-decoration: underline; }
.pub-tag {
  display: inline-block;
  vertical-align: 2px;
  margin-left: 0.5rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 3px;
  padding: 0.05rem 0.4rem;
  line-height: 1.5;
}
.pub-venue { font-size: 0.9rem; color: var(--text); margin-bottom: 0.5rem; }
.pub-venue em { font-style: italic; }
.pub-buttons { display: flex; gap: 0.4rem; flex-wrap: wrap; }
.pub-btn {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text);
  border: 1px solid #aaa;
  border-radius: 3px;
  padding: 0.15rem 0.55rem;
  text-decoration: none;
  transition: background 0.13s, color 0.13s, border-color 0.13s;
}
.pub-btn:hover { background: var(--text); color: #fff; border-color: var(--text); text-decoration: none; }
.pub-item.hidden { display: none; }
.pub-year-group.empty { display: none; }

/* ── CV ── */
.cv-section { margin-bottom: 2.5rem; }
.cv-section-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  padding-bottom: 0.4rem;
  border-bottom: 2px solid var(--text);
}
.cv-entries { list-style: none; }
.cv-entry {
  display: flex;
  gap: 1.5rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--light-gray);
  font-size: 0.95rem;
}
.cv-entry:last-child { border-bottom: none; }
.cv-years { width: 155px; flex-shrink: 0; color: var(--muted); font-size: 0.875rem; padding-top: 2px; }
.cv-role { font-weight: 700; }
.cv-org { color: var(--muted); }
.cv-desc { font-size: 0.875rem; color: var(--muted); margin-top: 0.15rem; }

.cv-download-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1.5rem;
  font-size: 0.9rem;
  color: var(--text);
  border: 1px solid #aaa;
  border-radius: 4px;
  padding: 0.4rem 1rem;
  text-decoration: none;
  transition: background 0.13s, color 0.13s;
}
.cv-download-btn:hover { background: var(--text); color: #fff; text-decoration: none; }

/* ── FOOTER ── */
footer {
  background: #000;
  color: rgba(255,255,255,0.5);
  font-size: 0.82rem;
  text-align: center;
  padding: 1rem 2rem;
}

/* ── RESPONSIVE ── */
@media (max-width: 640px) {
  .profile-photo, .profile-photo-placeholder {
    float: none; width: 100%; height: 220px; margin: 0 0 1.5rem;
  }
  .pub-item { flex-direction: column; }
  .pub-thumb, .pub-thumb-placeholder { width: 100%; height: 90px; }
  .cv-entry { flex-direction: column; gap: 0.2rem; }
  .cv-years { width: auto; }
  nav { padding: 0 1rem; }
  .nav-links { gap: 1rem; }
}
