:root {
  color-scheme: light dark;
  --bg: #fbf6f2;
  --surface: #f3ece4;
  --surface-raised: #ffffff;
  --ink: #171412;
  --muted: #575049;
  --border: #ddd3c7;
  --accent: #1d4ed8;
  --accent-ink: #ffffff;
  --accent-link: #1844bd;
  --code-bg: #f1eae1;
  --term-bg: #10141d;
  --term-bar: #171d29;
  --term-ink: #e7edf8;
  --term-muted: #93a1b8;
  --term-border: #273145;
  --tok-cmd: #38bdf8;
  --tok-flag: #fbbf24;
  --tok-str: #86efac;
  --tok-env: #c4b5fd;
  --shadow: 0 22px 54px -24px rgba(15, 18, 26, 0.22);
  --font-sans: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-serif: "Iowan Old Style", "Palatino Linotype", Palatino, Charter, Georgia, serif;
  --font-mono: "SF Mono", "JetBrains Mono", "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --max-w: 72rem;
  --measure: 43rem;
  --header-h: 3.75rem;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #090c12;
    --surface: #101520;
    --surface-raised: #151c2b;
    --ink: #eef2f8;
    --muted: #9ba7bb;
    --border: #232d40;
    --accent: #2563eb;
    --accent-ink: #ffffff;
    --accent-link: #7cb3ff;
    --code-bg: #151c2b;
    --shadow: 0 28px 64px -24px rgba(0, 0, 0, 0.72);
  }
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #090c12;
  --surface: #101520;
  --surface-raised: #151c2b;
  --ink: #eef2f8;
  --muted: #9ba7bb;
  --border: #232d40;
  --accent: #2563eb;
  --accent-ink: #ffffff;
  --accent-link: #7cb3ff;
  --code-bg: #151c2b;
  --shadow: 0 28px 64px -24px rgba(0, 0, 0, 0.72);
}

:root[data-theme="light"] {
  color-scheme: light;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1.5rem);
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--ink);
}

a {
  color: var(--accent-link);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.19em;
}

a:hover {
  text-decoration-thickness: 2px;
}

:focus-visible {
  outline: 2px solid var(--accent-link);
  outline-offset: 2px;
}

code {
  font-family: var(--font-mono);
  font-size: 0.875em;
  background: var(--code-bg);
  border: 1px solid var(--border);
  border-radius: 0.3rem;
  padding: 0.1em 0.36em;
  overflow-wrap: break-word;
}

pre code {
  background: none;
  border: 0;
  padding: 0;
  font-size: 0.875rem;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0.5rem;
  z-index: 100;
  padding: 0.5rem 0.85rem;
  border-radius: 0.4rem;
  background: var(--accent);
  color: var(--accent-ink);
  text-decoration: none;
  font-weight: 600;
}

.skip-link:focus {
  left: 0.75rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.site-header__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0.65rem 1.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.25rem;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}

.brand-mark {
  display: block;
  border-radius: 0.35rem;
  flex: none;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 1rem;
}

.site-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  padding: 0.25rem 0;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--ink);
}

.site-nav a[aria-current="page"] {
  box-shadow: inset 0 -2px 0 var(--accent-link);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.theme-switch {
  display: inline-flex;
  align-items: center;
  padding: 0.16rem;
  border-radius: 0.45rem;
  background: var(--surface);
  border: 1px solid var(--border);
}

.theme-btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-family: var(--font-sans);
  font-size: 0.76rem;
  font-weight: 600;
  padding: 0.24rem 0.5rem;
  border-radius: 0.32rem;
  cursor: pointer;
}

.theme-btn[aria-pressed="true"] {
  background: var(--surface-raised);
  color: var(--ink);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
}

.btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.54rem 0.98rem;
  border-radius: 0.45rem;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 120ms ease, opacity 120ms ease;
}

.btn--primary {
  background: var(--accent);
  color: var(--accent-ink);
}

.btn--secondary {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--border);
}

.copy-action-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin: 1rem 0 1.25rem;
}

.site-main {
  flex: 1;
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 2.5rem 1.25rem 4rem;
}

.eyebrow {
  margin: 0 0 0.65rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--muted);
}

.hero {
  display: grid;
  gap: 2rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--border);
}

.hero__copy {
  max-width: 50rem;
}

.hero h1 {
  margin: 0 0 1rem;
  font-family: var(--font-serif);
  font-size: clamp(2.05rem, 4.1vw, 3.15rem);
  font-weight: 600;
  line-height: 1.13;
  letter-spacing: -0.02em;
}

.hero__summary {
  margin: 0 0 1.35rem;
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--muted);
  max-width: var(--measure);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.hero__install {
  max-width: 44rem;
  margin: 0 0 0.85rem;
}

.hero__scope {
  margin: 0;
  font-size: 0.86rem;
  color: var(--muted);
  max-width: var(--measure);
}

.shot-figure {
  margin: 0;
}

.shot-window {
  position: relative;
  border-radius: 0.85rem;
  overflow: hidden;
  border: 1px solid var(--term-border);
  background: #0c1018;
  box-shadow: var(--shadow);
}

.shot-img {
  display: block;
  width: 100%;
  height: auto;
}

.shot-caption {
  margin-top: 0.65rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.home-section {
  padding: 3rem 0;
  border-bottom: 1px solid var(--border);
}

.home-section:last-child {
  border-bottom: 0;
  padding-bottom: 0.5rem;
}

.section-head {
  max-width: var(--measure);
  margin-bottom: 1.75rem;
}

.section-head h2 {
  margin: 0 0 0.65rem;
  font-family: var(--font-serif);
  font-size: clamp(1.55rem, 2.7vw, 2.05rem);
  font-weight: 600;
  line-height: 1.22;
  letter-spacing: -0.015em;
}

.section-head p {
  margin: 0;
  color: var(--muted);
  font-size: 1.02rem;
}

.split-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.75rem;
  align-items: start;
}

@media (min-width: 58rem) {
  .split-grid {
    grid-template-columns: minmax(0, 23.5rem) minmax(0, 1fr);
    gap: 2.25rem;
  }
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15.5rem, 1fr));
  gap: 1rem;
}

.card {
  padding: 1.15rem 1.2rem;
  border-radius: 0.6rem;
  background: var(--surface);
  border: 1px solid var(--border);
}

.card h3 {
  margin: 0 0 0.45rem;
  font-size: 1rem;
  font-weight: 650;
  line-height: 1.35;
}

.card p {
  margin: 0;
  font-size: 0.93rem;
  color: var(--muted);
}

.prose-stack p {
  margin: 0 0 1rem;
  max-width: var(--measure);
}

.prose-stack p:last-child {
  margin-bottom: 0;
}

.prose-list {
  margin: 0.75rem 0 1rem;
  padding-left: 1.25rem;
  max-width: var(--measure);
}

.prose-list li {
  margin-bottom: 0.45rem;
}

.terminal-frame {
  border-radius: 0.62rem;
  overflow: hidden;
  background: var(--term-bg);
  color: var(--term-ink);
  border: 1px solid var(--term-border);
  box-shadow: var(--shadow);
  margin: 1rem 0;
}

.terminal-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.48rem 0.85rem;
  background: var(--term-bar);
  border-bottom: 1px solid var(--term-border);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--term-muted);
}

.copy-btn {
  appearance: none;
  border: 1px solid var(--term-border);
  background: #202838;
  color: var(--term-ink);
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.22rem 0.6rem;
  border-radius: 0.32rem;
  cursor: pointer;
}

.copy-btn:hover {
  background: #2b364c;
}

.terminal-pre {
  margin: 0;
  padding: 0.95rem 1.05rem;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 0.84rem;
  line-height: 1.62;
}

.term-prompt {
  color: var(--term-muted);
  user-select: none;
}

.tok-cmd {
  color: var(--tok-cmd);
  font-weight: 600;
}

.tok-flag {
  color: var(--tok-flag);
}

.tok-str {
  color: var(--tok-str);
}

.tok-env {
  color: var(--tok-env);
}

.tok-comment,
.tok-out {
  color: var(--term-muted);
}

.docs-shell {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: start;
}

@media (min-width: 56rem) {
  .docs-shell {
    grid-template-columns: 14.5rem minmax(0, 1fr);
    gap: 2.75rem;
  }

  .docs-sidebar {
    position: sticky;
    top: calc(var(--header-h) + 1.5rem);
  }
}

.docs-sidebar__group {
  margin-bottom: 1.35rem;
}

.docs-sidebar__label {
  margin: 0 0 0.45rem;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--muted);
}

.docs-sidebar__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.docs-sidebar__list a {
  display: block;
  padding: 0.34rem 0.55rem;
  border-radius: 0.38rem;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
}

.docs-sidebar__list a:hover {
  color: var(--ink);
  background: var(--surface);
}

.docs-sidebar__list a[aria-current="page"] {
  color: var(--ink);
  background: var(--surface);
  font-weight: 600;
}

.docs-article {
  min-width: 0;
  max-width: 48rem;
}

.docs-article h1 {
  margin: 0 0 0.75rem;
  font-family: var(--font-serif);
  font-size: clamp(1.85rem, 3.2vw, 2.45rem);
  line-height: 1.18;
  letter-spacing: -0.015em;
}

.docs-lead {
  margin: 0 0 1.25rem;
  font-size: 1.08rem;
  color: var(--muted);
}

.docs-meta-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.84rem;
}

.docs-article h2 {
  margin: 2.25rem 0 0.65rem;
  font-size: 1.32rem;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.docs-article h3 {
  margin: 1.5rem 0 0.45rem;
  font-size: 1.04rem;
  line-height: 1.35;
}

.docs-article p {
  margin: 0 0 0.95rem;
}

.docs-article ul,
.docs-article ol {
  margin: 0 0 1.1rem;
  padding-left: 1.35rem;
}

.docs-article li {
  margin-bottom: 0.42rem;
}

.ref-table-wrap {
  overflow-x: auto;
  margin: 1rem 0 1.5rem;
  border: 1px solid var(--border);
  border-radius: 0.55rem;
}

.ref-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.ref-table th,
.ref-table td {
  text-align: left;
  vertical-align: top;
  padding: 0.62rem 0.8rem;
  border-bottom: 1px solid var(--border);
}

.ref-table th {
  background: var(--surface);
  font-weight: 600;
  font-size: 0.82rem;
  color: var(--muted);
}

.ref-table tr:last-child td {
  border-bottom: 0;
}

.callout {
  margin: 1.15rem 0;
  padding: 0.85rem 1rem;
  border-radius: 0.5rem;
  background: var(--surface);
  border-left: 3px solid var(--accent);
  font-size: 0.92rem;
}

.callout p {
  margin: 0;
}

.docs-pager {
  margin-top: 2.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.92rem;
}

.legal-article {
  max-width: 46rem;
}

.legal-article h1 {
  margin: 0 0 0.75rem;
  font-family: var(--font-serif);
  font-size: clamp(1.85rem, 3.2vw, 2.45rem);
  line-height: 1.18;
  letter-spacing: -0.015em;
}

.guide-article {
  margin-inline: auto;
}
.guide-article__crumbs {
  margin: 0 0 1rem;
  font-size: 0.88rem;
}
.guide-article__meta {
  margin: 0 0 2rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.legal-article h2 {
  margin: 2rem 0 0.55rem;
  font-size: 1.26rem;
  line-height: 1.3;
}

.legal-article p {
  margin: 0 0 0.95rem;
}

.legal-article ul {
  margin: 0 0 1.1rem;
  padding-left: 1.35rem;
}

.legal-article li {
  margin-bottom: 0.42rem;
}

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
}

.site-footer__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 1.5rem 1.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  font-size: 0.88rem;
  color: var(--muted);
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.15rem;
}

.site-footer a {
  color: inherit;
}

.pj {
  --pj-rule: color-mix(in srgb, currentColor 22%, transparent);
  --pj-subtle: color-mix(in srgb, currentColor 76%, transparent);
  box-sizing: border-box;
  width: 100%;
  max-width: 54rem;
  margin-inline: auto;
  padding: clamp(2.5rem, 8vw, 6rem) clamp(1rem, 4vw, 2.25rem);
  color: inherit;
  font-family: inherit;
  line-height: 1.55;
  overflow-wrap: anywhere;
}
.pj *, .pj *::before, .pj *::after { box-sizing: border-box; }
.pj [hidden] { display: none !important; }
.pj h1, .pj h2, .pj p { margin: 0; color: inherit; }
.pj h1, .pj h2 { font-family: inherit; text-wrap: balance; }
.pj h1 { font-weight: 600; font-size: clamp(2.5rem, 6vw, 4rem); letter-spacing: -.055em; line-height: 1.05; }
.pj h2 { font-weight: 600; font-size: clamp(1.25rem, 2.4vw, 1.55rem); letter-spacing: -.028em; line-height: 1.25; }
.pj a { color: inherit; text-decoration: underline; text-underline-offset: .2em; text-decoration-thickness: 1px; }
.pj .pj-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 1rem; padding-bottom: clamp(1.8rem, 5vw, 3.2rem); }
.pj .pj-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem; font-size: .94rem; }
.pj .pj-cta { display: inline-block; padding: .35rem .85rem; border: 1px solid var(--pj-rule); border-radius: .4rem; text-decoration: none; font-weight: 600; }
.pj .pj-filters { display: flex; flex-wrap: wrap; gap: .6rem; margin: 0 0 1.5rem; padding: 0; }
.pj .pj-filters input, .pj .pj-filters select { min-height: 2.75rem; min-width: 0; max-width: 100%; margin: 0; border: 1px solid var(--pj-rule); border-radius: .4rem; padding: .4rem .7rem; color: inherit; background: transparent; font: inherit; font-size: .94rem; }
.pj .pj-filters input { flex: 1 1 13rem; }
.pj .pj-filters input::placeholder { color: var(--pj-subtle); opacity: 1; }
.pj .pj-filters select { flex: 0 1 auto; }
.pj .pj-filters select option { background: Canvas; color: CanvasText; }
.pj :is(a, button, input, select):focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.pj .pj-results { display: flex; flex-wrap: wrap; gap: .9rem; align-items: center; margin-bottom: 1rem; font-size: .9rem; }
.pj .pj-results button { padding: .25rem 0; background: transparent; border: 0; color: inherit; font: inherit; text-decoration: underline; text-underline-offset: .2em; cursor: pointer; }
.pj .pj-row { display: grid; grid-template-columns: 7.2rem minmax(0, 1fr); gap: clamp(1rem, 4vw, 2.5rem); border-block-start: 1px solid var(--pj-rule); padding-block: clamp(1.5rem, 4vw, 2.3rem); scroll-margin-block-start: 6rem; }
.pj time, .pj .pj-guide-label, .pj .pj-meta { font-size: .83rem; color: var(--pj-subtle); }
.pj time { font-variant-numeric: tabular-nums; white-space: nowrap; }
.pj .pj-meta { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: .55rem; margin-bottom: .45rem; }
.pj .pj-meta span + span::before { content: "·"; padding-inline-end: .55rem; }
.pj h2 a { text-decoration: none; }
.pj h2 a:hover, .pj .pj-recent li a:hover span { text-decoration: underline; }
.pj .pj-content p { max-width: 62ch; margin: .65rem 0 0; }
.pj .pj-detail { display: inline-block; margin-top: .7rem; font-size: .94rem; }
.pj .pj-recent { border-block-start: 1px solid var(--pj-rule); padding-block-start: 1.5rem; }
.pj .pj-recent ul { list-style: none; padding: 0; margin: .85rem 0 0; }
.pj .pj-recent li { margin: 0; padding: 0; border-block-end: 1px solid var(--pj-rule); }
.pj .pj-recent li a { display: flex; gap: 1rem; justify-content: space-between; align-items: baseline; padding-block: .85rem; text-decoration: none; }
.pj .pj-empty { border-block-start: 1px solid var(--pj-rule); padding-top: 1.5rem; }
@media (max-width: 36rem) {
  .pj .pj-row { display: block; }
  .pj .pj-row > time, .pj .pj-guide-label { display: block; margin-bottom: .55rem; }
  .pj .pj-filters input { flex-basis: 100%; }
  .pj .pj-recent li a { flex-wrap: wrap; gap: .2rem .8rem; }
}

/* The surrounding article supplies the product's type, foreground and background. */
:where([data-pj-article]) {
  --pj-article-rule: color-mix(in srgb, currentColor 22%, transparent);
  overflow-wrap: anywhere;
}
:where([data-pj-article]) :where(h1, h2, h3) { text-wrap: balance; }
:where([data-pj-article]) :where(p, li) { text-wrap: pretty; }
:where([data-pj-article-figure]) {
  box-sizing: border-box;
  min-width: 0;
  max-width: 100%;
  margin: clamp(1.75rem, 5vw, 3rem) 0;
}
:where([data-pj-article-figure]) :where(img, video, svg, canvas) { max-width: 100%; }
:where([data-pj-article-figure]) > :where(img, video),
:where([data-pj-article-figure]) > picture > img {
  display: block;
  height: auto;
  margin-inline: auto;
}
:where([data-pj-article-figure]) > figcaption {
  max-width: 65ch;
  margin-block-start: .8rem;
  font-size: .9em;
  line-height: 1.5;
}
.pj-article-cta {
  box-sizing: border-box;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem 2rem;
  margin-block: clamp(2.75rem, 6vw, 4.5rem) 0;
  padding: clamp(1.25rem, 4vw, 2.25rem);
  border: 1px solid var(--pj-article-rule, currentColor);
  border-radius: .6rem;
  background: color-mix(in srgb, currentColor 3%, transparent);
  color: inherit;
}
.pj-article-cta .pj-article-cta__copy { flex: 1 1 18rem; min-width: 0; }
.pj-article-cta .pj-article-cta__copy h2 { margin: 0; color: inherit; font-family: inherit; font-size: clamp(1.35rem, 3vw, 1.8rem); font-weight: 600; line-height: 1.2; letter-spacing: -.025em; }
.pj-article-cta .pj-article-cta__copy p { max-width: 50ch; margin: .5rem 0 0; color: inherit; font: inherit; line-height: 1.5; }
.pj-article-cta a[data-pj-cta-link] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .7em;
  min-height: 2.8rem;
  max-width: 100%;
  padding: .6rem 1rem;
  box-sizing: border-box;
  border: 1px solid currentColor;
  border-radius: .4rem;
  background: var(--pj-action-background, transparent);
  color: var(--pj-action-color, inherit);
  font: inherit;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
}
.pj-article-cta a[data-pj-cta-link]:hover { text-decoration: underline; text-underline-offset: .2em; }
.pj-article-cta a[data-pj-cta-link]:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
