:root {
  --sage: #c5d0c8;
  --plate: #eef3f0;
  --housing: #24302c;
  --ink: #15201c;
  --trace: #0d6b58;
  --filament: #e3a12b;
  --mute: #5e6b65;
  --line: #a3b0a9;
  --display: 'Chakra Petch', 'Segoe UI', sans-serif;
  --body: 'Atkinson Hyperlegible', Georgia, serif;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;
  --pad: 1.25rem;
  --col: 38rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: var(--sage);
  font-family: var(--body);
  font-size: 1.05rem;
  line-height: 1.55;
}

a {
  color: var(--trace);
}

code,
pre {
  font-family: var(--mono);
}

:focus-visible {
  outline: 2px solid var(--filament);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 0.75rem;
  top: -3rem;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  background: var(--housing);
  color: var(--plate);
}

.skip:focus {
  top: 0.75rem;
}

.top,
main,
footer {
  width: min(var(--col), calc(100% - 2 * var(--pad)));
  margin-inline: auto;
}

.top {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.7rem;
  padding: 1.5rem 0 0.5rem;
}

.gh {
  display: inline-flex;
  color: var(--ink);
}

.gh svg {
  width: 1.35rem;
  height: 1.35rem;
}

.gh:hover {
  color: var(--trace);
}

.gh-text {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  text-decoration: none;
}

.gh-text svg {
  width: 0.95rem;
  height: 0.95rem;
}

.wordmark {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
}

.hero,
.commands,
.llm {
  padding: 1.25rem 0 0.35rem;
  text-align: center;
}

.agents {
  padding: 0.55rem 0 0.35rem;
  text-align: center;
}

.kicker {
  margin: 0 0 0.7rem;
  font-family: var(--display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--trace);
}

h1,
h2 {
  margin: 0 0 0.8rem;
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 0.96;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.6rem, 12vw, 4.4rem);
}

h2 {
  font-size: clamp(1.45rem, 5vw, 1.85rem);
}

.lede,
.llm p {
  margin: 0 auto 1.2rem;
  max-width: 32rem;
}

.install {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.55rem;
  margin: 0 auto;
  padding: 0.4rem 0.4rem 0.4rem 1rem;
  width: fit-content;
  max-width: 100%;
  border-radius: 999px;
  background: var(--housing);
  color: var(--plate);
}

.install code {
  font-size: 0.82rem;
  overflow-x: auto;
  max-width: min(100%, 18rem);
  white-space: nowrap;
}

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 2.4rem;
  padding: 0.45rem 1rem;
  border: 0;
  border-radius: 999px;
  background: var(--filament);
  color: var(--ink);
  font-family: var(--display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-decoration: none;
  cursor: pointer;
}

.pill svg {
  width: 0.95rem;
  height: 0.95rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.pill--fill {
  background: var(--trace);
  color: var(--plate);
}

.pill--ghost {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 1.5px var(--line);
}

.pill:hover {
  filter: brightness(1.06);
}

.fine {
  margin: 0.4rem 0 0;
  color: var(--mute);
  font-size: 0.92rem;
}

.chips {
  position: relative;
  display: flex;
  flex-wrap: nowrap;
  justify-content: stretch;
  gap: 0.2rem;
  margin: 0;
  padding: 0.28rem;
  overflow-x: auto;
  scrollbar-width: none;
  border-radius: 999px;
  background: var(--plate);
}

.chips::-webkit-scrollbar {
  display: none;
}

.chips__glider {
  position: absolute;
  top: 0.28rem;
  left: 0;
  height: calc(100% - 0.56rem);
  border-radius: 999px;
  background: var(--housing);
  pointer-events: none;
  will-change: transform;
  transition: transform 400ms ease;
}

.chip {
  position: relative;
  z-index: 1;
  flex: 1 0 auto;
  min-height: 2.2rem;
  min-width: 4.4rem;
  padding: 0.35rem 0.55rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font-family: var(--display);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
}

.chip.is-live {
  color: var(--plate);
}

.card {
  margin-top: 0.35rem;
  padding: 0.75rem 0.75rem 0.7rem;
  border-radius: 1.15rem;
  background: var(--housing);
  color: var(--plate);
}

.card__name {
  margin: 0 0 0.45rem;
  font-family: var(--display);
  font-size: 1.05rem;
  font-weight: 700;
}

.card__cmds {
  display: grid;
  gap: 0.3rem;
}

.card__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  min-height: 2.4rem;
  padding: 0.2rem 0.2rem 0.2rem 0.8rem;
  border: 0;
  border-radius: 999px;
  background: #1b2522;
  color: var(--filament);
  font-family: var(--mono);
  font-size: 0.8rem;
  text-align: left;
  cursor: pointer;
}

.card__row code {
  overflow-wrap: anywhere;
}

.card__row .pill {
  flex: 0 0 auto;
}

.cmd-list {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  text-align: left;
}

.cmd-list button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  width: 100%;
  margin-bottom: 0.45rem;
  padding: 0.85rem 1rem;
  border: 0;
  border-radius: 1.1rem;
  background: var(--plate);
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.cmd-list button:hover {
  background: color-mix(in srgb, var(--plate) 70%, white);
}

.cmd-list span {
  display: grid;
  gap: 0.15rem;
  min-width: 0;
}

.cmd-list code {
  color: var(--trace);
  font-size: 0.86rem;
  overflow-wrap: anywhere;
}

.cmd-list small {
  color: var(--mute);
  font-size: 0.82rem;
}

.cmd-list svg {
  flex: 0 0 auto;
  width: 1.15rem;
  height: 1.15rem;
  fill: none;
  stroke: var(--mute);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.llm__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
}

footer {
  padding: 2rem 0 2.5rem;
  text-align: center;
  color: var(--mute);
  font-size: 0.92rem;
}

footer p {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.45rem;
  margin: 0;
}

footer a {
  text-decoration: none;
  color: inherit;
}

footer a:hover {
  color: var(--trace);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 1.1rem;
  padding: 0.5rem 0.95rem;
  border-radius: 999px;
  background: var(--housing);
  color: var(--plate);
  font-family: var(--mono);
  font-size: 0.78rem;
  opacity: 0;
  transform: translate(-50%, 0.35rem);
  pointer-events: none;
  transition:
    opacity 160ms ease,
    transform 160ms ease;
}

.toast.is-on {
  opacity: 1;
  transform: translate(-50%, 0);
}

@media (max-width: 420px) {
  .install {
    width: 100%;
    border-radius: 1.15rem;
    justify-content: space-between;
  }

  .install code {
    max-width: calc(100% - 5.5rem);
  }
}

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

  .toast,
  .chips__glider {
    transition: none;
  }
}
