:root {
  color-scheme: dark;
  --black: #030303;
  --ink: #090706;
  --cream: #f3e7d2;
  --muted: rgba(243, 231, 210, 0.66);
  --line: rgba(243, 231, 210, 0.16);
  --blood: #8e1724;
  --gold: #c8a24f;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-width: 320px;
  min-height: 100%;
  margin: 0;
  background: var(--black);
  color: var(--cream);
}

body {
  overflow-x: hidden;
}

.noir {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.85fr);
  gap: clamp(1.5rem, 5vw, 4rem);
  min-height: 100svh;
  padding: clamp(1rem, 4vw, 4rem);
  isolation: isolate;
}

.noir::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background:
    linear-gradient(90deg, rgba(142, 23, 36, 0.2), transparent 34%),
    repeating-linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.032) 0,
      rgba(255, 255, 255, 0.032) 1px,
      transparent 1px,
      transparent 9px
    ),
    linear-gradient(135deg, #030303 0%, #100c09 52%, #030303 100%);
}

.copy {
  align-self: end;
  width: min(680px, 100%);
  padding-bottom: clamp(1rem, 5vh, 3rem);
}

.kicker,
.file-label {
  margin: 0 0 0.9rem;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

h1 {
  max-width: 10ch;
  margin: 0;
  color: #fff5df;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 6.25rem;
  line-height: 0.9;
  overflow-wrap: anywhere;
  text-wrap: balance;
  text-shadow: 0 1rem 4rem rgba(0, 0, 0, 0.9);
}

.line,
.whisper {
  max-width: 35rem;
  margin: 1.15rem 0 0;
  color: var(--muted);
  font-size: 1.18rem;
  line-height: 1.6;
}

.whisper {
  color: rgba(243, 231, 210, 0.84);
}

.signup-form {
  display: grid;
  gap: 0.75rem;
  width: min(31rem, 100%);
  margin-top: 2rem;
}

.signup-form label {
  color: rgba(243, 231, 210, 0.82);
  font-size: 0.8rem;
  font-weight: 900;
  text-transform: uppercase;
}

.signup-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.7rem;
}

.signup-row input,
.signup-row button {
  min-height: 48px;
  border-radius: 6px;
  font: inherit;
}

.signup-row input {
  width: 100%;
  border: 1px solid var(--line);
  padding: 0.85rem 0.95rem;
  color: var(--cream);
  background: rgba(3, 3, 3, 0.78);
}

.signup-row input:focus {
  border-color: rgba(200, 162, 79, 0.88);
  outline: 2px solid rgba(200, 162, 79, 0.22);
  outline-offset: 1px;
}

.signup-row button {
  border: 1px solid rgba(142, 23, 36, 0.95);
  padding: 0.85rem 1rem;
  color: #fff5df;
  background: var(--blood);
  font-weight: 900;
}

.signup-row button:disabled {
  cursor: wait;
  opacity: 0.7;
}

.form-message {
  min-height: 1.4rem;
  margin: 0;
  color: rgba(243, 231, 210, 0.58);
  font-size: 0.92rem;
  line-height: 1.5;
}

.ascii-file {
  align-self: center;
  min-width: 0;
  border: 1px solid rgba(243, 231, 210, 0.14);
  border-radius: 6px;
  padding: clamp(0.85rem, 2vw, 1.25rem);
  background:
    linear-gradient(180deg, rgba(142, 23, 36, 0.13), rgba(3, 3, 3, 0.82)),
    rgba(3, 3, 3, 0.7);
  box-shadow: 0 2rem 5rem rgba(0, 0, 0, 0.58);
}

.ascii-file pre {
  width: 100%;
  margin: 0;
  overflow: auto;
  color: #e7d2ad;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.61rem;
  line-height: 1.12;
  text-shadow: 0 0 1.1rem rgba(200, 162, 79, 0.28);
  white-space: pre;
}

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

  .copy {
    order: 2;
  }

  .ascii-file {
    order: 1;
    align-self: start;
    margin-top: 2.5rem;
  }

  h1 {
    font-size: 4rem;
  }
}

@media (max-width: 520px) {
  .noir {
    padding: 0.85rem;
  }

  h1 {
    font-size: 3.1rem;
  }

  .line,
  .whisper {
    font-size: 1.03rem;
  }

  .signup-row {
    grid-template-columns: 1fr;
  }

  .signup-row button {
    width: 100%;
  }

  .ascii-file pre {
    font-size: 0.47rem;
  }
}
