:root {
  --ink: #202428;
  --muted: #737b82;
  --line: #e3e7e9;
  --surface: #f5f7f8;
  --blue: #286fd3;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

* {
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: #fff;
  font: 13px/1.65 ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.wrap {
  width: min(800px, calc(100% - 48px));
  margin-inline: auto;
}

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

a:hover {
  color: var(--blue);
}

a:focus-visible {
  outline: 2px solid #7aa7e6;
  outline-offset: 4px;
}

.topbar {
  position: absolute;
  top: 24px;
  left: 50%;
  z-index: 3;
  display: flex;
  justify-content: flex-end;
  transform: translateX(-50%);
}

.language-switcher {
  position: relative;
  color: #737b82;
  font-size: 12px;
}

.language-switcher summary {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  cursor: pointer;
  list-style: none;
  background: #fff;
}

.language-switcher summary::-webkit-details-marker {
  display: none;
}

.language-switcher summary::after {
  content: "";
  width: 5px;
  height: 5px;
  margin-left: 8px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
}

.language-switcher[open] summary {
  color: var(--ink);
  border-color: #cbd3d9;
}

.language-switcher div {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  display: grid;
  min-width: 142px;
  padding: 6px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 24px #20242814;
}

.language-switcher a,
.language-switcher span {
  display: block;
  padding: 6px 8px;
  border-radius: 5px;
  white-space: nowrap;
}

.language-switcher span {
  color: var(--ink);
  font-weight: 650;
}

.language-switcher a:hover {
  color: var(--blue);
  background: #f5f8fb;
}

.hero {
  width: min(800px, calc(100% - 48px));
  margin: 0 auto;
  padding: 82px 0 66px;
  border-top: 0;
  text-align: left;
}

.hero-title {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 14px;
}

.logo {
  display: block;
  width: 50px;
  height: 50px;
  flex: 0 0 auto;
  object-fit: contain;
  border-radius: 6px;
}

.hero h1 {
  margin: 0;
  font-size: 48px;
  font-weight: 700;
  line-height: 1.04;
  text-wrap: balance;
}

.hero p {
  max-width: 760px;
  margin: 0 0 32px;
  color: var(--muted);
  font-size: 13px;
  text-wrap: pretty;
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.github {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  max-width: 100%;
  height: 42px;
  padding: 0 16px;
  color: #fff;
  background: var(--ink);
  border-radius: 8px;
  box-shadow: 0 8px 18px #2024281c;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  transition: background .2s ease, box-shadow .2s ease, transform .2s ease;
}

.github:hover {
  color: #fff;
  background: var(--blue);
  box-shadow: 0 10px 22px #286fd32b;
  transform: translateY(-1px);
}

.github:active {
  transform: translateY(0);
}

.github img {
  display: block;
  flex: 0 0 auto;
  width: 15px;
  height: 15px;
  filter: invert(1);
}

.github-icon,
.github-text {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 20px;
  line-height: 20px;
}

.license {
  color: #92999f;
  font-size: 12px;
}

section {
  padding: 48px 0 58px;
  border-top: 1px solid var(--line);
}

h2 {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 19px;
  font-size: 18px;
  font-weight: 650;
}

h2 img {
  display: block;
  width: 17px;
  height: 17px;
  object-fit: contain;
}

pre {
  font: 11px/1.8 var(--mono);
}

.command-block {
  position: relative;
}

.install pre {
  margin: 0;
  padding: 18px 20px;
  overflow: auto;
  color: var(--ink);
  background: #f8fafb;
  border: 1px solid #dce8f5;
  border-radius: 8px;
  box-shadow: 0 8px 20px #286fd30d;
}

.install pre code {
  color: #174f9e;
}

.copy-button {
  position: absolute;
  top: 10px;
  right: 8px;
  display: block;
  min-width: 46px;
  height: 28px;
  padding: 0 9px;
  color: #174f9e;
  background: #fff;
  border: 1px solid #cfe0f3;
  border-radius: 6px;
  box-shadow: 0 4px 10px #286fd314;
  cursor: pointer;
  font: 11px/28px ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  text-align: center;
  opacity: 0;
  transform: translateY(-2px);
  transition: opacity .18s ease, transform .18s ease, border-color .18s ease;
}

.command-block:hover .copy-button,
.command-block:focus-within .copy-button,
.command-row:hover .copy-button,
.command-row:focus-within .copy-button,
.inline-command:hover .copy-button,
.inline-command:focus-within .copy-button {
  opacity: 1;
  transform: translateY(0);
}

.copy-button:hover {
  border-color: #9fc1ea;
}

.copy-button:active {
  transform: translateY(1px);
}

.command-list {
  display: grid;
  margin-top: 12px;
  overflow: hidden;
  background: #fbfcfd;
  border: 1px solid #dce8f5;
  border-radius: 8px;
}

.command-row {
  position: relative;
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(0, auto);
  align-items: center;
  gap: 16px;
  min-width: 0;
  padding: 12px 14px;
  font-size: 12px;
}

.command-row + .command-row {
  border-top: 1px solid #e7eef6;
}

.command-row > div:first-child {
  display: flex;
}

.command-row strong {
  font-weight: 650;
}

.command-row code {
  max-width: 100%;
  padding: 5px 7px;
  color: #174f9e;
  background: #eef6ff;
  border-radius: 5px;
  font: 11px var(--mono);
}

.inline-command {
  display: flex;
  align-items: center;
  min-width: 0;
}

.inline-command .copy-button {
  top: 50%;
  transform: translateY(-50%);
}

.command-row:hover .copy-button,
.command-row:focus-within .copy-button,
.inline-command:hover .copy-button,
.inline-command:focus-within .copy-button {
  transform: translateY(-50%);
}

.inline-command .copy-button:active {
  transform: translateY(calc(-50% + 1px));
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.feature-grid article {
  padding: 17px 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 3px 12px #20242808;
}

.feature-grid b {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 650;
}

.feature-grid b img {
  display: block;
  width: 15px;
  height: 15px;
  opacity: .75;
}

.feature-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
}

.screenshot figure {
  margin: 0;
}

.screenshot figure > img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 9px;
  box-shadow: 0 8px 24px #20242812;
}

.footer {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  padding: 24px 0 36px;
  color: #92999f;
  font-size: 11px;
}

.footer span {
  color: #c2c7cb;
}

.footer .footer-credit {
  color: #737b82;
}

@media (max-width: 680px) {
  .wrap {
    width: calc(100% - 32px);
  }

  .hero {
    width: calc(100% - 32px);
    margin: 0 auto;
    padding: 56px 0 54px;
  }

  .topbar {
    top: 16px;
  }

  .logo {
    width: 50px;
    height: 50px;
  }

  .hero h1 {
    font-size: 40px;
  }

  .hero p {
    margin: 0 0 28px;
    font-size: 12px;
  }

  .install,
  .features,
  .screenshot {
    padding: 38px 0 46px;
  }

  .install pre {
    padding: 48px 14px 15px;
  }

  .command-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .command-row > div:first-child {
    margin-bottom: 0;
  }

  .command-row code {
    display: block;
    overflow-x: auto;
    padding: 5px 7px;
    font-size: 10px;
  }

  .feature-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .feature-grid article {
    padding: 14px 15px;
  }

}

@media (hover: none) {
  .copy-button {
    opacity: 1;
    transform: translateY(0);
  }

  .inline-command .copy-button {
    transform: translateY(-50%);
  }
}
