/* SPDX-License-Identifier: MPL-2.0 */
:root {
  --page: #f6f7fa;
  --panel: #ffffff;
  --ink: #141a22;
  --muted: #5c6574;
  --line: #dce0e7;
  --accent: #245bb5;
  --accent-ink: #ffffff;
  --accent-soft: #e6eefb;
  --beta: #805500;
  --beta-soft: #fbf0d9;
  --warn-soft: #fdf1ef;
  --warn-line: #f0c7c1;
  --heart: #bf3989;
  --kofi: #ff5e5b;
  --tile-l: 46%;
  --shadow: 0 1px 2px rgb(20 26 34 / 6%), 0 8px 24px rgb(20 26 34 / 6%);
}
@media (prefers-color-scheme: dark) {
  :root {
    --page: #0a0f17;
    --panel: #121925;
    --ink: #e8eef4;
    --muted: #9aa7b8;
    --line: #243042;
    --accent: #4d8fe0;
    --accent-ink: #06121f;
    --accent-soft: #14243b;
    --beta: #efc875;
    --beta-soft: #2d2512;
    --warn-soft: #24161a;
    --warn-line: #4a2a2e;
    --heart: #db61a2;
    --tile-l: 52%;
    --shadow: none;
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font: 16px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.15; margin: 0; letter-spacing: -0.01em; }
p { margin: 0; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }

.bar {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--page) 86%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}
.bar-inner { display: flex; align-items: center; justify-content: space-between; height: 60px; gap: 16px; }
.brand img { display: block; height: 32px; width: auto; }
nav { display: flex; gap: 20px; font-size: 15px; font-weight: 600; }
nav a { color: var(--muted); }
nav a:hover { color: var(--ink); text-decoration: none; }
.nav-sponsor { display: inline-flex; align-items: center; gap: 6px; }
.nav-sponsor svg, .button.sponsor svg { color: var(--heart); }
.button.kofi svg { color: var(--kofi); }
.button svg { flex: none; }

.hero { padding-top: 72px; text-align: center; }
.eyebrow { color: var(--accent); font-weight: 700; font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase; }
.hero h1 { font-size: clamp(34px, 6vw, 60px); margin-top: 14px; font-weight: 800; }
.hero h1 span { color: var(--muted); font-weight: 700; }
.lede { max-width: 620px; margin: 20px auto 0; color: var(--muted); font-size: 18px; }
.actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 28px; }
.button {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 20px; border-radius: 999px; font-weight: 650; font-size: 15px;
  border: 1px solid var(--line); background: var(--panel); color: var(--ink);
}
.button:hover { text-decoration: none; border-color: var(--accent); }
.button.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.button.small { padding: 7px 14px; font-size: 14px; }
.hero-art img { display: block; width: 100%; height: auto; margin-top: 48px; border-radius: 20px; }

.section { padding-top: 88px; }
.section-head { margin-bottom: 28px; }
.section-head h2 { font-size: clamp(26px, 4vw, 36px); font-weight: 800; }
.section-head p { color: var(--muted); margin-top: 8px; font-size: 17px; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.card {
  display: flex; flex-direction: column; gap: 14px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 20px;
  box-shadow: var(--shadow);
}
.card-head { display: flex; gap: 14px; align-items: center; }
.tile {
  flex: none; width: 56px; height: 56px; border-radius: 14px;
  display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 20px; letter-spacing: -0.02em;
  background: linear-gradient(140deg, hsl(var(--hue) 62% calc(var(--tile-l) + 8%)), hsl(calc(var(--hue) + 28) 58% calc(var(--tile-l) - 10%)));
}
.tile img { width: 56px; height: 56px; border-radius: 14px; object-fit: cover; }
.card h3 { font-size: 19px; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 5px; }
.chip {
  font-size: 12px; font-weight: 650; padding: 2px 9px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent);
}
.chip.beta { background: var(--beta-soft); color: var(--beta); }
.chip.soon { background: transparent; color: var(--muted); border: 1px solid var(--line); }
.summary { color: var(--muted); flex: 1; }
.meta { font-size: 13px; color: var(--muted); display: flex; flex-direction: column; gap: 2px; }
.meta b { color: var(--ink); font-weight: 650; }
.card .actions { justify-content: flex-start; margin-top: 2px; gap: 8px; }
#support .actions { justify-content: flex-start; margin-top: 0; }
.note { margin-top: 20px; color: var(--muted); font-size: 14px; }

.steps { list-style: none; padding: 0; margin: 0; counter-reset: step;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.steps li {
  counter-increment: step; background: var(--panel); border: 1px solid var(--line); border-radius: 18px;
  padding: 22px; display: flex; flex-direction: column; gap: 10px; box-shadow: var(--shadow);
}
.steps li::before {
  content: counter(step); width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 800; background: var(--accent); color: var(--accent-ink);
}
.steps h3 { font-size: 18px; }
.steps p { color: var(--muted); }
.release { margin-top: 6px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted);
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

.features { list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 28px 24px; }
.features h3 { font-size: 16px; }
.features h3::before { content: ""; display: block; width: 22px; height: 4px; border-radius: 2px; background: var(--accent); margin-bottom: 12px; }
.features p { color: var(--muted); margin-top: 6px; font-size: 15px; }

.links { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.links a {
  display: flex; flex-direction: column; gap: 4px; padding: 18px 20px; border-radius: 16px;
  background: var(--panel); border: 1px solid var(--line); color: var(--ink);
}
.links a:hover { border-color: var(--accent); text-decoration: none; }
.links span { color: var(--muted); font-size: 14px; }

.warning { background: var(--warn-soft); border: 1px solid var(--warn-line); border-radius: 16px; padding: 18px 20px; font-size: 15px; }
.footer { padding-top: 56px; padding-bottom: 48px; color: var(--muted); font-size: 13px; display: grid; gap: 8px; }

@media (max-width: 640px) {
  nav a:not(:first-child):not(:last-child) { display: none; }
  .hero { padding-top: 48px; }
  .section { padding-top: 64px; }
  .grid { grid-template-columns: 1fr; }
}

.prose { max-width: 720px; }
.prose h1 { font-size: clamp(30px, 5vw, 44px); font-weight: 800; }
.prose h2 { font-size: 20px; margin-top: 32px; }
.prose p, .prose ul { margin-top: 10px; color: var(--muted); }
.prose ul { padding-left: 20px; }
.prose li { margin-top: 6px; }
.prose b { color: var(--ink); }
.lede-left { font-size: 17px; }
code { font-size: 0.92em; }
