:root {
  --bg: #fbfaf8;
  --fg: #1c1b19;
  --muted: #5f5c57;
  --rule: #e0ddd6;
  --card: #f3f1ec;
  --link: #1f5f4f;
  --accent: #1f5f4f;
  --accent-fg: #ffffff;
  --code-bg: #efece5;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #17161a;
    --fg: #e8e6e1;
    --muted: #a09d97;
    --rule: #32303a;
    --card: #211f26;
    --link: #7fd0b6;
    --accent: #7fd0b6;
    --accent-fg: #10231d;
    --code-bg: #242229;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 16px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: 46rem;
  margin: 0 auto;
  padding: 0 20px;
  padding-block: 56px 80px;
}

h1 {
  font-size: 2rem;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
}

h2 {
  font-size: 1.2rem;
  letter-spacing: -0.01em;
  margin: 48px 0 12px;
  padding-top: 20px;
  border-top: 1px solid var(--rule);
}

h3 {
  font-size: 1rem;
  margin: 28px 0 6px;
}

p, ul, ol { margin: 0 0 16px; }
ul, ol { padding-left: 22px; }
li { margin-bottom: 6px; }

a { color: var(--link); }
a:hover { text-decoration: none; }

.lede {
  font-size: 1.1rem;
  color: var(--muted);
  margin-bottom: 28px;
}

code {
  background: var(--code-bg);
  padding: 1px 5px;
  border-radius: 4px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.875em;
}

pre {
  background: var(--code-bg);
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: 14px 16px;
  overflow-x: auto;
  margin: 0 0 16px;
}

pre code { background: none; padding: 0; font-size: 0.85rem; }

.download {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin: 28px 0 8px;
}

.btn {
  display: inline-block;
  background: var(--accent);
  color: var(--accent-fg);
  text-decoration: none;
  font-weight: 600;
  padding: 11px 20px;
  border-radius: 8px;
}

.btn:hover { opacity: 0.88; }

.meta { color: var(--muted); font-size: 0.9rem; }

.note {
  background: var(--card);
  border: 1px solid var(--rule);
  border-left: 3px solid var(--accent);
  border-radius: 6px;
  padding: 14px 16px;
  margin: 0 0 16px;
}

.note p:last-child { margin-bottom: 0; }

.feature { margin-bottom: 22px; }
.feature h3 { margin-top: 0; }
.feature p { margin-bottom: 0; }
/* Most feature blocks are one paragraph; the ones that run to two need the gap back. */
.feature p + p { margin-top: 12px; }

nav.top {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 0.9rem;
  margin-bottom: 40px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--rule);
}

nav.top .gh {
  margin-left: auto;
  display: inline-flex;
  color: var(--muted);
}

nav.top .gh:hover { color: var(--fg); }

footer {
  margin-top: 56px;
  padding-top: 20px;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 0.9rem;
}

.release { margin-bottom: 44px; }

.release h2 {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 12px;
}

.release h2 .date {
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--muted);
}

/* ---- screenshots and the demo ------------------------------------------------ */

figure { margin: 0 0 16px; }

/* Two recordings side by side, stacking on a narrow screen. */
.demos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 28px;
  margin: 28px 0 16px;
}

.demos figure {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* A 576x1280 recording at full column width is 750px tall, which turns the top of the page
   into a wall of phone. Held to something nearer the size the thing actually is. */
.demos video {
  width: 100%;
  max-width: 215px;
  height: auto;
  border: 1px solid var(--rule);
  border-radius: 12px;
  background: var(--card);
  margin-bottom: 10px;
}

.demos figcaption strong { color: var(--fg); font-weight: 600; }

.demo-note {
  color: var(--muted);
  font-size: 0.9rem;
}

figcaption {
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.5;
}

/* Phone screenshots are tall, so they get narrow columns and a shared baseline. */
.shots {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 20px;
  margin: 0 0 24px;
}

.shots img {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid var(--rule);
  border-radius: 10px;
  margin-bottom: 8px;
}
