@font-face {
  font-family: "PP Radio Grotesk";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/static/fonts/RadioGroteskVF.woff2") format("woff2");
}

@font-face {
  font-family: Matter;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/static/fonts/MatterVF.woff2") format("woff2");
}

@font-face {
  font-family: "Matter Mono";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/static/fonts/MatterMonoGX.woff2") format("woff2");
}

:root {
  color-scheme: light;
  --ink-400: oklch(73.28% 0.01 293.06);
  --ink-600: oklch(53.02% 0.017 285.79);
  --ink-700: oklch(47.57% 0.019 285.67);
  --ink-900: oklch(29.06% 0.025 281.54);
  --paper-025: oklch(98.73% 0.004 106.47);
  --paper-100: oklch(99.67% 0.001 106.42);
  --paper-200: oklch(98.3% 0.004 84.57);
  --paper-300: oklch(95.28% 0.009 84.57);
  --purple-050: oklch(97.5% 0.007 292.1);
  --purple-100: oklch(95.3% 0.016 292.1);
  --purple-600: oklch(72.1% 0.088 292.1);
  --purple-700: oklch(42% 0.12 292.1);
  --purple-900: oklch(50.2% 0.12 292.1);
  --moon-050: oklch(98.1% 0.014 88.68);
  --moon-100: oklch(95.6% 0.021 88.68);
  --blue-700: oklch(60.1% 0.153 255);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--purple-050);
}

body {
  margin: 0;
  color: var(--ink-900);
  font-family: Matter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

h1,
h2,
h3,
p,
ol,
ul {
  margin: 0;
}

ol,
ul {
  padding: 0;
  list-style: none;
}

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

button,
input {
  color: inherit;
  font: inherit;
}

button {
  border: 0;
}

.site-shell {
  min-height: 100vh;
  background: linear-gradient(to bottom right, var(--purple-050), var(--moon-050));
}

.site-header {
  position: relative;
  z-index: 1;
  min-height: 60px;
  padding: 12px 16px;
  color: white;
  background: var(--purple-900);
  box-shadow: 0 1px 3px rgb(0 0 0 / 10%), 0 1px 2px -1px rgb(0 0 0 / 10%);
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 16px;
}

.brand {
  display: flex;
  flex: none;
  align-items: center;
  gap: 8px;
  min-width: max-content;
  color: var(--moon-100);
}

.brand-name {
  margin-top: 2px;
  color: white;
  font-family: "PP Radio Grotesk", ui-sans-serif, system-ui, sans-serif;
  font-size: 24px;
  line-height: 32px;
}

.nixhub-logo {
  display: block;
  width: 28px;
  height: 28px;
  background: currentColor;
  -webkit-mask: url("/static/nixhub-logo.svg?v=dc4485e7") center / contain no-repeat;
  mask: url("/static/nixhub-logo.svg?v=dc4485e7") center / contain no-repeat;
}

.header-search {
  flex: 1 1 auto;
  min-width: 0;
  max-width: 672px;
}

search,
search form {
  position: relative;
  display: block;
}

input[type="search"] {
  display: block;
  width: 100%;
  height: 48px;
  padding: 12px 16px 12px 44px;
  color: var(--ink-900);
  font-size: 14px;
  line-height: 24px;
  background: white;
  border: 0;
  border-radius: 9999px;
  outline: 0;
  box-shadow: inset 0 0 0 1px var(--paper-300);
}

.header-search input {
  height: 36px;
  padding-block: 6px;
}

input[type="search"]::placeholder {
  color: var(--ink-400);
  opacity: 1;
}

input[type="search"]:focus {
  box-shadow: inset 0 0 0 2px var(--purple-600);
}

.search-icon {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 16px;
  display: block;
  width: 20px;
  height: 20px;
  color: var(--ink-400);
  background: currentColor;
  -webkit-mask: url("/static/search.svg?v=c7531187") center / contain no-repeat;
  mask: url("/static/search.svg?v=c7531187") center / contain no-repeat;
  pointer-events: none;
  transform: translateY(-50%);
}

.social-links {
  display: flex;
  flex: none;
  align-items: center;
  gap: 8px;
}

.social-links a {
  display: grid;
  width: 24px;
  height: 24px;
  color: oklch(96.07% 0.001 286.37);
  place-items: center;
}

.social-links a:hover {
  color: white;
}

.social-icon {
  display: block;
  width: 24px;
  height: 24px;
  background: currentColor;
}

.github-icon {
  -webkit-mask: url("/static/github.svg?v=940c6658") center / contain no-repeat;
  mask: url("/static/github.svg?v=940c6658") center / contain no-repeat;
}

.discord-icon {
  -webkit-mask: url("/static/discord.svg?v=e7744ac5") center / contain no-repeat;
  mask: url("/static/discord.svg?v=e7744ac5") center / contain no-repeat;
}

.twitter-icon {
  -webkit-mask: url("/static/twitter.svg?v=65752011") center / contain no-repeat;
  mask: url("/static/twitter.svg?v=65752011") center / contain no-repeat;
}

.site-body {
  min-height: 100vh;
}

.site-footer {
  padding: 80px 16px;
  font-size: 16px;
  line-height: 24px;
  text-align: center;
}

.built-for a,
.jetify-wordmark {
  color: var(--purple-900);
}

.jetify-wordmark {
  display: inline-block;
  width: 105px;
  height: 32px;
  margin-left: 6px;
  background: currentColor;
  vertical-align: baseline;
  -webkit-mask: url("/static/jetify.svg?v=805335d2") center / contain no-repeat;
  mask: url("/static/jetify.svg?v=805335d2") center / contain no-repeat;
  transform: translateY(11px);
}

.issue-link {
  margin-top: 28px;
}

.issue-link a,
.text-link,
.tips a,
.release-install a {
  color: var(--blue-700);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  white-space: nowrap;
  border: 0;
  clip: rect(0, 0, 0, 0);
}

.home-page {
  width: 100%;
  max-width: 768px;
  min-height: 700px;
  padding: 16px;
  margin-inline: auto;
}

.home-page h1 {
  margin-top: 48px;
  color: var(--purple-900);
  font-family: "PP Radio Grotesk", ui-sans-serif, system-ui, sans-serif;
  font-size: 36px;
  font-weight: 700;
  line-height: 40px;
  text-align: center;
}

.home-subtitle {
  margin-top: 24px;
  font-size: 16px;
  text-align: center;
}

.home-search {
  margin-top: 32px;
}

.popular-packages {
  margin-top: 48px;
  color: var(--ink-700);
  font-size: 14px;
  line-height: 20px;
  text-align: center;
}

.popular-packages ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.popular-packages li {
  display: flex;
  flex-direction: column;
  border-radius: 8px;
}

.popular-packages a {
  border-radius: 4px;
}

.popular-packages a:hover {
  color: var(--purple-900);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.popular-packages a:focus-visible,
.social-links a:focus-visible,
.brand:focus-visible,
.site-footer a:focus-visible {
  outline: 2px solid var(--purple-600);
  outline-offset: 3px;
}

.results-page {
  width: 100%;
  max-width: 1280px;
  min-height: calc(100vh - 60px);
  padding: 32px 16px;
  margin-inline: auto;
}

.results-page > h1 {
  color: var(--purple-900);
  font-family: "PP Radio Grotesk", ui-sans-serif, system-ui, sans-serif;
  font-size: 24px;
  font-weight: 600;
  line-height: 32px;
}

.result-count {
  margin-block: 16px;
  color: var(--ink-700);
}

.results-list {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--paper-100);
  border: 1px solid oklch(93% 0 0);
  border-radius: 8px;
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / 10%), 0 4px 6px -4px rgb(0 0 0 / 10%);
}

.results-list li + li {
  border-top: 1px solid var(--paper-200);
}

.results-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 16px 24px;
  border-radius: 8px;
}

.results-list a:hover {
  background: var(--paper-200);
}

.results-list a:focus-visible {
  position: relative;
  outline: 1px solid var(--purple-600);
  outline-offset: -1px;
}

.results-list article {
  min-width: 0;
}

.results-list h2 {
  overflow: hidden;
  font-size: 20px;
  font-weight: 700;
  line-height: 28px;
  text-overflow: ellipsis;
}

.result-details {
  color: var(--ink-700);
}

.result-details time {
  display: inline;
  padding: 4px 8px;
  font-size: 14px;
  line-height: 20px;
  white-space: nowrap;
  background: var(--purple-100);
  border-radius: 9999px;
}

.result-details span + time {
  margin-left: 12px;
}

.chevron {
  display: block;
  flex: none;
  width: 20px;
  height: 20px;
  margin-left: 16px;
  background: currentColor;
  -webkit-mask: url("/static/chevron.svg?v=f815e5c6") center / contain no-repeat;
  mask: url("/static/chevron.svg?v=f815e5c6") center / contain no-repeat;
}

.package-hero {
  width: 100%;
  background: var(--paper-025);
}

.package-hero-inner {
  width: 100%;
  max-width: 1280px;
  padding: 32px 16px;
  margin-inline: auto;
}

.package-summary h1 {
  color: var(--purple-900);
  font-size: 36px;
  font-weight: 700;
  line-height: 40px;
  overflow-wrap: anywhere;
}

.package-summary > p {
  margin-block: 8px;
  color: var(--ink-700);
  font-size: 18px;
  font-weight: 500;
  line-height: 28px;
}

.code-block {
  display: inline-flex;
  max-width: 100%;
  align-items: center;
  padding: 8px;
  overflow-x: auto;
  white-space: nowrap;
  background: white;
  border: 1px solid oklch(93% 0 0);
}

code {
  font-family: "Matter Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.code-block code {
  display: block;
}

[data-copy] {
  flex: none;
  padding: 4px;
  margin-left: 16px;
  cursor: pointer;
  background: transparent;
  border-radius: 4px;
}

[data-copy]:hover,
[data-copy].copied {
  background: var(--paper-200);
}

[data-copy]:focus-visible {
  outline: 2px solid var(--purple-600);
}

[data-copy]::before {
  display: block;
  width: 15px;
  height: 15px;
  background: currentColor;
  content: "";
  -webkit-mask: url("/static/copy.svg?v=80b4a7ca") center / contain no-repeat;
  mask: url("/static/copy.svg?v=80b4a7ca") center / contain no-repeat;
}

.tips {
  max-width: 576px;
  padding: 24px;
  margin-top: 24px;
  border: 2px dashed var(--purple-600);
  border-radius: 8px;
}

.tips h2 {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--purple-700);
  font-size: 18px;
  font-weight: 700;
  line-height: 28px;
}

.info-icon {
  display: block;
  width: 20px;
  height: 20px;
  background: currentColor;
  -webkit-mask: url("/static/info.svg?v=5b5b68a1") center / contain no-repeat;
  mask: url("/static/info.svg?v=5b5b68a1") center / contain no-repeat;
}

.tips p {
  margin-top: 4px;
}

.tips code {
  font-family: inherit;
  line-height: inherit;
  white-space: nowrap;
}

.tips a,
.release-install a {
  font-weight: 700;
}

.releases {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  width: 100%;
  max-width: 1280px;
  padding: 16px;
  margin-inline: auto;
  overflow: hidden;
}

.releases > li,
.releases article {
  display: contents;
}

.release-version h2 {
  font-size: 24px;
  font-weight: 400;
  line-height: 32px;
  overflow-wrap: anywhere;
}

.release-version h2 span {
  display: block;
  color: var(--ink-600);
  font-size: 12px;
  font-weight: 500;
  line-height: 16px;
  text-transform: uppercase;
}

.release-version p,
.release-updated {
  color: var(--ink-600);
  font-size: 14px;
  line-height: 20px;
}

.release-reference,
.release-install {
  min-width: 0;
}

.release-reference h3,
.release-install h3 {
  color: var(--ink-700);
  font-size: 14px;
  font-weight: 700;
  line-height: 20px;
}

.reference {
  display: inline-flex;
  max-width: 100%;
  min-width: 0;
  align-items: center;
}

.commit-hash {
  min-width: 0;
  overflow: hidden;
  word-break: break-all;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
  display: -webkit-box;
}

.hash-mark {
  color: var(--ink-600);
}

.outputs-heading {
  margin-top: 8px;
}

.release-install .code-block {
  padding: 8px;
}

.release-updated {
  font-weight: 500;
}

.releases hr {
  width: 100%;
  margin: 0;
  border: 0;
  border-bottom: 1px solid var(--paper-300);
}

@media (min-width: 640px) {
  .social-links {
    gap: 16px;
  }

  .site-footer {
    font-size: 18px;
    line-height: 28px;
  }

  .home-page h1 {
    font-size: 60px;
    line-height: 60px;
  }

  .home-subtitle {
    font-size: 24px;
    line-height: 32px;
  }

  .popular-packages ul {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .popular-packages li {
    font-size: 20px;
    line-height: 28px;
  }
}

@media (min-width: 768px) {
  .home-page h1 {
    margin-top: 96px;
  }

  .home-search {
    margin-top: 48px;
  }

  .popular-packages {
    margin-top: 96px;
  }

  .package-hero-inner {
    padding: 48px 32px;
  }

  .releases {
    grid-template-columns: none;
    padding: 32px;
  }

  .release-version {
    grid-column: 1;
  }

  .release-reference,
  .release-install,
  .release-updated {
    grid-column: 2;
  }

  .releases hr {
    grid-column: 1 / -1;
  }
}

@media (min-width: 1024px) {
  .site-header {
    padding-inline: 32px;
  }

  .results-page {
    padding-inline: 24px;
  }

  .package-hero-inner {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 64px;
  }

  .package-summary {
    flex: 1 1 auto;
    min-width: 0;
  }

  .package-summary .code-block,
  .release-install .code-block {
    padding: 16px;
  }

  .tips {
    flex: 0 1 576px;
    margin-top: 8px;
  }

  .releases {
    gap: 16px;
  }

  .release-install {
    grid-column: 3;
  }
}

@media (max-width: 639px) {
  .site-nav {
    gap: 10px;
  }

  .site-nav:has(.header-search) .brand-name {
    display: none;
  }

  .site-nav:has(.header-search) .brand {
    min-width: 28px;
  }

  .results-list a {
    padding-inline: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
  }
}
