:root {
  --paper: #F4F2ED;
  --ink: #17161A;
  --violet: #3E1F92;
  --orange: #FF5A1F;
  --yellow: #FFC94A;
  --border: rgba(23, 22, 26, 0.85);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--paper);
  color: var(--ink);
}

body {
  font-family: "Instrument Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  overflow-x: hidden;
}

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

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  width: 100%;
  overflow: hidden;
  background-color: var(--paper);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
  display: grid;
  grid-template-rows: auto 1fr auto;
}

.hero.hide-native-cursor {
  cursor: none;
}

.paper-canvas {
  position: absolute;
  inset: 0;
  display: block;
  z-index: 1;
  pointer-events: none;
}

.px-cursor {
  position: absolute;
  top: 0;
  left: 0;
  width: 14px;
  height: 24px;
  pointer-events: none;
  will-change: transform;
  z-index: 3;
  display: none;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  image-rendering: pixelated;
  image-rendering: -moz-crisp-edges;
  image-rendering: crisp-edges;
}

.masthead {
  position: relative;
  z-index: 2;
  padding: 28px 32px 0;
  font-size: clamp(15px, 1.4vw, 18px);
  font-weight: 600;
  letter-spacing: 0.01em;
}

.content {
  position: relative;
  z-index: 2;
  align-self: center;
  padding: 0 32px;
  max-width: 620px;
  width: 100%;
}

.headline {
  margin: 0 0 20px;
  font-weight: 500;
  font-size: clamp(34px, 5.6vw, 64px);
  line-height: 1.06;
  letter-spacing: -0.01em;
  text-shadow:
    0 0 18px rgba(244, 242, 237, 0.85),
    0 0 36px rgba(244, 242, 237, 0.7),
    0 0 60px rgba(244, 242, 237, 0.55);
}

/* Hidden by default: on wide screens the headline wraps naturally.
   Shown under 700px so it breaks as "The future's / getting weird."
   instead of orphaning "weird." alone on a third line. */
.mobile-break {
  display: none;
}

.sub {
  margin: 0 0 32px;
  font-size: clamp(15px, 1.6vw, 18px);
  line-height: 1.5;
  max-width: 480px;
  text-shadow:
    0 0 14px rgba(244, 242, 237, 0.85),
    0 0 28px rgba(244, 242, 237, 0.65);
}

.signup {
  max-width: 480px;
}

.field-row {
  display: flex;
  gap: 0;
  background: rgba(244, 242, 237, 0.7);
  border-radius: 4px;
}

.signup input[type="email"] {
  flex: 1 1 auto;
  min-width: 0;
  font: inherit;
  font-family: "Instrument Sans", sans-serif;
  font-size: 15px;
  padding: 14px 16px;
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--border);
  border-radius: 4px 0 0 4px;
}

.signup input[type="email"]::placeholder {
  color: rgba(23, 22, 26, 0.45);
}

.signup input[type="email"]:focus {
  outline: 2px solid var(--orange);
  outline-offset: -1px;
  z-index: 1;
  position: relative;
}

.signup button {
  flex: 0 0 auto;
  font: inherit;
  font-family: "Instrument Sans", sans-serif;
  font-weight: 500;
  font-size: 15px;
  padding: 14px 22px;
  background: var(--ink);
  color: var(--paper);
  border: 1px solid var(--ink);
  border-left: none;
  border-radius: 0 4px 4px 0;
  cursor: pointer;
  white-space: nowrap;
}

.signup button:hover {
  background: #2c2a31;
}

.signup button:focus-visible,
.signup input[type="email"]:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
}

.fine-print {
  margin: 10px 2px 0;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 12px;
  color: rgba(23, 22, 26, 0.6);
  text-shadow: 0 0 10px rgba(244, 242, 237, 0.8);
}

.footer {
  position: relative;
  z-index: 2;
  padding: 0 32px 22px;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 11px;
  color: rgba(23, 22, 26, 0.65);
}

.footer a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

@media (max-width: 640px) {
  .hero {
    min-height: 100dvh;
    grid-template-rows: auto 1fr auto;
  }
  .masthead { padding: 22px 20px 0; }
  .content { padding: 0 20px; max-width: 100%; }
  .footer { padding: 0 20px 18px; }
  .field-row { flex-direction: column; border-radius: 4px; }
  .signup input[type="email"] {
    border-radius: 4px 4px 0 0;
  }
  .signup button {
    border-left: 1px solid var(--ink);
    border-top: none;
    border-radius: 0 0 4px 4px;
    width: 100%;
  }
}

@media (max-width: 699px) {
  .mobile-break {
    display: block;
  }
}

.fine-print.is-error { color: #B3261E; opacity: 1; }
