:root {
  --bg: #ffffff;
  --surface: #f5f5f7;
  --text: #1d1d1f;
  --muted: #6e6e73;
  --line: #d2d2d7;
  --accent: #6b5ce7;
  --radius: 14px;
  --measure: 40rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e0e11;
    --surface: #17171b;
    --text: #f5f5f7;
    --muted: #9a9aa2;
    --line: #2a2a31;
    --accent: #8b7cf6;
  }
}

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

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

.wrap {
  max-width: 56rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Header ---------------------------------------------------------------- */

header.site {
  border-bottom: 1px solid var(--line);
  padding: 1rem 0;
}

header.site .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
  text-decoration: none;
}

nav a {
  color: var(--muted);
  text-decoration: none;
  margin-left: 1.25rem;
  font-size: 0.95rem;
}

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

/* Hero ------------------------------------------------------------------ */

.hero {
  padding: 4rem 0 3rem;
  text-align: center;
}

.hero h1 {
  font-size: clamp(2rem, 6vw, 3.25rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin: 0 0 1rem;
}

.hero p {
  color: var(--muted);
  font-size: 1.15rem;
  max-width: var(--measure);
  margin: 0 auto;
}

/* App cards ------------------------------------------------------------- */

.apps {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr));
  padding: 1rem 0 4rem;
  list-style: none;
  margin: 0;
}

.app {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem;
  display: flex;
  gap: 1rem;
  align-items: center;
}

.app img {
  width: 68px;
  height: 68px;
  border-radius: 15px;
  flex: none;
  background: var(--line);
}

.app h2 {
  font-size: 1.05rem;
  margin: 0 0 0.15rem;
  letter-spacing: -0.01em;
}

.app p {
  margin: 0 0 0.6rem;
  color: var(--muted);
  font-size: 0.92rem;
}

/* Buttons --------------------------------------------------------------- */

.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.5rem 0.95rem;
  border-radius: 980px;
}

.btn:hover { filter: brightness(1.08); }

.btn.ghost {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
}

.btn[aria-disabled="true"] {
  background: var(--line);
  color: var(--muted);
  pointer-events: none;
}

/* Prose ----------------------------------------------------------------- */

main.prose {
  padding: 3rem 0 4rem;
  max-width: var(--measure);
}

main.prose h1 {
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  letter-spacing: -0.02em;
  margin: 0 0 0.35rem;
}

main.prose .updated {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0 0 2.5rem;
}

main.prose h2 {
  font-size: 1.2rem;
  letter-spacing: -0.01em;
  margin: 2.5rem 0 0.6rem;
}

main.prose ul { padding-left: 1.2rem; }
main.prose li { margin: 0.4rem 0; }
main.prose a { color: var(--accent); }

.callout {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: 10px;
  padding: 1rem 1.15rem;
  margin: 1.5rem 0;
}

.callout p:first-child { margin-top: 0; }
.callout p:last-child { margin-bottom: 0; }

/* Feature list ---------------------------------------------------------- */

.features {
  display: grid;
  gap: 1.5rem 2rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
  padding: 1rem 0 3rem;
}

.features h3 {
  font-size: 1rem;
  margin: 0 0 0.3rem;
}

.features p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* Shots ----------------------------------------------------------------- */

.shots {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding: 0 0 2.5rem;
  scroll-snap-type: x mandatory;
}

.shots img {
  width: 15rem;
  flex: none;
  border-radius: 20px;
  border: 1px solid var(--line);
  scroll-snap-align: start;
}

/* Footer ---------------------------------------------------------------- */

footer.site {
  border-top: 1px solid var(--line);
  padding: 2rem 0 3rem;
  color: var(--muted);
  font-size: 0.9rem;
}

footer.site a { color: var(--muted); }
footer.site .links { margin-top: 0.4rem; }
footer.site .links a { margin-right: 1rem; }
