/* The site's look: black, white, one grey, hairlines. Dark only. */

@font-face {
  font-family: "Geist";
  src: url("/fonts/Geist-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Geist Mono";
  src: url("/fonts/GeistMono-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #000;
  --text: #ededed;
  --muted: #a1a1a1;
  --line: #2e2e2e;
  --surface: #0a0a0a;
  --width: 67.5rem;
  --sans: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

html { background: var(--bg); }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font: 400 1rem/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; }

:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }

.wrap { width: 100%; max-width: var(--width); margin: 0 auto; padding: 0 1.5rem; }

/* Top bar */

header { border-bottom: 1px solid var(--line); }
header .wrap { height: 4rem; display: flex; align-items: center; justify-content: space-between; }
.name { display: flex; align-items: center; gap: 0.5rem; font-weight: 600; letter-spacing: -0.02em; text-decoration: none; }
header nav a { color: var(--muted); text-decoration: none; font-size: 0.875rem; }
header nav a:hover { color: var(--text); }

/* Opening */

.opening { text-align: center; padding: 7rem 0 6rem; }
h1 {
  margin: 0 auto;
  max-width: 14ch;
  font-size: clamp(2.5rem, 7vw, 4.5rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.045em;
  text-wrap: balance;
}
.opening p {
  margin: 1.5rem auto 0;
  max-width: 34rem;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  text-wrap: pretty;
}

/* The address to connect to */

.connect {
  margin: 2.5rem auto 0;
  max-width: 30rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 0.375rem 0.375rem 1rem;
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  background: var(--surface);
}
.connect code {
  flex: 1;
  min-width: 0;
  overflow-x: auto;
  white-space: nowrap;
  text-align: left;
  font: 400 0.875rem/1 var(--mono);
  scrollbar-width: none;
}
button {
  flex: none;
  min-width: 4.75rem;
  height: 2.25rem;
  padding: 0 0.875rem;
  border: 1px solid var(--text);
  border-radius: 0.375rem;
  background: var(--text);
  color: var(--bg);
  font: 500 0.875rem/1 var(--sans);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
button:hover { background: #ccc; border-color: #ccc; }

/* Three cells divided by hairlines */

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  overflow: hidden;
}
.grid > div { padding: 2rem; }
.grid > div + div { border-left: 1px solid var(--line); }
.grid h2 { margin: 0 0 0.5rem; font-size: 1rem; font-weight: 500; letter-spacing: -0.01em; }
.grid p { margin: 0; color: var(--muted); font-size: 0.9375rem; }

main { flex: 1; padding-bottom: 6rem; }

footer { border-top: 1px solid var(--line); }
footer .wrap { height: 4rem; display: flex; align-items: center; color: var(--muted); font-size: 0.875rem; }

@media (max-width: 48rem) {
  .opening { padding: 4.5rem 0 4rem; }
  .connect { padding-left: 0.75rem; }
  .connect code { font-size: 0.75rem; }
  .grid { grid-template-columns: 1fr; }
  .grid > div + div { border-left: 0; border-top: 1px solid var(--line); }
}

/* The sign-in and consent pages share the look, in a narrow column. */

.narrow { max-width: 26rem; margin: 0 auto; padding: 5rem 1.5rem; }
.narrow h1 { margin: 0 0 1rem; max-width: none; font-size: 1.5rem; line-height: 1.25; letter-spacing: -0.03em; }
.narrow p { margin: 0 0 1rem; color: var(--muted); }
.narrow strong { color: var(--text); font-weight: 500; }
.narrow label { display: block; margin: 0.375rem 0; font-size: 0.9375rem; }
.narrow input[type="email"] {
  display: block;
  width: 100%;
  height: 2.5rem;
  margin: 0.375rem 0 1rem;
  padding: 0 0.75rem;
  border: 1px solid var(--line);
  border-radius: 0.375rem;
  background: var(--surface);
  color: var(--text);
  font: 400 1rem/1 var(--sans);
}
.narrow input[type="checkbox"] { accent-color: var(--text); margin-right: 0.5rem; }
.narrow form p { margin-top: 1.5rem; display: flex; gap: 0.5rem; }
.narrow button.quiet { background: transparent; color: var(--text); border-color: var(--line); }
.narrow button.quiet:hover { background: #1a1a1a; }
.narrow .note { margin-top: 1.5rem; font-size: 0.875rem; }
.narrow .warn { padding: 0.75rem 1rem; border: 1px solid var(--line); border-radius: 0.375rem; color: var(--text); }
