/* Fontra Hive account pages, in Fontra's look (its core.css gives the
   colors and the light/dark theme). */
/* core.css fixes html and body to the window and hides overflow (right for
   the editor's canvas); these pages are documents and must scroll. */
html, body {
  height: auto;
  overflow: visible;
  overscroll-behavior: auto;
  touch-action: auto;
}
html { overflow-y: auto; }
/* core.css sets 0.9em (the editor's dense UI); these pages are read. */
html, body { font-size: 100%; }
body:not([data-page="home"]) { font-size: 1.0625rem; }
body {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0;
  min-height: 100vh;
  font-family: fontra-ui-regular, -apple-system, system-ui, sans-serif;
  background: var(--background-color, #f6f6f6);
  color: var(--foreground-color, black);
}
.logo { width: 72px; margin-top: 64px; }
h1 { font-size: 1.5em; margin: 0.5em 0 0.2em; }
.lead { opacity: 0.65; margin: 0 0 1.5em; text-align: center; max-width: 26em; line-height: 1.4; }
form, .card {
  display: flex; flex-direction: column; gap: 0.75em; width: 22em;
  background: var(--ui-element-background-color, white);
  border-radius: 0.75em; padding: 1.5em; box-shadow: 1px 2px 8px #0002;
}
label { display: flex; flex-direction: column; gap: 0.3em; font-size: 0.9em; }
label small { opacity: 0.6; }
label.check { flex-direction: row; align-items: flex-start; gap: 0.6em; line-height: 1.4; }
label.check input { margin: 0.2em 0 0; padding: 0; flex: none; }
input, textarea, input[type="password"] {
  font: inherit; font-size: 1em; padding: 0.5em 0.6em; border-radius: 0.4em;
  border: 1px solid #8884;
  background: var(--text-input-background-color, #eee);
  color: var(--text-input-foreground-color, black);
}
input:focus, textarea:focus { outline: 2px solid #46f8; outline-offset: 0; }
button {
  font: inherit; border: none; border-radius: 1em; padding: 0.55em 1em; cursor: pointer;
  background: var(--fontra-red-color, #f11759); color: white; margin-top: 0.25em;
}
button:disabled { opacity: 0.5; cursor: default; }
button.secondary { background: #8883; color: inherit; }
.links { margin-top: 1em; font-size: 0.9em; opacity: 0.8; display: flex; gap: 1.5em; }
.try { margin: 1.4em 0 0; font-size: 0.95em; }
.try a { color: #f3c744; }
a { color: inherit; }
.error { color: var(--fontra-red-color, #f11759); font-size: 0.9em; min-height: 1.2em; }
.note { font-size: 0.9em; opacity: 0.75; line-height: 1.4; }
.who { display: flex; align-items: center; gap: 0.75em; }
.hidden { display: none !important; }
.waitlist { margin: 2.5em 0 3em; display: flex; flex-direction: column; align-items: center; gap: 0.75em; max-width: 25em; text-align: center; }
.waitlist form { text-align: left; }
textarea { resize: vertical; }
/* Hidden from people, filled by bots (see POST /api/waitlist). */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* The pages one sees before signing in (sign-in, invitation, password,
   sign-out): dark grey with a large logo, like https://fontra.xyz. The home
   page (data-page="home") keeps Fontra's own theme. */
body:not([data-page="home"]) {
  background: #222;
  color: white;
  padding: 1.25em;
  box-sizing: border-box;
}
body:not([data-page="home"]) .logo {
  width: min(30vw, 30vh);
  height: min(30vw, 30vh);
  margin: 1.5em 0 0.5em;
  filter: drop-shadow(0.5rem 0.5rem 1.2rem black);
}
body:not([data-page="home"]) h1 { font-size: 2.25rem; font-weight: normal; }
body:not([data-page="home"]) .lead,
body:not([data-page="home"]) .note { opacity: 0.8; }
body:not([data-page="home"]) form,
body:not([data-page="home"]) .card { color: var(--foreground-color, black); }
body:not([data-page="home"]) a:hover { color: var(--fontra-red-color, #f11759); }
.beta {
  font-size: 0.4em; vertical-align: middle; letter-spacing: 0.08em; text-transform: uppercase;
  background: #E9B02A; color: #04232D; border-radius: 0.5em; padding: 0.25em 0.6em; margin-left: 0.3em;
}
.tagline { font-size: 1.2rem; margin: 0 0 1.2em; opacity: 0.9; }
.offer { line-height: 1.5; max-width: 26em; text-align: center; margin: 0; }
.offer a { text-decoration: underline; }

/* Footer with the legal link, on the landing and the home page. */
.site-footer { font-size: 0.85em; opacity: 0.65; margin: 0 0 2em; text-align: center; }
.site-footer a { color: inherit; }
body[data-page="home"] .site-footer { margin: 0 auto 2em; }
