/*
 * The two documents, in the app's own clothes.
 *
 * Its own stylesheet rather than app.css, which is fifty kilobytes of rules for a chat
 * interface none of which a page of prose needs. Everything here is copied out by hand
 * from app.css's variables so the two look like one product, and it stays small enough
 * that a reader on a phone is not downloading an application to read a page.
 */
:root {
  --bg:        #0a0b0c;
  --bg-panel:  #0e1011;
  --line:      #1e2325;
  --line-soft: #171b1d;
  --fg:        #c9cfca;
  --fg-strong: #eef2ee;
  /* In step with app.css's `--dim`, which came up from #6d7873 so that it clears 4.5:1
     on `--bg-panel` as well as on `--bg` — the note beside it there has the numbers. The
     copy matters: every link on these two pages is painted with it. */
  --dim:       #7a8680;
  --dimmer:    #4a534f;
  --accent:    #d97757;
  --green:     #7bd88f;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, "Cascadia Mono", Consolas,
          "DejaVu Sans Mono", "Liberation Mono", monospace;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  background-image:
    radial-gradient(1200px 600px at 50% -10%, #12171a 0%, transparent 70%),
    radial-gradient(900px 500px at 110% 110%, #131013 0%, transparent 70%);
  color: var(--fg);
  font: 13px/1.6 var(--mono);
  -webkit-font-smoothing: antialiased;
  /* The same faint scanlines the app wears, without a second element to hold them. */
  background-attachment: fixed;
}

main {
  width: min(660px, 100%);
  margin: 0 auto;
  padding: 28px 20px 64px;
}

/* One boxed column, like the auth panel. */
.doc {
  border: 1px solid var(--line);
  background: linear-gradient(#0e1112, #0b0d0e);
  box-shadow: 0 0 0 1px #000, 0 24px 60px -20px rgba(0, 0, 0, .9);
  padding: 24px 24px 20px;
}

.brand {
  display: block;
  color: var(--fg-strong);
  font-size: 15px;
  text-decoration: none;
  margin-bottom: 2px;
}
.brand .cur { color: var(--accent); }
.brand:hover { color: var(--accent); }

h1 {
  margin: 14px 0 4px;
  font-size: 19px;
  font-weight: 400;
  color: var(--fg-strong);
}
.sub { color: var(--dim); margin: 0 0 18px; }

h2 {
  margin: 22px 0 6px;
  font-size: 13px;
  font-weight: 400;
  color: var(--accent);
  letter-spacing: .06em;
  text-transform: lowercase;
}

p, li { margin: 0 0 8px; overflow-wrap: anywhere; }
ul { margin: 0 0 8px; padding-left: 1.4em; }
li::marker { color: var(--dimmer); }
strong { color: var(--fg-strong); font-weight: 400; }
a { color: var(--dim); }
a:hover { color: var(--accent); }
code {
  color: var(--green);
  border: 1px solid var(--line-soft);
  background: var(--bg-panel);
  padding: 0 3px;
}

.rule { border: none; border-top: 1px solid var(--line-soft); margin: 20px 0 0; }

.foot {
  margin-top: 14px;
  color: var(--dimmer);
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* A phone reads this as one column with the panel edge-to-edge. */
@media (max-width: 620px) {
  main { padding: 14px 10px 48px; }
  .doc { padding: 18px 14px 16px; }
}
