/* One stylesheet for the whole site. Dark by default because the app is, and
   light for anyone whose system asks for it. */

:root {
  --bg: #0b0b0d;
  --surface: #161619;
  --text: #f2f2f4;
  --muted: #a1a1aa;
  --accent: #6b8afd;
  --border: rgba(255, 255, 255, 0.08);
  --radius: 14px;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #ffffff;
    --surface: #f4f4f6;
    --text: #14141a;
    --muted: #5b5b66;
    --accent: #3557d8;
    --border: rgba(0, 0, 0, 0.09);
  }
}

* { box-sizing: border-box; }

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

.wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 32px 20px 80px;
}

header.site {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 20px 0 28px;
}

header.site img { width: 44px; height: 44px; border-radius: 10px; }
header.site a { color: var(--text); text-decoration: none; font-weight: 600; }

/* Wraps to its own line on a narrow phone rather than pushing "Support" off
   the edge, which is where the link people need most happens to sit. */
nav.site { margin-left: auto; display: flex; flex-wrap: wrap; gap: 18px; }
@media (max-width: 440px) {
  nav.site { margin-left: 0; width: 100%; gap: 16px; }
}
nav.site a { color: var(--muted); font-weight: 400; font-size: 15px; }
nav.site a:hover { color: var(--text); }

h1 { font-size: 30px; line-height: 1.25; margin: 0 0 8px; }
h2 { font-size: 20px; margin: 36px 0 10px; }
h3 { font-size: 17px; margin: 24px 0 6px; }

p, li { color: var(--text); }
.lede, .muted { color: var(--muted); }
.lede { font-size: 18px; }

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

ul { padding-left: 20px; }
li { margin: 6px 0; }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 22px;
  margin: 20px 0;
}

.hero { padding: 24px 0 8px; }

.features { display: grid; gap: 14px; margin: 28px 0; }
@media (min-width: 620px) { .features { grid-template-columns: repeat(3, 1fr); } }

.feature { background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 18px; }
.feature h3 { margin: 0 0 4px; font-size: 15px; }
.feature p { margin: 0; font-size: 14px; color: var(--muted); }

table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 15px; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--border);
  vertical-align: top; }
th { color: var(--muted); font-weight: 600; }

code { background: var(--surface); padding: 2px 6px; border-radius: 6px; font-size: 14px; }

footer.site {
  margin-top: 56px; padding-top: 24px;
  border-top: 1px solid var(--border);
  color: var(--muted); font-size: 14px;
  display: flex; flex-wrap: wrap; gap: 16px;
}
footer.site a { color: var(--muted); }
