/* Homepage style override inspired by horseee.github.io */

html {
  font-size: 16px;
}

body {
  font-family: "Inter", "Noto Sans SC", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  color: #222;
  background-color: #fff;
  line-height: 1.75;
  font-size: 1.02rem;
}

a {
  color: #1f4fbf;
  text-decoration: none;
}

a:hover,
a:focus {
  color: #163b90;
  text-decoration: underline;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: #111;
  letter-spacing: -0.01em;
  line-height: 1.35;
}

h1 {
  font-size: 2rem;
  margin: 0 0 1rem;
}

h2 {
  font-size: 1.35rem;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

p,
li {
  color: #222;
}

#main {
  max-width: 1160px;
  margin: 2.2rem auto 0;
  padding: 0 1.4rem;
}

.page {
  width: calc(100% - 300px);
  padding-right: 0;
}

.page__content p,
.page__content li {
  font-size: 1.02rem;
}

.page__title {
  font-size: 2.1rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.masthead {
  border-bottom: 1px solid #e7e9ee;
  background: #fff;
}

.masthead__inner-wrap {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0.7rem 1.4rem;
}

.masthead__menu-item a {
  font-weight: 500;
}

.greedy-nav {
  background: #fff;
}

.sidebar {
  width: 260px;
  opacity: 1;
}

.author__avatar img {
  max-width: 140px;
  border-radius: 50%;
  border: 1px solid #e8ebf2;
}

.author__content {
  margin-top: 0.8rem;
}

.author__name {
  font-size: 1.35rem;
  margin-bottom: 0.25rem;
}

.author__bio {
  color: #414141;
  font-size: 0.95rem;
}

.author__urls-wrapper button {
  display: none;
}

.author__urls {
  display: block !important;
  margin-top: 0.65rem;
  padding-left: 0;
}

.author__urls li {
  margin-bottom: 0.25rem;
}

.social-icons .fa,
.social-icons .fas,
.social-icons .fab,
.social-icons [class^="ai"] {
  color: #4e5a75;
}

.page__footer {
  border-top: 1px solid #eceff4;
  margin-top: 2.2rem;
}

/* flatten prior card styling into cleaner sections */
.intro-text,
.about-section,
.project-item,
.publication-item,
.news-item,
.tiny-lib-item {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
}

.about-section,
.project-item,
.publication-item {
  margin: 0 0 1.1rem;
}

.section-title {
  margin-top: 2rem;
  margin-bottom: 0.65rem;
  padding: 0;
  border-bottom: 0;
  color: #111;
  font-size: 1.45rem;
  font-weight: 700;
}

.project-title {
  color: #111;
  margin-bottom: 0.2rem;
}

.project-description {
  color: #333;
}

.github-stars {
  vertical-align: middle;
}

.tiny-compare-wrap {
  margin-top: 0.65rem;
  border: 1px solid #e6e9f0;
  border-radius: 10px;
  overflow-x: auto;
  background: #fff;
}

.tiny-compare-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

.tiny-compare-table th,
.tiny-compare-table td {
  text-align: left;
  vertical-align: top;
  padding: 0.58rem 0.72rem;
  border-bottom: 1px solid #eef1f6;
  line-height: 1.55;
}

.tiny-compare-table th {
  font-size: 0.9rem;
  font-weight: 600;
  color: #2a3348;
  background: #f8faff;
  white-space: nowrap;
}

.tiny-compare-table td {
  color: #2f2f2f;
  font-size: 0.94rem;
}

.tiny-compare-table tbody tr:last-child td {
  border-bottom: 0;
}

.tiny-compare-table td .github-stars {
  margin-left: 0.35rem;
  white-space: nowrap;
}

ul {
  margin-top: 0.45rem;
  margin-bottom: 0.9rem;
}

li {
  margin: 0.18rem 0;
}

@media (max-width: 1024px) {
  #main {
    padding: 0 1rem;
  }

  .page {
    width: 100%;
  }
}
