:root {
  color-scheme: light dark;
  --page-bg: #ffffff;
  --surface: #ffffff;
  --surface-muted: #f3f4f6;
  --text: #111111;
  --muted: #444444;
  --border: #c7c7c7;
  --accent: #0f62fe;
  --focus: #005fcc;
  --max-width: 72rem;
  --measure: 67ch;
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2rem;
  --space-5: 3rem;
  --space-6: 5rem;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "SFMono-Regular", SFMono-Regular, ui-monospace, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --page-bg: #000000;
    --surface: #000000;
    --surface-muted: #1d1d1d;
    --text: #f5f5f5;
    --muted: #c9c9c9;
    --border: #5a5a5a;
    --accent: #8ab4ff;
    --focus: #9ec1ff;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--page-bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
  border: 1px solid var(--border);
}

.hero-media img {
  border: 0;
  border-radius: 24px;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

h1,
h2,
h3,
p,
ul,
figure {
  margin: 0;
}

h1,
h2,
h3 {
  letter-spacing: -0.015em;
  line-height: 1.1;
}

h1 {
  max-width: 12ch;
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 700;
}

h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
}

h3 {
  font-size: 1rem;
  font-weight: 700;
}

p,
li {
  max-width: var(--measure);
}

pre {
  overflow-x: auto;
  padding: var(--space-2);
  border: 1px solid var(--border);
  background: var(--surface-muted);
  border-radius: 8px;
}

code {
  font-family: var(--font-mono);
  font-size: 0.95em;
}

ul {
  padding-left: 1.25rem;
}

.wrap {
  width: min(calc(100% - 2rem), var(--max-width));
  margin: 0 auto;
}

.skip-link {
  position: absolute;
  left: 0;
  top: 0;
  padding: var(--space-1) var(--space-2);
  background: var(--page-bg);
  border: 1px solid var(--border);
  transform: translateY(-120%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--page-bg);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  align-items: center;
  justify-content: space-between;
  padding: var(--space-2) 0;
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--text);
  text-decoration: none;
}

.site-brand:hover {
  text-decoration: none;
}

.site-brand-mark {
  display: block;
  flex-shrink: 0;
}

.site-brand-mark img {
  width: 1.15rem;
  height: 1.15rem;
  border: 0;
}

.site-name {
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1;
}

.nav-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  list-style: none;
  padding: 0;
}

.hero,
.section {
  padding: var(--space-6) 0;
}

.hero-grid,
.install-grid {
  display: grid;
  gap: var(--space-4);
}

.hero-grid {
  align-items: start;
}

.hero-copy {
  display: grid;
  gap: var(--space-3);
}

.eyebrow,
.meta {
  font-size: 0.95rem;
  color: var(--muted);
}

.lede {
  font-size: 1.125rem;
}

.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.action-link {
  display: inline-block;
  padding: 0.75rem 1rem;
  border: 1px solid currentColor;
  border-radius: 8px;
  text-decoration: none;
}

.primary-action {
  color: var(--text);
}

.feature-list {
  display: grid;
  gap: 0.75rem;
  margin-top: var(--space-3);
}

.direct-download-link {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  width: fit-content;
  color: var(--text);
}

.direct-download-link:hover {
  text-decoration: none;
}

.download-link-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 1rem;
  line-height: 1;
  flex-shrink: 0;
}

.release-link-row {
  margin-top: calc(var(--space-1) * -0.25);
}

.release-link {
  font-size: 0.95rem;
}

.install-options {
  display: grid;
  gap: var(--space-4);
}

.install-options > div,
.install-grid > div,
.footer-inner {
  display: grid;
  gap: var(--space-2);
  align-content: start;
}

.site-footer {
  background: var(--surface-muted);
  border-top: 1px solid var(--border);
  padding: var(--space-3) 0;
}

.footer-inner {
  justify-content: space-between;
}

@media (min-width: 52rem) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(18rem, 0.9fr);
  }

  .install-options {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .footer-inner {
    grid-template-columns: 1fr auto;
    align-items: center;
  }
}
