:root {
  color-scheme: light dark;
  --canvas: #ECF0ED;
  --panel: #FCFEFD;
  --line: #DFE5E0;
  --text: #141D16;
  --text-2: #4E5850;
  --text-3: #6D756F;
  --accent-text: #15614A;
  --accent-soft: #D9F7EA;
  --deep: #083328;
  --on-deep: #EFF7F4;
}

@media (prefers-color-scheme: dark) {
  :root {
    --canvas: #0A0D0A;
    --panel: #121613;
    --line: #272D28;
    --text: #F1F5F1;
    --text-2: #ACB3AD;
    --text-3: #818882;
    --accent-text: #7FD9B8;
    --accent-soft: #113227;
    --deep: #EFF7F4;
    --on-deep: #083328;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--canvas);
  color: var(--text);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", sans-serif;
  -webkit-font-smoothing: antialiased;
}

main {
  max-width: 680px;
  margin: 0 auto;
  padding: 56px 24px 72px;
}

.wordmark { display: block; width: 148px; height: auto; margin-bottom: 40px; }

h1 {
  font-size: 34px;
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-weight: 700;
  margin: 0 0 12px;
}

h2 {
  font-size: 19px;
  letter-spacing: -0.01em;
  margin: 40px 0 8px;
}

p, li { color: var(--text-2); }
p { margin: 0 0 14px; }
ul, ol { padding-left: 22px; margin: 0 0 14px; }
li { margin-bottom: 6px; }
strong { color: var(--text); font-weight: 600; }

a { color: var(--accent-text); text-underline-offset: 3px; }

code {
  font: 15px ui-monospace, SFMono-Regular, Menlo, monospace;
  color: var(--text);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 1px 5px;
}

.lede { font-size: 20px; color: var(--text); margin-bottom: 24px; }

.download { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-bottom: 28px; }
.download .meta { margin: 0; font-size: 14px; }
.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 46px; padding: 0 22px; border-radius: 12px;
  background: var(--deep); color: var(--on-deep);
  font-size: 16px; font-weight: 600; text-decoration: none;
}
.button:hover { filter: brightness(1.12); }
.button:focus-visible { outline: 3px solid var(--accent-text); outline-offset: 3px; }
@media (max-width: 520px) { .button { width: 100%; } }
.meta { color: var(--text-3); font-size: 15px; margin-bottom: 32px; }

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px 22px;
  margin: 28px 0;
}
.card p:last-child, .card ul:last-child { margin-bottom: 0; }

.note {
  background: var(--accent-soft);
  border-radius: 10px;
  padding: 14px 18px;
  color: var(--text);
}

footer {
  margin-top: 56px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--text-3);
  font-size: 15px;
}
footer a { color: var(--text-2); }

/* What's new (/changelog): one entry per version, filled in by _worker.js. */
.release { padding-top: 28px; margin-top: 28px; border-top: 1px solid var(--line); }
.release h2 { margin: 0 0 2px; }
.release h2 a { color: var(--text); text-decoration: none; }
.release h2 a:hover { text-decoration: underline; }
.release .meta { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.release ul { margin-bottom: 0; }
.latest {
  font-size: 12px; font-weight: 600; letter-spacing: 0.02em;
  color: var(--accent-text); background: var(--accent-soft);
  border-radius: 999px; padding: 1px 9px;
}
