:root {
  color-scheme: light;
  --gh-ink: var(--ux-ink);
  --gh-muted: var(--ux-muted);
  --gh-link: var(--ux-primary-strong);
  --gh-link-hover: var(--ux-primary);
  --gh-line: var(--ux-line);
  --gh-line-strong: rgba(148, 163, 184, 0.28);
  --gh-surface: rgba(255, 255, 255, 0.62);
  --gh-surface-strong: rgba(255, 255, 255, 0.86);
  --gh-shadow: var(--ux-shadow);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  color: var(--gh-ink);
  font-size: 16px;
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

svg {
  display: block;
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.gh-shell {
  min-height: 100vh;
}

.gh-topbar,
.gh-page {
  position: relative;
  width: min(1280px, calc(100% - 48px));
  margin-left: auto;
  margin-right: auto;
}

.gh-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
  margin-top: 24px;
  padding: 0 24px;
  border: 1px solid rgba(255, 255, 255, 0.86);
  border-radius: var(--ux-radius-xl);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(246, 250, 255, 0.7));
  box-shadow: var(--gh-shadow);
  backdrop-filter: blur(26px) saturate(145%);
  -webkit-backdrop-filter: blur(26px) saturate(145%);
}

.gh-topbar-left,
.gh-topbar-right {
  display: flex;
  align-items: center;
}

.gh-topbar-left {
  min-width: 0;
}

.gh-topbar-right {
  gap: 12px;
  margin-left: auto;
}

.gh-search {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 220px;
  height: 44px;
  margin: 0;
  padding: 0 14px;
  border: 1px solid var(--gh-line);
  border-radius: var(--ux-radius-md);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(244, 248, 255, 0.9));
  color: var(--gh-muted);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.86);
}

.gh-search input {
  width: 100%;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--gh-ink);
  font-size: 14px;
  outline: none;
}

.gh-search input::placeholder {
  color: var(--gh-muted);
}

.gh-search input::-webkit-search-cancel-button {
  cursor: pointer;
}

.gh-topbar-avatar-wrap {
  position: relative;
}

.gh-topbar-avatar {
  display: block;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.14);
}

.gh-topbar-status-dot {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--ux-primary);
  border: 2px solid rgba(255, 255, 255, 0.95);
}

.gh-page {
  display: grid;
  grid-template-columns: 364px minmax(0, 1fr);
  align-items: start;
  gap: 30px 40px;
  padding-top: 32px;
  padding-bottom: 48px;
}

.gh-profile {
  display: grid;
  align-content: start;
  gap: 16px;
  padding: 10px 6px 0 0;
}

.gh-avatar-wrap {
  width: fit-content;
}

.gh-avatar {
  overflow: hidden;
  width: 360px;
  aspect-ratio: 1;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.92);
  background: var(--gh-surface);
  box-shadow: var(--gh-shadow);
}

.gh-avatar-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.gh-profile h1 {
  margin: 14px 0 0;
  font-size: 44px;
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.gh-username {
  margin: -6px 0 0;
  color: var(--gh-muted);
  font-size: 26px;
  font-weight: 400;
  line-height: 1.2;
}

.gh-profile-meta {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
}

.gh-profile-meta li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--gh-ink);
  font-size: 15px;
}

.gh-profile-meta li svg {
  color: var(--gh-muted);
  flex: 0 0 auto;
}

.gh-profile-meta a {
  color: var(--gh-link);
}

.gh-profile-meta a:hover {
  color: var(--gh-link-hover);
}

.gh-content {
  min-width: 0;
}

.gh-readme-card {
  margin-bottom: 28px;
  padding: 28px 32px;
}

.gh-readme-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 22px;
}

.gh-readme-path {
  color: var(--gh-muted);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.gh-readme-body {
  padding-bottom: 4px;
}

.gh-readme-body h2 {
  margin: 0;
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.05em;
  color: var(--gh-ink);
}

.gh-wave {
  display: inline-block;
  transform: translateY(-0.04em);
}

.gh-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.gh-section-head h2 {
  margin: 0;
  color: var(--gh-ink);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

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

.gh-repo-card {
  display: flex;
  flex-direction: column;
  min-height: 156px;
  padding: 22px 22px 20px;
}

.gh-repo-button {
  position: relative;
  width: 100%;
  overflow: hidden;
  isolation: isolate;
  cursor: pointer;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease,
    border-color 180ms ease;
}

.gh-repo-button::after {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: -1;
  border-radius: inherit;
  background:
    radial-gradient(circle at top right, rgba(10, 132, 255, 0.24), transparent 38%),
    linear-gradient(180deg, rgba(76, 166, 255, 0.18), rgba(76, 166, 255, 0));
  opacity: 0;
  transition:
    opacity 180ms ease,
    transform 180ms ease;
  transform: scale(0.985);
  pointer-events: none;
}

.gh-repo-button:hover,
.gh-repo-button:focus-visible {
  transform: translateY(-2px);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(232, 243, 255, 0.92));
  box-shadow:
    0 0 0 1px rgba(10, 132, 255, 0.28),
    0 20px 34px rgba(10, 132, 255, 0.16);
}

.gh-repo-button:hover::after,
.gh-repo-button:focus-visible::after {
  opacity: 1;
  transform: scale(1);
}

.gh-repo-button:focus-visible {
  outline: none;
}

.gh-repo-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.gh-repo-title-wrap {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  min-width: 0;
  color: var(--gh-muted);
}

.gh-repo-link {
  color: var(--gh-link);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
}

.gh-repo-button:hover .gh-repo-link,
.gh-repo-button:focus-visible .gh-repo-link,
.gh-repo-title-wrap a:hover {
  color: var(--gh-link-hover);
}

.gh-label {
  min-height: 28px;
  padding-left: 0.8rem;
  padding-right: 0.8rem;
}

.gh-repo-card p {
  margin: 16px 0 0;
  color: var(--gh-muted);
  font-size: 15px;
  line-height: 1.6;
}

@media (max-width: 1080px) {
  .gh-page {
    grid-template-columns: 1fr;
    width: calc(100% - 48px);
  }

  .gh-profile {
    max-width: 364px;
    padding-top: 0;
  }
}

@media (max-width: 820px) {
  .gh-topbar {
    padding: 14px 16px;
  }

  .gh-search {
    min-width: 0;
    width: 100%;
  }

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

@media (max-width: 640px) {
  .gh-topbar,
  .gh-page {
    width: calc(100% - 24px);
  }

  .gh-page {
    padding-top: 24px;
  }

  .gh-profile h1 {
    font-size: 36px;
  }

  .gh-username {
    font-size: 22px;
  }

  .gh-avatar {
    width: min(100%, 320px);
  }

  .gh-readme-card {
    padding: 22px 20px;
  }

  .gh-readme-body h2 {
    font-size: 2.15rem;
  }
}
