/* Static pages: 404.html, and the pages the build makes (about, privacy,
   terms, support: src/static/pages.tsx). The CSP allows only same-origin
   stylesheets, so this file is used instead of inline CSS. 404.html loads only
   this file. The other pages load the app's stylesheet first (fonts, panel
   styles), and the .page--doc rules below lay them out as a page. */
:root {
  --accent: #f4d9a6;
  --text: #ece9f5;
  --text-muted: #a6a2b8;
  --line: rgb(233 230 242 / 0.12);
  color-scheme: dark;
}
html,
body {
  margin: 0;
  height: auto;
  min-height: 100dvh;
  background: #000;
  color: var(--text);
  font-family: "Nunito", system-ui, sans-serif;
}
body {
  display: grid;
  place-items: center;
  padding: 24px 16px;
  box-sizing: border-box;
  /* A few still stars, drawn with gradients. */
  background:
    radial-gradient(1.5px 1.5px at 12% 18%, rgb(244 217 166 / 0.9), transparent),
    radial-gradient(1px 1px at 28% 72%, rgb(236 233 245 / 0.7), transparent),
    radial-gradient(1.5px 1.5px at 46% 34%, rgb(236 233 245 / 0.6), transparent),
    radial-gradient(1px 1px at 63% 82%, rgb(244 217 166 / 0.7), transparent),
    radial-gradient(2px 2px at 78% 22%, rgb(244 217 166 / 0.9), transparent),
    radial-gradient(1px 1px at 88% 58%, rgb(236 233 245 / 0.6), transparent),
    radial-gradient(1px 1px at 6% 88%, rgb(236 233 245 / 0.5), transparent),
    radial-gradient(ellipse at 50% 120%, rgb(244 217 166 / 0.08), transparent 60%), #000;
}
main {
  max-width: 440px;
  text-align: center;
}
.star {
  display: block;
  width: 44px;
  height: 44px;
  margin: 0 auto 20px;
}
h1 {
  margin: 0 0 12px;
  font-family: "Fraunces", Georgia, serif;
  font-weight: 300;
  font-size: 30px;
  line-height: 1.25;
  color: var(--accent);
}
p {
  margin: 0 0 28px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-muted);
}
.pill {
  display: inline-block;
  min-height: 44px;
  box-sizing: border-box;
  padding: 11px 24px;
  border-radius: 999px;
  border: 1px solid rgb(244 217 166 / 0.4);
  background: rgb(244 217 166 / 0.12);
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}
.pill:hover {
  background: rgb(244 217 166 / 0.2);
}
/* 404: the quiet link to /support under the pill. */
.nf__support {
  margin: 20px 0 0;
  font-size: 15px;
}
.nf__support a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--accent);
  text-underline-offset: 3px;
}
a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* The pages the build makes: a readable column of text. */
body.page--doc {
  display: block;
  overflow: auto;
  padding: 32px 16px calc(32px + env(safe-area-inset-bottom));
}
.page--doc main.doc {
  max-width: 640px;
  margin: 0 auto;
  text-align: left;
}
.doc__home {
  display: inline-block;
  margin-bottom: 28px;
  font: 400 17px/1.3 var(--font-display);
  color: var(--accent);
  text-decoration: none;
}
.doc__title,
.page--doc .legal__title {
  margin: 0 0 12px;
  font-size: 34px;
  line-height: 1.2;
  color: var(--text-strong);
}
.doc__lead {
  margin: 0 0 8px;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text-soft);
}
.doc__heading {
  margin: 36px 0 12px;
  font-size: 24px;
  color: var(--accent);
}
.page--doc .how__steps {
  margin-top: 4px;
}
.page--doc .support__group-title {
  margin-top: 10px;
}
.doc__calm {
  margin: 28px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 15px;
}
.doc__calm a {
  color: var(--accent);
  text-underline-offset: 3px;
}
.doc__back {
  margin: 36px 0 0;
  text-align: center;
}
.doc__foot {
  max-width: 640px;
  margin: 40px auto 0;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  text-align: center;
  font-size: 14px;
  color: var(--text-muted);
}
.doc__foot a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 6px;
  color: var(--text-soft);
  text-underline-offset: 3px;
}
.doc__foot a[aria-current="page"] {
  color: var(--accent);
  text-decoration: none;
}
@media (max-width: 720px) {
  .doc__title,
  .page--doc .legal__title {
    font-size: 28px;
  }
}
