html, body {
  background: #fff;
  color: #000;
  font-family: 'KaTeX_Main', 'KaTeX_Math', serif;
  margin: 0;
  padding: 0;
  font-size: 16px;
  line-height: 1.5;
  font-weight: 300;
  scroll-behavior: smooth;
}
html {
  scroll-padding-top: 60px;
}
.container {
  max-width: 820px;
  margin: 0 auto;
  padding: 2rem 1rem;
}
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid #eee;
  padding: 0.5rem 0;
  width: 100%;
}
.nav-inner {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  background: #fff;
}
.nav-logo {
  display: flex;
  align-items: center;
  min-width: 120px;
  font-weight: 500;
  font-size: 1.7rem;
  color: #000;
  text-decoration: none;
}
.nav-links {
  display: flex;
  gap: 1.5rem;
  padding: 0.5rem 0;
}
.nav-links a {
  color: #000;
  text-decoration: none;
  font-weight: 500;
  font-size: 1.1rem;
  padding: 0.7rem 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.profile-section {
  display: flex;
  align-items: center;
  gap: 4rem;
  margin: 3rem 0 3rem;
  flex-wrap: wrap;
  padding: 2.5rem 0;
}
.profile-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 120px;
}
.profile-logo img {
  width: 200px;
  height: 200px;
  border-radius: 50%;
}
.profile-section h1 {
  font-size: 3.2rem;
  font-weight: 300;
  margin: 0 0 0.5rem;
  font-family: 'KaTeX_Main', 'KaTeX_Math', serif;
  font-weight: 500;
}
.role {
  font-size: 1rem;
  color: #666;
  margin-bottom: 1rem;
}
.links {
  margin-top: 0.5rem;
}
.links a {
  color: #000;
  text-decoration: none;
  margin-right: 1.5rem;
  font-size: 0.9rem;
  font-weight: 300;
}
section {
  margin: 3rem 0;
}
h2 {
  font-size: 2rem;
  font-family: 'KaTeX_Main', 'KaTeX_Math', serif;
  font-weight: 500;
  margin-bottom: 1rem;
  transition: letter-spacing 0.3s cubic-bezier(.4,2,.6,1);
}

.section-content {
  margin-bottom: 1rem;
}
.about-text {
  margin-bottom: 1rem;
  color: #333;
  font-size: 1rem;
}
.projects-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.projects-list li {
  padding: 1rem 0;
}
.projects-list .title {
  font-size: 1.05rem;
  font-weight: 300;
  margin-bottom: 0.25rem;
}
.skills-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}
.category-title {
  font-weight: 300;
  font-size: 1rem;
  margin-bottom: 0.5rem;
  color: #000;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.category-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.skill-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}
.skill-group img {
  height: 24px;
  border-radius: 2px;
}
#courses ul {
  margin: 0 0 1rem;
  padding-left: 1rem;
}
#courses li {
  margin-bottom: 0.25rem;
  font-size: 0.95rem;
}
#courses .category-title {
  margin-top: 1.5rem;
}
#courses .category-title:first-child {
  margin-top: 0;
}
footer {
  text-align: center;
  color: #999;
  font-size: 0.9rem;
  margin: 3rem 0 1rem;
}
h1, h2, h3 {
  font-family: 'KaTeX_Main', 'KaTeX_Math', serif;
}

.nav-mobile-gn {
  display: none;
}
@media (max-width: 700px) {
  .container {
    padding: 1rem;
  }
  .profile-section {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 2rem;
    margin: 3rem 0 2rem;
    padding: 1.5rem 0;
  }
  .profile-logo {
    width: 100%;
    min-width: 0;
    justify-content: center;
  }
  .profile-logo img {
    width: 120px;
    height: 120px;
  }
  nav {
    padding: 0.2rem 0;
  }
  .nav-inner {
    flex-direction: column;
    align-items: flex-end;
    padding: 0.5rem 0.5rem 0.2rem 0.5rem;
  }
  .nav-links {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
    gap: 0.2rem 0.5rem;
    width: 100%;
    padding: 0.2rem 0 0.1rem 0;
  }
  .nav-links a {
    font-size: 0.95rem;
    padding: 0.4rem 0.5rem;
    text-align: right;
    width: auto;
  }
  .nav-logo {
    display: none;
  }
  h2 {
    font-size: 1.2rem;
  }
  .profile-section h1 {
    font-size: 1.5rem;
  }
  .skills-container {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .skill-group {
    gap: 0.25rem;
  }
  .skill-group img {
    height: 20px;
  }
  .nav-mobile-gn {
    display: block;
    position: absolute;
    left: 0.5rem;
    top: 0.9rem;
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: #000;
    background: #fff;
    padding: 0.08em 0.5em 0.08em 0.4em;
    border-radius: 1.1em;
    box-shadow: 0 1px 4px 0 rgba(0,0,0,0.04);
    z-index: 130;
    line-height: 1.1;
  }
}
