:root {
  color-scheme: light dark;
  --canvas: #f6f5f3;
  --surface: #ffffff;
  --ink: #1a1916;
  --ink-secondary: rgba(26, 25, 22, 0.62);
  --ink-tertiary: rgba(26, 25, 22, 0.42);
  --hairline: rgba(0, 0, 0, 0.08);
}

@media (prefers-color-scheme: dark) {
  :root {
    --canvas: #0f0f11;
    --surface: #18181b;
    --ink: #f2f0ec;
    --ink-secondary: rgba(242, 240, 236, 0.62);
    --ink-tertiary: rgba(242, 240, 236, 0.4);
    --hairline: rgba(255, 255, 255, 0.08);
  }
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family:
    -apple-system, BlinkMacSystemFont, system-ui, "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--canvas);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01", "cv11";
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  padding: 96px 24px 48px;
  display: flex;
  flex-direction: column;
  gap: 60px;
}

header h1 {
  font-size: 44px;
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.024em;
  margin-bottom: 12px;
}

header .tagline {
  font-size: 17px;
  line-height: 1.5;
  color: var(--ink-secondary);
  letter-spacing: -0.01em;
  max-width: 30em;
}

.features ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.features li {
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: -0.005em;
}

.features li b {
  font-weight: 600;
  color: var(--ink);
}

.download {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}

.download-btn {
  display: inline-block;
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: -0.005em;
  color: var(--canvas);
  background: var(--ink);
  padding: 11px 22px;
  border-radius: 999px;
  text-decoration: none;
  font-variant-numeric: tabular-nums;
  transition:
    transform 0.12s ease,
    opacity 0.12s ease;
}

.download-btn:hover {
  opacity: 0.92;
  transform: translateY(-1px);
}

.download-btn:active {
  transform: translateY(0);
}

.download-btn[data-version=""] {
  display: none;
}

.download-fallback {
  display: none;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--ink-tertiary);
  padding-bottom: 1px;
}

.download-btn[data-version=""] ~ .download-fallback {
  display: inline-block;
}

.brew {
  font-size: 13.5px;
  color: var(--ink-secondary);
  margin-top: 4px;
  letter-spacing: -0.005em;
}

pre {
  font-family:
    ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  font-size: 13px;
  line-height: 1.5;
  background: var(--surface);
  border: 0.5px solid var(--hairline);
  padding: 12px 16px;
  border-radius: 8px;
  overflow-x: auto;
  align-self: stretch;
}

code {
  font-family: inherit;
}

.requirements {
  font-size: 12.5px;
  color: var(--ink-tertiary);
  letter-spacing: 0.005em;
}

footer {
  font-size: 12.5px;
  color: var(--ink-tertiary);
  text-align: center;
  margin-top: 24px;
  padding: 32px 0;
  border-top: 0.5px solid var(--hairline);
  letter-spacing: 0.005em;
}

footer a {
  color: var(--ink-secondary);
  text-decoration: none;
  transition: color 0.12s ease;
}

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

footer .dot {
  margin: 0 10px;
  color: var(--ink-tertiary);
}

@media (max-width: 540px) {
  main {
    padding: 64px 20px 32px;
    gap: 64px;
  }

  header h1 {
    font-size: 36px;
  }

  header .tagline {
    font-size: 16px;
  }

  .hero {
    margin: 0 -20px;
  }

  .hero img {
    border-radius: 8px;
  }

  .features li {
    font-size: 15px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .download-btn {
    transition: none;
  }

  .download-btn:hover {
    transform: none;
  }
}
