:root {
  --bg: #ffffff;
  --bg-soft: #f6f6f4;
  --text: #16181d;
  --muted: #5d636e;
  --line: #e6e6e3;
  --accent: #0052cc;
  --brand: #f5821f;
  --code-bg: #14161a;
  --code-text: #e8e9ec;
  --radius: 12px;
  font-family: Inter, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1114;
    --bg-soft: #16191d;
    --text: #ecedef;
    --muted: #9aa0aa;
    --line: #262a30;
    --accent: #6ea8ff;
    --code-bg: #090a0c;
  }
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-size: 17px;
  line-height: 1.65;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
a {
  color: inherit;
  text-decoration: none;
}
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}
code {
  font-family: "JetBrains Mono", ui-monospace, Menlo, monospace;
  font-size: 0.86em;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 0.1em 0.35em;
}
h1,
h2,
h3 {
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin: 0;
  text-wrap: balance;
}

.wrap {
  width: min(1120px, 100% - 40px);
  margin-inline: auto;
}
.skip-link {
  position: absolute;
  left: -999px;
}
.skip-link:focus {
  left: 16px;
  top: 12px;
  z-index: 20;
  background: var(--bg);
  padding: 8px 12px;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 16px;
}
.header nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 15px;
  color: var(--muted);
}
.header nav a:hover {
  color: var(--text);
}
.nav-github {
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 6px 12px;
}

/* Hero */
.hero {
  padding: 96px 0 56px;
  text-align: center;
}
.kicker {
  margin: 0 0 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
}
.hero h1 {
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 700;
  max-width: 18ch;
  margin-inline: auto;
}
.lead {
  margin: 24px auto 0;
  max-width: 600px;
  font-size: 19px;
  color: var(--muted);
}
.actions {
  margin-top: 36px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}
.btn {
  display: inline-flex;
  align-items: center;
  height: 46px;
  padding: 0 20px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  transition: opacity 0.15s, background 0.15s;
}
.btn-primary {
  background: var(--text);
  color: var(--bg);
}
.btn-primary:hover {
  opacity: 0.85;
}
.btn-ghost {
  border: 1px solid var(--line);
}
.btn-ghost:hover {
  background: var(--bg-soft);
}

/* Screenshots */
.frame {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  box-shadow:
    0 1px 2px rgb(0 0 0 / 0.04),
    0 20px 50px -20px rgb(0 0 0 / 0.18);
}
.hero-shot {
  margin-top: 8px;
  margin-bottom: 0;
}
.hero-shot figcaption {
  margin-top: 14px;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
}

/* Sections */
.section {
  padding: 112px 0 0;
}
.section-title {
  font-size: clamp(26px, 3.4vw, 36px);
  font-weight: 700;
  margin-bottom: 36px;
}
.feature {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 56px;
  align-items: center;
}
.feature + .feature {
  margin-top: 112px;
}
.feature:nth-child(even) {
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
}
.feature:nth-child(even) .feature-text {
  order: 2;
}
.feature h2 {
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 700;
}
.feature-text p:last-child {
  margin: 18px 0 0;
  color: var(--muted);
}

/* List grid */
.list-grid {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}
.list-grid > div {
  padding: 28px 28px 28px 0;
  border-bottom: 1px solid var(--line);
}
.list-grid dt {
  font-weight: 600;
  margin-bottom: 6px;
}
.list-grid dd {
  margin: 0;
  color: var(--muted);
  font-size: 15.5px;
}

/* Table */
.table-wrap {
  overflow-x: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15.5px;
}
th,
td {
  text-align: left;
  padding: 16px 20px 16px 0;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
th {
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
}
td:first-child {
  font-weight: 600;
  white-space: nowrap;
}
td code {
  white-space: nowrap;
}

/* Quickstart */
.start {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 56px;
  align-items: start;
  padding-bottom: 120px;
}
.start-text .section-title {
  margin-bottom: 18px;
}
.start-text p {
  color: var(--muted);
  margin: 0 0 20px;
}
.link {
  color: var(--accent);
  font-weight: 600;
}
.link:hover {
  text-decoration: underline;
}
.code {
  background: var(--code-bg);
  color: var(--code-text);
  border-radius: var(--radius);
  overflow: hidden;
}
.code-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px 10px 20px;
  border-bottom: 1px solid rgb(255 255 255 / 0.08);
  font-size: 13px;
  color: #8b909a;
}
.code-bar button {
  font: inherit;
  color: var(--code-text);
  background: rgb(255 255 255 / 0.08);
  border: 0;
  border-radius: 6px;
  padding: 5px 12px;
  cursor: pointer;
}
.code-bar button:hover {
  background: rgb(255 255 255 / 0.15);
}
.code pre {
  margin: 0;
  padding: 20px;
  overflow-x: auto;
  font-size: 14px;
  line-height: 1.75;
}
.code pre code {
  background: none;
  border: 0;
  padding: 0;
  font-size: inherit;
  color: inherit;
}
.copy-status {
  margin: 0;
  padding: 0 20px;
  font-size: 13px;
  color: #8b909a;
}
.copy-status:not(:empty) {
  padding-bottom: 14px;
}

/* Footer */
.footer {
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--muted);
}
.footer-inner {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.footer nav {
  display: flex;
  gap: 24px;
}
.footer a:hover {
  color: var(--text);
}

/* Responsive */
@media (max-width: 900px) {
  .feature,
  .feature:nth-child(even),
  .start {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .feature:nth-child(even) .feature-text {
    order: 0;
  }
  .list-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 640px) {
  .wrap {
    width: calc(100% - 32px);
  }
  .header nav a:not(.nav-github) {
    display: none;
  }
  .hero {
    padding: 64px 0 40px;
  }
  .section {
    padding-top: 80px;
  }
  .feature + .feature {
    margin-top: 72px;
  }
  .list-grid {
    grid-template-columns: 1fr;
  }
  .list-grid > div {
    padding-right: 0;
  }
  .footer-inner {
    height: auto;
    padding: 24px 0;
    flex-direction: column;
    align-items: flex-start;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
.frame-dialog {
  max-width: 440px;
  justify-self: center;
  width: 100%;
}
