:root {
  --bg: #0a0b0d;
  --ink: #e9eaec;
  --ink-muted: #8b9098;
  --ink-faint: #5a5f67;
  --line: #1c1f24;
  --accent: #fbb03b;
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial,
    sans-serif;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

/* Landing */

.stage {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-rows: 1fr auto;
  overflow: hidden;
}

#field {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 0%, rgba(10, 11, 13, 0.35) 60%, var(--bg) 100%);
}

.hero {
  position: relative;
  display: grid;
  place-items: center;
  padding: 16px;
}

.mark {
  width: clamp(150px, 30vmin, 300px);
  height: auto;
  display: block;
  opacity: 0.15; /* let the taxel grid show through */
}

.mark rect {
  animation: rise 1.2s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.mark rect:nth-child(1) { animation-delay: 0.05s; }
.mark rect:nth-child(2) { animation-delay: 0.15s; }
.mark rect:nth-child(3) { animation-delay: 0.25s; }
.mark rect:nth-child(4) { animation-delay: 0.35s; }
.mark rect:nth-child(5) { animation-delay: 0.45s; }

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.footer {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 20px;
  padding: 20px 16px 24px;
  font-size: 12px;
  letter-spacing: 0.02em;
  color: var(--ink-faint);
}

.footer a {
  text-decoration: none;
}
.footer a:hover,
.footer a:focus-visible {
  color: var(--ink);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Legal pages */

.legal {
  max-width: 680px;
  margin: 0 auto;
  padding: 48px 16px 64px;
  line-height: 1.6;
  font-size: 15px;
  color: var(--ink-muted);
}

.legal .back {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink-faint);
  font-size: 13px;
}
.legal .back:hover {
  color: var(--ink);
}
.legal .back svg {
  width: 22px;
  height: 22px;
}

.legal h1 {
  margin: 40px 0 24px;
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.legal h2 {
  margin: 32px 0 8px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}

.legal p,
.legal address {
  margin: 0 0 12px;
  font-style: normal;
}

.legal .todo {
  color: var(--accent);
}

.legal footer {
  margin-top: 48px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--ink-faint);
}

@media (prefers-reduced-motion: reduce) {
  .mark rect {
    animation: none;
  }
}
