/* ==========================================================================
   Jon Barron / leonidk-style academic homepage
   Semantic flexbox layout, no CSS framework.
   ========================================================================== */

:root {
  --ink: #1a1a1a;
  --muted: #666;
  --faint: #999;
  --link: #2a6ebb;
  --border: #e0e5ec;
  --rule: #ececec;
  --tile: #fff;
  --thumb-w: 195px;
  --thumb-h: 138px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 820px;
  margin: 0 auto;
  padding: 48px 24px 64px;
}

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

h1 {
  font-size: 32px;
  font-weight: 500;
  margin: 0 0 6px;
}
h2 {
  font-size: 22px;
  font-weight: 500;
  margin: 40px 0 4px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--rule);
}

/* ===== Intro / bio ===== */
.intro {
  display: flex;
  gap: 28px;
  align-items: flex-start;
}
.intro-text {
  flex: 1;
  min-width: 0;
}
.intro-text p {
  margin: 0 0 14px;
}
.avatar {
  flex: 0 0 auto;
  width: 170px;
  height: 170px;
  border-radius: 50%;
  object-fit: cover;
  background: #eee;
}
.links {
  font-size: 15px;
  color: var(--muted);
  text-align: center;
}

/* ===== Gradient divider ===== */
hr.style-two {
  border: 0;
  height: 1px;
  margin: 26px 0;
  background-image: linear-gradient(
    to right,
    rgba(0, 0, 0, 0),
    rgba(0, 0, 0, 0.85),
    rgba(0, 0, 0, 0)
  );
}

.ack {
  font-size: 15px;
  color: #555;
  margin: 0;
}

/* ===== Content rows (publications / projects / experience) ===== */
.row {
  display: flex;
  gap: 22px;
  align-items: flex-start;
  padding: 14px 0;
}
.thumb-cell {
  flex: 0 0 var(--thumb-w);
  width: var(--thumb-w);
  align-self: center;
}
.entry {
  flex: 1;
  min-width: 0;
}

/* Placeholder thumbnail (labelled) */
.thumb {
  width: var(--thumb-w);
  height: var(--thumb-h);
  border-radius: 6px;
  background: var(--tile);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
}
.thumb::after {
  content: attr(data-label);
  font-size: 12px;
  color: #8a97a8;
  text-align: center;
  padding: 4px;
}

/* Photo carousel thumbnail */
.carousel {
  position: relative;
  width: var(--thumb-w);
  height: var(--thumb-h);
  border-radius: 6px;
  border: 1px solid var(--border);
  overflow: hidden;
  background: var(--tile);
}
.carousel img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.carousel img.active,
.carousel img:only-child {
  opacity: 1;
}
.dots {
  position: absolute;
  bottom: 6px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 5px;
  z-index: 2;
}
.dots button {
  width: 7px;
  height: 7px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
  box-shadow: 0 0 2px rgba(0, 0, 0, 0.5);
  cursor: pointer;
}
.dots button.active {
  background: #fff;
}

/* Interactive project visuals (canvas) */
.viz {
  width: var(--thumb-w);
  height: var(--thumb-h);
  display: block;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--tile);
  cursor: pointer;
  transition:
    box-shadow 0.2s ease,
    transform 0.2s ease;
}
.viz:hover {
  box-shadow: 0 3px 14px rgba(20, 40, 80, 0.18);
  transform: translateY(-1px);
  border-color: #b7c2d4;
}

/* ===== Entry typography ===== */
.title {
  font-weight: 600;
  color: #111;
}
.authors {
  font-size: 15px;
  color: #444;
}
.venue {
  font-size: 15px;
  color: var(--muted);
}
.pubdate {
  font-size: 13px;
  color: var(--faint);
}
.publinks {
  font-size: 14px;
}
.desc {
  font-size: 15px;
  color: #333;
}
.date {
  font-size: 14px;
  color: var(--faint);
  float: right;
}
.award {
  font-size: 13px;
  color: #b8860b;
  font-weight: 600;
}
.role {
  font-size: 13px;
  color: #888;
  margin-top: 2px;
}
.summary {
  font-size: 15px;
  color: #333;
  margin: 6px 0 0;
}

/* ===== Footer ===== */
.footer {
  margin-top: 48px;
  font-size: 13px;
  color: #aaa;
  text-align: center;
}

/* ===== Responsive ===== */
@media (max-width: 600px) {
  .intro {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .avatar {
    width: 140px;
    height: 140px;
  }
  .thumb-cell {
    display: none;
  }
  .date {
    float: none;
    display: block;
  }
}
