/* Sitewright site: the landing page and the docs share these styles. */
:root {
  --bg: #f7f6f2;
  --surface: #ffffff;
  --surface-2: #efede6;
  --ink: #15171c;
  --ink-2: #4a4f5a;
  --ink-3: #7b808b;
  --line: #dfdcd2;
  --line-strong: #c9c5b8;
  --accent: #0a7cff;
  --accent-ink: #0060d6;
  --accent-soft: #e3efff;
  --ok: #12865a;
  --ok-soft: #e1f4ea;
  --warn: #b35c00;
  --warn-soft: #fbeedd;
  --violet: #6b4ce6;
  --violet-soft: #ece8fd;
  --danger: #c4322b;
  --danger-soft: #fbe5e3;
  --grid: rgba(10, 124, 255, 0.07);
  --shadow: 0 1px 2px rgba(20, 22, 28, 0.06), 0 12px 32px -12px rgba(20, 22, 28, 0.18);
  --radius: 14px;
  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1115;
    --surface: #161920;
    --surface-2: #1c2029;
    --ink: #eceef2;
    --ink-2: #b4b9c4;
    --ink-3: #848a96;
    --line: #262b35;
    --line-strong: #343a47;
    --accent: #3d9bff;
    --accent-ink: #6fb5ff;
    --accent-soft: #14263f;
    --ok: #42c38c;
    --ok-soft: #12291f;
    --warn: #f0a24b;
    --warn-soft: #2e2214;
    --violet: #a18cff;
    --violet-soft: #221d3d;
    --danger: #ff7b72;
    --danger-soft: #3a1a19;
    --grid: rgba(61, 155, 255, 0.06);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 16px 40px -16px rgba(0, 0, 0, 0.7);
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px / 1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: var(--accent-ink);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

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

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

code,
kbd,
pre {
  font-family: var(--mono);
  font-size: 0.875em;
}

.wrap {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

.skip {
  position: absolute;
  left: -9999px;
}

.skip:focus {
  left: 16px;
  top: 12px;
  z-index: 10;
  background: var(--surface);
  padding: 8px 12px;
}

/* Header */
header.top {
  transition: box-shadow 0.3s ease;
  position: sticky;
  top: 0;
  z-index: 5;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}

header.top.scrolled {
  box-shadow: 0 10px 30px -22px rgba(20, 22, 28, 0.5);
}

.top .wrap {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 60px;
}

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

.brand svg {
  width: 26px;
  height: 26px;
  flex: none;
}

nav.links {
  display: flex;
  gap: 22px;
  margin-left: auto;
  font-size: 14px;
}

nav.links a {
  color: var(--ink-2);
  text-decoration: none;
}

nav.links a:hover {
  color: var(--ink);
}

.gh {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  background: var(--surface);
}

.gh:hover {
  border-color: var(--ink-3);
}

.gh svg {
  width: 16px;
  height: 16px;
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: 88px 0 96px;
  border-bottom: 1px solid var(--line);
}

.hero-grid {
  position: absolute;
  inset: -160px 0 0;
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 32px 32px;
  background-position: -1px -1px;
  mask-image: radial-gradient(120% 90% at 50% 30%, #000 40%, transparent 100%);
}

.hero-glow {
  position: absolute;
  top: -300px;
  left: -300px;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(closest-side, var(--accent-soft), transparent);
  pointer-events: none;
  will-change: transform;
}

html:not(.js) .hero-glow {
  display: none;
}

.hero .wrap {
  position: relative;
}

.stage {
  perspective: 1400px;
}

.progress {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: 0 50%;
}

html:not(.js) .progress {
  display: none;
}

.js [data-hero],
.js .window,
.js .entries > li,
.js main section > .wrap > :is(.kicker, h2, .intro, .table, .note, .cta),
.js main section > .wrap > :is(.flow, ol.steps, .features, .tools, .checks, .faq) > *,
.js main section > .wrap > div > :is(.kicker, h2, .intro),
.js main section ul.chips li {
  opacity: 0;
}

.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 56px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 20px;
  padding: 5px 12px 5px 6px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink-2);
  font-size: 13px;
}

.eyebrow b {
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-ink);
  font-size: 12px;
  font-weight: 600;
}

h1 {
  margin: 0;
  font-size: clamp(38px, 5.4vw, 62px);
  line-height: 1.04;
  letter-spacing: -0.035em;
  font-weight: 750;
  text-wrap: balance;
}

h1 em {
  font-style: normal;
  color: var(--accent);
}

.lede {
  max-width: 34em;
  margin: 22px 0 32px;
  color: var(--ink-2);
  font-size: 18px;
  text-wrap: pretty;
}

.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.command {
  display: inline-flex;
  align-items: center;
  gap: 0;
  border-radius: 12px;
  background: var(--ink);
  color: var(--bg);
  box-shadow: var(--shadow);
  max-width: 100%;
}

.command code {
  padding: 13px 4px 13px 18px;
  font-size: 15px;
  white-space: nowrap;
  overflow-x: auto;
}

.command code.typing::after {
  content: "";
  display: inline-block;
  width: 0.55em;
  height: 1.1em;
  margin-left: 2px;
  vertical-align: -0.2em;
  background: currentColor;
  animation: caret 1s steps(1) infinite;
}

@keyframes caret {
  50% {
    opacity: 0;
  }
}

.command code::before {
  content: "$ ";
  opacity: 0.5;
}

.copy {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 6px;
  padding: 7px 10px;
  border: 0;
  border-radius: 8px;
  background: color-mix(in srgb, var(--bg) 14%, transparent);
  color: inherit;
  font: 600 13px / 1 var(--sans);
  cursor: pointer;
  flex: none;
}

.copy.done {
  background: var(--accent);
  color: #fff;
}

.copy:hover {
  background: color-mix(in srgb, var(--bg) 24%, transparent);
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--surface);
  color: var(--ink);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
}

.button:hover {
  border-color: var(--ink-3);
}

.fine {
  margin: 18px 0 0;
  color: var(--ink-3);
  font-size: 13px;
}

/* Journal mock: the journal window as it is, top to bottom */
.window {
  position: relative;
  margin: 0;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  background: var(--bg);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.window svg {
  flex: none;
}

.window-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}

.window-bar .mark {
  width: 22px;
  height: 22px;
}

.window-bar strong {
  color: var(--ink);
  font-weight: 600;
}

.status {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--ok-soft);
  color: var(--ok);
  font-weight: 600;
  font-size: 12px;
}

.dot {
  position: relative;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}

.dot i {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.5;
}

.window-head {
  display: grid;
  gap: 12px;
  padding: 14px;
  border-bottom: 1px solid var(--line);
}

.window .mini-flow {
  display: flex;
  align-items: flex-start;
  padding: 14px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: color-mix(in srgb, var(--surface-2) 50%, transparent);
}

.window .mini-flow .stop {
  display: grid;
  justify-items: center;
  gap: 6px;
  width: 72px;
  color: var(--ink-3);
  font-size: 10.5px;
  font-weight: 500;
  white-space: nowrap;
}

.window .mini-flow .tile {
  position: relative;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--ink-2);
}

.window .mini-flow .main .tile {
  background: var(--accent);
  box-shadow: none;
  color: #fff;
}

.window .mini-flow .tile svg {
  width: 16px;
  height: 16px;
}

/* The live dot on Sitewright: it breathes out from under itself, so a new breath never shows a jump. */
.window .live-dot {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 2px var(--bg);
}

.window .live-dot::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--ok);
  animation: ping 1.8s cubic-bezier(0, 0, 0.2, 1) infinite;
}

.window .mini-flow .wire {
  margin-top: 18px;
}

/* A line between two stops: a soft light passes along it in turn, from the agent to the project. */
.wire {
  position: relative;
  flex: 1;
  height: 1px;
  overflow: hidden;
  background: color-mix(in srgb, var(--accent) 35%, transparent);
}

.wire i {
  position: absolute;
  inset: 0 auto 0 0;
  width: 40%;
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--accent) 80%, transparent), transparent);
  animation: sheen 3.2s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

.wire + .stop + .wire i,
.arrow + .node + .arrow .wire i {
  animation-delay: 0.5s;
}

.window .note {
  margin: 0;
  color: var(--ink-2);
  font-size: 12px;
  line-height: 1.5;
}

.window-tools {
  display: grid;
  gap: 10px;
  padding: 12px 14px 4px;
}

.window .select {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  font-size: 12.5px;
}

.window .select em {
  color: var(--ink-3);
  font-style: normal;
}

.window .select svg {
  width: 14px;
  height: 14px;
  margin-left: auto;
  color: var(--ink-3);
}

.window .toolbar {
  display: flex;
  align-items: center;
  gap: 6px;
}

.window .toolbar .btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
}

.window .toolbar .btn svg,
.window .toolbar .gear svg,
.window .chip svg,
.checkpoint svg {
  width: 13px;
  height: 13px;
}

.window .toolbar .off {
  color: var(--ink-3);
  opacity: 0.6;
}

.window .toolbar .ghost {
  border-color: transparent;
  color: var(--ink-2);
}

.window .toolbar .gear {
  display: grid;
  place-items: center;
  margin-left: auto;
  width: 26px;
  height: 26px;
  color: var(--ink-2);
}

.tabs {
  display: inline-flex;
  justify-self: start;
  gap: 2px;
  padding: 3px;
  border-radius: 999px;
  background: var(--surface-2);
  font-size: 12px;
  color: var(--ink-3);
}

.tabs span {
  padding: 4px 10px;
  border-radius: 999px;
}

.tabs .on {
  background: var(--ink);
  color: var(--bg);
  font-weight: 600;
}

ol.entries {
  list-style: none;
  margin: 0;
  padding: 6px 8px 8px;
}

.entry {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
  padding: 12px 10px;
  border-radius: 12px;
}

.entry.hl {
  background: var(--accent-soft);
}

.icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--ink-2);
}

.icon.warn {
  background: var(--warn-soft);
  color: var(--warn);
}

.icon svg {
  width: 16px;
  height: 16px;
}

.entry .body {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.entry .title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
}

.entry .meta {
  color: var(--ink-3);
  font-size: 12.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.window .chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 5px;
}

.window .chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
}

/* The kinds of change, tinted as in the journal (Blocks, Text, Content, Colors). */
.window .chip.layout {
  background: rgba(16, 185, 129, 0.18);
  color: #065f46;
}

.window .chip.text {
  background: rgba(14, 165, 233, 0.18);
  color: #075985;
}

.window .chip.content {
  background: rgba(20, 184, 166, 0.18);
  color: #115e59;
}

.window .chip.colors {
  background: rgba(236, 72, 153, 0.16);
  color: #9d174d;
}

.window .chip.components {
  background: var(--violet-soft);
  color: var(--violet);
}

.tag {
  padding: 1px 7px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.tag.plugin {
  background: var(--ok-soft);
  color: var(--ok);
}

.tag.server {
  background: var(--accent-soft);
  color: var(--accent-ink);
}

.tag.agent {
  background: var(--violet-soft);
  color: var(--violet);
}

.tag.skill {
  background: var(--warn-soft);
  color: var(--warn);
}

.entry .side {
  display: grid;
  justify-items: end;
  gap: 8px;
}

.undo {
  cursor: pointer;
  padding: 5px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  font: 600 12px / 1 var(--sans);
}

.undo:hover {
  border-color: var(--ink-3);
}

/* About three entries show: the journal's own top is tall, and the hero stays one screen. */
.window .feed {
  max-height: 300px;
  overflow: hidden;
}

.feed.live {
  overflow: hidden;
  mask-image: linear-gradient(#000 78%, transparent);
}

.entries {
  will-change: transform;
}

.toast {
  position: absolute;
  left: 50%;
  bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%);
}

.toast:empty {
  display: none;
}

.toast::before {
  content: "↺";
  color: var(--accent);
  font-size: 15px;
}

.entry time {
  color: var(--ink-3);
  font: 12px / 1.6 var(--mono);
}

.checkpoint {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 10px 6px;
  color: var(--ink-3);
  font-size: 12px;
  font-weight: 600;
}

.checkpoint svg {
  color: var(--accent);
}

.checkpoint::after {
  content: "";
  flex: 1;
  border-top: 1px dashed var(--line-strong);
}

@media (prefers-color-scheme: dark) {
  .window .chip.layout {
    background: rgba(52, 211, 153, 0.2);
    color: #a7f3d0;
  }

  .window .chip.text {
    background: rgba(56, 189, 248, 0.2);
    color: #bae6fd;
  }

  .window .chip.content {
    background: rgba(45, 212, 191, 0.2);
    color: #99f6e4;
  }

  .window .chip.colors {
    background: rgba(244, 114, 182, 0.2);
    color: #fbcfe8;
  }
}

@keyframes sheen {
  0% {
    transform: translateX(-100%);
    opacity: 0;
  }

  12% {
    opacity: 1;
  }

  55%,
  100% {
    transform: translateX(250%);
    opacity: 0;
  }
}

@keyframes ping {
  0% {
    transform: scale(1);
    opacity: 0.55;
  }

  100% {
    transform: scale(2.6);
    opacity: 0;
  }
}

/* The main card of the flow breathes in and out: no jump at the start of a breath. */
@keyframes breathe {
  from {
    opacity: 0.15;
  }

  to {
    opacity: 0.6;
  }
}

@media (prefers-reduced-motion: reduce) {
  .wire i,
  .window .live-dot::before,
  .ring {
    animation: none;
  }
}

/* Sections */
section {
  padding: 96px 0;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 60px;
}

.kicker {
  margin: 0 0 12px;
  color: var(--accent-ink);
  font: 600 13px / 1 var(--mono);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

h2 {
  margin: 0;
  max-width: 22em;
  font-size: clamp(28px, 3.4vw, 40px);
  line-height: 1.12;
  letter-spacing: -0.025em;
  font-weight: 720;
  text-wrap: balance;
}

.intro {
  max-width: 40em;
  margin: 16px 0 48px;
  color: var(--ink-2);
  font-size: 17px;
  text-wrap: pretty;
}

h3 {
  margin: 0 0 8px;
  font-size: 17px;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.muted {
  color: var(--ink-2);
}

/* Flow */
.flow {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  /* The wires span the space between the cards, so the cards and wires touch. */
  gap: 0;
  align-items: stretch;
  margin-bottom: 56px;
}

.node {
  position: relative;
  padding: 22px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
}

.node.main {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.ring {
  position: absolute;
  inset: -1px;
  border: 2px solid var(--accent);
  border-radius: inherit;
  pointer-events: none;
  animation: breathe 2.4s ease-in-out infinite alternate;
}

.node small {
  display: block;
  margin-bottom: 10px;
  color: var(--ink-3);
  font: 600 12px / 1 var(--mono);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.node p {
  margin: 0;
  color: var(--ink-2);
  font-size: 14.5px;
}

.arrow {
  display: flex;
  align-items: center;
  width: 64px;
}

.arrow .wire {
  height: 2px;
  border-radius: 2px;
}

ol.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

ol.steps li {
  counter-increment: step;
  padding: 24px;
  border-radius: var(--radius);
  background: var(--surface-2);
}

ol.steps li::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  margin-bottom: 14px;
  color: var(--accent-ink);
  font: 600 13px / 1 var(--mono);
}

ol.steps p {
  margin: 0;
  color: var(--ink-2);
  font-size: 15px;
}

ol.steps code {
  padding: 1px 6px;
  border-radius: 6px;
  background: var(--surface);
  color: var(--ink);
}

/* Features */
.features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
  overflow: hidden;
}

.feature {
  position: relative;
  padding: 28px;
  background: var(--surface);
}

.feature::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(260px circle at var(--mx, -999px) var(--my, -999px), var(--accent-soft), transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.features:hover .feature::before {
  opacity: 1;
}

.feature > * {
  position: relative;
}

.feature .icon {
  margin-bottom: 18px;
  width: 36px;
  height: 36px;
  background: var(--accent-soft);
  color: var(--accent-ink);
}

.feature .icon svg {
  width: 18px;
  height: 18px;
}

.feature p {
  margin: 0;
  color: var(--ink-2);
  font-size: 15px;
}

/* Table */
.table {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  font-size: 15px;
}

th,
td {
  padding: 18px 20px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}

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

thead th {
  background: var(--surface-2);
  color: var(--ink-3);
  font: 600 12px / 1.2 var(--mono);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

tbody th {
  width: 18%;
  font-weight: 650;
}

td {
  color: var(--ink-2);
}

.note {
  margin: 20px 0 0;
  color: var(--ink-2);
  font-size: 15px;
}

/* Tools */
.tools {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.group {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.group h3 {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.group h3 span {
  color: var(--ink-3);
  font: 500 12px / 1 var(--mono);
}

.group p {
  margin: 0 0 14px;
  color: var(--ink-2);
  font-size: 14px;
}

ul.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

ul.chips li {
  padding: 3px 8px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface-2);
  color: var(--ink);
  font: 12.5px / 1.5 var(--mono);
}

/* Privacy */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 56px;
  align-items: start;
}

ul.checks {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 14px;
}

ul.checks li {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 12px;
  color: var(--ink-2);
}

ul.checks li::before {
  content: "";
  width: 22px;
  height: 22px;
  margin-top: 1px;
  border-radius: 50%;
  background:
    var(--ok-soft)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2312865a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E")
    center / 13px no-repeat;
}

ul.checks strong {
  color: var(--ink);
}

/* FAQ */
.faq {
  max-width: 820px;
  margin-top: 32px;
  border-top: 1px solid var(--line);
}

details {
  border-bottom: 1px solid var(--line);
}

summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
  cursor: pointer;
  list-style: none;
  font-size: 17px;
  font-weight: 650;
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  content: "+";
  flex: none;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--ink-2);
  font: 400 18px / 1 var(--sans);
  transition: transform 0.2s ease;
}

details[open] summary::after {
  transform: rotate(45deg);
}

details.closing summary::after {
  transform: none;
}

.answer {
  overflow: hidden;
}

details p {
  max-width: 44em;
  margin: 0 0 22px;
  color: var(--ink-2);
}

/* Closing */
.closing {
  text-align: center;
  background-image: radial-gradient(60% 80% at 50% 0%, var(--accent-soft), transparent 70%);
}

.closing h2 {
  margin: 0 auto;
}

.closing .intro {
  margin: 16px auto 32px;
}

.closing .cta {
  justify-content: center;
}

footer {
  padding: 40px 0 56px;
  color: var(--ink-3);
  font-size: 14px;
}

footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 32px;
  justify-content: space-between;
}

footer p {
  margin: 0;
  max-width: 46em;
}

footer a {
  color: var(--ink-2);
}

/* Responsive */
@media (max-width: 980px) {
  .hero .wrap,
  .split {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero {
    padding: 64px 0 72px;
  }

  .tools,
  .features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .flow {
    grid-template-columns: minmax(0, 1fr);
  }

  .arrow {
    justify-content: center;
    width: auto;
    height: 40px;
  }

  .arrow .wire {
    flex: none;
    width: 40px;
    transform: rotate(90deg);
  }
}

@media (max-width: 720px) {
  nav.links {
    display: none;
  }

  .gh {
    margin-left: auto;
  }

  section {
    padding: 72px 0;
  }

  .tools,
  .features,
  ol.steps {
    grid-template-columns: minmax(0, 1fr);
  }

  .lede {
    font-size: 17px;
  }
}

@media (max-width: 480px) {
  .wrap {
    padding: 0 16px;
  }

  .command {
    width: 100%;
    justify-content: space-between;
  }

  .command code {
    font-size: 13.5px;
  }

  .entry {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .entry .side {
    display: none;
  }

  .feature,
  .group,
  .node,
  ol.steps li {
    padding: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  summary::after {
    transition: none;
  }
}

/* Docs page */
.brand-sub {
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-ink);
  font-size: 12px;
  font-weight: 600;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.docs {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 56px;
  padding-top: 40px;
  padding-bottom: 80px;
}

.toc {
  position: sticky;
  top: 84px;
  align-self: start;
  max-height: calc(100vh - 104px);
  overflow-y: auto;
  scrollbar-width: thin;
  font-size: 14px;
}

.toc summary {
  display: none;
}

.toc nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.toc-title {
  margin: 18px 0 6px;
  color: var(--ink-3);
  font: 600 11px / 1 var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.toc-title:first-child {
  margin-top: 0;
}

.toc a {
  padding: 5px 10px;
  border-radius: 8px;
  color: var(--ink-2);
  text-decoration: none;
}

.toc a:hover {
  background: var(--surface-2);
  color: var(--ink);
}

.toc a.active {
  background: var(--accent-soft);
  color: var(--accent-ink);
  font-weight: 600;
}

.docs-page main section {
  padding: 0;
  border: 0;
  scroll-margin-top: 84px;
}

.prose {
  min-width: 0;
  max-width: 820px;
  font-size: 16px;
}

.prose h1 {
  margin: 0 0 16px;
  font-size: clamp(34px, 4.4vw, 48px);
}

.prose h2 {
  margin: 64px 0 14px;
  font-size: 28px;
}

.prose .kicker + h2,
.prose .kicker + h1 {
  margin-top: 0;
}

.prose .kicker {
  margin-top: 72px;
}

.prose section:first-child .kicker {
  margin-top: 0;
}

.prose p,
.prose li,
.prose dd {
  color: var(--ink-2);
}

.prose p {
  margin: 0 0 14px;
}

.prose .lead {
  font-size: 18px;
}

.prose ul,
.prose ol {
  margin: 0 0 16px;
  padding-left: 22px;
}

.prose li {
  margin: 6px 0;
}

.prose li strong,
.prose p strong {
  color: var(--ink);
}

.prose :not(pre) > code {
  padding: 1px 6px;
  border-radius: 6px;
  background: var(--surface-2);
  color: var(--ink);
}

.prose pre {
  position: relative;
  margin: 0 0 18px;
  padding: 16px 18px;
  overflow-x: auto;
  border-radius: 12px;
  background: var(--ink);
  color: var(--bg);
  font-size: 14px;
  line-height: 1.6;
}

.prose pre .copy {
  position: absolute;
  top: 8px;
  right: 8px;
  margin: 0;
}

.callout {
  margin: 18px 0;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink-2);
  font-size: 15px;
}

.callout strong {
  color: var(--ink);
}

.prose .table {
  margin: 0 0 18px;
}

.prose .table table {
  min-width: 560px;
  font-size: 14.5px;
}

.prose .table th,
.prose .table td {
  padding: 12px 16px;
}

.prose tbody th {
  width: auto;
  white-space: nowrap;
}

dl.faq-list {
  margin: 0;
}

dl.faq-list dt {
  margin-top: 18px;
  color: var(--ink);
  font-weight: 650;
}

dl.faq-list dd {
  margin: 6px 0 0;
}

/* Tool reference */
.prose .legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  padding: 0;
  list-style: none;
  font-size: 14px;
}

.legend li {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}

.search {
  display: block;
  position: sticky;
  top: 72px;
  z-index: 2;
  margin: 24px 0 8px;
  padding: 8px 0;
  background: var(--bg);
}

.search input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 15px;
}

.search input:focus {
  outline: 2px solid var(--accent);
  outline-offset: 0;
}

.search-empty {
  padding: 24px 0;
  text-align: center;
}

.tool-group {
  margin-top: 40px;
}

.tool-group h3 {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 0 0 6px;
  font-size: 21px;
  letter-spacing: -0.015em;
}

.tool-group h3 span {
  color: var(--ink-3);
  font: 500 13px / 1 var(--mono);
}

.prose .group-intro {
  margin-bottom: 16px;
}

.tool {
  margin: 0 0 14px;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  scroll-margin-top: 140px;
}

.tool:target {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.tool header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.tool h4 {
  margin: 0 auto 0 0;
  font: 650 16px / 1.3 var(--mono);
}

.tool h4 a {
  color: var(--ink);
  text-decoration: none;
}

.tool h4 a:hover {
  color: var(--accent-ink);
}

.tool .tool-title {
  margin: 2px 0 10px;
  color: var(--ink-3);
  font-size: 14px;
}

.tool p {
  font-size: 15px;
}

.tool p a code {
  color: var(--accent-ink);
}

.prose .tool .no-params {
  margin: 0;
  color: var(--ink-3);
  font-size: 14px;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 600;
  white-space: nowrap;
}

.badge.read,
.badge.needs-local {
  background: var(--surface-2);
  color: var(--ink-2);
}

.badge.write,
.badge.needs-editor {
  background: var(--accent-soft);
  color: var(--accent-ink);
}

.badge.destructive {
  background: var(--danger-soft);
  color: var(--danger);
}

.badge.needs-plugin {
  background: var(--ok-soft);
  color: var(--ok);
}

.badge.needs-partial {
  background: var(--warn-soft);
  color: var(--warn);
}

.badge.needs-key {
  background: var(--violet-soft);
  color: var(--violet);
}

.params {
  margin-top: 12px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.params table {
  min-width: 520px;
  font-size: 13.5px;
}

.params th,
.params td {
  padding: 9px 12px;
}

.params thead th {
  font-size: 11px;
}

.params tbody th {
  width: 1%;
  white-space: nowrap;
}

.params code.type {
  color: var(--violet);
  font-size: 12.5px;
  white-space: normal;
}

.params .req,
.params .def,
.params .opt {
  display: inline-block;
  margin-left: 4px;
  color: var(--ink-3);
  font-size: 12px;
}

.params .req {
  color: var(--warn);
  font-weight: 600;
}

.params ul.fields {
  margin: 8px 0 0;
  padding-left: 18px;
}

.params ul.fields li {
  margin: 4px 0;
  font-size: 13px;
}

@media (max-width: 980px) {
  .docs {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    padding-top: 24px;
  }

  .toc {
    position: static;
    max-height: none;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
  }

  .toc summary {
    display: flex;
    padding: 14px 16px;
    cursor: pointer;
    font-weight: 650;
  }

  .toc nav {
    padding: 0 8px 12px;
  }

  .search {
    top: 60px;
  }
}

/* Changelog: releases on a timeline, newest first; change groups as tags; versions with their dates in the contents. */
.toc nav a time {
  margin-left: auto;
  color: var(--ink-3);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.toc nav a:has(time) {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.toc nav a.active time {
  color: var(--accent-ink);
  font-weight: 500;
}

.changelog .releases {
  position: relative;
  margin-top: 48px;
  padding-left: 32px;
}

.changelog .releases::before {
  content: "";
  position: absolute;
  top: 18px;
  bottom: 0;
  left: 5px;
  width: 1px;
  background: var(--line);
}

.changelog .release {
  position: relative;
  padding-bottom: 48px;
}

/* The dot sits on the middle of the release's heading row (36px tall). */
.changelog .release::before {
  content: "";
  position: absolute;
  top: 12.5px;
  left: -32px;
  width: 11px;
  height: 11px;
  box-sizing: border-box;
  border: 2px solid var(--line-strong);
  border-radius: 50%;
  background: var(--bg);
}

.changelog .release:first-child::before {
  border-color: var(--accent);
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.changelog .release-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 14px;
  min-height: 36px;
  margin-bottom: 18px;
}

.changelog .release-head h2 {
  margin: 0;
  font-size: 28px;
  line-height: 36px;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.changelog .release-head time {
  color: var(--ink-3);
  font-size: 15px;
  line-height: 36px;
}

.changelog .release-latest {
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-ink);
  font: 600 11px / 1.2 var(--mono);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.changelog h3.change {
  display: inline-block;
  margin: 18px 0 8px;
  padding: 3px 9px;
  border-radius: 6px;
  font: 600 11px / 1.4 var(--mono);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.changelog h3.change-added {
  background: var(--ok-soft);
  color: var(--ok);
}

.changelog h3.change-changed {
  background: var(--accent-soft);
  color: var(--accent-ink);
}

.changelog h3.change-fixed {
  background: var(--violet-soft);
  color: var(--violet);
}

.changelog h3.change-removed {
  background: var(--danger-soft);
  color: var(--danger);
}

.changelog .release-head + h3.change {
  margin-top: 0;
}

.changelog .release ul {
  margin: 0;
}

.changelog .release li + li {
  margin-top: 6px;
}

@media (max-width: 640px) {
  .changelog .releases {
    padding-left: 24px;
  }

  .changelog .release::before {
    left: -24px;
  }

  .changelog .release-head h2 {
    font-size: 24px;
  }
}
