/* The static pages (help, about, legal) and the app's prerendered footer: the app's dark look, no framework. */
:root {
  color-scheme: dark;
  --ink: #0d0d0e;
  --panel: #1c1c1e;
  --line: rgba(255, 255, 255, 0.08);
  --text: #d1d1d6;
  --muted: #8e8e93;
  --faint: #636366;
  --cyan: #00e5ff;
  --red: #ff3b30;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: radial-gradient(120% 60% at 50% 0%, #1c1c1f 0%, var(--ink) 60%) var(--ink);
  color: var(--text);
  font: 400 16px/1.6 Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--cyan);
  text-underline-offset: 2px;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: max(16px, env(safe-area-inset-top)) 16px 8px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.open-app {
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  padding: 8px 16px;
  text-decoration: none;
  box-shadow: 0 0 18px rgba(255, 59, 48, 0.35);
}

.page {
  flex: 1;
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: 16px 16px 48px;
}

h1 {
  margin: 24px 0 8px;
  color: #fff;
  font-size: clamp(30px, 6vw, 40px);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

h2 {
  margin: 40px 0 8px;
  color: #fff;
  font-size: 20px;
  letter-spacing: -0.01em;
  scroll-margin-top: 16px;
}

.lead {
  color: #e5e5ea;
  font-size: 18px;
}

.updated {
  color: var(--faint);
  font-size: 14px;
}

ul,
dl {
  padding-left: 20px;
}

li + li {
  margin-top: 6px;
}

dt {
  margin-top: 12px;
  color: #fff;
  font-weight: 600;
}

dd {
  margin: 2px 0 0;
}

strong {
  color: #fff;
  font-weight: 600;
}

code,
kbd {
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.07);
  font: 500 0.88em ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  padding: 1px 6px;
}

kbd {
  border: 1px solid var(--line);
  border-bottom-width: 2px;
}

table {
  display: block;
  overflow-x: auto;
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

th,
td {
  border-bottom: 1px solid var(--line);
  padding: 8px 12px 8px 0;
  text-align: left;
  vertical-align: top;
}

th {
  color: #fff;
  font-weight: 600;
  white-space: nowrap;
}

.toc {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 24px 0;
}

.toc a {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
  color: var(--text);
  font-size: 14px;
  padding: 4px 12px;
  text-decoration: none;
}

.site-footer {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: 24px 16px max(24px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-size: 14px;
  text-align: center;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 16px;
}

.site-footer a {
  color: var(--muted);
  text-decoration: none;
}

.site-footer a:hover,
.site-footer a[aria-current='page'] {
  color: #fff;
}

.site-footer p {
  margin: 8px 0 0;
}
