:root {
  --s5n-ink: #151719;
  --s5n-muted: #667085;
  --s5n-line: #d6dae1;
  --s5n-focus: #217c7e;
  --s5n-surface: #ffffff;
  --s5n-warm: #f3efe7;
}

html,
body {
  min-height: 100%;
}

.s5n-page {
  min-height: 100vh;
  margin: 0;
  color: var(--s5n-ink);
  background:
    linear-gradient(180deg, var(--s5n-surface) 0%, #f8f9fb 58%, var(--s5n-warm) 100%);
  font-family: "Source Sans Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.s5n-shell {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem 5rem;
}

.s5n-search {
  width: min(100%, 42rem);
  text-align: center;
}

.s5n-logo {
  margin: 0 0 2rem;
  font-size: 5rem;
  line-height: 1;
  font-weight: 700;
  letter-spacing: 0;
}

.s5n-form {
  margin: 0;
}

.s5n-input-group {
  min-height: 3.75rem;
  border: 1px solid var(--s5n-line);
  border-radius: 999px;
  background: var(--s5n-surface);
  box-shadow: 0 1rem 3rem rgba(15, 23, 42, 0.08);
  overflow: hidden;
}

.s5n-input-group:focus-within {
  border-color: var(--s5n-focus);
  box-shadow: 0 1rem 3rem rgba(33, 124, 126, 0.14);
}

.s5n-input-group .form-control {
  min-width: 0;
  height: 3.75rem;
  border: 0;
  padding: 0 1.4rem;
  font-size: 1.05rem;
  background: transparent;
}

.s5n-input-group .form-control:focus {
  box-shadow: none;
}

.s5n-input-group .btn {
  min-width: 8.75rem;
  height: 3.75rem;
  border: 0;
  border-radius: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 600;
}

.s5n-result {
  min-height: 3.25rem;
  margin: 1.25rem auto 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.s5n-result[hidden] {
  display: none;
}

.s5n-result a {
  max-width: min(100%, 30rem);
  color: var(--s5n-focus);
  font-size: 1.1rem;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.s5n-result .btn {
  min-width: 5.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
}

.s5n-message {
  min-height: 1.5rem;
  margin: 1rem 0 0;
  color: var(--s5n-muted);
}

.s5n-message.is-error {
  color: #b42318;
}

@media (max-width: 575.98px) {
  .s5n-shell {
    align-items: flex-start;
    padding-top: 6rem;
  }

  .s5n-logo {
    margin-bottom: 1.5rem;
    font-size: 4rem;
  }

  .s5n-input-group {
    border-radius: 1.75rem;
  }

  .s5n-input-group .form-control {
    flex-basis: 100%;
    height: 3.5rem;
    text-align: center;
  }

  .s5n-input-group .input-group-append {
    width: 100%;
  }

  .s5n-input-group .btn {
    width: 100%;
    height: 3.4rem;
  }

  .s5n-result {
    flex-direction: column;
  }
}
