/* Monolith, the site's mood (brand book): pure black, Geist, square corners,
   no colour. Every page. */
@font-face { font-family: "Geist"; src: url("fonts/geist.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("fonts/geist-mono.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Outfit"; src: url("fonts/outfit-medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }

:root {
  --bg: #000;
  --fg: #ededed;
  --mute: #7a7a7a;
  --dim: #2a2a2a;
  --line: #1c1c1c;
  --gutter: clamp(16px, 3vw, 40px);
  --sans: "Geist", ui-sans-serif, system-ui, sans-serif;
  --mono: "Geist Mono", ui-monospace, monospace;
  --wordmark: "Outfit", ui-sans-serif, system-ui, sans-serif;
  --ease: cubic-bezier(.2, .7, 0, 1);
}
* { box-sizing: border-box; margin: 0; }
html { background: var(--bg); color: var(--fg); -webkit-text-size-adjust: 100%; }
body { font: 400 16px/1.5 var(--sans); -webkit-font-smoothing: antialiased; }
::selection { background: var(--fg); color: var(--bg); }
a { color: inherit; text-decoration: none; }

.mono { font-family: var(--mono); font-size: 12px; letter-spacing: .02em; text-transform: uppercase; color: var(--mute); }
/* there for screen readers (and, in the form, for bots), not for eyes */
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* header */
header {
  position: fixed; inset: 0 0 auto 0; z-index: 10;
  display: flex; justify-content: space-between; align-items: center;
  padding: 24px var(--gutter);
  mix-blend-mode: difference;
}
/* the mark beside the name set live in Outfit (mark-text); the mark is never
   under 16px tall */
.mark { display: flex; align-items: center; gap: 8px; font: 500 15px/1 var(--wordmark); letter-spacing: -.01em; color: #fff; }
.mark svg { height: 18px; width: auto; aspect-ratio: 47 / 84; }
header .mono { color: #fff; transition: opacity .2s; }
header .mono:hover { opacity: .6; }

/* hero */
.hero {
  min-height: 100svh;
  display: grid; align-content: end;
  padding: 0 var(--gutter) 9vh;
}
.hero .mono { margin-bottom: 3vh; }
h1, h2 {
  font-weight: 500;
  letter-spacing: -.05em;
  line-height: .92;
  text-wrap: balance;
}
/* a little under the brand book's display size, which was set for shorter
   lines: each of the hero's lines stays one line on a laptop */
h1 { font-size: clamp(44px, 8.4vw, 144px); }
h2 { font-size: clamp(40px, 7vw, 112px); }

.hero-foot {
  display: flex; justify-content: space-between; align-items: end;
  margin-top: 6vh; padding-top: 16px; border-top: 1px solid var(--line);
}
.cue { display: flex; align-items: center; gap: 12px; }
.cue i { display: block; width: 1px; height: 28px; background: var(--dim); position: relative; overflow: hidden; }
.cue i::after { content: ""; position: absolute; inset: 0; background: var(--fg); animation: cue 2.2s cubic-bezier(.6,0,.2,1) infinite; }
@keyframes cue { 0% { transform: translateY(-100%); } 60%, 100% { transform: translateY(100%); } }

/* headlines gather: each letter drifts in from a little apart and a little
   off its line (monolith.js sets --dx, --dy and the delay --d) and settles.
   Hidden until the script starts on them, so the plain text doesn't flash
   first; with reduced motion they are simply there. */
.wd { display: inline-block; white-space: nowrap; }
.gl { display: inline-block; letter-spacing: 0; }
@media (prefers-reduced-motion: no-preference) {
  .js [data-gather]:not(.go) { visibility: hidden; }
  .gl { opacity: 0; transform: translate(var(--dx), var(--dy)); filter: blur(3px); animation: gather 1.5s var(--ease) var(--d) forwards; }
}
@keyframes gather { to { opacity: 1; transform: none; filter: none; } }
/* letters start to the right of their places; that must not scroll the page */
.hero, .screen, .doc { overflow-x: clip; }

/* manifesto — words light up as you scroll through */
.manifesto { height: 360vh; position: relative; }
.manifesto .stick {
  position: sticky; top: 0; height: 100svh;
  display: grid; grid-template-rows: auto 1fr auto; padding: 88px var(--gutter) 32px;
}
.manifesto [data-words] {
  align-self: center;
  /* the brand book's statement, 20em wide at most, sized so that the three
     paragraphs, about 22 lines in German with the gaps, fit the screen */
  font-size: clamp(17px, min(3.3vw, calc((100svh - 170px) / 25)), 52px);
  font-weight: 450; letter-spacing: -.035em; line-height: 1.1;
  max-width: 20em;
}
.manifesto [data-words] p + p { margin-top: .6em; }
.js .manifesto .w { color: var(--dim); transition: color .35s ease; }
.js .manifesto .w.on { color: var(--fg); }
.progress { height: 1px; background: var(--line); }
.progress i { display: block; height: 100%; background: var(--fg); transform-origin: left; transform: scaleX(0); }

/* one idea per screen: the waitlist, and each page that answers it */
.screen {
  min-height: 100svh;
  display: grid; align-content: center; justify-items: start;
  padding: 0 var(--gutter);
}
.screen > .mono:first-child { margin-bottom: 3vh; }
.lede { margin-top: 3vh; max-width: 40em; }
form {
  display: flex; gap: 16px; align-items: end;
  margin-top: 7vh; width: 100%; max-width: 760px;
  border-bottom: 1px solid var(--dim);
  transition: border-color .3s, opacity .5s;
}
form:focus-within { border-color: var(--fg); }
input {
  flex: 1; min-width: 0;
  background: none; border: 0; outline: 0; color: var(--fg);
  font: 400 clamp(20px, 2.2vw, 28px)/1 var(--sans); letter-spacing: -.02em;
  padding: 14px 0;
}
input::placeholder { color: var(--mute); }
button, .action {
  background: none; border: 0; color: var(--fg); cursor: pointer;
  font: 500 12px/1 var(--mono); letter-spacing: .04em; text-transform: uppercase;
  padding: 18px 0; display: flex; gap: 10px; align-items: center; white-space: nowrap;
}
.screen .action { margin-top: 7vh; }
button span, .action span { transition: transform .3s var(--ease); }
button:hover span, .action:hover span { transform: translateX(6px); }
.screen .status { margin-top: 16px; min-height: 1.5em; color: var(--fg); }
/* what the address is for, where it is asked for; the link goes to the notice */
.screen .privacy { text-transform: none; letter-spacing: 0; }
.screen .privacy a { color: var(--fg); }
.screen .privacy a:hover span { display: inline-block; transform: translateX(3px); }
.js form.busy { opacity: .4; pointer-events: none; }
.js form[data-reveal].done { opacity: 0; pointer-events: none; }

/* confirm: an optional box, then the one button that confirms, drawn as a
   block so it reads as the step to take */
form.confirm { display: grid; justify-items: start; gap: 32px; max-width: 40em; border: 0; }
.check { display: flex; gap: 14px; align-items: start; cursor: pointer; }
.check input {
  appearance: none; flex: none; width: 18px; height: 18px; margin: 3px 0 0; padding: 0;
  border: 1px solid var(--mute); display: grid; place-items: center; cursor: pointer;
  transition: background-color .2s, border-color .2s;
}
.check input:hover, .check input:focus-visible { border-color: var(--fg); }
.check input:focus-visible { outline: 1px solid var(--fg); outline-offset: 3px; }
.check input:checked { background: var(--fg); border-color: var(--fg); }
.check input:checked::after { content: ""; width: 9px; height: 5px; border: solid var(--bg); border-width: 0 0 2px 2px; translate: 0 -1px; rotate: -45deg; }
form.confirm button { border: 1px solid var(--fg); padding: 17px 20px; transition: background-color .2s, color .2s; }
form.confirm button:hover { background: var(--fg); color: var(--bg); }
form.confirm button:focus-visible { outline: 1px solid var(--fg); outline-offset: 4px; }
/* joined: what happens next, then how to leave, in the form's small print */
.screen .lede + .privacy { margin-top: 16px; }

footer {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  padding: 24px var(--gutter); border-top: 1px solid var(--line);
}
/* the name is lower case even among labels; the note is a sentence about it */
footer .name, footer .note { text-transform: none; }
footer .note { letter-spacing: 0; }
footer .links { display: flex; gap: 16px; }
footer a { transition: color .2s; }
footer a:hover { color: var(--fg); }

/* the Impressum and the privacy notice: one column of plain text */
.doc { padding: 140px var(--gutter) 12vh; }
.doc > .mono:first-child { margin-bottom: 3vh; }
.doc h1 { font-size: clamp(40px, 6vw, 88px); }
.doc h2 { font-size: 16px; font-weight: 500; letter-spacing: 0; line-height: 1.5; margin-top: 2.5em; }
.doc p { max-width: 65ch; }
.doc .lede { margin-top: 5vh; font-size: 20px; line-height: 1.4; }
.doc .lede + p { margin-top: 1em; }
.doc a { text-decoration: underline; text-decoration-color: var(--dim); text-underline-offset: .2em; }
.doc a:hover { text-decoration-color: var(--fg); }
.doc .updated { margin-top: 3em; }

/* hidden until the script runs, so the page still reads without it */
.js [data-reveal] { opacity: 0; transform: translateY(12px); transition: opacity 1s ease, transform 1s var(--ease); }
.js [data-reveal].in { opacity: 1; transform: none; }

@media (max-width: 640px) {
  form { flex-direction: column; align-items: stretch; gap: 0; }
  button { justify-content: space-between; border-top: 1px solid var(--line); }
  form.confirm { gap: 28px; }
  form.confirm button { justify-self: stretch; }
  footer { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  .cue i::after { animation: none; }
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
}
