:root {
  --bg: #fbfaf8;
  --surface: #ffffff;
  --text: #1d1d1f;
  --muted: #5f6368;
  --border: #e6e3de;
  --accent: #5b4fd6;
  --max: 720px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141417;
    --surface: #1c1c21;
    --text: #ececf0;
    --muted: #a0a0ab;
    --border: #2c2c33;
    --accent: #a59bff;
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

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

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

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 16px;
}

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

header.site .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  padding-top: 18px;
  padding-bottom: 18px;
}

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

nav a {
  color: var(--muted);
  text-decoration: none;
  margin-left: 18px;
  font-size: 15px;
}
nav a:first-child { margin-left: 0; }
nav a:hover, nav a[aria-current="page"] { color: var(--text); }

main { padding: 48px 0 64px; }

h1 { font-size: 2rem; line-height: 1.2; margin: 0 0 16px; letter-spacing: -0.01em; }
h2 { font-size: 1.25rem; margin: 40px 0 8px; }
h3 { font-size: 1.05rem; margin: 24px 0 6px; }

.lede { font-size: 1.15rem; color: var(--muted); margin: 0 0 32px; }
.meta { color: var(--muted); font-size: 14px; }

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

ul.apps { list-style: none; padding: 0; margin: 0; }
ul.apps li { padding: 14px 0; border-top: 1px solid var(--border); }
ul.apps li:first-child { border-top: 0; }

table { border-collapse: collapse; width: 100%; font-size: 15px; }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--border); vertical-align: top; }
th { font-weight: 600; }
.table-scroll { overflow-x: auto; }

footer.site {
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 14px;
}
footer.site .wrap { padding-top: 24px; padding-bottom: 32px; }
footer.site a { color: var(--muted); }

.flush-top { margin-top: 0; }
.flush-bottom { margin-bottom: 0; }
