@font-face {
  font-family: Space Grotesk;
  src: url(space-grotesk-latin.woff2) format("woff2");
  font-weight: 300 700;
  font-display: swap;
}
:root {
  --page: #f7f6f2;
  --surface: #fffefa;
  --surface-soft: #eeece5;
  --surface-hover: #eae7e0;
  --ink: #242320;
  --muted: #6e6b64;
  --faint: #6e6b64;
  --line: #dcdad2;
  --line-strong: #b9b5ac;
  --accent: #7354a3;
  --accent-soft: #ece6f4;
  --shadow: none;
  --sans: "Space Grotesk", "PingFang SC", "Microsoft YaHei", sans-serif;
}
[data-theme="dark"] {
  --page: #1c1d1b;
  --surface: #242521;
  --surface-soft: #30312b;
  --surface-hover: #373831;
  --ink: #eeeee6;
  --muted: #afafa4;
  --faint: #afafa4;
  --line: #44453f;
  --line-strong: #6c6d64;
  --accent: #c4acf5;
  --accent-soft: #383143;
  --shadow: none;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --page: #1c1d1b;
    --surface: #242521;
    --surface-soft: #30312b;
    --surface-hover: #373831;
    --ink: #eeeee6;
    --muted: #afafa4;
    --faint: #afafa4;
    --line: #44453f;
    --line-strong: #6c6d64;
    --accent: #c4acf5;
    --accent-soft: #383143;
    --shadow: none;
  }
}
body {
  background: var(--page);
}
.site-header {
  position: relative;
  min-height: 80px;
  background: var(--page);
  backdrop-filter: none;
  padding: 0 max(28px, calc((100vw - 1392px) / 2));
  grid-template-columns: 1fr auto 1fr;
}
.wordmark,
.brand {
  font-size: 46px;
  font-weight: 700;
  letter-spacing: -4px;
  line-height: 1;
  gap: 0;
}
.wordmark:after,
.brand:after {
  content: ".";
  color: var(--accent);
}
.site-nav,
.primary-nav {
  font-size: 12px;
  gap: 30px;
}
.site-nav a,
.primary-nav a {
  font-weight: 400;
}
.site-actions {
  gap: 18px;
}
.theme-toggle {
  border: 0;
  background: transparent;
}
.locale-switch {
  font-size: 11px;
}
.doc-shell {
  max-width: 940px;
  padding-top: 72px;
}
.doc-shell h1,
.publish-intro h1,
.project-directory-hero h1 {
  font-weight: 500;
  letter-spacing: -0.055em;
  line-height: 1.2;
  font-size: clamp(38px, 5vw, 66px);
}
.doc-shell h2 {
  font-weight: 500;
  margin-top: 55px;
  letter-spacing: -0.03em;
}
.doc-shell h3 {
  font-weight: 500;
}
.hero-kicker,
.section-kicker {
  letter-spacing: 0.13em;
  font-size: 10px;
  color: var(--accent);
}
.project-directory-shell {
  max-width: 1392px;
  width: calc(100% - 112px);
}
.project-directory-hero {
  padding-top: 64px;
  padding-bottom: 38px;
}
.project-directory-hero h1 {
  max-width: 14em;
}
.project-directory-hero p {
  color: var(--muted);
}
.project-discovery-stats {
  border-radius: 4px;
  gap: 1px;
}
.project-discovery-stats dt {
  font-size: 36px;
  font-weight: 500;
}
.topic-discovery,
.project-directory-card,
.ecosystem-project-card,
.project-card,
.collection-card,
.publish-panel,
.candidate-prefill,
.publish-steps,
.preview-panel,
.distribution-studio,
.pack-mode-switch {
  border-radius: 6px;
  box-shadow: none;
  background-image: none;
  backdrop-filter: none;
}
.project-directory-card:hover,
.ecosystem-project-card:hover {
  box-shadow: none;
  border-color: var(--muted);
}
.discovery-boundary {
  border-radius: 0;
  border-width: 0 0 1px;
  background: transparent;
  padding: 20px 0;
  color: var(--muted);
}
.primary-link,
.primary-button {
  background: var(--ink);
  color: var(--page);
  border-color: var(--ink);
  border-radius: 3px;
}
.site-footer {
  background: var(--surface-soft);
  border-top: 1px solid var(--line);
  padding-top: 42px;
  padding-bottom: 36px;
}
.footer-brand {
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -2px;
}
.footer-brand:after {
  content: ".";
  color: var(--accent);
}
.footer-links {
  line-height: 1.8;
}
.footer-heading {
  font-family: var(--sans);
}
.section-heading h2 {
  font-weight: 500;
  letter-spacing: -0.03em;
}
button,
input,
select,
textarea {
  border-radius: 4px;
}
pre {
  border-radius: 5px;
}
.publish-steps button[aria-current="step"] {
  background: var(--accent-soft);
}
.doc-shell > section {
  scroll-margin-top: 24px;
}
@media (max-width: 800px) {
  .site-header {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding: 16px 20px;
  }
  .site-nav,
  .primary-nav {
    display: flex;
    order: 3;
    width: 100%;
    overflow: auto;
    gap: 24px;
    padding-bottom: 3px;
  }
  .site-actions {
    margin-left: auto;
  }
  .wordmark,
  .brand {
    font-size: 40px;
  }
  .project-directory-shell {
    width: calc(100% - 40px);
  }
  .project-directory-hero {
    padding-top: 40px;
  }
  .doc-shell {
    padding-top: 40px;
  }
  .doc-shell h1,
  .publish-intro h1,
  .project-directory-hero h1 {
    font-size: 38px;
  }
  .site-footer {
    padding-top: 32px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *:before,
  *:after {
    transition: none !important;
    animation: none !important;
  }
}

.agent-submission-card { border-radius: 4px; background: var(--surface-soft); box-shadow: none; }
.publish-intro h1 { max-width: 900px; }
.publish-intro { max-width: 900px; }

.publish-intro h1 { text-wrap: balance; }
