:root {
  --bg: #f5f7fb;
  --panel: #ffffff;
  --text: #1f2937;
  --muted: #667085;
  --line: #d7deea;
  --link: #2457c5;
  --accent: #0f766e;
  --accent-soft: #e8f4f1;
  --shadow: 0 18px 44px rgba(31, 41, 55, 0.09);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  line-height: 1.55;
}

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

a:hover {
  text-decoration: underline;
}

.site-header,
main,
footer {
  width: min(1040px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 0;
}

.profile {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
}

.profile img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 3px solid #ffffff;
  box-shadow: 0 10px 26px rgba(31, 41, 55, 0.18);
}

.profile strong,
.profile small {
  display: block;
}

.profile small,
.meta,
.intro p,
.contribution p,
footer {
  color: var(--muted);
}

nav {
  display: flex;
  gap: 10px;
  font-weight: 700;
}

nav a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.8);
  color: var(--text);
}

main {
  padding: 22px 0 58px;
}

.intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 22px;
  align-items: end;
  margin-bottom: 34px;
  padding: clamp(24px, 5vw, 46px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 850;
  text-transform: uppercase;
}

h1 {
  margin: 0 0 10px;
  font-size: clamp(38px, 7vw, 68px);
  line-height: 1.05;
}

.intro p {
  max-width: 680px;
  margin: 0;
  font-size: 18px;
}

.intro-note {
  padding: 18px;
  border: 1px solid rgba(15, 118, 110, 0.18);
  border-radius: 8px;
  background: var(--accent-soft);
}

.intro-note strong,
.intro-note span,
.intro-note small {
  display: block;
}

.intro-note strong {
  color: var(--accent);
  font-size: 42px;
  line-height: 1;
}

.intro-note span {
  margin-top: 6px;
  color: var(--text);
  font-weight: 850;
}

.intro-note small {
  margin-top: 10px;
  color: var(--muted);
}

section + section {
  margin-top: 34px;
}

h2 {
  margin: 0 0 16px;
  font-size: 22px;
}

.contribution-list {
  display: grid;
  gap: 12px;
}

.contribution {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 10px 24px rgba(31, 41, 55, 0.05);
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.contribution:hover {
  border-color: rgba(15, 118, 110, 0.28);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.repo-avatar {
  width: 56px;
  height: 56px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  object-fit: cover;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  font-size: 13px;
  font-weight: 700;
}

h3 {
  margin: 8px 0 6px;
  font-size: 21px;
  line-height: 1.25;
}

.contribution p {
  margin: 0;
}

.pr-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 92px;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid rgba(36, 87, 197, 0.22);
  border-radius: 8px;
  background: #eef4ff;
  color: var(--link);
  font-weight: 800;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 0 34px;
  border-top: 1px solid var(--line);
  font-size: 14px;
}

@media (max-width: 680px) {
  .site-header,
  footer,
  .contribution {
    align-items: stretch;
    grid-template-columns: 1fr;
  }

  .site-header,
  footer {
    flex-direction: column;
  }

  nav {
    flex-wrap: wrap;
  }

  .intro {
    grid-template-columns: 1fr;
    padding: 24px;
  }

  .contribution {
    gap: 12px;
  }

  .repo-avatar {
    width: 48px;
    height: 48px;
  }

  .pr-link {
    width: fit-content;
  }
}
