:root {
  --bg: #f6f4ef;
  --surface: #ffffff;
  --ink: #14161c;
  --muted: #5b6070;
  --line: #e3dfd6;
  --accent: #ff7a1a;
  --accent-ink: #ffffff;
  --cube: #1c1f27;
  --cube-top: #2a2e39;
  --cube-side: #111318;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1116;
    --surface: #171a21;
    --ink: #f2f0ea;
    --muted: #a3a8b6;
    --line: #262a33;
    --cube: #2a2e39;
    --cube-top: #3a3f4c;
    --cube-side: #1c1f27;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font:
    17px/1.55 -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    Roboto,
    Helvetica,
    Arial,
    sans-serif;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

.bar,
main,
footer {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: block;
  line-height: 0;
}

.logo svg {
  width: 128px;
  height: auto;
}

.logo .ink {
  stroke: var(--ink);
}

.logo .gap {
  stroke: var(--bg);
}

.logo .accent {
  stroke: var(--accent);
}

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

.join {
  display: flex;
  gap: 10px;
  max-width: 480px;
}

.join input[type='email'] {
  flex: 1;
  min-width: 0;
  padding: 13px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
}

.join input[type='email']:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

.join button {
  border: 0;
  font: inherit;
  font-weight: 650;
  cursor: pointer;
  white-space: nowrap;
}

.join button:disabled {
  opacity: 0.6;
  cursor: progress;
}

.fine[data-kind='ok'] {
  color: var(--ink);
  font-weight: 600;
}

.fine[data-kind='error'] {
  color: #c4361a;
  font-weight: 600;
}

.message {
  max-width: 640px;
  padding: 96px 24px 120px;
  text-align: center;
}

.message p {
  color: var(--muted);
}

.prose {
  max-width: 680px;
  padding: 48px 24px 96px;
}

.prose h1 {
  font-size: 44px;
}

.prose h2 {
  margin: 32px 0 8px;
  font-size: 20px;
}

.prose p {
  color: var(--muted);
}

.prose .updated {
  font-size: 14px;
}

.cta {
  display: inline-block;
  padding: 14px 24px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 650;
  text-decoration: none;
  transition: transform 0.15s ease;
}

.cta:hover {
  transform: translateY(-1px);
}

.cta.small {
  padding: 9px 16px;
  font-size: 15px;
}

.hero {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: center;
  padding: 72px 0 88px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1 {
  margin: 0 0 20px;
  font-size: clamp(40px, 7vw, 68px);
  line-height: 1.04;
  letter-spacing: -0.035em;
}

.lede {
  max-width: 34em;
  margin: 0 0 32px;
  color: var(--muted);
  font-size: 20px;
}

.lede strong {
  color: var(--ink);
}

.fine {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.cube-wrap {
  display: flex;
  justify-content: center;
  perspective: 900px;
}

.cube {
  position: relative;
  width: 200px;
  height: 200px;
  transform-style: preserve-3d;
  transform: rotateX(-22deg) rotateY(-34deg);
  animation: float 6s ease-in-out infinite;
}

.face {
  position: absolute;
  inset: 0;
  border-radius: 4px;
}

.front {
  background: var(--cube);
  transform: translateZ(100px);
}

.top {
  background: var(--cube-top);
  transform: rotateX(90deg) translateZ(100px);
}

.side {
  background: var(--cube-side);
  transform: rotateY(90deg) translateZ(100px);
}

/* The status light: an angled bar in the top's front-right corner, like the tail of the logo's Q. */
.led {
  position: absolute;
  right: 2%;
  bottom: 13%;
  width: 44%;
  height: 8%;
  border-radius: 999px;
  background: var(--accent);
  transform: rotate(45deg);
  box-shadow: 0 0 24px 6px rgba(255, 122, 26, 0.5);
  animation: pulse 2.6s ease-in-out infinite;
}

@keyframes float {
  50% {
    transform: rotateX(-22deg) rotateY(-34deg) translateY(-10px);
  }
}

@keyframes pulse {
  50% {
    opacity: 0.55;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cube,
  .led {
    animation: none;
  }
}

.features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding-bottom: 96px;
}

.features article {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
}

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

.features p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.privacy {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 48px;
  margin-bottom: 96px;
  padding: 48px;
  border-radius: 24px;
  background: #14161c;
  color: #f2f0ea;
}

.privacy h2 {
  margin: 0 0 16px;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.privacy-intro p:last-child {
  margin: 0;
  color: #a3a8b6;
}

.privacy-points {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px 32px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.privacy-points h3 {
  margin: 0 0 6px;
  font-size: 17px;
}

.privacy-points h3::before {
  content: '';
  display: inline-block;
  width: 14px;
  height: 4px;
  margin: 0 10px 4px 0;
  border-radius: 2px;
  background: var(--accent);
  transform: rotate(45deg);
}

.privacy-points p {
  margin: 0;
  color: #a3a8b6;
  font-size: 15px;
}

@media (prefers-color-scheme: dark) {
  .privacy {
    border: 1px solid var(--line);
    background: var(--surface);
  }
}

footer {
  padding-top: 24px;
  padding-bottom: 40px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

@media (max-width: 860px) {
  .hero {
    grid-template-columns: 1fr;
    padding: 40px 0 64px;
    text-align: center;
  }

  .lede,
  .join {
    margin-left: auto;
    margin-right: auto;
  }

  .cube-wrap {
    order: -1;
  }

  .cube {
    width: 140px;
    height: 140px;
  }

  .front {
    transform: translateZ(70px);
  }

  .top {
    transform: rotateX(90deg) translateZ(70px);
  }

  .side {
    transform: rotateY(90deg) translateZ(70px);
  }

  .features {
    grid-template-columns: 1fr 1fr;
  }

  .privacy {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 32px 24px;
  }
}

@media (max-width: 520px) {
  .features {
    grid-template-columns: 1fr;
  }

  .join {
    flex-direction: column;
  }

  .privacy-points {
    grid-template-columns: 1fr;
  }

  .bar .cta.small {
    display: none;
  }
}
