/* october: the shared stylesheet (landing page, forum, sign-in, /docs/).
   One family, IBM Plex Mono, self-hosted under /fonts/ (SIL OFL, see
   fonts/LICENSE.txt). Low-chroma palettes, light and dark by
   prefers-color-scheme. The landing page adds home.css. */

@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 300; font-display: swap; src: url("/fonts/IBMPlexMono-Light-Latin1.woff2") format("woff2"); unicode-range: U+0020-007E, U+00A0-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2013-2014, U+2018-201A, U+201C-201E, U+2020-2022, U+2026, U+2030, U+2039-203A, U+2044, U+20AC, U+2122, U+2212, U+FB01-FB02; }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 300; font-display: swap; src: url("/fonts/IBMPlexMono-Light-Pi.woff2") format("woff2"); unicode-range: U+03C0, U+2000-200D, U+2010-2012, U+2015, U+2032-2033, U+2070-2089, U+2190-2199, U+21A9-21BB, U+2202-2265, U+2500-259F, U+2713, U+FFFD; }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/IBMPlexMono-Regular-Latin1.woff2") format("woff2"); unicode-range: U+0020-007E, U+00A0-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2013-2014, U+2018-201A, U+201C-201E, U+2020-2022, U+2026, U+2030, U+2039-203A, U+2044, U+20AC, U+2122, U+2212, U+FB01-FB02; }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/IBMPlexMono-Regular-Pi.woff2") format("woff2"); unicode-range: U+03C0, U+2000-200D, U+2010-2012, U+2015, U+2032-2033, U+2070-2089, U+2190-2199, U+21A9-21BB, U+2202-2265, U+2500-259F, U+2713, U+FFFD; }
@font-face { font-family: "IBM Plex Mono"; font-style: italic; font-weight: 400; font-display: swap; src: url("/fonts/IBMPlexMono-Italic-Latin1.woff2") format("woff2"); unicode-range: U+0020-007E, U+00A0-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2013-2014, U+2018-201A, U+201C-201E, U+2020-2022, U+2026, U+2030, U+2039-203A, U+2044, U+20AC, U+2122, U+2212, U+FB01-FB02; }
@font-face { font-family: "IBM Plex Mono"; font-style: italic; font-weight: 400; font-display: swap; src: url("/fonts/IBMPlexMono-Italic-Pi.woff2") format("woff2"); unicode-range: U+03C0, U+2000-200D, U+2010-2012, U+2015, U+2032-2033, U+2070-2089, U+2190-2199, U+21A9-21BB, U+2202-2265, U+2500-259F, U+2713, U+FFFD; }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("/fonts/IBMPlexMono-Medium-Latin1.woff2") format("woff2"); unicode-range: U+0020-007E, U+00A0-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2013-2014, U+2018-201A, U+201C-201E, U+2020-2022, U+2026, U+2030, U+2039-203A, U+2044, U+20AC, U+2122, U+2212, U+FB01-FB02; }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("/fonts/IBMPlexMono-Medium-Pi.woff2") format("woff2"); unicode-range: U+03C0, U+2000-200D, U+2010-2012, U+2015, U+2032-2033, U+2070-2089, U+2190-2199, U+21A9-21BB, U+2202-2265, U+2500-259F, U+2713, U+FFFD; }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 600; font-display: swap; src: url("/fonts/IBMPlexMono-SemiBold-Latin1.woff2") format("woff2"); unicode-range: U+0020-007E, U+00A0-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2013-2014, U+2018-201A, U+201C-201E, U+2020-2022, U+2026, U+2030, U+2039-203A, U+2044, U+20AC, U+2122, U+2212, U+FB01-FB02; }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 600; font-display: swap; src: url("/fonts/IBMPlexMono-SemiBold-Pi.woff2") format("woff2"); unicode-range: U+03C0, U+2000-200D, U+2010-2012, U+2015, U+2032-2033, U+2070-2089, U+2190-2199, U+21A9-21BB, U+2202-2265, U+2500-259F, U+2713, U+FFFD; }

/* Tokens. Light: a fog-grey paper with a faint green cast; dark: a blue
   slate evening. One accent, a dulled ochre. Code colours are greyed
   slate, plum and moss, each at least 5:1 on the code panel. */
:root {
  color-scheme: light dark;
  --bg: #f2f3f0;
  --panel: #e7e9e4;
  --fg: #25282b;
  --muted: #5d6265;
  --line: #d3d6d0;
  --accent: #715c2a;
  --accent-soft: color-mix(in srgb, var(--accent) 12%, transparent);
  --error: #8e3b36;
  --c-key: #465d73;
  --c-var: #6a4f6c;
  --c-str: #55663f;
  --c-com: #626866;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --measure: 70ch;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1b1e21;
    --panel: #23272b;
    --fg: #e1e2de;
    --muted: #9ca19f;
    --line: #33383c;
    --accent: #d0b67c;
    --error: #e0a29b;
    --c-key: #9db3c8;
    --c-var: #c4abc5;
    --c-str: #a8ba93;
    --c-com: #868d8e;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 400 15px/1.65 var(--mono);
  -webkit-font-smoothing: antialiased;
}
::selection { background: color-mix(in srgb, var(--accent) 28%, transparent); }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { text-decoration-thickness: 2px; }
a.plain { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 2px; }
strong, b { font-weight: 600; }
h1, h2, h3 { font-weight: 500; line-height: 1.3; letter-spacing: -.01em; }
h1 { font-size: 1.45rem; margin: 0 0 1.5rem; }
main { max-width: 36rem; margin: 4rem auto; padding: 0 1rem; }
main.wide { max-width: 46rem; margin-top: 2.5rem; }
header { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: .25rem 1rem; }
header h1 { margin-bottom: .5rem; }
.muted { color: var(--muted); font-size: .87rem; }
.error { color: var(--error); min-height: 1.5em; }
[hidden] { display: none !important; }

/* code */
code, pre, kbd, samp { font-family: var(--mono); }
code { font-size: .92em; }
pre {
  margin: .5rem 0 1.4rem;
  padding: 1rem 1.15rem;
  overflow-x: auto;
  font-size: .84rem;
  line-height: 1.6;
  background: var(--panel);
  border-radius: 4px;
  tab-size: 2;
}
pre code { font-size: inherit; }
:not(pre) > code { padding: .05em .3em; background: var(--panel); border-radius: 3px; overflow-wrap: anywhere; }
/* hand-marked syntax (the landing page's snippets) */
.k { color: var(--c-key); }
.v { color: var(--c-var); }
.s { color: var(--c-str); }
.c { color: var(--c-com); font-style: italic; }
.r { color: var(--accent); }
.p { color: var(--muted); user-select: none; }
.o { color: var(--muted); }

/* forms (forum, sign-in) */
form { display: flex; gap: .5rem; margin-bottom: .5rem; }
input, textarea, select {
  padding: .55rem .7rem;
  font: inherit;
  font-size: .93rem;
  color: inherit;
  background: color-mix(in srgb, var(--panel) 45%, transparent);
  border: 1px solid var(--line);
  border-radius: 4px;
}
input { flex: 1; min-width: 0; }
input::placeholder, textarea::placeholder { color: var(--muted); opacity: .85; }
input:focus-visible, textarea:focus-visible, select:focus-visible { outline-offset: 0; }
textarea { resize: vertical; min-height: 4.5rem; }
select { flex: 1; }
button {
  padding: .55rem 1rem;
  font: inherit;
  font-size: .93rem;
  font-weight: 500;
  color: var(--bg);
  background: var(--accent);
  border: 0;
  border-radius: 4px;
  cursor: pointer;
}
button:hover { background: color-mix(in srgb, var(--accent) 88%, var(--fg)); }
button.link { background: none; color: var(--accent); padding: 0; font-weight: 400; }
button.link:hover { text-decoration: underline; }
button:disabled { opacity: .5; cursor: default; }

.badge {
  display: inline-block;
  margin-left: .25rem;
  padding: 0 .45rem;
  font-size: .72rem;
  font-weight: 400;
  line-height: 1.6;
  vertical-align: middle;
  border: 1px solid var(--line);
  border-radius: 3px;
  color: var(--muted);
}
.badge.published { color: var(--accent); border-color: var(--accent); }
.badge.locked { color: var(--fg); }
ul.notes { list-style: none; padding: 0; margin: 0; }
ul.notes li { padding: 1rem 0; border-top: 1px solid var(--line); }
ul.notes h2 { font-size: 1rem; margin: 0 0 .25rem; }
ul.notes p { margin: 0; color: var(--muted); }
form.note { flex-direction: column; margin: 0 0 1.5rem; }
form.note .row { display: flex; gap: .5rem; }
form.note .row button { flex: none; }
.actions { display: flex; gap: 1rem; margin-top: .4rem; font-size: .87rem; }
.flash {
  margin: 0 0 1rem;
  padding: .45rem .75rem;
  font-size: .87rem;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 4px;
}

/* the demo notice, on every page that has one */
.banner {
  margin: 0 0 1.25rem;
  padding: .6rem .85rem;
  font-size: .85rem;
  line-height: 1.55;
  background: var(--accent-soft);
  border-left: 2px solid var(--accent);
  border-radius: 0 4px 4px 0;
}

/* forum */
.crumbs { margin: .5rem 0 1rem; font-size: .87rem; color: var(--muted); }
h2.title { font-size: 1.15rem; margin: 0 0 .25rem; }
ul.items, ol.items { list-style: none; padding: 0; margin: 1rem 0 0; }
ul.items li, ol.items li { padding: .9rem .5rem; margin: 0 -.5rem; border-top: 1px solid var(--line); border-radius: 3px; }
ul.items h2 { font-size: 1rem; margin: 0 0 .2rem; }
ul.items p { margin: 0; }
ol.posts .meta { margin: 0 0 .25rem; font-size: .85rem; color: var(--muted); }
ol.posts .meta strong { color: var(--fg); font-weight: 500; }
.body { white-space: pre-wrap; overflow-wrap: anywhere; }
ol.posts ol.history { list-style: none; margin: .6rem 0 0 .2rem; padding: 0 0 0 .8rem; border-left: 2px solid var(--line); }
ol.posts ol.history li { padding: .35rem 0; margin: 0; border: 0; }
ol.posts ol.history .body { color: var(--muted); }
ol.posts ol.history .basis { font-size: .78rem; }
@keyframes fresh { from { background: color-mix(in srgb, var(--accent) 20%, transparent); } to { background: transparent; } }
li.fresh { animation: fresh 3s ease-out; }
form.stack { flex-direction: column; gap: .35rem; margin: 1rem 0; }
form.stack .row { display: flex; gap: .5rem; align-items: center; }
form.stack .row input { flex: 1; }
form.compose { margin-bottom: 1.5rem; }
.field-error { margin: 0; color: var(--error); font-size: .82rem; }
.field-error:empty { display: none; }
.closed { margin-top: 1rem; }
button.more { margin-top: 1rem; }
footer { margin-top: 3rem; padding-top: 1rem; border-top: 1px solid var(--line); }

/* the site bar: the landing page and the docs */
.site {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: .5rem 1.5rem;
  max-width: 72rem;
  margin: 0 auto;
  padding: 1.5rem 1.5rem 0;
}
.site .mark { font-weight: 600; font-size: 1rem; color: var(--fg); text-decoration: none; letter-spacing: -.01em; }
.site nav { display: flex; flex-wrap: wrap; gap: .25rem 1.4rem; font-size: .87rem; }
.site nav a { color: var(--muted); text-decoration: none; }
.site nav a:hover, .site nav a[aria-current="page"] { color: var(--fg); }

/* docs (/docs/): a page list with the current page's sections, then the article */
.docs-layout {
  display: grid;
  grid-template-columns: 14rem minmax(0, 52rem);
  gap: 3.5rem;
  justify-content: start;
  max-width: 72rem;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 0;
}
.docs-nav { position: sticky; top: 1.5rem; align-self: start; max-height: calc(100vh - 3rem); overflow-y: auto; font-size: .82rem; line-height: 1.45; }
.docs-nav ul { list-style: none; margin: 0; padding: 0; }
.docs-nav > ul > li { margin: 0 0 .55rem; }
.docs-nav a { color: var(--muted); text-decoration: none; }
.docs-nav a:hover { color: var(--fg); }
.docs-nav a[aria-current="page"] { color: var(--fg); font-weight: 600; }
.docs-nav .toc { margin: .5rem 0 .9rem; padding-left: .8rem; border-left: 1px solid var(--line); }
.docs-nav .toc li { margin: .3rem 0; }
.docs-nav .toc code { padding: 0; background: none; font-size: inherit; }
main.docs { max-width: none; margin: 0; padding: 0 0 2rem; }
/* a hosted service's legal pages: the docs' typography, one centred column, no sidebar */
main.docs.legal { max-width: 46rem; margin: 2.5rem auto 0; padding: 0 1rem 2rem; }
.docs article > :not(pre):not(table) { max-width: var(--measure); }
.docs h1 { font-size: 1.75rem; font-weight: 400; letter-spacing: -.02em; margin: 0 0 1.25rem; }
.docs h2 { font-size: 1.15rem; margin: 3rem 0 .75rem; padding-top: 1.25rem; border-top: 1px solid var(--line); }
.docs h3 { font-size: .98rem; font-weight: 600; margin: 2rem 0 .5rem; }
.docs h4 { font-size: .93rem; font-weight: 600; margin: 1.5rem 0 .4rem; }
.docs p, .docs ul, .docs ol { margin: 0 0 1rem; }
.docs ul, .docs ol { padding-left: 1.4rem; }
.docs li { margin: .25rem 0; }
.docs li::marker { color: var(--muted); }
.docs table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; margin: .5rem 0 1.5rem; font-size: .82rem; line-height: 1.5; }
.docs th, .docs td { padding: .45rem .75rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.docs td code, .docs th code { overflow-wrap: normal; }
.docs th { font-weight: 500; color: var(--muted); border-bottom-color: color-mix(in srgb, var(--fg) 30%, transparent); }
.docs blockquote { margin: 0 0 1rem; padding: .1rem 1rem; border-left: 2px solid var(--line); color: var(--muted); }
.docs hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }
.docs h1[id], .docs h2[id], .docs h3[id], .docs h4[id] { scroll-margin-top: 1.5rem; }
.docs footer { margin-top: 4rem; }
@media (max-width: 52rem) {
  .docs-layout { display: block; padding-top: 1.25rem; }
  .docs-nav { position: static; max-height: none; margin: 0 0 2rem; padding-bottom: .9rem; border-bottom: 1px solid var(--line); }
  .docs-nav > ul { display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; }
  .docs-nav > ul > li { margin: 0; }
  .docs-nav .toc { display: none; }
  .docs h1 { font-size: 1.45rem; }
}
@media (max-width: 30rem) {
  body { font-size: 14px; }
  .site, .docs-layout { padding-left: 1rem; padding-right: 1rem; }
  pre { margin-left: -1rem; margin-right: -1rem; padding: .9rem 1rem; border-radius: 0; font-size: .8rem; }
  .docs pre { margin-left: -1rem; margin-right: -1rem; }
}

/* the waitlist's operator page (waitlist-admin.html) */
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.wl-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 2rem; }
.wl-table { border-collapse: collapse; font-size: .87rem; margin: .5rem 0 1.5rem; }
.wl-table th, .wl-table td { padding: .3rem .75rem .3rem 0; text-align: left; vertical-align: top; border-top: 1px solid var(--line); }
.wl-table th { font-weight: 500; color: var(--muted); }
.wl-table td.n { text-align: right; font-variant-numeric: tabular-nums; }
.wl-bar { display: inline-block; height: .6rem; background: var(--accent); border-radius: 2px; vertical-align: middle; }
.wl-scroll { overflow-x: auto; }
.wl-entries td { overflow-wrap: anywhere; }
