/*--------------------------------------------------------------
# Academic Minimalist Style
# Inspired by Jon Barron, Andrew Ng, and other academic personal pages
--------------------------------------------------------------*/

/*--------------------------------------------------------------
# General
--------------------------------------------------------------*/
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: #333;
  background-color: #fff;
  margin: 0;
  padding: 20px;
}

/*--------------------------------------------------------------
# Container
--------------------------------------------------------------*/
.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 20px 40px;
}

/*--------------------------------------------------------------
# Typography
--------------------------------------------------------------*/
h1 {
  font-family: 'Crimson Text', Georgia, serif;
  font-size: 36px;
  font-weight: 600;
  color: #000;
  margin: 0 0 8px 0;
  line-height: 1.2;
}

h2 {
  font-family: 'Inter', sans-serif;
  font-size: 20px;
  font-weight: 600;
  color: #000;
  margin: 40px 0 20px 0;
  padding-bottom: 8px;
  border-bottom: 1px solid #ddd;
  line-height: 1.3;
}

h3 {
  font-family: 'Inter', sans-serif;
  font-size: 17px;
  font-weight: 600;
  color: #000;
  margin: 24px 0 12px 0;
  line-height: 1.3;
}

h4 {
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: #000;
  margin: 0 0 4px 0;
  line-height: 1.4;
}

p {
  margin: 0 0 12px 0;
  color: #333;
}

strong {
  font-weight: 600;
  color: #000;
}

em {
  font-style: italic;
  color: #555;
}

/*--------------------------------------------------------------
# Links
--------------------------------------------------------------*/
a {
  color: #1772d0;
  text-decoration: underline;
  text-decoration-color: rgba(23, 114, 208, 0.35);
  text-underline-offset: 2px;
  transition: color 0.2s ease;
}

a:hover {
  color: #b35300;
  text-decoration: underline;
  text-decoration-color: currentColor;
}

a:focus-visible {
  outline: 2px solid #1772d0;
  outline-offset: 2px;
}

/*--------------------------------------------------------------
# Header Section
--------------------------------------------------------------*/
header {
  margin-bottom: 30px;
}

.header-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
}

.header-left {
  width: 65%;
  vertical-align: top;
  padding-right: 40px;
}

.header-right {
  width: 35%;
  vertical-align: top;
  text-align: right;
}

.subtitle {
  font-size: 17px;
  font-weight: 500;
  color: #555;
  margin: 0 0 16px 0;
}

.bio {
  font-size: 15px;
  line-height: 1.6;
  color: #333;
  margin: 0 0 12px 0;
}

.links {
  font-size: 15px;
  color: #333;
  margin: 16px 0 0 0;
  line-height: 1.6;
}

.profile-photo {
  width: 200px;
  height: auto;
  border-radius: 50%;
  display: block;
  border: 3px solid #f0f0f0;
}

/*--------------------------------------------------------------
# Sections
--------------------------------------------------------------*/
section {
  margin-bottom: 40px;
}

/*--------------------------------------------------------------
# Research Interests
--------------------------------------------------------------*/
.research-interests {
  list-style: none;
  padding: 0;
  margin: 0;
}

.research-interests li {
  margin-bottom: 12px;
  padding-left: 0;
  line-height: 1.6;
}

/*--------------------------------------------------------------
# News List
--------------------------------------------------------------*/
.news-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.news-list li {
  margin-bottom: 10px;
  padding-left: 0;
  line-height: 1.6;
}

/*--------------------------------------------------------------
# Projects
--------------------------------------------------------------*/
.project-item {
  margin-bottom: 20px;
}

.project-title {
  margin-bottom: 4px;
  line-height: 1.5;
}

.project-links {
  font-size: 14px;
  margin-left: 8px;
  white-space: nowrap;
}

.project-desc {
  margin-left: 0;
  color: #555;
  line-height: 1.6;
}

/*--------------------------------------------------------------
# Research Experience
--------------------------------------------------------------*/
.research-item {
  margin-bottom: 28px;
}

.research-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 4px;
}

.research-date {
  font-size: 14px;
  color: #555;
  font-weight: 400;
  white-space: nowrap;
  margin-left: 20px;
}

.research-title {
  font-weight: 600;
  color: #000;
  margin: 0 0 4px 0;
}

.research-affiliation {
  font-style: italic;
  color: #555;
  margin: 0 0 8px 0;
  font-size: 14px;
}

.research-desc {
  color: #555;
  margin: 0 0 12px 0;
  line-height: 1.6;
}

.research-list {
  margin: 8px 0 0 20px;
  padding: 0;
  list-style-type: disc;
}

.research-list li {
  margin-bottom: 4px;
  color: #555;
  line-height: 1.6;
}

/*--------------------------------------------------------------
# Publications
--------------------------------------------------------------*/
.publication-item {
  margin-bottom: 24px;
  line-height: 1.6;
}

.pub-desc {
  color: #555;
  font-size: 14px;
  margin-top: 4px;
  margin-left: 0;
}

.pub-stats {
  font-size: 15px;
  color: #555;
  margin-bottom: 20px;
}

.pub-note {
  font-size: 14px;
  color: #666;
  font-style: italic;
  margin-top: 16px;
}

.citation-count {
  color: #666;
  font-size: 14px;
}

/*--------------------------------------------------------------
# Experience
--------------------------------------------------------------*/
.experience-item {
  margin-bottom: 24px;
}

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

.exp-date {
  font-size: 14px;
  color: #555;
  font-weight: 400;
  white-space: nowrap;
  margin-left: 20px;
}

.exp-title {
  font-style: italic;
  color: #555;
  margin: 0 0 8px 0;
}

.exp-desc {
  color: #555;
  margin: 0 0 8px 0;
}

.exp-list {
  margin: 8px 0 0 20px;
  padding: 0;
  list-style-type: disc;
}

.exp-list li {
  margin-bottom: 4px;
  color: #555;
  line-height: 1.6;
}

/*--------------------------------------------------------------
# Education
--------------------------------------------------------------*/
.education-item {
  margin-bottom: 24px;
}

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

.edu-date {
  font-size: 14px;
  color: #555;
  font-weight: 400;
  white-space: nowrap;
  margin-left: 20px;
}

.edu-school {
  font-style: italic;
  color: #555;
  margin: 0 0 4px 0;
}

.edu-details {
  color: #666;
  font-size: 14px;
  margin: 0;
}

/*--------------------------------------------------------------
# Honors & Awards
--------------------------------------------------------------*/
.honors-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.honors-list li {
  margin-bottom: 8px;
  padding-left: 0;
  line-height: 1.6;
}

/*--------------------------------------------------------------
# Speaking & Service
--------------------------------------------------------------*/
.service-list {
  list-style: disc;
  padding-left: 20px;
  margin: 0;
}

.service-list li {
  margin-bottom: 8px;
  line-height: 1.6;
  color: #555;
}

/*--------------------------------------------------------------
# Footer
--------------------------------------------------------------*/
footer {
  margin-top: 60px;
  padding-top: 20px;
  border-top: 1px solid #ddd;
  text-align: center;
  font-size: 13px;
  color: #666;
}

/*--------------------------------------------------------------
# Responsive Design
--------------------------------------------------------------*/
@media screen and (max-width: 768px) {
  body {
    padding: 10px;
  }

  .container {
    padding: 10px 20px;
  }

  .header-table {
    display: block;
  }

  .header-left,
  .header-right {
    display: block;
    width: 100%;
    padding: 0;
  }

  .header-right {
    text-align: center;
    margin-top: 20px;
  }

  .profile-photo {
    width: 160px;
    margin: 0 auto;
  }

  h1 {
    font-size: 28px;
  }

  h2 {
    font-size: 18px;
    margin-top: 30px;
  }

  .exp-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .exp-date {
    margin-left: 0;
    margin-top: 2px;
  }
}

@media screen and (max-width: 480px) {
  body {
    font-size: 14px;
  }

  .container {
    padding: 10px 15px;
  }

  h1 {
    font-size: 24px;
  }

  h2 {
    font-size: 17px;
  }

  .profile-photo {
    width: 120px;
  }
}

/*--------------------------------------------------------------
# Print Styles
--------------------------------------------------------------*/
@media print {
  body {
    font-size: 12pt;
    color: #000;
    background: #fff;
  }

  .container {
    max-width: 100%;
  }

  a {
    color: #000;
    text-decoration: underline;
  }

  h2 {
    page-break-after: avoid;
  }

  .project-item,
  .publication-item,
  .experience-item {
    page-break-inside: avoid;
  }
}

/*--------------------------------------------------------------
# Selection
--------------------------------------------------------------*/
::selection {
  background-color: #b3d4fc;
  color: #000;
}

::-moz-selection {
  background-color: #b3d4fc;
  color: #000;
}

/*--------------------------------------------------------------
# Accessibility
--------------------------------------------------------------*/
:focus-visible {
  outline: 2px solid #1772d0;
  outline-offset: 2px;
}
