:root {
  color-scheme: light dark;
  --bg: #fafafa;
  --surface: #ffffff;
  --text: #171717;
  --muted: #5c5c5c;
  --border: #e5e5e5;
  --green: #49c970;
  --green-hover: #6bd586;
  --green-text: #14361d;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f0f0f;
    --surface: #1a1a1a;
    --text: #f2f2f2;
    --muted: #a3a3a3;
    --border: #2e2e2e;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font:
    16px/1.55 -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    "Helvetica Neue",
    Arial,
    sans-serif;
}

a {
  color: inherit;
}

.page {
  max-width: 880px;
  margin: 0 auto;
  padding: 24px 16px 64px;
}

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  text-decoration: none;
}

.brand img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

nav {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

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

nav a:hover,
nav a[aria-current="page"] {
  color: var(--text);
}

h1 {
  font-size: clamp(32px, 6vw, 44px);
  line-height: 1.15;
  margin: 0 0 16px;
}

h2 {
  font-size: 22px;
  margin: 40px 0 12px;
}

.lead {
  font-size: 18px;
  color: var(--muted);
  max-width: 640px;
  margin: 0 0 32px;
}

.downloads {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.download {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 20px;
  border-radius: 12px;
  background: var(--green);
  color: var(--green-text);
  text-decoration: none;
}

a.download:hover {
  background: var(--green-hover);
}

.download strong {
  font-size: 18px;
}

.download[aria-disabled="true"] {
  background: var(--surface);
  color: var(--muted);
  border: 1px solid var(--border);
}

.meta {
  font-size: 14px;
  opacity: 0.85;
}

.note {
  margin-top: 24px;
  color: var(--muted);
  font-size: 15px;
}

ol,
ul {
  padding-left: 22px;
}

li + li {
  margin-top: 6px;
}

section + section {
  border-top: 1px solid var(--border);
}

footer {
  margin-top: 64px;
  color: var(--muted);
  font-size: 14px;
}
