:root {
  --bg: #f6f8fa;
  --surface: #ffffff;
  --surface-strong: #0d1117;
  --text: #1f2328;
  --muted: #59636e;
  --line: #d8dee4;
  --accent: #238636;
  --accent-dark: #196c2e;
  --blue: #0969da;
  --yellow: #bf8700;
  --shadow: 0 24px 70px rgba(31, 35, 40, 0.12);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background:
    linear-gradient(180deg, #f6f8fa 0%, #eef3f8 42%, #ffffff 100%);
  line-height: 1.6;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 14px clamp(20px, 4vw, 64px);
  border-bottom: 1px solid rgba(216, 222, 228, 0.82);
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(18px);
}

.brand,
.top-nav,
.hero-actions,
.filter-row {
  display: flex;
  align-items: center;
}

.brand {
  gap: 12px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand img,
.profile-card img {
  border-radius: 50%;
  border: 1px solid var(--line);
}

.top-nav {
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
}

.top-nav a {
  padding: 9px 12px;
  border-radius: 8px;
}

.top-nav a:hover,
.top-nav a:focus-visible {
  color: var(--text);
  background: #eef2f6;
  outline: none;
}

.nav-button {
  color: #fff !important;
  background: var(--surface-strong) !important;
}

main {
  overflow: hidden;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.72fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  min-height: calc(100svh - 72px);
  padding: clamp(56px, 9vw, 118px) clamp(20px, 5vw, 78px) 42px;
}

.hero-copy {
  max-width: 760px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  color: #0d1117;
  font-size: clamp(58px, 11vw, 128px);
  line-height: 0.9;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  max-width: 820px;
  color: #0d1117;
  font-size: clamp(30px, 5vw, 56px);
  line-height: 1.04;
  letter-spacing: 0;
}

h3 {
  margin: 18px 0 8px;
  font-size: 20px;
  line-height: 1.2;
}

.hero-text {
  max-width: 700px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: clamp(18px, 2.2vw, 23px);
}

.hero-actions {
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 8px;
  border: 1px solid var(--line);
  font-weight: 750;
}

.button.primary {
  color: #fff;
  border-color: var(--accent);
  background: var(--accent);
}

.button.primary:hover {
  background: var(--accent-dark);
}

.button.secondary {
  background: #fff;
}

.hero-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.profile-card {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 26px;
  color: #fff;
  background:
    linear-gradient(rgba(13, 17, 23, 0.76), rgba(13, 17, 23, 0.76)),
    url("https://images.unsplash.com/photo-1556075798-4825dfaaf498?auto=format&fit=crop&w=1200&q=80")
      center/cover;
}

.profile-card strong,
.profile-card span {
  display: block;
}

.profile-card strong {
  font-size: 22px;
}

.profile-card span {
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
}

.stats-grid div {
  min-height: 116px;
  padding: 22px;
  border-top: 1px solid var(--line);
}

.stats-grid div:nth-child(odd) {
  border-right: 1px solid var(--line);
}

dt {
  color: var(--muted);
  font-size: 13px;
}

dd {
  margin: 8px 0 0;
  color: #0d1117;
  font-size: 30px;
  font-weight: 850;
  line-height: 1;
}

.section {
  padding: 88px clamp(20px, 5vw, 78px);
}

.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  align-items: end;
  margin-bottom: 30px;
}

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

.focus-grid article,
.repo-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.focus-grid article {
  padding: 28px;
}

.focus-grid p,
.repo-card p,
.timeline span {
  color: var(--muted);
}

.focus-icon {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  color: #fff;
  background: var(--surface-strong);
  font-size: 13px;
  font-weight: 800;
}

.repo-section {
  background: #fff;
}

.repo-heading {
  align-items: center;
}

.search-box {
  display: grid;
  gap: 8px;
  min-width: min(360px, 100%);
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.search-box input {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 14px;
  color: var(--text);
  font: inherit;
  background: #f6f8fa;
}

.search-box input:focus {
  border-color: var(--blue);
  outline: 3px solid rgba(9, 105, 218, 0.14);
}

.filter-row {
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

.filter {
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 14px;
  color: var(--muted);
  background: #fff;
  cursor: pointer;
  font: inherit;
  font-weight: 750;
}

.filter.is-active,
.filter:hover {
  color: #fff;
  border-color: var(--surface-strong);
  background: var(--surface-strong);
}

.repo-card {
  display: flex;
  flex-direction: column;
  min-height: 242px;
  padding: 22px;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
}

.repo-card:hover {
  transform: translateY(-3px);
  border-color: #afb8c1;
  box-shadow: 0 18px 42px rgba(31, 35, 40, 0.12);
}

.repo-top {
  display: flex;
  justify-content: space-between;
  gap: 14px;
}

.repo-title {
  color: var(--blue);
  font-size: 20px;
  font-weight: 850;
}

.repo-badge {
  align-self: start;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px 9px;
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}

.repo-card p {
  margin: 16px 0 20px;
}

.repo-meta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: auto;
  color: var(--muted);
  font-size: 13px;
}

.language-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 6px;
  background: var(--blue);
}

.language-dot.JavaScript {
  background: #f1e05a;
}

.language-dot.Java {
  background: #b07219;
}

.language-dot.Rust {
  background: #dea584;
}

.language-dot.PHP {
  background: #4f5d95;
}

.language-dot.TypeScript {
  background: #3178c6;
}

.activity {
  display: grid;
  grid-template-columns: minmax(220px, 0.55fr) minmax(0, 1fr);
  gap: 42px;
  align-items: start;
}

.timeline {
  display: grid;
  gap: 14px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.timeline li {
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr);
  gap: 18px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.timeline time {
  color: var(--yellow);
  font-weight: 850;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 28px clamp(20px, 5vw, 78px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  background: #fff;
}

.site-footer span {
  color: var(--text);
  font-weight: 850;
}

@media (max-width: 920px) {
  .hero,
  .activity {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 48px;
  }

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

  .section-heading {
    display: block;
  }

  .search-box {
    margin-top: 22px;
  }
}

@media (max-width: 660px) {
  .site-header {
    position: static;
    align-items: flex-start;
    flex-direction: column;
  }

  .top-nav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .hero {
    padding-top: 36px;
  }

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

  .stats-grid div:nth-child(odd) {
    border-right: 0;
  }

  .profile-card {
    align-items: flex-start;
    flex-direction: column;
  }

  .timeline li {
    grid-template-columns: 1fr;
    gap: 6px;
  }

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