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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", Helvetica, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  color: #1f2328;
  background: #fff;
}

a {
  color: #0969da;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.top-nav {
  background: #24292f;
  padding: 0 24px;
  height: 48px;
  display: flex;
  align-items: center;
}

.nav-inner {
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  gap: 16px;
}

.nav-logo {
  display: flex;
  align-items: center;
}

.nav-logo svg {
  fill: #fff;
}

.nav-title {
  color: #fff;
  font-size: 16px;
  font-weight: 600;
}

.profile-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 24px;
  display: flex;
  gap: 24px;
}

.profile-sidebar {
  width: 296px;
  flex-shrink: 0;
}

.avatar {
  width: 296px;
  height: 296px;
  border-radius: 50%;
  border: 1px solid rgba(31,35,40,0.15);
  display: block;
}

.profile-name {
  font-size: 24px;
  font-weight: 600;
  line-height: 1.25;
  margin-top: 16px;
}

.profile-username {
  display: block;
  font-size: 20px;
  font-style: normal;
  font-weight: 300;
  line-height: 24px;
  color: #656d76;
}

.profile-bio {
  margin-top: 16px;
  font-size: 14px;
  color: #1f2328;
  line-height: 1.5;
}

.profile-bio p {
  margin-bottom: 8px;
}

.profile-bio a {
  color: #0969da;
}

.profile-links {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #d0d7de;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.profile-link {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #1f2328;
  font-size: 14px;
  padding: 2px 0;
}

.profile-link:hover {
  color: #0969da;
  text-decoration: none;
}

.profile-link svg {
  flex-shrink: 0;
  color: #656d76;
}

.profile-content {
  flex: 1;
  min-width: 0;
}

.content-tabs {
  display: flex;
  border-bottom: 1px solid #d0d7de;
  margin-bottom: 24px;
  gap: 8px;
}

.tab {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  font-size: 14px;
  color: #1f2328;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}

.tab:hover {
  text-decoration: none;
  border-bottom-color: #d0d7de;
}

.tab.active {
  font-weight: 600;
  border-bottom-color: #fd8c73;
}

.tab svg {
  color: #656d76;
}

.tab.active svg {
  color: #1f2328;
}

.section-heading {
  font-size: 16px;
  font-weight: 400;
  margin-bottom: 16px;
}

.repo-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.repo-card {
  border: 1px solid #d0d7de;
  border-radius: 6px;
  padding: 16px;
}

.repo-card-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.repo-badge {
  font-size: 12px;
  font-weight: 500;
  color: #656d76;
  border: 1px solid #d0d7de;
  border-radius: 2em;
  padding: 0 7px;
  line-height: 18px;
  margin-left: auto;
}

.repo-icon {
  color: #656d76;
  flex-shrink: 0;
}

.repo-name {
  font-size: 14px;
  font-weight: 600;
  color: #0969da;
}

a.repo-name:hover {
  text-decoration: underline;
}

span.repo-name {
  color: #0969da;
}

.repo-description {
  font-size: 12px;
  color: #656d76;
  margin-bottom: 16px;
}

.repo-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 12px;
  color: #656d76;
}

.repo-lang {
  display: flex;
  align-items: center;
  gap: 4px;
}

.lang-dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.site-footer {
  border-top: 1px solid #d0d7de;
  margin-top: 40px;
  padding: 24px;
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  text-align: center;
  font-size: 12px;
  color: #656d76;
}

.blog-content {
  flex: 1;
  min-width: 0;
}

.post-list {
  list-style: none;
}

.post-list li {
  padding: 16px 0;
  border-bottom: 1px solid #d0d7de;
}

.post-list li:first-child {
  padding-top: 0;
}

.post-meta {
  font-size: 12px;
  color: #656d76;
  margin-bottom: 4px;
}

.post-title-link {
  font-size: 20px;
  font-weight: 600;
  color: #0969da;
}

.post-title-link:hover {
  text-decoration: underline;
}

.post-excerpt {
  font-size: 14px;
  color: #656d76;
  margin-top: 4px;
}

.post-article {
  max-width: 800px;
}

.post-article .post-header {
  padding-bottom: 16px;
  border-bottom: 1px solid #d0d7de;
  margin-bottom: 24px;
}

.post-article .post-header h1 {
  font-size: 32px;
  font-weight: 600;
  line-height: 1.25;
}

.post-article .post-header .post-meta {
  margin-top: 8px;
}

.post-body {
  font-size: 16px;
  line-height: 1.6;
  color: #1f2328;
}

.post-body h1 {
  font-size: 24px;
  font-weight: 600;
  margin-top: 32px;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid #d0d7de;
}

.post-body h2 {
  font-size: 20px;
  font-weight: 600;
  margin-top: 24px;
  margin-bottom: 12px;
}

.post-body h3 {
  font-size: 18px;
  font-weight: 600;
  margin-top: 20px;
  margin-bottom: 8px;
}

.post-body h4 {
  font-size: 16px;
  font-weight: 600;
  margin-top: 16px;
  margin-bottom: 8px;
}

.post-body p {
  margin-bottom: 16px;
}

.post-body ul, .post-body ol {
  margin-bottom: 16px;
  padding-left: 2em;
}

.post-body li {
  margin-bottom: 4px;
}

.post-body code {
  background: #eff1f3;
  padding: 2px 6px;
  border-radius: 6px;
  font-size: 85%;
}

.post-body pre {
  background: #f6f8fa;
  padding: 16px;
  border-radius: 6px;
  overflow-x: auto;
  margin-bottom: 16px;
}

.post-body pre code {
  background: none;
  padding: 0;
}

.post-body blockquote {
  border-left: 4px solid #d0d7de;
  padding: 0 16px;
  color: #656d76;
  margin-bottom: 16px;
}

.post-body img {
  max-width: 100%;
  height: auto;
}

.post-body a {
  color: #0969da;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 16px;
  font-size: 14px;
  color: #0969da;
}

@media (max-width: 768px) {
  .profile-container {
    flex-direction: column;
  }

  .profile-sidebar {
    width: 100%;
  }

  .avatar {
    width: 200px;
    height: 200px;
    margin: 0 auto;
  }

  .profile-name, .profile-username {
    text-align: center;
  }

  .repo-grid {
    grid-template-columns: 1fr;
  }
}
