:root {
  --primary-color: #efbc86;
  --text-color: #333;
  --bg-color: #ffffff;
  --shaded-bg: #f9f5f1;
}
body {
  font-family: monospace;
  background-color: #fff;
  color: #000;
  font-size: 22px;
  line-height: 1.8;
  margin: 0;
  padding: 0;
}
.header {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  text-align: left;
}
.container {
  max-width: 900px;
  margin: 2rem auto;
  padding: 0 1rem;
}
.icon-bar a {
  margin-right: 2px;
  display: inline-block;
}
.light-container-full {
  width: 100%;
  background-color: var(--bg-color);
  padding: 1rem 0;
}

.light-container-full .container {
  text-align: left;
}

.shaded-container-full {
  width: 100%;
  background-color: var(--shaded-bg);
  padding: 1rem 0;
}

.shaded-container-full .container {
  text-align: left;
}

.center-img {
  text-align: center;
}
.profile {
  width: 280px;
  height: 280px;
  border-radius: 50%;
  object-fit: contain;
  background-color: var(--primary-color); 
  padding: 8px;
}
.cool-line {
  border: none;
  height: 2px;
  background: linear-gradient(to right, transparent 10%, #999 50%, transparent 90%);
  margin: 2rem 0;
}
.text {
  max-width: 900px;
  font-family: monospace;
}

.name {
  font-size: 3rem;
  font-weight: bold;
  margin: 0 0 0.5rem 0;
}
.email {
  color: var(--primary-color);            
  font-size: 1rem;      
  margin-top: 0.5rem;
}

.timeline {
  position: relative;
  margin: 0 auto;
  padding: 1 1rem;
  max-width: 900px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 1%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #000;
  transform: translateX(-50%);
}

.event {
  position: relative;
  margin: 60px 0;
}

.year {
  position: absolute;
  top: 0;
  left: 1%;
  transform: translateX(-50%);
  background: #fff;
  padding: 2px 6px;
  font-weight: bold;
  z-index: 1;
}

.content {
  margin-left: 5px;
  padding-left: 10px;
  border-left: 2px solid transparent;
}

.event .content {
position: relative;
top: 10px;
left: 1%;
transform: translateX(20px);
max-width: calc(100vw - 200px); 
word-wrap: break-word;
}

.content p {
  margin: 0;
  font-size: 0.65em;
  color: #3a3126;
}

.talks-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* 4 columns */
  gap: 1rem;
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 1rem;
}

.talk {
  aspect-ratio: 3 / 4;
  text-decoration: none;
  color: var(--text-color);
  border: 1px solid #4f4040;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  transition: box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.talk:hover {
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.talk img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.caption {
  padding: 0.5rem;
  font-size: 0.8rem;
  text-align: center;
  background-color: #fbf7f7;
}


.publications {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1rem;
}
.pub-authors {
  color: #684242;
  font-style: italic;
}
.pub-item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.65em;
  padding-bottom: 0.5rem;
}

.pub-title {
  font-weight: normal;
}

.pub-link {
  margin-left: auto;
  font-size: 0.9em;
  color: #000;
}


@media (max-width: 600px) {
  .header {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .text {
    max-width: 100%;
  }
  .talks-grid {
    max-height: 350px;
  }
  .profile {
    margin-bottom: 1rem;
  }
}
