/* Relay — relaythis.com
 *
 * One column, left-aligned, centred on the page. No framework, no build step: the whole
 * site is three static files, which is also why it costs nothing to host.
 */

@font-face {
  font-family: "Relay Fustat";
  src: url("/fonts/fustat-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Relay Fustat";
  src: url("/fonts/fustat-600.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Relay Fustat";
  src: url("/fonts/fustat-700.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Relay Sans Code";
  src: url("/fonts/googlesanscode-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

:root {
  --ink: #0b0b0d;
  --body: #16161a;
  --muted: #6f6f79;
  --line: #d9d9df;
  --link: #1a6dff;
  --col: 560px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 64px 24px;
  background: #fff;
  color: var(--body);
  font-family: "Relay Fustat", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 18px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

/* Long-form pages (privacy, terms) read from the top, not the middle. */
body.doc {
  justify-content: flex-start;
  padding-top: 72px;
}

main {
  width: 100%;
  max-width: var(--col);
}

.wordmark {
  font-weight: 700;
  font-size: 30px;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 30px;
  text-decoration: none;
  display: inline-block;
}

h1 {
  font-weight: 700;
  font-size: 38px;
  line-height: 1.18;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin: 0 0 14px;
}

h2 {
  font-weight: 700;
  font-size: 21px;
  line-height: 1.3;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 0 0 6px;
}

p {
  margin: 0 0 16px;
}

.lede {
  font-size: 19px;
  margin-bottom: 46px;
}

a {
  color: var(--link);
  text-decoration: underline;
  text-underline-offset: 2px;
}

a:hover {
  opacity: 0.75;
}

/* ── waitlist ─────────────────────────────────────────────────────────── */

.signup {
  display: flex;
  gap: 12px;
  margin-top: 22px;
}

.signup input,
.signup button {
  font-family: "Relay Sans Code", ui-monospace, SFMono-Regular, monospace;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  height: 52px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  outline: none;
}

.signup input {
  flex: 1 1 auto;
  min-width: 0;
  padding: 0 16px;
}

.signup input::placeholder {
  color: #a3a3ad;
  text-transform: uppercase;
}

.signup input:focus {
  border-color: #9a9aa5;
}

.signup input[aria-invalid="true"] {
  border-color: #d0453c;
  background: #fdf4f3;
}

.signup button {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 20px;
  cursor: pointer;
  transition: border-color 0.15s ease, opacity 0.15s ease;
}

.signup button:hover {
  border-color: #9a9aa5;
}

.signup button:disabled {
  opacity: 0.5;
  cursor: default;
}

.signup button svg {
  display: block;
}

.note {
  margin-top: 14px;
  font-size: 16px;
  color: var(--body);
  min-height: 1.5em;
}

.note--ok {
  color: #1c7a4a;
}

.note--error {
  color: #c0392f;
}

/* ── footer ───────────────────────────────────────────────────────────── */

footer {
  width: 100%;
  max-width: var(--col);
  margin-top: 92px;
  display: flex;
  gap: 26px;
  font-size: 16px;
}

footer a {
  color: var(--body);
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

/* ── long-form documents ──────────────────────────────────────────────── */

.doc main {
  max-width: 680px;
}

.doc h1 {
  font-size: 32px;
  margin-bottom: 6px;
}

.doc h2 {
  font-size: 18px;
  margin: 34px 0 8px;
}

.doc .updated {
  color: var(--muted);
  font-size: 15px;
  margin-bottom: 34px;
}

.doc p,
.doc li {
  font-size: 16.5px;
  line-height: 1.62;
}

.doc ul {
  margin: 0 0 16px;
  padding-left: 22px;
}

.doc li {
  margin-bottom: 7px;
}

.doc table {
  width: 100%;
  border-collapse: collapse;
  margin: 8px 0 18px;
  font-size: 15.5px;
}

.doc th,
.doc td {
  text-align: left;
  vertical-align: top;
  padding: 10px 12px 10px 0;
  border-bottom: 1px solid #ececf0;
}

.doc th {
  font-weight: 600;
  color: var(--ink);
}

.back {
  display: inline-block;
  margin-bottom: 28px;
  font-size: 15px;
}

@media (max-width: 560px) {
  h1 {
    font-size: 30px;
  }
  .signup {
    flex-direction: column;
  }
  .signup button {
    justify-content: center;
  }
}
