* {
  box-sizing: border-box;
}

:root {
  --bg: #090a0c;
  --panel: #0f1115;
  --panel-2: #13161b;
  --border: #232730;
  --border-light: #2d323c;
  --text: #f1f3f5;
  --muted: #9198a1;
  --soft: #c2c7ce;
  --accent: #8b949e;
  --max: 1180px;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.025), transparent 30rem),
    var(--bg);
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

button,
input,
select {
  font: inherit;
}

.container {
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(45, 50, 60, 0.7);
  background: rgba(9, 10, 12, 0.86);
  backdrop-filter: blur(16px);
}

.nav {
  min-height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-weight: 650;
  letter-spacing: -0.025em;
}

.brand-mark {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  background: var(--panel);
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  color: var(--soft);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

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

.nav-link:hover {
  color: var(--text);
}

a:focus-visible,
button:focus-visible,
select:focus-visible {
  outline: 2px solid #d0d7de;
  outline-offset: 3px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  background: #f1f3f5;
  color: #111318;
  font-weight: 650;
  transition: transform 120ms ease, opacity 120ms ease;
}

.button:hover {
  transform: translateY(-1px);
  opacity: 0.92;
}

.button-small {
  min-height: 36px;
  padding: 0 13px;
  font-size: 13px;
}

.hero {
  padding: 96px 0 72px;
  border-bottom: 1px solid var(--border);
}

.hero-inner {
  max-width: 850px;
}

.eyebrow,
.section-label {
  display: inline-block;
  margin-bottom: 14px;
  color: var(--muted);
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  letter-spacing: 0.03em;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 780px;
  margin-bottom: 22px;
  font-size: clamp(42px, 7vw, 74px);
  line-height: 0.98;
  letter-spacing: -0.065em;
}

.hero-copy {
  max-width: 700px;
  margin-bottom: 34px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
}

.search-wrap {
  width: min(100%, 720px);
  height: 54px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 17px;
  border: 1px solid var(--border-light);
  border-radius: 10px;
  background: var(--panel);
  transition: border-color 120ms ease, background 120ms ease;
}

.search-wrap:focus-within {
  border-color: #555c67;
  background: var(--panel-2);
  box-shadow: 0 0 0 3px rgba(208, 215, 222, 0.12);
}

.search-wrap svg {
  width: 19px;
  fill: none;
  stroke: var(--muted);
  stroke-width: 1.7;
  stroke-linecap: round;
}

.search-wrap input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font-size: 15px;
}

.search-wrap input::placeholder {
  color: #7d8590;
}

.stats {
  margin-top: 28px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  color: var(--muted);
  font-size: 13px;
}

.stats div {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.stats strong {
  color: var(--soft);
  font-family: "JetBrains Mono", monospace;
  font-size: 13px;
}

.stat-divider {
  width: 1px;
  height: 14px;
  background: var(--border-light);
}

.directory {
  padding: 72px 0 92px;
}

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

.section-heading h2,
.about h2 {
  margin-bottom: 0;
  font-size: clamp(28px, 4vw, 40px);
  letter-spacing: -0.045em;
}

.section-heading select {
  min-height: 38px;
  padding: 0 34px 0 11px;
  border: 1px solid var(--border);
  border-radius: 7px;
  outline: none;
  background: var(--panel);
  color: var(--soft);
  cursor: pointer;
  font-size: 13px;
}

.filters {
  display: flex;
  gap: 8px;
  margin-bottom: 30px;
  overflow-x: auto;
  scrollbar-width: none;
}

.results-status {
  margin: -12px 0 20px;
  color: #7d8590;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
}

.filters::-webkit-scrollbar {
  display: none;
}

.filter {
  flex: 0 0 auto;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 13px;
  transition: all 120ms ease;
}

.filter:hover {
  border-color: var(--border-light);
  color: var(--soft);
}

.filter.active {
  border-color: #3e444e;
  background: var(--panel-2);
  color: var(--text);
}

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

.repo-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--panel);
  transition: transform 140ms ease, border-color 140ms ease, background 140ms ease;
}

.repo-card:hover {
  transform: translateY(-2px);
  border-color: #353b45;
  background: #11141a;
}

.repo-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.developer {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 11px;
}

.avatar {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  border: 1px solid var(--border-light);
  border-radius: 50%;
  object-fit: cover;
  background: #181b21;
}

.developer-text {
  min-width: 0;
}

.developer-name {
  display: block;
  overflow: hidden;
  color: var(--soft);
  font-size: 13px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.developer-handle {
  display: block;
  margin-top: 2px;
  overflow: hidden;
  color: #7d8590;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.star-count {
  flex: 0 0 auto;
  color: var(--muted);
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
}

.repo-name {
  margin-bottom: 9px;
  overflow-wrap: anywhere;
  font-family: "JetBrains Mono", monospace;
  font-size: 18px;
  letter-spacing: -0.02em;
}

.repo-description {
  min-height: 44px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.tags {
  min-height: 27px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
  margin-bottom: 20px;
}

.tag {
  padding: 5px 7px;
  border: 1px solid var(--border);
  border-radius: 5px;
  color: #858c95;
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
}

.repo-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 15px;
  border-top: 1px solid var(--border);
}

.repo-meta {
  color: #7d8590;
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
}

.repo-links {
  display: flex;
  gap: 12px;
}

.repo-links a {
  color: var(--soft);
  font-size: 12px;
  font-weight: 600;
}

.repo-links a:hover {
  color: var(--text);
}

.repo-links a:focus-visible {
  border-radius: 2px;
}

.empty-state {
  padding: 80px 20px;
  border: 1px dashed var(--border-light);
  border-radius: 10px;
  text-align: center;
}

.empty-state span {
  display: block;
  margin-bottom: 8px;
  color: #676d76;
  font-family: "JetBrains Mono", monospace;
  font-size: 22px;
}

.empty-state h3 {
  margin-bottom: 7px;
}

.empty-state p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
}

.about {
  padding: 76px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: #0b0d10;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 80px;
  align-items: start;
}

.about p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.8;
}

footer {
  padding: 26px 0 34px;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: #848b96;
  font-size: 12px;
}

.footer-inner span:first-child {
  color: #969da6;
  font-weight: 600;
}

.noscript-message {
  margin: 0;
  padding: 12px 20px;
  border-top: 1px solid var(--border);
  color: var(--soft);
  background: var(--panel);
  text-align: center;
  font-size: 13px;
}

@media (max-width: 760px) {
  .container {
    width: min(calc(100% - 28px), var(--max));
  }

  .nav-link {
    display: none;
  }

  .hero {
    padding: 72px 0 58px;
  }

  h1 {
    font-size: clamp(40px, 12vw, 52px);
    line-height: 1;
  }

  .hero-copy {
    font-size: 16px;
  }

  .directory {
    padding: 56px 0 72px;
  }

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

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

  .about-grid {
    gap: 28px;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  .button-small {
    padding: 0 10px;
  }

  .brand > span:last-child {
    display: none;
  }

  .repo-card {
    padding: 18px;
  }

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

  .filter {
    min-height: 42px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .button,
  .filter,
  .repo-card,
  .search-wrap {
    transition: none;
  }
}
