@font-face { font-family: "Inter"; src: url(fonts/InterVariable.woff2) format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Inter Display"; src: url(fonts/InterDisplayVariable.woff2) format("woff2"); font-weight: 100 900; font-display: swap; }

:root { --fill: #1c1c1e; --grey: #8a8a8f; --dim: #5a595f; }
* { box-sizing: border-box; margin: 0; }
html, body { height: 100%; background: #000; }
body { font: 400 15px/1.3 "Inter", system-ui, sans-serif; color: #fff; -webkit-font-smoothing: antialiased; }

/* Pure black, the globe on the right, the words in the bottom left: the app's home screen. */
.stage { position: relative; height: 100vh; height: 100dvh; min-height: 420px; overflow: hidden; }
#scene { position: absolute; inset: 0; width: 100%; height: 100%; }
.words { position: absolute; left: clamp(20px, 3.2vw, 48px); bottom: clamp(24px, 4.5vh, 48px); max-width: calc(100% - 40px); }
h1 { font-family: "Inter Display", "Inter", sans-serif; font-variation-settings: "opsz" 32; font-weight: 311;
  font-size: clamp(44px, 6vw, 76px); line-height: 1; letter-spacing: -.018em; }
h1 { display: flex; align-items: center; gap: .22em; }
.star { height: .86em; width: auto; flex: none; }
.forming .stage h1 { opacity: 0; } /* until logo.js has formed it out of characters */

/* The slot holds the form, and after joining the words that take its place (join.js), right where the field was. */
.slot { position: relative; margin-top: 28px; width: 400px; max-width: 100%; }
form { display: flex; gap: 8px; }
form[hidden] { display: none; }
.joined { position: absolute; left: 0; top: 0; height: 40px; display: flex; align-items: center; padding-left: 16px; white-space: nowrap;
  font-size: 17px; font-style: italic; color: #fff; opacity: 0; transform: translateY(8px); transition: opacity .7s ease, transform .7s ease; }
.joined.on { opacity: 1; transform: none; }
.joined.alone { position: static; transition: none; } /* on a later visit: there at once, no form beside it */
input, button { font: inherit; height: 40px; border: 0; border-radius: 999px; outline: none; }
input { flex: 1; min-width: 0; padding: 0 16px; background: var(--fill); color: #fff; }
input::placeholder { color: var(--grey); }
input:focus-visible { box-shadow: 0 0 0 1px #4a4a4f; }
/* Black with white words and a white outline (Ilja, 2026-11-22). */
button { flex: none; padding: 0 18px; background: #000; color: #fff; font-weight: 500; cursor: pointer; box-shadow: inset 0 0 0 1px #fff; }
button:hover { background: var(--fill); }
button:focus-visible { box-shadow: inset 0 0 0 2px #fff; }
button:disabled { opacity: .5; cursor: default; }
.note { min-height: 20px; margin-top: 12px; padding-left: 16px; color: var(--grey); }
.hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* On a phone: field and button in full width, one under the other, tall enough for a thumb.
   16px text and more, or iOS zooms into the page when the field is tapped. */
@media (max-width: 560px) {
  .words { right: 20px; bottom: 52px; max-width: none; }
  .slot { width: 100%; }
  form { flex-direction: column; gap: 10px; }
  .joined { height: 52px; padding-left: 20px; white-space: normal; }
  input, button { flex: none; height: 52px; font-size: 17px; }
  input { padding: 0 20px; }
  button { width: 100%; }
  .note { padding-left: 20px; }
}

/* Imprint and Privacy: quiet links in the bottom right corner of the home page, a footer line on the text pages. */
.legal { display: flex; gap: 16px; font-size: 12px; }
.legal a { color: var(--grey); text-decoration: none; }
.legal a:hover { color: #fff; }
.legal a[hidden] { display: none; }
.stage .legal { position: absolute; right: clamp(20px, 3.2vw, 48px); bottom: clamp(24px, 4.5vh, 48px); }
@media (max-width: 560px) { .stage .legal { right: auto; left: 40px; bottom: 14px; } }

/* The text pages (imprint, privacy, confirmed). */
body.text { max-width: 620px; margin: 0 auto; padding: 28px 20px 40px; line-height: 1.55; color: rgba(255,255,255,.72); }
body.text .home { display: inline-flex; align-items: center; gap: 8px; color: #fff; text-decoration: none; font-weight: 500; }
body.text .home .star { height: 20px; }
body.text main { padding: 56px 0 48px; }
body.text h1 { display: block; font-size: 40px; color: #fff; margin-bottom: 8px; }
body.text h2 { font-size: 15px; font-weight: 500; color: #fff; margin: 32px 0 6px; }
body.text p { margin-top: 10px; }
body.text .dim { color: var(--grey); margin-top: 0; }
body.text main a { color: #fff; }
