:root {
  --bg: #ffffff;
  --canvas: #f6f8fa;
  --text: #24292f;
  --muted: #57606a;
  --border: #d0d7de;
  --link: #0969da;
  --success: #1a7f37;
  --accent: #cf222e;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--canvas);
  color: var(--text);
  font: 16px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", Helvetica, Arial, sans-serif;
}

a {
  color: var(--link);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.page {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 32px;
  width: min(1100px, calc(100% - 32px));
  margin: 0 auto;
  padding: 40px 0;
}

.profile {
  align-self: start;
}

.avatar {
  display: block;
  width: 220px;
  height: 220px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--bg);
  object-fit: cover;
}

.profile h1 {
  margin: 18px 0 8px;
  font-size: 26px;
  line-height: 1.25;
}

.intro {
  margin: 0 0 6px;
  color: var(--text);
  font-size: 28px;
  font-weight: 700;
  line-height: 1.2;
}

.bio {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 17px;
}

.profile-link {
  display: inline-flex;
  align-items: center;
  color: var(--muted);
  font-weight: 600;
}

.content {
  min-width: 0;
}

.header,
.repo-card {
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--bg);
}

.header {
  padding: 20px 24px;
  margin-bottom: 16px;
}

.header h2 {
  margin: 0 0 8px;
  font-size: 20px;
}

.header p,
.repo-card p,
.process li {
  color: var(--muted);
}

.header p {
  margin: 0;
}

.repo-card {
  padding: 20px 24px;
  margin-bottom: 16px;
}

.repo-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.repo-heading h3 {
  margin: 0;
  font-size: 20px;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 8px;
  border: 1px solid rgba(26, 127, 55, 0.35);
  border-radius: 999px;
  color: var(--success);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.badge.released {
  border-color: rgba(9, 105, 218, 0.35);
  color: var(--link);
}

.repo-meta {
  margin: 6px 0 14px;
  font-size: 14px;
}

.repo-card p:not(.repo-meta) {
  margin: 0 0 14px;
}

.links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.links a {
  font-weight: 600;
}


@media (max-width: 760px) {
  .page {
    grid-template-columns: 1fr;
    gap: 22px;
    width: min(100% - 24px, 680px);
    padding: 24px 0;
  }

  .avatar {
    width: 128px;
    height: 128px;
  }

  .repo-heading {
    align-items: flex-start;
    flex-direction: column;
  }
}
