@font-face {
  font-family: "Geist";
  src: url("./geist-sans.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: "Geist Mono";
  src: url("./geist-mono.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --ink: #10221f;
  --muted: #5c6c67;
  --paper: #f7f6ef;
  --surface: #fffef9;
  --green: #075c4b;
  --green-dark: #034438;
  --mint: #e4eee5;
  --lime: #c9e265;
  --line: #d7ddd6;
  --shadow: 0 8px 24px rgba(16, 34, 31, 0.06);
  --radius: 12px;
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Geist", ui-sans-serif, system-ui, sans-serif;
  line-height: 1.5;
}

a {
  color: var(--green);
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--green-dark);
}

a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid var(--lime);
  outline-offset: 3px;
}

h1,
h2,
h3,
h4,
p {
  text-wrap: pretty;
}

h1,
h2,
h3,
h4 {
  letter-spacing: -0.045em;
  line-height: 1.06;
}

.site-header,
main,
footer {
  width: min(calc(100% - 40px), var(--max-width));
  margin-inline: auto;
}

.site-header {
  display: flex;
  min-height: 68px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--line);
}

.brand,
.github-link,
.contribute-link,
.handle,
.profile-handle a,
.button {
  display: inline-flex;
  align-items: center;
}

.brand {
  gap: 10px;
  color: var(--ink);
  font-weight: 780;
  letter-spacing: -0.025em;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 9px;
  color: white;
  background: var(--green);
  box-shadow: 3px 3px 0 var(--lime);
  font: 700 0.68rem/1 "Geist Mono", monospace;
  letter-spacing: 0.05em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 18px;
}

.github-link,
.contribute-link {
  min-height: 38px;
  gap: 7px;
  font-size: 0.84rem;
  font-weight: 680;
  text-decoration: none;
}

.contribute-link {
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  background: var(--surface);
}

.github-icon {
  width: 1em;
  height: 1em;
  flex: none;
  fill: currentColor;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(360px, 0.65fr);
  gap: 32px 64px;
  padding: clamp(38px, 5vw, 66px) 0 38px;
}

.hero-copy {
  align-self: center;
}

.eyebrow,
.results-summary,
.group-heading span {
  font-family: "Geist Mono", ui-monospace, monospace;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--green);
  font-size: 0.72rem;
  font-weight: 680;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

h1 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(3rem, 5.8vw, 5.2rem);
}

.lede {
  max-width: 630px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.6vw, 1.2rem);
}

.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  align-self: stretch;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
}

.stats div {
  display: flex;
  min-height: 104px;
  flex-direction: column;
  justify-content: center;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
}

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

.stats div:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.stats dt {
  font: 690 2rem/1 "Geist Mono", monospace;
  letter-spacing: -0.06em;
}

.stats dd {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.filters {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: minmax(0, 1.7fr) minmax(230px, 0.7fr);
  gap: 12px;
  padding: 14px;
  border-radius: var(--radius);
  background: var(--green);
  box-shadow: var(--shadow);
}

.filters label {
  display: grid;
  gap: 6px;
  color: white;
  font: 620 0.7rem/1.2 "Geist Mono", monospace;
}

.filters input,
.filters select {
  width: 100%;
  min-height: 44px;
  padding: 0 13px;
  border: 0;
  border-radius: 8px;
  color: var(--ink);
  background: var(--surface);
  font: 450 0.9rem/1 "Geist", sans-serif;
}

.directory {
  padding: 50px 0 74px;
  border-top: 1px solid var(--line);
}

.section-heading,
.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: end;
}

.section-heading h2,
.about h2 {
  margin: 0;
  font-size: clamp(2rem, 3.5vw, 3.2rem);
}

.section-heading > p,
.about-copy {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.results-summary {
  margin: 24px 0 42px;
  color: var(--muted);
  font-size: 0.76rem;
}

.directory-group + .directory-group {
  margin-top: 56px;
}

.directory-group[hidden],
.profile-card[hidden] {
  display: none;
}

.group-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.group-heading h3 {
  margin: 0;
  font-size: clamp(1.45rem, 2.4vw, 2rem);
}

.group-heading span {
  flex: none;
  color: var(--muted);
  font-size: 0.72rem;
}

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

.profile-card {
  display: flex;
  min-height: 188px;
  flex-direction: column;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  transition: border-color 150ms ease, transform 150ms ease, box-shadow 150ms ease;
}

.profile-card:hover {
  border-color: #aebdb3;
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.profile-card-heading h4 {
  margin: 0;
  font-size: 1.12rem;
}

.profile-card-heading h4 a {
  color: var(--ink);
  text-decoration: none;
}

.handle,
.profile-handle a {
  gap: 6px;
  margin-top: 7px;
  color: var(--muted);
  font: 450 0.78rem/1.3 "Geist Mono", monospace;
  text-decoration: none;
}

.technology-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 16px 0;
  padding: 0;
  list-style: none;
}

.technology-list li {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 26px;
  padding: 4px 8px;
  border-radius: 6px;
  color: var(--green-dark);
  background: var(--mint);
  font: 590 0.68rem/1 "Geist Mono", monospace;
}

.technology-icon {
  width: 12px;
  height: 12px;
  flex: none;
  fill: currentColor;
}

.technology-icon-fallback {
  display: inline-grid;
  place-items: center;
  font-size: 0.48rem;
  font-weight: 780;
  letter-spacing: -0.08em;
}

.profile-link {
  margin-top: auto;
  font-size: 0.8rem;
  font-weight: 680;
  text-decoration: none;
}

.empty-state {
  padding: 56px 24px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  text-align: center;
}

.empty-state h3 {
  margin: 0;
  font-size: 1.5rem;
}

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

.about {
  margin: 34px 0 72px;
  padding: 38px;
  border-radius: var(--radius);
  color: white;
  background: var(--green-dark);
}

.about .eyebrow,
.about a {
  color: var(--lime);
}

.about-copy {
  color: rgba(255, 255, 255, 0.78);
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 26px 0 38px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.78rem;
}

footer p {
  margin: 0;
}

.button {
  min-height: 44px;
  justify-content: center;
  gap: 8px;
  padding: 0 17px;
  border: 1px solid var(--green);
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 680;
  text-decoration: none;
}

.button-primary {
  color: white;
  background: var(--green);
}

.button-primary:hover {
  color: white;
  background: var(--green-dark);
}

.button-secondary {
  color: var(--green);
  background: transparent;
}

.profile-main {
  max-width: 900px;
  padding: 46px 0 82px;
}

.profile-main nav {
  margin-bottom: 38px;
  color: var(--muted);
  font: 450 0.76rem/1.4 "Geist Mono", monospace;
}

.profile-main nav span {
  margin-left: 8px;
}

.profile-main h1 {
  max-width: 820px;
  font-size: clamp(3rem, 7vw, 5.6rem);
}

.profile-handle {
  margin: 16px 0 38px;
}

.profile-handle a {
  font-size: 0.94rem;
}

.profile-detail > h2 {
  margin: 38px 0 0;
  font-size: 1.18rem;
}

.technology-list-large {
  max-width: 800px;
  gap: 8px;
}

.technology-list-large li {
  min-height: 32px;
  padding: 6px 10px;
  font-size: 0.78rem;
}

.technology-list-large .technology-icon {
  width: 14px;
  height: 14px;
}

.profile-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.verification-note {
  margin-top: 58px;
  padding: 24px;
  border-left: 4px solid var(--lime);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--surface);
}

.verification-note h2 {
  margin: 0;
  font-size: 1.18rem;
}

.verification-note p:last-child {
  margin-bottom: 0;
}

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

  .stats {
    max-width: none;
  }

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

@media (max-width: 620px) {
  .site-header,
  main,
  footer {
    width: min(calc(100% - 28px), var(--max-width));
  }

  .site-header {
    min-height: 62px;
  }

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

  .site-nav {
    gap: 12px;
  }

  .contribute-link {
    min-height: 34px;
    padding-inline: 11px;
    font-size: 0.72rem;
  }

  .github-link {
    font-size: 1.1rem;
  }

  .hero {
    gap: 22px;
    padding: 28px 0 26px;
  }

  h1 {
    font-size: clamp(2.45rem, 11vw, 3.25rem);
  }

  .lede {
    margin-top: 14px;
    font-size: 0.96rem;
  }

  .stats div {
    min-height: 78px;
    padding: 13px 15px;
  }

  .stats dt {
    font-size: 1.55rem;
  }

  .stats dd {
    font-size: 0.68rem;
  }

  .filters,
  .profile-grid {
    grid-template-columns: 1fr;
  }

  .directory {
    padding-top: 38px;
  }

  .profile-card {
    min-height: 166px;
  }

  .about {
    padding: 28px 22px;
  }

  footer {
    flex-direction: column;
  }
}

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

  .profile-card {
    transition: none;
  }
}
