@font-face {
  font-family: Space Grotesk;
  src: url(space-grotesk-latin.woff2) format("woff2");
  font-weight: 300 700;
  font-display: swap;
}
:root {
  --paper: #f7f6f2;
  --ink: #242320;
  --muted: #6e6b64;
  --line: #dcdad2;
  --surface: #fffefa;
  --soft: #eeece5;
  --accent: #7354a3;
  --positive: #3b7054;
  --radius: 6px;
  color-scheme: light;
  font-family: "Space Grotesk", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--paper);
  color: var(--ink);
}
:root[data-theme="dark"] {
  --paper: #1c1d1b;
  --ink: #eeeee6;
  --muted: #afafa4;
  --line: #44453f;
  --surface: #242521;
  --soft: #30312b;
  --accent: #c4acf5;
  --positive: #a1cbb0;
  color-scheme: dark;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 30px;
}
body {
  margin: 0;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
select {
  font: inherit;
  color: inherit;
}
button,
a,
input,
select {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: default;
  opacity: 0.45;
}
a,
button {
  touch-action: manipulation;
}
button {
  background: none;
  border: 0;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 5px;
}
::selection {
  background: var(--accent);
  color: var(--paper);
}
.shell {
  width: calc(100% - 112px);
  max-width: 1392px;
  margin: auto;
}
.sr-only,
.skip:not(:focus) {
  position: absolute;
  clip: rect(0, 0, 0, 0);
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.skip:focus {
  position: fixed;
  z-index: 20;
  background: var(--ink);
  color: var(--paper);
  padding: 15px;
}
.market-header {
  height: 80px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--line);
  gap: 74px;
}
.hub-wordmark {
  font-size: 46px;
  font-weight: 700;
  letter-spacing: -4px;
  line-height: 1;
  display: inline-block;
  padding-right: 5px;
}
.market-header nav {
  display: flex;
  gap: 30px;
  align-items: center;
  font-size: 13px;
}
.market-header nav a {
  padding: 14px 0;
  position: relative;
}
.market-header nav a:after {
  content: "";
  height: 1px;
  background: currentColor;
  position: absolute;
  bottom: 7px;
  left: 0;
  right: 100%;
  transition: right 0.2s;
}
.market-header nav a:hover:after,
.market-header nav a.nav-active:after {
  right: 0;
}
.header-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
}
.header-actions button {
  height: 42px;
  min-width: 34px;
}
.header-actions #theme-toggle {
  font-size: 22px;
}
.submit-link {
  margin-left: 8px;
  padding: 12px 18px;
  border: 1px solid var(--ink);
  border-radius: 3px;
  display: flex;
  gap: 24px;
  transition:
    background 0.2s,
    color 0.2s;
}
.submit-link:hover {
  background: var(--ink);
  color: var(--paper);
}
.intro {
  padding-top: 31px;
  padding-bottom: 50px;
}
.intro-label {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  letter-spacing: 0.13em;
}
.edition {
  color: var(--muted);
}
.intro-body {
  display: grid;
  grid-template-columns: 1.7fr 1fr;
  gap: 50px;
  align-items: end;
  padding: 44px 0 48px;
}
h1 {
  font-size: clamp(54px, 6.3vw, 92px);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.055em;
  margin: 0;
}
h1 em {
  font-style: normal;
  color: var(--accent);
}
.intro-aside {
  padding: 0 0 5px 12%;
  max-width: 450px;
}
.intro-index {
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--muted);
}
.intro-aside p {
  font-size: 15px;
  line-height: 1.9;
  margin: 20px 0 25px;
  white-space: pre-line;
}
.browse-link {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  padding-bottom: 9px;
  border-bottom: 1px solid var(--ink);
  max-width: 180px;
}
.browse-link span:last-child {
  transition: transform 0.2s;
}
.browse-link:hover span:last-child {
  transform: translateY(4px);
}
.market-search {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 78px;
  border: 1px solid var(--ink);
  background: var(--surface);
  padding: 8px 9px 8px 26px;
  border-radius: 4px;
}
.search-label {
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  padding-right: 26px;
  border-right: 1px solid var(--line);
}
.market-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  background: none;
  font-size: 17px;
  padding: 12px 0;
  outline-offset: 0;
}
.market-search input::placeholder {
  color: var(--muted);
}
.market-search button {
  width: 56px;
  height: 56px;
  background: var(--ink);
  color: var(--paper);
  border-radius: 2px;
  flex-shrink: 0;
  font-size: 26px;
  transition: background 0.2s;
}
.market-search button:hover {
  background: var(--accent);
}
.search-foot {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 11px;
  margin-top: 13px;
}
.search-foot kbd {
  border: 1px solid var(--line);
  padding: 1px 6px;
  border-radius: 2px;
  font-family: inherit;
  margin-right: 5px;
}
.catalog-section {
  padding-top: 18px;
  padding-bottom: 58px;
}
.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 27px;
  gap: 20px;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--muted);
}
h2 {
  font-size: 29px;
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.25;
  margin: 12px 0 0;
}
.sync-info {
  font-size: 11px;
  color: var(--muted);
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 8px 0;
}
.status-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--positive);
  display: inline-block;
}
.category-tabs {
  display: flex;
  gap: 24px;
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
  scrollbar-width: thin;
}
.category-tabs button {
  font-size: 13px;
  white-space: nowrap;
  padding: 0 0 16px;
  position: relative;
  color: var(--muted);
}
.category-tabs button[aria-pressed="true"] {
  color: var(--ink);
}
.category-tabs button[aria-pressed="true"]:after {
  content: "";
  position: absolute;
  height: 2px;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--accent);
}
.category-tabs small {
  font-size: 10px;
  vertical-align: super;
  margin-left: 5px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.catalog-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin: 20px 0;
  font-size: 11px;
  color: var(--muted);
}
.result-count strong {
  color: var(--ink);
  font-weight: 500;
}
.catalog-controls {
  display: flex;
  gap: 18px;
  align-items: center;
}
.filter-label {
  display: flex;
  gap: 5px;
  align-items: center;
}
.filter-label input {
  accent-color: var(--accent);
  width: 13px;
  height: 13px;
}
.catalog-controls select {
  background: transparent;
  border: 0;
  font-size: 11px;
  max-width: 120px;
  padding: 9px 4px;
}
.view-switch {
  display: flex;
  gap: 2px;
  border-left: 1px solid var(--line);
  padding-left: 12px;
}
.view-switch button {
  font-size: 19px;
  width: 28px;
  height: 32px;
  color: var(--muted);
}
.view-switch button[aria-pressed="true"] {
  color: var(--ink);
  background: var(--soft);
  border-radius: 3px;
}
.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.project-card {
  padding: 24px 24px 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  min-width: 0;
  position: relative;
  transition:
    border-color 0.2s,
    transform 0.2s,
    background 0.2s;
}
.project-card:hover {
  border-color: var(--muted);
  transform: translateY(-3px);
}
.card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}
.project-monogram {
  font-size: 26px;
  font-weight: 500;
  letter-spacing: -1px;
  width: 52px;
  height: 52px;
  display: grid;
  place-content: center;
  background: var(--soft);
  border-radius: 4px;
  color: var(--ink);
}
.project-card:nth-child(6n + 2) .project-monogram {
  background: #e5e9de;
  color: #43513c;
}
.project-card:nth-child(6n + 3) .project-monogram {
  background: #eee2dc;
  color: #805846;
}
.project-card:nth-child(6n + 4) .project-monogram {
  background: #dfe8e9;
  color: #456466;
}
.stars {
  font-size: 11px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.card-name {
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.35;
  margin: 0 0 6px;
  overflow-wrap: anywhere;
}
.card-name button {
  padding: 0;
  text-align: left;
}
.card-name button:after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
}
.card-author {
  font-size: 11px;
  color: var(--muted);
  overflow-wrap: anywhere;
  margin: 0 0 16px;
}
.card-description {
  font-size: 12px;
  line-height: 1.8;
  color: var(--muted);
  margin: 0 0 24px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 43px;
}
.card-footer {
  margin-top: auto;
  border-top: 1px solid var(--line);
  padding-top: 14px;
  display: flex;
  gap: 8px;
  justify-content: space-between;
  align-items: center;
  font-size: 10px;
  color: var(--muted);
}
.card-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.card-status:before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
}
.card-status.good {
  color: var(--positive);
}
.card-status.warn {
  color: var(--accent);
}
.card-arrow {
  font-size: 17px;
  color: var(--ink);
  margin-left: auto;
}
.project-grid.list-view {
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 1px solid var(--line);
}
.list-view .project-card {
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  padding: 20px 12px;
  display: grid;
  grid-template-columns: 70px 1.1fr 1.6fr 1fr;
  gap: 24px;
  align-items: center;
  background: transparent;
}
.list-view .project-card:hover {
  transform: none;
  background: var(--soft);
}
.list-view .card-top {
  margin: 0;
}
.list-view .stars {
  display: none;
}
.list-view .card-author {
  margin: 4px 0 0;
}
.list-view .card-description {
  margin: 0;
  min-height: 0;
}
.list-view .card-footer {
  border: 0;
  padding: 0;
  margin: 0;
}
.catalog-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 7px;
  padding: 35px 0 10px;
}
.catalog-pagination button {
  font-size: 12px;
  border: 1px solid transparent;
  min-width: 36px;
  height: 36px;
  border-radius: 3px;
}
.catalog-pagination button[aria-current="page"] {
  border-color: var(--ink);
}
.catalog-pagination button:hover:not(:disabled) {
  background: var(--soft);
}
.catalog-note {
  text-align: center;
  font-size: 10px;
  color: var(--muted);
  line-height: 1.8;
  margin: 16px 0 0;
}
.loading-message,
.empty-state {
  grid-column: 1/-1;
  padding: 70px 20px;
  text-align: center;
  color: var(--muted);
  border: 1px solid var(--line);
  font-size: 14px;
}
.empty-state h3 {
  font-size: 22px;
  color: var(--ink);
  font-weight: 500;
}
.empty-state button {
  border-bottom: 1px solid currentColor;
  margin-top: 16px;
  padding: 8px 0;
}
.create-section {
  background: var(--soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.create-inner {
  display: flex;
  justify-content: space-between;
  align-items: end;
  padding-top: 52px;
  padding-bottom: 52px;
}
.create-inner h2 {
  font-size: 42px;
  line-height: 1.4;
  white-space: pre-line;
}
.create-inner p {
  color: var(--muted);
  font-size: 13px;
  margin: 0 0 20px;
}
.create-link {
  display: flex;
  gap: 75px;
  font-size: 13px;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 12px;
}
.create-link span:last-child {
  color: var(--accent);
  font-size: 20px;
}
.market-footer {
  padding-top: 38px;
  padding-bottom: 22px;
}
.footer-top {
  display: flex;
  align-items: center;
  gap: 35px;
}
.footer-top p {
  font-size: 12px;
  color: var(--muted);
}
.footer-top nav {
  flex-wrap: wrap;
  margin-left: auto;
  display: flex;
  gap: 26px;
  font-size: 11px;
}
.footer-bottom {
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  padding-top: 21px;
  margin-top: 35px;
  font-size: 9px;
  letter-spacing: 0.06em;
  color: var(--muted);
}
dialog {
  width: min(750px, calc(100% - 32px));
  max-height: calc(100dvh - 48px);
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
}
dialog::backdrop {
  background: #14151380;
  backdrop-filter: blur(3px);
}
.dialog-top {
  position: sticky;
  top: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 28px;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  z-index: 1;
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--muted);
}
.dialog-top button {
  font-size: 27px;
  width: 36px;
  height: 36px;
}
#detail-content {
  padding: 30px;
}
.detail-eyebrow {
  font-size: 11px;
  color: var(--muted);
}
.detail-title {
  font-size: 34px;
  overflow-wrap: anywhere;
  font-weight: 500;
  margin: 14px 0;
}
.detail-summary {
  font-size: 14px;
  line-height: 1.9;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.detail-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 24px 0;
}
.detail-actions a,
.detail-actions button {
  font-size: 12px;
  border: 1px solid var(--line);
  padding: 12px 16px;
  border-radius: 3px;
}
.detail-actions a:first-child {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
.detail-section {
  border-top: 1px solid var(--line);
  padding: 20px 0 5px;
  margin-top: 20px;
}
.detail-section h3 {
  font-size: 16px;
  font-weight: 500;
  margin: 0 0 16px;
}
.detail-section p {
  font-size: 12px;
  line-height: 1.8;
  color: var(--muted);
}
.detail-facts {
  display: grid;
  grid-template-columns: 120px 1fr;
  font-size: 12px;
  gap: 13px;
  margin: 0;
}
.detail-facts dt {
  color: var(--muted);
}
.detail-facts dd {
  margin: 0;
  overflow-wrap: anywhere;
}
.dependency-list {
  padding: 0;
  list-style: none;
}
.dependency-list li {
  font-size: 12px;
  line-height: 1.8;
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
  overflow-wrap: anywhere;
}
.dependency-list code {
  font-size: 11px;
}
.detail-section a {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  padding: 13px 24px;
  background: var(--ink);
  color: var(--paper);
  font-size: 12px;
  border-radius: 4px;
  z-index: 30;
  max-width: 90vw;
}
.toast[hidden] {
  display: none;
}
@media (min-width: 1536px) {
  .intro-body {
    padding-top: 64px;
    padding-bottom: 64px;
  }
  .intro {
    padding-bottom: 64px;
  }
  .project-grid {
    gap: 20px;
  }
  .project-card {
    padding: 28px;
  }
}
@media (max-width: 1100px) {
  .shell {
    width: calc(100% - 64px);
  }
  .market-header {
    gap: 40px;
    height: 80px;
  }
  .market-header nav {
    gap: 22px;
  }
  .intro-body {
    gap: 24px;
  }
  .intro-aside {
    padding-left: 0;
  }
  .intro-aside p {
    font-size: 13px;
  }
  .category-tabs {
    gap: 21px;
  }
  .project-card {
    padding: 20px;
  }
  .project-grid {
    gap: 12px;
  }
  .card-name {
    font-size: 16px;
  }
}
@media (max-width: 800px) {
  .shell {
    width: calc(100% - 40px);
  }
  .market-header {
    gap: 30px;
  }
  .market-header nav {
    gap: 16px;
  }
  .market-header nav a:last-child {
    display: none;
  }
  .submit-link {
    padding: 10px 12px;
    gap: 12px;
  }
  .header-actions {
    gap: 4px;
  }
  .intro-body {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 35px 0;
  }
  .intro-aside {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: none;
    gap: 24px;
  }
  .intro-index {
    display: none;
  }
  .intro-aside p {
    margin: 0;
    font-size: 13px;
  }
  .browse-link {
    width: 145px;
    flex-shrink: 0;
  }
  .project-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .category-tabs {
    gap: 23px;
  }
  .filter-label {
    display: none;
  }
  .list-view .project-card {
    grid-template-columns: 54px 1fr 1fr;
    gap: 16px;
  }
  .list-view .card-description {
    display: none;
  }
  .create-inner h2 {
    font-size: 34px;
  }
  .footer-top {
    gap: 22px;
  }
  .footer-top p {
    display: none;
  }
}
@media (max-width: 540px) {
  .shell {
    width: calc(100% - 36px);
  }
  .market-header {
    height: 74px;
    gap: 25px;
  }
  .hub-wordmark {
    font-size: 40px;
  }
  .market-header nav {
    font-size: 11px;
    gap: 16px;
  }
  .market-header nav a:nth-child(2) {
    display: none;
  }
  .submit-link {
    border: 0;
    padding: 9px 0 9px 10px;
    font-size: 11px;
    margin: 0;
    gap: 8px;
  }
  .header-actions button {
    min-width: 28px;
  }
  .intro {
    padding-top: 24px;
    padding-bottom: 32px;
  }
  .intro-label {
    font-size: 8px;
    letter-spacing: 0.08em;
  }
  .edition {
    display: none;
  }
  .intro-body {
    padding: 27px 0 30px;
    gap: 22px;
  }
  h1 {
    font-size: 48px;
    line-height: 1.3;
    letter-spacing: -0.07em;
  }
  .intro-aside p {
    font-size: 11px;
    line-height: 1.9;
  }
  .browse-link {
    width: 93px;
    font-size: 10px;
  }
  .market-search {
    min-height: 64px;
    padding: 6px 7px 6px 16px;
    gap: 0;
  }
  .search-label {
    display: none;
  }
  .market-search input {
    font-size: 12px;
  }
  .market-search button {
    width: 46px;
    height: 46px;
    font-size: 22px;
  }
  .search-foot {
    font-size: 9px;
  }
  .search-foot > span:last-child {
    display: none;
  }
  .section-heading {
    align-items: start;
    margin-bottom: 24px;
  }
  .eyebrow {
    font-size: 8px;
  }
  .section-heading h2 {
    font-size: 24px;
    margin-top: 8px;
  }
  .sync-info {
    font-size: 9px;
    max-width: 155px;
    line-height: 1.7;
    text-align: right;
    margin-top: 18px;
  }
  .category-tabs {
    gap: 22px;
  }
  .category-tabs button {
    font-size: 12px;
    padding-bottom: 14px;
  }
  .catalog-toolbar {
    margin: 14px 0;
    font-size: 10px;
    gap: 10px;
  }
  .catalog-controls {
    gap: 9px;
  }
  .catalog-controls select {
    font-size: 10px;
    width: 88px;
  }
  .view-switch {
    padding-left: 8px;
  }
  .project-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .project-card {
    padding: 22px;
  }
  .card-top {
    margin-bottom: 20px;
  }
  .card-name {
    font-size: 20px;
  }
  .card-description {
    font-size: 12px;
    min-height: 0;
    margin-bottom: 20px;
  }
  .card-footer {
    font-size: 10px;
  }
  .list-view .project-card {
    grid-template-columns: 44px 1fr;
    gap: 14px;
  }
  .list-view .project-monogram {
    width: 40px;
    height: 40px;
    font-size: 21px;
  }
  .list-view .card-name {
    font-size: 16px;
  }
  .list-view .card-footer {
    grid-column: 2;
  }
  .create-inner {
    display: block;
    padding-top: 36px;
    padding-bottom: 36px;
  }
  .create-inner h2 {
    font-size: 32px;
    margin-bottom: 26px;
  }
  .create-inner p {
    font-size: 11px;
  }
  .create-link {
    max-width: 240px;
    font-size: 12px;
    justify-content: space-between;
  }
  .footer-top {
    align-items: start;
    gap: 20px;
  }
  .footer-top nav {
    gap: 18px;
    font-size: 10px;
    padding-top: 10px;
  }
  .footer-bottom {
    font-size: 8px;
  }
  .detail-facts {
    grid-template-columns: 95px 1fr;
    gap: 12px;
  }
  #detail-content {
    padding: 22px;
  }
  .dialog-top {
    padding: 10px 22px;
  }
  .detail-title {
    font-size: 28px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *:before,
  *:after {
    transition: none !important;
    animation: none !important;
  }
}

.hub-wordmark:after {
  content: ".";
  color: var(--accent);
}
.brand-origin {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
.brand-origin img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}
.intro h1 em {
  color: var(--accent);
}

.card-description {
  font-size: 13px;
}
.card-author,
.stars {
  font-size: 12px;
}
.card-footer {
  font-size: 11px;
}
.catalog-toolbar,
.catalog-controls select {
  font-size: 12px;
}
.category-tabs button {
  font-size: 14px;
}
.search-foot {
  font-size: 11px;
}
