:root {
  --bg: #111111;
  --title: #ef4136;
  --text: #e6e6e6;
  --muted: #bdbdbd;
  --bar: #292929;
  --bar-line: #000000;
  --field-text: #1b1b1b;
  --field-placeholder: #626262;
  --field-border: #343434;
  --button-text: #aaaaaa;
  --body-width: 720px;
  font-family: "IBM Plex Mono", "JetBrains Mono", "SFMono-Regular", monospace;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
}

body {
  min-height: 100vh;
  min-height: 100dvh;
}

.panel {
  min-height: 100vh;
  min-height: 100dvh;
  padding: 60px 20px 20px;
}

.panel__body {
  width: min(100%, var(--body-width));
  min-height: calc(100vh - 80px);
  min-height: calc(100dvh - 80px);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.panel__header {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.panel__content {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.panel__title,
.panel__subtitle,
.response,
.signal-form__input,
.signal-form__button,
.signal-form__ghost,
.access-link,
.copy-button {
  letter-spacing: 0.02em;
}

.panel__title {
  margin: 0;
  color: var(--title);
  font-size: clamp(2.4rem, 7vw, 56px);
  font-weight: 600;
  line-height: 1;
  text-transform: uppercase;
}

.panel__subtitle {
  margin: 0;
  max-width: 30ch;
  color: var(--muted);
  font-size: clamp(18px, 3vw, 24px);
  line-height: 1.18;
}

.response {
  min-height: 192px;
  color: var(--title);
  font-size: clamp(15px, 2.4vw, 20px);
  line-height: 1.55;
}

.response--idle {
  min-height: 0;
}

.response__lead {
  margin: 0;
  white-space: pre-wrap;
}

.response__lead.is-hidden {
  display: none;
}

.response__body {
  display: grid;
  gap: 0;
}

.response__body p,
.response__body blockquote {
  margin: 0;
}

.response__body blockquote {
  color: var(--text);
  font-weight: 700;
}

.response__line--white {
  color: var(--text);
}

.response__line--strong {
  color: var(--text);
  font-weight: 700;
}

.response__line--inline {
  display: inline;
}

.response__spacer {
  height: 20px;
}

.access-link {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 0.08em;
  word-break: break-all;
}

.copy-button {
  padding: 0;
  border: 0;
  background: none;
  color: var(--title);
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 0.08em;
  cursor: pointer;
  justify-self: start;
}

.copy-button::before {
  content: "[";
}

.copy-button::after {
  content: "]";
}

.copy-button[disabled] {
  opacity: 0.72;
  cursor: default;
}

.bar {
  width: 100%;
  min-height: 204px;
  padding: 52px;
  background:
    linear-gradient(#292929, #292929) padding-box,
    linear-gradient(180deg, #666666 0%, #000000 100%) border-box;
  border: 1px solid transparent;
  border-radius: 24px;
}

.signal-form {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: flex-start;
  align-content: flex-start;
  gap: 60px;
  width: 100%;
}

.signal-form__field {
  position: relative;
  width: 456px;
  flex-basis: 456px;
  flex-grow: 0;
  flex-shrink: 1;
  min-width: 350px;
}

.signal-form__input-shell {
  border: 2px solid #000000;
  border-radius: 60px;
  background: linear-gradient(180deg, #393939 0%, #202020 100%);
  box-shadow:
    0 -8px 20px rgba(39, 39, 39, 0.8),
    0 12px 20px rgba(0, 0, 0, 0.6);
}

.signal-form__input-surface {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 60px;
  padding: 0 24px;
  border: 1px solid var(--field-border);
  border-radius: 75px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.72) 0%, rgba(214, 214, 214, 0.72) 100%),
    linear-gradient(180deg, #202020 0%, #393939 100%);
  overflow: hidden;
}

.signal-form__ghost {
  position: absolute;
  left: 24px;
  top: 50%;
  display: inline-flex;
  align-items: center;
  gap: 1px;
  color: var(--field-placeholder);
  font-size: clamp(16px, 2vw, 20px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0;
  text-transform: lowercase;
  transform: translateY(-50%);
  pointer-events: none;
  opacity: 0;
}

.signal-form__field.is-empty .signal-form__ghost {
  opacity: 1;
}

.signal-form__field.is-empty:focus-within .signal-form__ghost {
  opacity: 0;
}

.signal-form__cursor {
  display: inline-block;
  width: 0.08em;
  height: 1em;
  background: currentColor;
  animation: blink 1s steps(1, end) infinite;
}

.signal-form__input {
  position: relative;
  z-index: 1;
  width: 100%;
  border: 0;
  outline: 0;
  padding: 0;
  background: transparent;
  color: var(--field-text);
  font: inherit;
  font-size: clamp(16px, 2vw, 20px);
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1;
  text-transform: none;
  caret-color: var(--field-text);
}

.signal-form__input::placeholder {
  color: transparent;
}

.signal-form__button {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 100px;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 0;
  background:
    linear-gradient(180deg, rgba(102, 102, 102, 1) 0%, rgba(0, 0, 0, 1) 100%) border-box,
    #2e2e2e padding-box;
  box-shadow: none;
  padding: 0;
  color: var(--button-text);
  font: inherit;
  font-size: 40px;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 160ms ease, filter 160ms ease;
  isolation: isolate;
}

.signal-form__button::before,
.signal-form__button::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  z-index: 0;
}

.signal-form__button::before {
  inset: 0;
  background: #2e2e2e;
  border: 4px solid #090909;
}

.signal-form__button::after {
  inset: 2.5px;
  border: 1px solid transparent;
  background:
    linear-gradient(#2e2e2e, #2e2e2e) padding-box,
    linear-gradient(180deg, #666666 0%, #000000 100%) border-box;
}

.signal-form__button > * {
  position: relative;
  z-index: 1;
}

.signal-form__button-label {
  color: #aaa;
  font-family: "IBM Plex Mono", "JetBrains Mono", "SFMono-Regular", monospace;
  font-size: 40px;
  font-style: normal;
  font-weight: 500;
  line-height: normal;
  text-transform: uppercase;
}

.signal-form__button:hover:not(:disabled),
.signal-form__button:focus-visible {
  transform: translateY(-1px);
  filter: brightness(1.08);
}

.signal-form__button:disabled {
  cursor: default;
  filter: grayscale(0.08);
}

@media (min-width: 768px) {
  .signal-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 100px;
    column-gap: 60px;
    row-gap: 0;
    align-items: start;
  }

  .signal-form__field {
    width: auto;
    max-width: 456px;
    min-width: 0;
  }

  .signal-form__button {
    justify-self: start;
    margin-left: 0;
  }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

@keyframes blink {
  0%,
  49% {
    opacity: 1;
  }

  50%,
  100% {
    opacity: 0;
  }
}

@media (max-width: 767px) {
  .panel {
    padding: 20px 16px 16px;
  }

  .panel__body {
    min-height: calc(100vh - 36px);
    min-height: calc(100dvh - 36px);
  }

  .panel__header {
    gap: 16px;
  }

  .panel__content {
    gap: 24px;
  }

  .response {
    min-height: 148px;
    font-size: 16px;
  }

  .response--idle {
    min-height: 0;
  }

  .response__spacer {
    height: 14px;
  }

  .bar {
    min-height: 280px;
    padding: 40px;
  }

  .signal-form {
    gap: 40px;
  }

  .signal-form__field {
    width: 100%;
    flex-basis: 100%;
    min-width: 100%;
  }

  .signal-form__button {
    margin-left: auto;
    width: 100px;
    height: 100px;
    flex-basis: 100px;
    font-size: 40px;
  }

  .signal-form__button-label {
    font-size: 40px;
  }
}
