/* Varp — a projector-dark site: one bright picture per section, set in the
   lockup's geometric face. Dark on purpose, in every theme: it is a stage. */
:root {
  --bg: #07090d;
  --panel: #10141b;
  --rule: #1f2733;
  --ink: #eef3f6;
  --dim: #8d9aa7;
  --cyan: #5fd8ea;
  --display: "Jost", "Futura", "Avenir Next", system-ui, sans-serif;
  --body: "IBM Plex Sans", system-ui, -apple-system, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  --gutter-l: max(20px, env(safe-area-inset-left, 0px));
  --gutter-r: max(20px, env(safe-area-inset-right, 0px));
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.6 var(--body);
}
img { max-width: 100%; display: block; }
a { color: var(--cyan); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding-left: var(--gutter-l);
  padding-right: var(--gutter-r);
}

.label {
  font: 500 12px/1 var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dim);
}

h1, h2, h3 { font-family: var(--display); font-weight: 500; text-wrap: balance; margin: 0; }
h3 { font-size: 22px; line-height: 1.2; }
p { margin: 0; max-width: 62ch; }
.lede { color: var(--dim); font-size: 19px; }

/* Top bar */
.top {
  position: absolute; inset: 0 0 auto; z-index: 2;
  padding-top: max(18px, env(safe-area-inset-top, 0px));
}
.top .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.top a.home { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.top a.home img { width: 32px; height: 32px; border-radius: 22.4%; }
.top nav { display: flex; gap: 20px; font-size: 15px; margin-left: auto; }
.top nav a { color: var(--ink); text-decoration: none; opacity: 0.85; }
.top nav a:hover { opacity: 1; }

/* Home: the ghosts widget, with two quiet lines over its lower edge. */
main.home { position: relative; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
#ghosts {
  display: block;
  width: 100%;
  height: 100vh;
  height: 100dvh; /* the whole window, as mobile toolbars come and go */
  background: #000;
  touch-action: none;
}
/* The landing page is one screen: no scrolling, no rubber-banding. */
.landing, .landing body { height: 100%; overflow: hidden; overscroll-behavior: none; }
.intro {
  position: absolute; left: 0; right: 0; bottom: clamp(24px, 7%, 64px);
  display: grid; justify-items: center; gap: 6px; text-align: center;
  pointer-events: none;
}
.intro p { color: var(--ink); font-size: 18px; }
.intro .soon { color: var(--dim); font-size: 15px; }

footer { border-top: 1px solid var(--rule); padding-block: 40px calc(40px + env(safe-area-inset-bottom, 0px)); color: var(--dim); font-size: 14px; }
footer .wrap { display: grid; gap: 10px; }
footer nav { display: flex; gap: 20px; flex-wrap: wrap; }

/* Text pages: privacy, support */
.page { padding-block: clamp(110px, 14vw, 150px) 80px; }
.page .wrap { max-width: 760px; display: grid; gap: 22px; }
.page h1 { font-size: clamp(34px, 5vw, 50px); line-height: 1.05; }
.page h2 { font-size: 24px; margin-top: 18px; }
.page p, .page li { color: #c3ccd4; }
.page ul { margin: 0; padding-left: 20px; display: grid; gap: 8px; max-width: 62ch; }
.page .updated { color: var(--dim); font-size: 15px; }
.page code { font: 15px var(--mono); color: var(--ink); }

@media (max-width: 720px) {
  .top nav { gap: 14px; }
  .top .wordmark { display: none; }
}
