/* style.css — academic personal site */

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.65;
  background-color: #fff;
  color: #333;
  font-size: 15px;
}

.container {
  max-width: 840px;
  margin: 0 auto;
  padding: 40px 28px;
}

/* ── Navigation ── */
nav {
  margin-bottom: 32px;
  padding-bottom: 12px;
  border-bottom: 1px solid #e5e5e5;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

nav .site-name {
  font-weight: 700;
  font-size: 1.05rem;
  color: #111;
  text-decoration: none;
}

nav .site-name:hover {
  color: #111;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 24px;
}

nav a {
  text-decoration: none;
  color: #555;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.15s;
}

nav a:hover,
nav a.active {
  color: #111;
}

/* ── Profile section (two-column) ── */
.profile {
  display: flex;
  gap: 32px;
  margin-bottom: 36px;
  align-items: flex-start;
}

.profile-photo {
  flex-shrink: 0;
  width: 180px;
  height: 180px;
  border-radius: 10px;
  overflow: hidden;
}

.profile-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}

.profile-photo .photo-placeholder {
  width: 100%;
  height: 100%;
  border-radius: 10px;
  background: #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #aaa;
  font-size: 0.8rem;
}

.profile-info h1 {
  font-size: 1.65rem;
  font-weight: 700;
  color: #111;
  margin-bottom: 2px;
  letter-spacing: -0.01em;
}

.profile-info .affiliation {
  color: #555;
  font-size: 0.95rem;
  margin-bottom: 12px;
}

.profile-info p {
  color: #444;
  margin-bottom: 10px;
  font-size: 0.93rem;
}

.hiring-banner {
  background: #fff8e1;
  border-left: 3px solid #f9a825;
  padding: 8px 12px;
  border-radius: 4px;
  font-size: 0.9rem;
  color: #555;
}

.profile-links {
  list-style: none;
  display: flex;
  gap: 18px;
  margin-top: 14px;
  flex-wrap: wrap;
}

.profile-links a {
  color: #555;
  text-decoration: none;
  font-size: 0.88rem;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: color 0.15s;
}

.profile-links a:hover {
  color: #111;
}

.profile-links i {
  font-size: 1rem;
}

/* ── Sections ── */
section {
  margin-bottom: 36px;
}

h2 {
  font-size: 1.1rem;
  color: #111;
  font-weight: 700;
  margin-bottom: 16px;
  padding-bottom: 6px;
  border-bottom: 2px solid #111;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.85rem;
}

main a {
  color: #1a6dd4;
  text-decoration: none;
  transition: color 0.15s;
}

main a:hover {
  text-decoration: underline;
  color: #104a91;
}

/* ── News ── */
.news-list {
  list-style: none;
  padding: 0;
}

.news-list li {
  display: flex;
  gap: 14px;
  margin-bottom: 8px;
  font-size: 0.92rem;
  line-height: 1.5;
}

.news-date {
  color: #888;
  font-size: 0.82rem;
  flex-shrink: 0;
  min-width: 80px;
  font-variant-numeric: tabular-nums;
}

/* ── Publications ── */
.pub-list {
  list-style: none;
  padding: 0;
}

.pub-list li {
  margin-bottom: 22px;
  padding-left: 0;
}

.pub-title {
  font-weight: 600;
  color: #111;
  font-size: 0.95rem;
}

.pub-authors {
  font-size: 0.88rem;
  color: #555;
  margin: 2px 0;
}

.pub-authors strong {
  color: #111;
  font-weight: 600;
}

.pub-venue {
  font-size: 0.85rem;
  color: #888;
  font-style: italic;
  margin-bottom: 3px;
}

.pub-links {
  font-size: 0.82rem;
  margin-top: 3px;
}

.pub-links a {
  margin-right: 10px;
  font-weight: 500;
}

.pub-desc {
  font-size: 0.88rem;
  color: #555;
  margin-top: 4px;
}

/* ── Experience (compact) ── */
.exp-list {
  list-style: none;
  padding: 0;
}

.exp-list li {
  margin-bottom: 14px;
}

.exp-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px;
}

.exp-header .exp-org {
  font-weight: 600;
  color: #111;
  font-size: 0.93rem;
}

.exp-header .exp-period {
  font-size: 0.82rem;
  color: #888;
}

.exp-role {
  font-size: 0.88rem;
  color: #555;
  font-style: italic;
}

.exp-details {
  font-size: 0.88rem;
  color: #555;
  margin-top: 2px;
}

/* ── Misc list ── */
.misc-list {
  list-style: none;
  padding: 0;
}

.misc-list li {
  margin-bottom: 8px;
  font-size: 0.92rem;
  padding-left: 14px;
  position: relative;
}

.misc-list li::before {
  content: "\2022";
  position: absolute;
  left: 0;
  color: #999;
}

/* ── Education ── */
.edu-list {
  list-style: none;
  padding: 0;
}

.edu-list li {
  margin-bottom: 10px;
}

.edu-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px;
}

.edu-header .edu-school {
  font-weight: 600;
  color: #111;
  font-size: 0.93rem;
}

.edu-header .edu-period {
  font-size: 0.82rem;
  color: #888;
}

.edu-degree {
  font-size: 0.88rem;
  color: #555;
}

/* ── Blog ── */
.blog-toc {
  background: #f9f9f9;
  border: 1px solid #eee;
  border-radius: 6px;
  padding: 14px 20px;
  margin-bottom: 28px;
  font-size: 0.88rem;
}

.blog-toc .toc-title {
  font-weight: 600;
  color: #111;
  margin-bottom: 8px;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.blog-toc ol {
  margin: 0;
  padding-left: 20px;
}

.blog-toc li {
  margin-bottom: 4px;
}

.blog-toc a {
  color: #1a6dd4;
  text-decoration: none;
}

.blog-toc a:hover {
  text-decoration: underline;
}

article.blog-post {
  margin-bottom: 36px;
  padding-bottom: 28px;
  border-bottom: 1px solid #eee;
}

article.blog-post h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #111;
  margin-bottom: 16px;
}

article.blog-post h4 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-top: 22px;
  margin-bottom: 8px;
  color: #111;
}

article.blog-post p {
  margin-bottom: 12px;
  color: #444;
  font-size: 0.93rem;
}

article.blog-post ol,
article.blog-post ul {
  margin-left: 22px;
  margin-bottom: 12px;
}

article.blog-post li {
  margin-bottom: 5px;
  font-size: 0.93rem;
  color: #444;
}

code {
  background-color: #f5f5f5;
  padding: 0.15em 0.4em;
  font-size: 0.86em;
  border-radius: 3px;
  font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
  color: #d14;
}

/* ── Footer ── */
footer {
  text-align: center;
  margin-top: 50px;
  padding-top: 16px;
  border-top: 1px solid #e5e5e5;
  font-size: 0.8rem;
  color: #aaa;
}

/* ── Responsive ── */
@media (max-width: 640px) {
  .container {
    padding: 20px 16px;
  }
  .profile {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .profile-info .affiliation {
    text-align: center;
  }
  .profile-links {
    justify-content: center;
  }
  .profile-photo {
    width: 150px;
    height: 150px;
  }
  .profile-photo img,
  .profile-photo .photo-placeholder {
    width: 100%;
    height: 100%;
  }
  nav {
    flex-direction: column;
    gap: 8px;
  }
  .exp-header, .edu-header {
    flex-direction: column;
    gap: 0;
  }
  .news-list li {
    flex-direction: column;
    gap: 1px;
  }
  .news-date {
    min-width: auto;
  }
}
