/* ── Section structure ────────────────────────────────── */

.hp-section {
  margin-bottom: 2.5rem;
}
.hp-section > h2 {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #aaa;
  border-bottom: 1px solid #eee;
  padding-bottom: 0.35rem;
  margin-top: 0;
  margin-bottom: 1.2rem;
  font-weight: 600;
}

/* ── About ────────────────────────────────────────────── */

#about p {
  font-size: 0.88rem;
  line-height: 1.7;
  color: #444;
  margin-bottom: 0.8rem;
}
#about a { color: #555; }
#about a:hover { color: #000; }

/* ── Personal photos ──────────────────────────────────── */

.personal-photo {
  margin: 2rem 0;
}
.personal-photo img {
  width: 100%;
  border-radius: 4px;
  display: block;
}
.photo-placeholder {
  width: 100%;
  height: 200px;
  background: #fafafa;
  border: 2px dashed #ddd;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ccc;
  font-size: 0.78rem;
  font-style: italic;
}

/* ── Timeline (karpathy.ai pattern) ───────────────────── */

#history .entry {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
}
#history .timespan {
  grid-column: span 2;
  text-align: right;
  padding-right: 5px;
  padding-top: 2px;
  font-size: 0.7rem;
  color: #bbb;
  line-height: 1.4;
  white-space: nowrap;
}
#history .ico {
  grid-column: span 1;
  border-left: 2px solid #cfcfcf;
  position: relative;
}
#history .entry-dot {
  position: absolute;
  top: 0;
  left: -1px;
  transform: translateX(-50%);
  width: 12px;
  height: 12px;
  box-sizing: border-box;
  border-radius: 50%;
  background-color: #cfcfcf;
  border: 2px solid white;
}
#history .ico img {
  width: 40px;
  height: auto;
  object-fit: contain;
  margin-left: 10px;
  margin-top: 6px;
}
#history .logo-text {
  display: inline-block;
  margin-left: 10px;
  font-size: 0.62rem;
  font-weight: 700;
  color: #999;
  letter-spacing: 0.02em;
}
#history .desc {
  grid-column: span 9;
  padding-left: 20px;
  padding-bottom: 1.5rem;
}
#history .desc .org {
  font-weight: 700;
  font-size: 0.88rem;
  color: #222;
}
#history .desc .role {
  color: #777;
  font-style: italic;
  font-size: 0.78rem;
  margin-bottom: 0.35rem;
}
#history .desc ul {
  margin: 0.25rem 0 0 1rem;
  padding: 0;
  font-size: 0.78rem;
  color: #555;
}
#history .desc ul li {
  margin-bottom: 0.2rem;
  line-height: 1.55;
}
#history .desc a { color: #555; }
#history .desc a:hover { color: #000; }

/* ── Publications ─────────────────────────────────────── */

#publications .pub-item {
  border-left: 3px solid #ccc;
  padding-left: 0.75rem;
  margin-bottom: 1rem;
  font-size: 0.82rem;
  line-height: 1.55;
}
#publications .pub-title { font-weight: 600; color: #222; }
#publications .pub-venue { color: #080; font-size: 0.78rem; }
#publications .pub-authors {
  color: #888;
  font-size: 0.78rem;
  display: block;
  margin-top: 0.1rem;
}
#publications .pub-links { margin-top: 0.25rem; }
#publications .pub-links a {
  font-size: 0.75rem;
  color: #666;
  text-decoration: none;
  margin-right: 0.7rem;
  border-bottom: 1px dotted #bbb;
}
#publications .pub-links a:hover { color: #000; }

/* ── Responsive ───────────────────────────────────────── */

@media (max-width: 500px) {
  #history .timespan {
    grid-column: span 3;
    font-size: 0.62rem;
  }
  #history .desc {
    grid-column: span 8;
    padding-left: 12px;
  }
}
