:root {
  color-scheme: light;
  --bg: #f7f7f4;
  --surface: #ffffff;
  --text: #1f2520;
  --muted: #626b64;
  --border: #d9ded8;
  --accent: #2f6f4f;
  --accent-hover: #24593f;
  --code-bg: #edf1ec;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--accent-hover);
}

.page-width {
  width: min(100% - 32px, 920px);
  margin: 0 auto;
}

.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 0;
}

.site-title {
  color: var(--text);
  font-size: 20px;
  font-weight: 700;
  text-decoration: none;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.site-nav a {
  color: var(--muted);
  font-weight: 600;
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--text);
}

.site-main {
  padding: 48px 0 64px;
}

.page-heading {
  margin: 0 0 8px;
  font-size: 44px;
  line-height: 1.1;
}

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

.build-meta,
.download-list,
.checksum-link {
  max-width: 760px;
}

.build-meta {
  display: grid;
  gap: 8px;
  margin: 28px 0;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.meta-label {
  min-width: 72px;
  color: var(--muted);
  font-weight: 700;
}

code {
  padding: 0.12em 0.32em;
  background: var(--code-bg);
  border-radius: 4px;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.92em;
}

.download-list {
  display: grid;
  gap: 12px;
  margin: 24px 0;
  padding: 0;
  list-style: none;
}

.download-list a {
  display: block;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
}

.download-list a:hover {
  border-color: var(--accent);
}

.checksum-link {
  margin-top: 24px;
}

.issue-tracker {
  max-width: 760px;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.issue-tracker h2 {
  margin: 0 0 8px;
  line-height: 1.25;
}

.issue-tracker p {
  margin: 0;
}

.changelog {
  max-width: 760px;
}

.changelog h1,
.changelog h2,
.changelog h3 {
  line-height: 1.25;
}

.changelog h1 {
  margin-top: 0;
}

.changelog h2 {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

@media (max-width: 640px) {
  .header-content {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .site-main {
    padding-top: 32px;
  }

  .page-heading {
    font-size: 34px;
  }
}
