/* NY — launch homepage. Black and white only: every color here is #000 or #fff. */

:root {
  --black: #000;
  --white: #fff;
  --sans: "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --gutter: clamp(20px, 5vw, 64px);
  --rule: 2px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  background: var(--black);
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--black);
  color: var(--white);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

main {
  flex: 1 0 auto;
}

h1,
h2,
h3,
p,
ol {
  margin: 0;
  padding: 0;
}

a {
  color: inherit;
}

::selection {
  background: var(--white);
  color: var(--black);
}

:focus-visible {
  outline: var(--rule) solid currentColor;
  outline-offset: 4px;
}

/* ---------- Skip link ---------- */

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: 0;
  z-index: 10;
  padding: 10px 16px;
  background: var(--white);
  color: var(--black);
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-120%);
}

.skip-link:focus {
  transform: translateY(12px);
}

/* ---------- Header ---------- */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px var(--gutter);
  border-bottom: var(--rule) solid var(--white);
}

.wordmark {
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 0.04em;
  line-height: 1;
  text-decoration: none;
}

.header-link {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  padding-bottom: 3px;
  border-bottom: var(--rule) solid var(--white);
}

.header-link:hover {
  background: var(--white);
  color: var(--black);
}

/* ---------- Hero ---------- */

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: clamp(24px, 5vw, 56px) var(--gutter) clamp(64px, 10vw, 120px);
  scroll-margin-top: 0;
}

.stage {
  position: relative;
  width: 100%;
  height: clamp(200px, 44vw, 500px);
}

.stage-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: none;
  touch-action: pan-y;
}

.stage-title {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  font-size: clamp(150px, 38vw, 440px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.02em;
}

/* When the canvas is running it draws the letters; the heading stays for
   assistive technology and search engines but is visually hidden. */
.has-canvas .stage-canvas {
  display: block;
}

.has-canvas .stage-title {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.tagline {
  margin-top: clamp(16px, 3vw, 32px);
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(34px, 6.4vw, 84px);
  line-height: 1.05;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.lede {
  max-width: 34em;
  margin-top: clamp(16px, 2vw, 24px);
  font-size: clamp(17px, 1.6vw, 20px);
  text-wrap: balance;
}

/* ---------- Waitlist ---------- */

.waitlist {
  width: 100%;
  max-width: 600px;
  margin-top: clamp(32px, 5vw, 56px);
  text-align: left;
  scroll-margin-top: 32px;
}

.waitlist-label {
  display: block;
  margin-bottom: 10px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.waitlist-row {
  display: flex;
  border: var(--rule) solid var(--white);
}

.waitlist-input {
  flex: 1 1 auto;
  min-width: 0;
  height: 60px;
  padding: 0 18px;
  border: 0;
  border-radius: 0;
  background: var(--black);
  color: var(--white);
  caret-color: var(--white);
  font: inherit;
  font-size: 18px;
  appearance: none;
}

.waitlist-input:focus {
  outline: none;
}

.waitlist-row:focus-within {
  outline: var(--rule) solid var(--white);
  outline-offset: 4px;
}

/* Keep browser autofill black and white. */
.waitlist-input:-webkit-autofill,
.waitlist-input:-webkit-autofill:hover,
.waitlist-input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--white);
  -webkit-box-shadow: 0 0 0 1000px var(--black) inset;
  box-shadow: 0 0 0 1000px var(--black) inset;
  caret-color: var(--white);
}

.waitlist-button {
  flex: 0 0 auto;
  height: 60px;
  padding: 0 28px;
  border: 0;
  border-left: var(--rule) solid var(--white);
  border-radius: 0;
  background: var(--white);
  color: var(--black);
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  appearance: none;
}

.waitlist-button:hover,
.waitlist-button:focus-visible {
  background: var(--black);
  color: var(--white);
}

.waitlist-button:focus-visible {
  outline: none;
}

.waitlist-button[disabled] {
  background: var(--black);
  color: var(--white);
  cursor: progress;
}

.waitlist-status {
  min-height: 1.5em;
  margin-top: 14px;
  font-size: 15px;
}

.waitlist-status:empty {
  visibility: hidden;
}

.waitlist-status.is-error {
  display: inline-block;
  padding: 6px 12px;
  background: var(--white);
  color: var(--black);
  font-weight: 700;
}

.waitlist-success {
  padding: 28px 24px;
  border: var(--rule) solid var(--white);
  background: var(--white);
  color: var(--black);
  text-align: center;
}

.waitlist-success[hidden] {
  display: none;
}

.waitlist-success:focus {
  outline: none;
}

.waitlist-success-title {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.1;
}

.waitlist-success-text {
  margin-top: 8px;
}

/* ---------- Steps (inverted section) ---------- */

.steps {
  padding: clamp(64px, 9vw, 120px) var(--gutter);
  background: var(--white);
  color: var(--black);
}

.steps ::selection {
  background: var(--black);
  color: var(--white);
}

.steps-title {
  max-width: 14em;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(30px, 4.6vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.steps-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 56px);
  margin-top: clamp(40px, 6vw, 72px);
  list-style: none;
}

.step {
  padding-top: 20px;
  border-top: 4px solid var(--black);
}

.step-number {
  display: block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.step-heading {
  margin-top: clamp(24px, 4vw, 48px);
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.step-text {
  max-width: 24em;
  margin-top: 10px;
}

.steps-cta {
  display: inline-block;
  margin-top: clamp(40px, 6vw, 72px);
  padding: 18px 28px;
  border: var(--rule) solid var(--black);
  background: var(--black);
  color: var(--white);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
}

.steps-cta:hover,
.steps-cta:focus-visible {
  background: var(--white);
  color: var(--black);
}

/* ---------- Footer ---------- */

.site-footer {
  padding: 28px var(--gutter);
  border-top: var(--rule) solid var(--white);
  text-align: center;
  font-size: 15px;
}

.site-footer a {
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: var(--rule);
  text-underline-offset: 4px;
}

.site-footer a:hover {
  background: var(--white);
  color: var(--black);
  text-decoration: none;
}

/* ---------- Small screens ---------- */

@media (max-width: 720px) {
  .steps-list {
    grid-template-columns: 1fr;
  }

  .step-heading {
    margin-top: 16px;
  }
}

@media (max-width: 520px) {
  .waitlist-row {
    flex-direction: column;
  }

  .waitlist-button {
    width: 100%;
    border-left: 0;
    border-top: var(--rule) solid var(--white);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
