:root {
  color-scheme: dark;
  --bg: #181818;
  --fg: #f0f0f0;
  --dim: #f0f0f0b8;
  --muted: #f0f0f070;
  --line: #f0f0f014;
  --hover: #f0f0f00c;
  --link: #87c3ff;
  --code: #2a2a2a;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--fg); }
body {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", sans-serif;
  font-size: 15px;
  line-height: 1.65;
}
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
main {
  flex: 1;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
  padding: 14vh 28px 28px;
}
.top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.brand { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; }
.logo { width: 64px; height: 64px; display: block; }
h1 { margin: 16px 0 0; font-size: 22px; font-weight: 500; letter-spacing: 0.01em; }
.lead { margin: 8px 0 0; color: var(--dim); max-width: 36em; }
.lang { display: flex; gap: 2px; padding-top: 4px; }
.lang button {
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 13px;
  padding: 4px 8px;
  border-radius: 6px;
  cursor: pointer;
}
.lang button.on { color: var(--fg); }
.lang button:hover { color: var(--fg); background: var(--hover); }
.list { margin-top: 40px; }
.row {
  position: relative;
  display: grid;
  grid-template-columns: 156px minmax(0, 1fr);
  gap: 8px 20px;
  align-items: baseline;
  padding: 18px 0;
}
.row + .row::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 1px;
  background: var(--line);
}
.name { line-height: 22px; }
.body {
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 24px;
  min-width: 0;
}
.main { flex: 1; min-width: 0; }
.body > .dest { flex: 1; min-width: 0; }
.dest {
  color: var(--link);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
  line-height: 22px;
  overflow-wrap: anywhere;
}
button.cmd {
  display: inline;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--link);
  font: inherit;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
  line-height: 22px;
  text-align: left;
  cursor: pointer;
}
button.cmd:hover { text-decoration: underline; text-underline-offset: 3px; }
.note { display: block; margin-top: 4px; color: var(--muted); font-family: inherit; font-size: 13px; }
.how, .mail { color: var(--dim); font-size: 13px; font-weight: 300; text-decoration: none; }
.how { flex: none; white-space: nowrap; line-height: 22px; }
.how:hover, .mail:hover { color: var(--dim); text-decoration: underline; text-underline-offset: 3px; }
.foot { margin-top: auto; text-align: center; }
.back { color: var(--dim); font-size: 13px; }
.back:hover { color: var(--link); }
article { margin-top: 28px; }
article h2 { margin: 32px 0 10px; font-size: 16px; font-weight: 600; }
article h3 { margin: 22px 0 8px; font-size: 15px; font-weight: 600; }
article p { margin: 0 0 12px; }
article ul, article ol { margin: 0 0 12px; padding-left: 1.2em; }
article li { margin: 4px 0; }
article code, pre {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
}
article code { background: var(--code); padding: 1px 5px; border-radius: 4px; }
pre {
  background: var(--code);
  padding: 12px 14px;
  border-radius: 8px;
  overflow: auto;
  margin: 0 0 14px;
}
pre code { background: none; padding: 0; }
@media (max-width: 560px) {
  main { padding-top: 8vh; }
  .row { grid-template-columns: 1fr; gap: 6px; }
}
