/* Clean, aligned, minimal academic layout */

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

/* Base */
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: #1b1b1f;
  background: #f5f5f7;
  padding: 24px 0;
}

/* Unified wrapper */
.wrapper {
  width: 94%;        /* text takes 94% of screen */
  margin: 0 3%;      /* 3% left, 3% right */
  background: #ffffff;
  border: 1px solid #e1e1e5;
  border-radius: 6px;
  padding: 10px 14px;
}

/* Container inside sections */
.container {
  max-width: 900px;
  margin: 0 auto;
}

/* Header bar with nav + icons */
.header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

/* Navigation */
.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
}

.nav a {
  color: #444a55;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-decoration: none;
}

.nav a:hover {
  color: #000000;
}

/* Icon bar on the right */
.icon-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
}

.icon-bar a {
  color: #444a55;
  text-decoration: none;
}

.icon-bar a:hover {
  color: #000000;
}

.icon-bar svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.icon-text {
  font-weight: 500;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

/* Sections */
.section {
  padding: 16px 0;
  border-bottom: 1px solid #e8e8eb;
}

.section:last-of-type {
  border-bottom: none;
}

.section.alt {
  background: transparent;
}

/* Typography */
h1 {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 6px;
}

.subtitle {
  font-size: 15px;
  font-style: italic;
  color: #6a6f7d;
  margin-bottom: 10px;
}

h2 {
  font-size: 18px;
  font-weight: 600;
  padding-bottom: 4px;
  border-bottom: 1px solid #dcdce0;
  margin-bottom: 12px;
}

h3 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 6px;
}

p {
  font-size: 15px;
  margin-bottom: 12px;
}

.muted {
  font-size: 13px;
  color: #6a6f7d;
}

/* Lists */
ul {
  margin-left: 20px;
  margin-bottom: 10px;
}

li {
  margin-bottom: 6px;
  font-size: 15px;
}

/* Talks bullet style */
.list-simple {
  list-style: none;
  margin-left: 0;
}

.list-simple li::before {
  content: "– ";
}

/* Publications with thumbnails */
.pub-list {
  margin-top: 12px;
}

.pub-entry {
  display: grid;
  grid-template-columns: 140px auto;
  gap: 16px;
  margin-bottom: 24px;
  align-items: flex-start;
}

.pub-thumb {
  width: 140px;
  border-radius: 6px;
  border: 1px solid #e1e1e5;
  object-fit: cover;
}

.pub-text {
  font-size: 14px;
}

.pub-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 3px;
}

.pub-meta {
  margin-bottom: 4px;
}

.pub-links a {
  font-size: 14px;
}

/* Footer */
.site-footer {
  margin-top: 20px;
  font-size: 13px;
  color: #6a6f7d;
}


/* === HERO ROW THAT NEVER WRAPS === */
.hero-row {
  display: flex;
  flex-wrap: nowrap;          /* NEVER wrap */
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.hero-main {
  flex: 1 1 auto;             /* allow text block to shrink */
  min-width: 0;               /* <-- THE MAGIC FIX */
}

.hero-photo {
  width: 150px;               /* your desired size */
  height: 150px;
  object-fit: cover;
  border-radius: 10px;
  border: 2px solid #e1e1e5;
  flex-shrink: 0;             /* do NOT shrink image */
}

