/* The Jewel Box look, for reading. Phone first. */
:root {
  --ink: #17141f;
  --pearl: #f0ecfa;
  --amethyst: #7b4fe0;
  --aqua: #2ee6c5;
  --citrine: #f6b93b;
  --ruby: #e3386b;
  --bg: #fbfaff;
  --text: #221d30;
  --muted: #5f5873;
  --line: #e3ddf2;
  --surface: #f2eefb;
  --link: #5b33c9;
  --code-bg: #1d1928;
  --code-text: #efeaff;
  --note-bg: #fff6e2;
  --note-line: #f6b93b;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #17141f;
    --text: #ebe6f7;
    --muted: #a69fbd;
    --line: #2f2940;
    --surface: #221d30;
    --link: #b49cff;
    --code-bg: #0f0d15;
    --note-bg: #2a2216;
    --note-line: #f6b93b;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
header.site {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 20px;
  padding: 14px 16px; border-bottom: 1px solid var(--line);
  background: var(--ink); color: var(--pearl);
}
header.site a { color: var(--pearl); text-decoration: none; }
header.site .home { font-weight: 700; letter-spacing: 0.01em; }
header.site .home span { color: var(--aqua); font-weight: 600; }
header.site nav { display: flex; gap: 16px; }
header.site nav a { opacity: 0.8; }
header.site nav a[aria-current] { opacity: 1; box-shadow: inset 0 -2px 0 var(--aqua); }
main { max-width: 760px; margin: 0 auto; padding: 8px 16px 40px; }
footer.site { max-width: 760px; margin: 0 auto; padding: 16px; color: var(--muted); font-size: 14px; border-top: 1px solid var(--line); }
html.app header.site, html.app footer.site { display: none; }
h1 { font-size: 30px; line-height: 1.2; margin: 24px 0 12px; }
h2 { font-size: 22px; line-height: 1.3; margin: 32px 0 8px; }
h3 { font-size: 18px; margin: 24px 0 6px; }
a { color: var(--link); }
p, ul, ol { margin: 0 0 14px; }
li { margin: 4px 0; }
code { font: 0.9em/1.5 ui-monospace, "SF Mono", Menlo, Consolas, monospace; background: var(--surface); padding: 1px 5px; border-radius: 4px; }
pre { background: var(--code-bg); color: var(--code-text); padding: 14px 16px; border-radius: 10px; overflow-x: auto; tab-size: 4; margin: 0 0 16px; }
pre code { background: none; padding: 0; font-size: 14px; color: inherit; }
pre .k { color: #ff7aa2; }
pre .s { color: #f6c86b; }
pre .n { color: #6ff0d6; }
pre .c { color: #8f86a8; font-style: italic; }
pre .t { color: #b9a2ff; }
.table { overflow-x: auto; margin: 0 0 16px; }
table { border-collapse: collapse; width: 100%; font-size: 15px; }
th, td { text-align: left; vertical-align: top; padding: 8px 10px; border-bottom: 1px solid var(--line); }
th { background: var(--surface); font-weight: 600; }
aside.note { background: var(--note-bg); border-left: 4px solid var(--note-line); border-radius: 6px; padding: 12px 14px; margin: 0 0 16px; }
aside.note > :last-child { margin-bottom: 0; }
.try { display: block; margin: 8px 0 20px; }
.try .button {
  display: inline-block; padding: 10px 22px; border-radius: 999px;
  background: var(--amethyst); color: #fff; font-weight: 600; text-decoration: none;
}
.try .web-only { display: inline-block; padding: 10px 14px; border-radius: 10px; background: var(--surface); color: var(--muted); }
.app-only { display: none !important; }
html.app .app-only { display: inline-block !important; }
html.app .web-only { display: none !important; }
img { max-width: 100%; }
@media (max-width: 600px) { pre { tab-size: 2; padding: 12px; } }
