:root {
  --bg: #ffffff;
  --surface: #f6f8fa;
  --border: #d0d7de;
  --text: #1f2328;
  --muted: #59636e;
  --link: #0969da;
  --prerelease: #9a6700;
  --shadow: 0 8px 30px rgba(31, 35, 40, 0.12);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d1117;
    --surface: #161b22;
    --border: #30363d;
    --text: #e6edf3;
    --muted: #9198a1;
    --link: #4493f8;
    --prerelease: #d29922;
    --shadow: 0 8px 30px rgba(0, 0, 0, 0.45);
  }
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
}

a {
  color: var(--link);
}

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

.demo {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.title-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px 24px;
  margin-top: 40px;
}

.title-row h1 {
  grid-column: 2;
  margin: 0;
  font-size: clamp(2.75rem, 9vw, 4.5rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
}

.badges {
  grid-column: 3;
  justify-self: start;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

@media (max-width: 900px) {
  .title-row {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .title-row h1,
  .badges {
    grid-column: 1;
    justify-self: center;
  }

  .badges {
    justify-content: center;
  }
}

.badges a,
.badges img,
.badges iframe {
  display: block;
}

.tagline {
  margin: 16px auto 0;
  max-width: 40em;
  text-align: center;
  color: var(--muted);
  font-size: 1.25rem;
}

.releases {
  margin-top: 48px;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.releases h2 {
  margin: 0 0 16px;
  font-size: 1.25rem;
}

.release-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.release-list:empty {
  display: none;
}

.release-link {
  display: block;
  padding: 14px 16px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: inherit;
  text-decoration: none;
  transition: border-color 0.15s;
}

.release-link:hover,
.release-link:focus-visible {
  border-color: var(--link);
}

.release-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.release-name {
  font-weight: 600;
  overflow-wrap: anywhere;
}

.release-label {
  padding: 1px 8px;
  border: 1px solid var(--prerelease);
  border-radius: 999px;
  color: var(--prerelease);
  font-size: 0.75rem;
  font-weight: 600;
}

.release-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.875rem;
}

.release-tag {
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
}

.all-releases {
  display: inline-block;
  margin-top: 16px;
  font-size: 0.9375rem;
}

.why {
  margin-top: 64px;
}

.why h2 {
  margin: 0;
  font-size: 1.75rem;
  text-align: center;
}

.pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: pillar;
}

.pillars li {
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  counter-increment: pillar;
}

.pillars h3 {
  margin: 0;
  font-size: 1.0625rem;
}

.pillars h3::before {
  content: counter(pillar) ". ";
  color: var(--muted);
}

.pillars p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.9375rem;
}

.footnote {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 0.875rem;
}
