@font-face {
  font-family: "JetBrains Mono";
  src: url("/fonts/JetBrainsMono-Regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "JetBrains Mono";
  src: url("/fonts/JetBrainsMono-Bold.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

:root {
  --bg: #fbfaf6;
  --text: #161616;
  --muted: #6b6862;
  --faint: #a19d96;
  --line: rgb(22 22 22 / 0.12);
  --panel: rgb(255 255 255 / 0.55);
  --bar: rgb(22 22 22 / 0.03);
  --dark: #1b1b1b;
  --on-dark: #f6f5f1;
  --green: #22b569;
  --orange: #e0703c;
  --shadow: rgb(254 203 158 / 0.6);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1317;
    --text: #f3f2ee;
    --muted: #a7a39c;
    --faint: #6f6c67;
    --line: rgb(255 255 255 / 0.12);
    --panel: rgb(255 255 255 / 0.03);
    --bar: rgb(255 255 255 / 0.03);
    --dark: #f3f2ee;
    --on-dark: #141414;
    --green: #28cc7a;
    --orange: #fd8855;
    --shadow: rgb(0 0 0 / 0.55);
  }
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font:
    16px / 1.6 "JetBrains Mono",
    ui-monospace,
    "SF Mono",
    Menlo,
    Consolas,
    monospace;
}

a {
  color: inherit;
}

h1,
h2,
p {
  margin: 0;
}

.top,
main,
footer {
  max-width: 76rem;
  margin: 0 auto;
  padding-left: 16px;
  padding-right: 16px;
}

@media (min-width: 760px) {
  .top,
  main,
  footer {
    padding-left: 48px;
    padding-right: 48px;
  }
}

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 28px;
  padding-bottom: 28px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.6rem;
  text-decoration: none;
}

.top nav {
  display: flex;
  align-items: center;
  gap: 2.25rem;
}

.top nav a {
  text-decoration: none;
}

.top nav a:not(.button):hover {
  text-decoration: underline;
  text-underline-offset: 6px;
}

.button {
  padding: 0.6rem 1.2rem;
  border-radius: 6px;
  background: var(--dark);
  color: var(--on-dark);
}

.hero {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  align-items: center;
  gap: 2rem;
  padding: 3.5rem 0 2.5rem;
}

.eyebrow {
  margin-bottom: 1.25rem;
  color: var(--faint);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1 {
  font-size: clamp(2.2rem, 6vw, 4.6rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.nowrap {
  white-space: nowrap;
}

.cursor {
  display: inline-block;
  width: 0.09em;
  height: 0.8em;
  margin-left: 0.12em;
  background: var(--green);
  vertical-align: -0.05em;
  animation: blink 1.1s steps(1) infinite;
}

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

.lead {
  max-width: 34rem;
  margin-top: 1.5rem;
  color: var(--muted);
  font-size: clamp(1.15rem, 2.4vw, 1.6rem);
  line-height: 1.45;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem 2.5rem;
  margin-top: 2.25rem;
}

.install {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 0.85rem 1rem 0.85rem 1.4rem;
  border-radius: 8px;
  background: var(--dark);
  color: var(--on-dark);
  font-size: 1.05rem;
}

.install button {
  display: grid;
  place-items: center;
  padding: 0.25rem;
  border: 0;
  border-radius: 4px;
  background: none;
  color: inherit;
  font: inherit;
  font-size: 0.8rem;
  cursor: pointer;
  opacity: 0.75;
}

.install button:hover {
  opacity: 1;
}

svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.docs {
  padding-bottom: 0.2rem;
  border-bottom: 1.5px solid currentColor;
  font-size: 1.05rem;
  text-decoration: none;
}

.mascot {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
}

.mascot img {
  width: min(100%, 17rem);
  height: auto;
}

.mascot::after {
  content: "";
  position: absolute;
  left: 18%;
  right: 38%;
  bottom: -3%;
  height: 10%;
  border-radius: 50%;
  background: radial-gradient(closest-side, var(--shadow), transparent);
  z-index: -1;
}

.motto {
  color: var(--faint);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  line-height: 1.65;
  text-transform: uppercase;
}

.split {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  align-items: start;
  gap: 3rem;
  padding: 1.5rem 0;
}

.window {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
}

.bar {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 0.8rem 1.4rem;
  border-bottom: 1px solid var(--line);
  background: var(--bar);
  color: var(--muted);
  font-size: 0.85rem;
}

.dots {
  display: flex;
  gap: 0.5rem;
}

.dots i {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #ff5f57;
}

.dots i:nth-child(2) {
  background: #febc2e;
}

.dots i:nth-child(3) {
  background: #28c840;
}

.shell {
  margin-left: auto;
}

pre {
  margin: 0;
  padding: 1.4rem;
  overflow-x: auto;
  font: inherit;
  font-size: 0.95rem;
  line-height: 1.85;
}

pre .c {
  color: var(--faint);
}

pre .p {
  color: var(--muted);
}

pre .g,
pre .s {
  color: var(--green);
}

pre .k {
  color: var(--orange);
}

.block {
  display: inline-block;
  width: 0.6em;
  height: 1.15em;
  margin-left: 0.4em;
  background: var(--green);
  vertical-align: -0.2em;
  animation: blink 1.1s steps(1) infinite;
}

@media (prefers-reduced-motion: reduce) {
  .cursor,
  .block {
    animation: none;
  }
}

.features {
  display: grid;
  gap: 2rem;
  margin: 0;
  padding: 0.5rem 0 0;
  list-style: none;
}

.features li {
  display: flex;
  gap: 1.5rem;
}

.features svg {
  flex: none;
  margin-top: 0.15rem;
}

h2 {
  font-size: 1.05rem;
  font-weight: 400;
}

.features p,
.note p {
  color: var(--muted);
}

.note {
  display: grid;
  gap: 1rem;
  padding-top: 0.5rem;
}

.note code {
  color: var(--text);
}

.muted {
  font-size: 0.9rem;
}

.legal {
  padding-bottom: 3rem;
}

.legal > * {
  max-width: 48rem;
}

.legal h1 {
  margin: 2.5rem 0 1rem;
  font-size: 2rem;
}

.legal h2 {
  margin: 1.75rem 0 0.5rem;
  font-weight: 700;
}

.legal p {
  margin-bottom: 0.75rem;
  color: var(--muted);
}

footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  padding-top: 3rem;
  padding-bottom: 3rem;
  color: var(--muted);
  font-size: 0.9rem;
}

footer strong {
  color: var(--text);
  font-size: 1.1rem;
  font-weight: 400;
}

.sep {
  display: inline-block;
  width: 1px;
  height: 1.4em;
  margin: 0 1.25rem;
  background: var(--line);
  vertical-align: middle;
}

.links {
  display: flex;
  gap: 1.5rem;
}

.aside {
  color: var(--faint);
}

@media (max-width: 900px) {
  .hero,
  .split {
    grid-template-columns: 1fr;
  }

  .mascot {
    grid-row: 1;
    justify-content: flex-start;
  }

  .mascot img {
    width: 9rem;
  }

  .mascot::after {
    display: none;
  }
}

@media (max-width: 640px) {
  .top nav a:not(.button) {
    display: none;
  }

  .hero {
    padding-top: 1rem;
  }

  .install {
    gap: 1rem;
    font-size: 0.95rem;
  }

  pre {
    font-size: 0.8rem;
  }

  .sep {
    display: none;
  }

  footer > div {
    display: grid;
  }
}

.install button.copied {
  color: var(--green);
  opacity: 1;
}
