:root {
  --bg: #fbfbfa;
  --panel: #ffffff;
  --text: #0c0c0c;
  --muted: #6b6b6b;
  --line: #e6e5e2;
  --blue: #2a63f6;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e0e0e;
    --panel: #151515;
    --text: #ededed;
    --muted: #8f8f8f;
    --line: #262626;
    --blue: #6b93ff;
  }
}

* { box-sizing: border-box; }

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

a { color: inherit; }

/* The page is one bordered column, like a sheet of graph paper. */
.frame {
  max-width: 1120px;
  margin: 0 auto;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
}

/* nav */
.nav { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 85%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; padding: 12px 24px; }
.wordmark { font-weight: 600; letter-spacing: -0.02em; text-decoration: none; font-size: 17px; }
.nav nav { display: flex; align-items: center; gap: 24px; font-size: 14px; }
.nav nav a { text-decoration: none; color: var(--muted); }
.nav nav a:hover { color: var(--text); }
.nav nav a.btn { color: var(--bg); }

/* buttons */
.btn {
  display: inline-block; padding: 10px 18px; border-radius: 8px;
  border: 1px solid var(--line); background: var(--panel);
  font-size: 15px; font-weight: 500; text-decoration: none;
}
.btn:hover { border-color: var(--muted); }
.btn.dark { background: var(--text); color: var(--bg); border-color: var(--text); }
.btn.dark:hover { opacity: 0.88; }
.btn.small { padding: 6px 12px; font-size: 13px; border-radius: 6px; }

/* hero */
.hero { text-align: center; padding: 128px 24px 120px; border-bottom: 1px solid var(--line); }
.pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px 4px 10px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--panel);
  font-size: 13px; color: var(--muted); text-decoration: none; margin-bottom: 28px;
}
.pill:hover { color: var(--text); }
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--blue); }
h1 {
  font-size: clamp(40px, 6.4vw, 72px); line-height: 1.04; letter-spacing: -0.045em;
  font-weight: 600; margin: 0 auto 24px; max-width: 900px;
}
.sub { font-size: 20px; line-height: 1.5; color: var(--muted); max-width: 560px; margin: 0 auto 36px; letter-spacing: -0.01em; }
.actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.install {
  display: inline-flex; align-items: center; gap: 4px; margin-top: 28px; max-width: 100%;
  padding: 4px 4px 4px 16px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel);
}
.install[hidden] { display: none; }
.install code { font: 13px var(--mono); white-space: nowrap; overflow-x: auto; }
.install code::before { content: "$ "; color: var(--muted); }
.copy {
  flex: none; padding: 6px 10px; border: none; border-radius: 6px; background: transparent;
  font: 500 12px var(--sans); color: var(--muted); cursor: pointer;
}
.copy:hover { color: var(--text); background: var(--bg); }
.terminal { margin: 16px 0 0 !important; font-size: 13px !important; }
.terminal code { font: 12px var(--mono); color: var(--text); overflow-wrap: anywhere; }
.platforms-note { font-size: 13px; color: var(--muted); margin: 16px 0 0; }

/* label + content rows */
.grid { display: grid; grid-template-columns: 240px 1fr; border-bottom: 1px solid var(--line); }
.grid > * { padding: 64px 32px; min-width: 0; }
.label { margin: 0; font: 500 12px var(--mono); color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; border-right: 1px solid var(--line); }
.prose { max-width: 680px; }
.prose p { margin: 0 0 20px; color: var(--muted); font-size: 17px; }
.prose p.lead { color: var(--text); font-size: 26px; line-height: 1.3; letter-spacing: -0.02em; font-weight: 500; margin-bottom: 28px; }
.prose a { color: var(--text); text-underline-offset: 3px; }
pre { margin: 28px 0 0; padding: 18px 20px; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; font: 13px/1.7 var(--mono); overflow-x: auto; }

/* apps */
#apps { border-bottom: 1px solid var(--line); }
.cells { display: grid; grid-template-columns: repeat(3, 1fr); }
.cell { padding: 32px; border-right: 1px solid var(--line); display: flex; flex-direction: column; }
.cell:last-child { border-right: none; }
.cell h3 { margin: 6px 0 10px; font-size: 22px; font-weight: 600; letter-spacing: -0.02em; }
.cell > p { margin: 0; color: var(--muted); font-size: 15px; }
.kicker { font: 500 12px var(--mono) !important; color: var(--blue) !important; text-transform: uppercase; letter-spacing: 0.06em; }
.kicker.muted { color: var(--muted) !important; }
.downloads { list-style: none; margin: 24px 0 0; padding: 0; border-top: 1px solid var(--line); }
.downloads a {
  display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--line);
  text-decoration: none; font-size: 15px; font-weight: 500;
}
.downloads a::after { content: "↓"; color: var(--muted); }
.downloads a span { color: var(--muted); font-weight: 400; margin-left: auto; margin-right: 12px; font-size: 13px; align-self: center; }
.downloads a:hover::after, .downloads a.current::after { color: var(--blue); }
.downloads a.current { color: var(--blue); }
.more { margin-top: auto !important; padding-top: 24px; font-size: 14px !important; }
.more a { color: var(--text); text-underline-offset: 3px; }

/* footer */
footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding: 32px; font-size: 13px; color: var(--muted); }
footer a { color: var(--muted); }
footer span:first-child { color: var(--text); font-weight: 600; }
.legal { flex-basis: 100%; margin: 8px 0 0; font-size: 12px; }

@media (max-width: 860px) {
  .grid { grid-template-columns: 1fr; }
  .label { border-right: none; padding-bottom: 0 !important; }
  .grid > * { padding: 40px 20px; }
  .cells { grid-template-columns: 1fr; }
  .cell { border-right: none; border-bottom: 1px solid var(--line); padding: 28px 20px; }
  .cell:last-child { border-bottom: none; }
  .hero { padding: 72px 20px 72px; }
  .nav nav a:not(.btn) { display: none; }
  .nav nav a[href^="https://github.com"] { display: inline; }
}
