@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500;600&family=Source+Sans+3:wght@400;500;600;700&family=Space+Grotesk:wght@500;600;700&display=swap");
:root {
  --ink: #17151f;
  --paper: #fbfbff;
  --surface: #f1f0f8;
  --line: #dcd8ea;
  --muted: #6b6878;
  --violet: #7046ff;
  --violet-2: #a994ff;
  --orange: #ff7b35;
  --green: #35c777;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --display: "Space Grotesk", sans-serif;
  --serif: Georgia, serif;
  color-scheme: light;
}
/* Reset code style specifically inside pre blocks */
pre {
  background-color: #1e1e1e;
  color: #f8f8f2;
  padding: 1rem;
  border-radius: 6px;
  overflow-x: auto;
}

pre code {
  background: transparent !important;
  color: inherit !important;
  padding: 0 !important;
  border-radius: 0 !important;
  font-family: monospace;
}

/* Style for regular inline `code` */
code {
  background: #f1f3f5;
  color: #c7254e;
  padding: 0.15rem 0.35rem;
  border-radius: 4px;
}
html[data-theme="dark"] {
  --ink: #f4f2ff;
  --paper: #11101a;
  --surface: #171521;
  --line: #37334a;
  --muted: #aaa4bd;
  --violet: #a994ff;
  --violet-2: #735cff;
  --orange: #ff9b68;
  --green: #70e0a2;
  color-scheme: dark;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  min-width: 320px;
  background: var(--paper);
  color: var(--ink);
  font-family: "Source Sans 3", sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
  cursor: pointer;
}
.site-header {
  height: 76px;
  padding: 0 clamp(20px, 5vw, 76px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--paper) 80%, transparent);
  backdrop-filter: blur(15px);
  position: sticky;
  top: 0;
  z-index: 10;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font: 700 14px var(--display);
  letter-spacing: 0.12em;
}
.brand img {
  width: 31px;
  height: 31px;
}
.brand span span {
  color: var(--violet);
}
.nav {
  display: flex;
  gap: clamp(16px, 3vw, 34px);
  font: 600 12px var(--mono);
  color: var(--muted);
}
.nav a:hover {
  color: var(--violet);
}
.theme-toggle {
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--muted);
  border-radius: 999px;
  padding: 8px 12px;
  display: flex;
  gap: 7px;
  align-items: center;
  font: 11px var(--mono);
  transition: transform 0.18s ease-out;
}
.theme-toggle:active {
  transform: scale(0.97);
}
.announcement {
  margin: 18px auto 0;
  max-width: 1100px;
  padding: 12px 16px;
  border: 1px solid #b9aaff;
  background: #f0ecff;
  color: #3b268f;
  font: 12px var(--mono);
  animation: rise 0.45s cubic-bezier(0.23, 1, 0.32, 1);
}
.announcement a {
  font-weight: 700;
  text-decoration: underline;
  margin-left: 10px;
}
.ambient {
  position: fixed;
  z-index: -2;
  filter: blur(60px);
  opacity: 0.35;
  pointer-events: none;
  border-radius: 50%;
  animation: drift 18s ease-in-out infinite alternate;
}
.ambient-a {
  width: 420px;
  height: 420px;
  right: -140px;
  top: 130px;
  background: linear-gradient(135deg, var(--violet-2), #c8bfff 48%, var(--orange));
}
.ambient-b {
  width: 310px;
  height: 310px;
  left: -130px;
  bottom: 8%;
  background: #ffcca9;
  animation-delay: -6s;
}
.grid-noise {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.23;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, black, transparent 80%);
}
.site-footer {
  max-width: 1100px;
  margin: 100px auto 0;
  padding: 25px 0 35px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 18px;
  color: var(--muted);
  font: 11px var(--mono);
}
.site-footer a {
  color: var(--violet);
}
.page {
  max-width: 1100px;
  margin: 0 auto;
  padding: clamp(56px, 9vw, 120px) 24px;
}
.kicker {
  font: 11px var(--mono);
  letter-spacing: 0.16em;
  color: var(--violet);
  text-transform: uppercase;
}
.hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 60px;
  align-items: center;
}
.hero h1 {
  font: 700 clamp(44px, 6.5vw, 78px) var(--display);
  line-height: 0.94;
  letter-spacing: -0.07em;
  margin: 18px 0 25px;
  max-width: 760px;
}
.hero h1 em {
  font-style: normal;
  background: linear-gradient(110deg, var(--violet), var(--orange));
  background-clip: text;
  color: transparent;
}
.lede {
  font-size: 16px;
  color: var(--muted);
  max-width: 640px;
}
.actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 30px 0;
}
.button {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 17px;
  border: 1px solid var(--ink);
  font: 700 12px var(--mono);
  transition:
    transform 0.18s ease-out,
    box-shadow 0.18s ease-out;
}
.button:hover {
  transform: translateY(-3px);
  box-shadow: 5px 5px 0 var(--ink);
}
.button.primary {
  background: var(--violet);
  border-color: var(--violet);
  color: white;
}
.button.secondary {
  background: var(--paper);
}
.hero-art {
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--paper) 55%, transparent);
  min-height: 390px;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
}
.hero-art img {
  width: 75%;
  max-height: 270px;
}
.hero-art:after {
  content: "";
  position: absolute;
  bottom: 20px;
  left: 22px;
  color: var(--orange);
  font: 12px var(--mono);
}
.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin: 70px 0;
}
.metric {
  padding: 22px 15px;
  border-right: 1px solid var(--line);
}
.metric:last-child {
  border: 0;
}
.metric strong {
  display: block;
  font: 32px var(--display);
  color: var(--violet);
}
.metric span {
  font: 11px var(--mono);
  color: var(--muted);
}
.section {
  margin: 115px 0;
}
.section-head {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  align-items: end;
  margin-bottom: 28px;
}
.section h2 {
  font: 700 clamp(28px, 3.4vw, 44px) var(--display);
  line-height: 1.02;
  letter-spacing: -0.04em;
  margin: 10px 0;
}
.section-head p {
  max-width: 420px;
  color: var(--muted);
}
.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 20px;
}
.badges a {
  display: inline-flex;
  line-height: 0;
}
.badges img {
  height: 20px;
}
.card-link {
  color: inherit;
  text-decoration: none;
}
.card-link h3 {
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 4px;
  transition: text-decoration-color 160ms ease;
}
.card-link:hover h3,
.card-link:focus-visible h3 {
  text-decoration-color: currentColor;
}
.feature-grid,
.plugin-grid,
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.card {
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--paper) 84%, transparent);
  padding: 23px;
  transition:
    transform 0.2s ease-out,
    border-color 0.2s;
}
.card:hover {
  transform: translateY(-5px);
  border-color: var(--violet);
}
.card h3 {
  font: 700 18px var(--display);
  margin: 16px 0 7px;
}
.card p {
  color: var(--muted);
  font-size: 14px;
  margin: 0;
}
.number {
  font: 13px var(--mono);
  color: var(--orange);
}
.terminal {
  background: #17151f;
  color: #ebe7ff;
  padding: 26px;
  font: 13px/1.8 var(--mono);
  box-shadow: 10px 10px 0 #d3cbff;
}
.terminal .ok {
  color: #75e3a2;
}
.terminal .warn {
  color: #ffae7a;
}
.docs-layout {
  display: grid;
  grid-template-columns: 225px 1fr;
  gap: 60px;
}
.toc {
  position: sticky;
  top: 105px;
  height: max-content;
  border-right: 1px solid var(--line);
  padding-right: 20px;
}
.toc a {
  display: block;
  padding: 8px 0;
  color: var(--muted);
  font: 12px var(--mono);
}
.toc a:hover {
  color: var(--violet);
}
.article {
  max-width: 760px;
}
.article h1 {
  font: 700 clamp(34px, 5vw, 54px) var(--display);
  line-height: 1;
  margin: 12px 0 18px;
  letter-spacing: -0.06em;
}
.article h2 {
  font: 700 27px var(--display);
  margin: 52px 0 12px;
}
.article h3 {
  font: 20px var(--display);
  margin: 30px 0 8px;
}
.article p,
.article li {
  font-size: 16px;
  color: var(--muted);
}
.article code {
  font: 13px var(--mono);
  background: #eeebfa;
  color: #4e32bc;
  padding: 2px 5px;
}
.article pre {
  background: #191621;
  color: #eee8ff;
  padding: 20px;
  overflow: auto;
  font: 13px/1.7 var(--mono);
}
.article blockquote {
  border-left: 3px solid var(--orange);
  padding-left: 20px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 21px;
}
.table-wrap {
  overflow: auto;
}
.compare {
  border-collapse: collapse;
  width: 100%;
  font-size: 14px;
  background: color-mix(in srgb, var(--paper) 80%, transparent);
}
.compare th,
.compare td {
  border: 1px solid var(--line);
  padding: 13px;
  text-align: left;
  vertical-align: top;
}
.compare th {
  font: 700 11px var(--mono);
  color: var(--violet);
  text-transform: uppercase;
}
.plugin-toolbar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 25px 0;
}
.plugin-toolbar input,
.plugin-toolbar select {
  border: 1px solid var(--line);
  background: var(--paper);
  padding: 12px 14px;
  color: var(--ink);
  font: 12px var(--mono);
}
.plugin-toolbar input {
  flex: 1;
  min-width: 240px;
}
.plugin-card {
  min-height: 205px;
}
.plugin-card .tag {
  font: 10px var(--mono);
  color: var(--violet);
  text-transform: uppercase;
}
.plugin-card .version {
  float: right;
  font: 10px var(--mono);
  color: var(--muted);
}
.plugin-card a {
  display: inline-block;
  margin-top: 15px;
  font: 11px var(--mono);
  color: var(--orange);
}
.blog-meta {
  font: 11px var(--mono);
  color: var(--muted);
}
.blog-card h3 {
  font-size: 21px;
}
.blog-card .blog-meta {
  margin-top: 16px;
}
.empty {
  padding: 38px;
  border: 1px dashed var(--line);
  color: var(--muted);
  font: 13px var(--mono);
}
@keyframes drift {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(40px, -28px, 0) scale(1.12);
  }
  100% {
    transform: translate3d(-24px, 24px, 0) scale(0.96);
  }
}
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@media (max-width: 780px) {
  .site-header {
    height: auto;
    min-height: 70px;
    flex-wrap: wrap;
    gap: 12px;
    padding: 14px 20px;
  }
  .nav {
    order: 3;
    width: 100%;
    overflow: auto;
    padding-bottom: 4px;
  }
  .toggle-label {
    display: none;
  }
  .hero,
  .docs-layout {
    grid-template-columns: 1fr;
  }
  .hero-art {
    min-height: 260px;
  }
  .metrics {
    grid-template-columns: repeat(2, 1fr);
  }
  .metric:nth-child(2) {
    border-right: 0;
  }
  .feature-grid,
  .plugin-grid,
  .blog-grid {
    grid-template-columns: 1fr;
  }
  .toc {
    position: static;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 0 0 14px;
    display: flex;
    gap: 15px;
    overflow: auto;
  }
  .section-head {
    display: block;
  }
  .site-footer {
    margin: 60px 24px 0;
    display: grid;
  }
  .page {
    padding-top: 55px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Requested visual refinements: original font family, restrained scale, true dark mode, and moving editorial gradients. */
.npm-link {
  display: inline-flex;
  align-items: center;
}
.npm-icon {
  display: inline-block;
  padding: 2px 5px;
  border-radius: 3px;
  background: #cb3837;
  color: white;
  font: 700 10px/1 var(--mono);
  letter-spacing: -0.04em;
}
html[data-theme="dark"] .site-header {
  background: color-mix(in srgb, var(--paper) 88%, transparent);
}
html[data-theme="dark"] .card,
html[data-theme="dark"] .hero-art,
html[data-theme="dark"] .plugin-toolbar input,
html[data-theme="dark"] .plugin-toolbar select {
  background: color-mix(in srgb, var(--paper) 88%, transparent);
}
html[data-theme="dark"] .article code {
  background: #2b2740;
  color: #d7cbff;
}
html[data-theme="dark"] .announcement {
  background: #292344;
  color: #e1d9ff;
  border-color: #6552ba;
}
.hero h1 {
  font-weight: 700;
}
@media (prefers-reduced-motion: reduce) {
  .ambient,
  .announcement {
    animation: none;
  }
  html {
    scroll-behavior: auto;
  }
}
